Commit ceaa97d6 by s_guodong

MT541升级

parent db02e420
......@@ -80,6 +80,7 @@ T60M:{"s3":{"reg":"[A-Z]{3}","line":1,"length":3,"fixed":true,"type":"a","option
T72Z:{"s1":{"reg":"[\\w\\.,\\-\\(\\)/\u003d\u0027\\+:\\?!\"%\u0026\\*\\\u003c\\\u003e;\\{\\s@#]{0,35}","line":6,"length":35,"fixed":false,"type":"z","option":"M"}},
T97A:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,35}","line":1,"length":35,"fixed":false,"type":"x","option":"M"}},
T97B:{"s3":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s4":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,35}","line":1,"length":35,"fixed":false,"type":"x","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{1,8}","line":1,"length":8,"fixed":false,"type":"c","option":"O"}},
T97D:{"s3":{"reg":"[0-9a-zA-Z\\-\\?:\\(\\)\\.,'\\+ ]{0,140}","line":1,"length":140,"fixed":false,"type":"x","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{1,8}","line":1,"length":8,"fixed":false,"type":"c","option":"O"}},
T85A:{"s3":{"reg":"[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?","line":1,"length":8,"fixed":true,"type":"FUNC","content":"SWIFTBIC","option":"M"},"s1":{"reg":"C|D|RC|RD","line":1,"length":2,"fixed":true,"type":"FUNC","content":"DC","option":"O"},"s2":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,34}","line":1,"length":34,"fixed":false,"type":"x","option":"O"}},
T97C:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"}},
T85B:{"s3":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,35}","line":1,"length":35,"fixed":false,"type":"x","option":"O"},"s1":{"reg":"C|D|RC|RD","line":1,"length":2,"fixed":true,"type":"FUNC","content":"DC","option":"O"},"s2":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,34}","line":1,"length":34,"fixed":false,"type":"x","option":"O"}},
......@@ -116,6 +117,7 @@ T62M:{"s3":{"reg":"[A-Z]{3}","line":1,"length":3,"fixed":true,"type":"a","option
T50L:{"s1":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,35}","line":1,"length":35,"fixed":false,"type":"x","option":"M"}},
T99A:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"\\d{3}","line":1,"length":3,"fixed":true,"type":"n","option":"M"}},
T99B:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"\\d{3}","line":1,"length":3,"fixed":true,"type":"n","option":"M"}},
T99C:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"\\d{6}","line":1,"length":6,"fixed":true,"type":"n","option":"M"}},
T87A:{"s3":{"reg":"[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?","line":1,"length":8,"fixed":true,"type":"FUNC","content":"SWIFTBIC","option":"M"},"s1":{"reg":"C|D|RC|RD","line":1,"length":2,"fixed":true,"type":"FUNC","content":"DC","option":"O"},"s2":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,34}","line":1,"length":34,"fixed":false,"type":"x","option":"O"}},
T99C:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"\\d{6}","line":1,"length":6,"fixed":true,"type":"n","option":"M"}},
T87B:{"s3":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,35}","line":1,"length":35,"fixed":false,"type":"x","option":"O"},"s1":{"reg":"C|D|RC|RD","line":1,"length":2,"fixed":true,"type":"FUNC","content":"DC","option":"O"},"s2":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,34}","line":1,"length":34,"fixed":false,"type":"x","option":"O"}},
......@@ -339,6 +341,7 @@ T35U:{"s3":{"reg":"[A-Z]{1}","line":1,"length":1,"fixed":false,"type":"a","optio
T23X:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,65}","line":1,"length":65,"fixed":false,"type":"x","option":"M"}},
T20:{"s1":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,16}","line":1,"length":16,"fixed":false,"type":"x","option":"M"}},
T36B:{"s3":{"reg":"[\\d,]{1,15}","line":1,"length":15,"fixed":true,"type":"FUNC","content":"NUMBER","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"}},
T36D:{"s3":{"reg":"[\\d,]{1,30}","line":1,"length":30,"fixed":true,"type":"FUNC","content":"NUMBER","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"}},
T21:{"s1":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,16}","line":1,"length":16,"fixed":false,"type":"x","option":"M"}},
T24B:{"s3":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{1,8}","line":1,"length":8,"fixed":false,"type":"c","option":"O"}},
T12A:{"s3":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{1,30}","line":1,"length":30,"fixed":false,"type":"x","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{1,8}","line":1,"length":8,"fixed":false,"type":"c","option":"O"}},
......
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T36D extends Component
{
name='36D'
desp = "Quantity of Financial Instrument"
pattern = ":4!c//4!c/30d"
tno = -1
keys=[1,2,3]
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let temp = FormatAmount(obj.s3);
let mval = `:${obj.s1}//${obj.s2}/${temp}`
this.props.onValue([obj,mval])
}
render()
{
let value =this.props.value
let mval = value && value.length? value[1] : ''
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
return (<Row>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Qualifier"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
placeholder="Qualifier"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(1,val)} >
<Option value="PAIR">PAIR</Option>
<Option value="TURN">TURN</Option>
<Option value="MION">MION</Option>
<Option value="SIZE">SIZE</Option>
<Option value="SETT">SETT</Option>
<Option value="LOST">LOST</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Quantity Type Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="Quantity Type Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
<Option value="AMOR">AMOR</Option>
<Option value="FAMT">FAMT</Option>
<Option value="UNIT">UNIT</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '300px' }} span={3}>
<FormItem
label="Quantity of Digital Tokens"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s3}
validateStatus={errmsg.s3 ? 'error' : null}
>
<Input value={value.s3} onChange={e => this.onChange(3, e.target.value)} maxLength={30} style={{ imeMode: 'disabled' }} placeholder="Quantity of Digital Tokens" />
</FormItem>
</Col>
</Row>)
}
}
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T97D extends Component
{
name='97D'
desp = "Blockchain Address or Wallet"
pattern = ":4!c/[8c]/140x"
tno = -1
keys=[1,2,3]
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = `:${obj.s1}//${obj.s3}`
if (obj.s2)
mval = `:${obj.s1}/${obj.s2}/${obj.s3}`
this.props.onValue([obj,mval])
}
render()
{
let value =this.props.value
let mval = value && value.length? value[1] : ''
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
return (
<Row>
<Col span={24}>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Qualifier"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
placeholder="Qualifier"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(1,val)} >
<Option value="SAFE">SAFE</Option>
<Option value="CASH">CASH</Option>
<Option value="CHAR">CHAR</Option>
<Option value="COMM">COMM</Option>
<Option value="TAXE">TAXE</Option>
</Select>
</FormItem>
</Col>
<Col span={12}>
<FormItem
label="Data Source Scheme"
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Input type="text" value={value.s2} addonBefore="/" onChange={e =>this.onChange(2, e.target.value)} maxLength={8} style={{ imeMode:'disabled'}} placeholder="Data Source Scheme" />
</FormItem>
</Col>
</Col>
<Col style={{"minWidth":'400px'}} span={3}>
<FormItem
label="Identification of Blockchain or Wallet"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input value={value.s3} onChange={e=>this.onChange(3,e.target.value)} maxLength={140} style={{imeMode:'disabled'}} placeholder="Identification of Blockchain or Wallet"/>
</FormItem>
</Col>
</Row>
)
}
}
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class TT99C extends Component
{
name='T99C'
desp = "Number Count"
pattern = ":4!c//6!n"
tno = -1
keys=[1,2]
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = `:${obj.s1}//${obj.s2}`
this.props.onValue([obj,mval])
}
render()
{
let value =this.props.value
let mval = value && value.length? value[1] : ''
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
return (<Row>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Qualifier"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
placeholder="Qualifier"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(1,val)} >
<Option value="SETT">SETT</Option>
<Option value="TOSE">TOSE</Option>
<Option value="CADE">CADE</Option>
<Option value="TOCO">TOCO</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Number"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Input value={value.s2} onChange={e=>this.onChange(2,e.target.value)} maxLength={6} style={{imeMode:'disabled'}} placeholder="Number"/>
</FormItem>
</Col>
</Row>)
}
}
......@@ -302,12 +302,14 @@ import T98G from './T98G'
import T98H from './T98H'
import T20C from './T20C'
import T99B from './T99B'
import T99C from './T99C'
import T99A from './T99A'
import T23G from './T23G'
import T98A from './T98A'
import T22F from './T22F'
import T13A from './T13A'
import T36B from './T36B'
import T36D from './T36D'
import T94B from './T94B'
import T94H from './T94H'
import T94L from './T94L'
......@@ -334,6 +336,7 @@ import T92C from './T92C'
import T19A from './T19A'
import T97A from './T97A'
import T97B from './T97B'
import T97D from './T97D'
import T97E from './T97E'
import T70C from './T70C'
import T16R from './T16R'
......@@ -650,13 +653,14 @@ export default function(tag,props,onValue){
        case "T98H" :return <T98H   {...props}  onValue={onValue}   />;
case "T20C" :return <T20C   {...props}  onValue={onValue}   />;
case "T99B" :return <T99B   {...props}  onValue={onValue}   />;
case "T99C" :return <T99C   {...props}  onValue={onValue}   />;
case "T99A" :return <T99A   {...props}  onValue={onValue}   />;
case "T23G" :return <T23G   {...props}  onValue={onValue}   />;
case "T98A" :return <T98A   {...props}  onValue={onValue}   />;
case "T22F" :return <T22F   {...props}  onValue={onValue}   />;
case "T13A" :return <T13A   {...props}  onValue={onValue}   />;
case "T36B" :return <T36B   {...props}  onValue={onValue}   />;
case "T36B" :return <T36B   {...props}  onValue={onValue}   />;
case "T36D" :return <T36D   {...props}  onValue={onValue}   />;
case "T94B" :return <T94B   {...props}  onValue={onValue}   />;
case "T12A" :return <T12A   {...props}  onValue={onValue}   />;
case "T12"  :return <T12    {...props}  onValue={onValue}   />;
......@@ -684,10 +688,11 @@ export default function(tag,props,onValue){
case "T19A" :return <T19A   {...props}  onValue={onValue}   />;
case "T97A" :return <T97A   {...props}  onValue={onValue}   />;
case "T97B" :return <T97B   {...props}  onValue={onValue}   />;
case "T97D" :return <T97D   {...props}  onValue={onValue}   />;
case "T97E" :return <T97E   {...props}  onValue={onValue}   />;
case "T70C" :return <T70C   {...props}  onValue={onValue}   />;
case "T16S" :return <T16S   {...props}  onValue={onValue}   />;
case "T16R" :return <T16R   {...props}  onValue={onValue}   />;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment