Commit b180e67a by gq777

nanshang2qi

parent 77943386
......@@ -77,7 +77,7 @@ export const mty=[
{mty:"mt940",desp:"MT 940 Customer Statement Message"},
{mty:"mt950",desp:"MT 950 Statement Message"},
{mty:"mt999",desp:"MT 999 Free Format Message"},
{mty:"mt1000",desp:"MT 1000 TEST"},
]
// const columns = [{
......
const M='M'
const O='O'
const Tags=[
{tag:'22',status:0,tno:1,letter:[],label:"TEST"},
{tag:'31G',status:0,tno:2,letter:[],label:"TEST"},
{tag:'26F',status:0,tno:3,letter:[],label:"TEST"},
{tag:'34P',status:0,tno:4,letter:[],label:"TEST"},
{tag:'34R',status:0,tno:5,letter:[],label:"TEST"},
{tag:'26C',status:0,tno:6,letter:[],label:"TEST"},
{tag:'71C',status:0,tno:7,letter:[],label:"TEST"},
{tag:'32F',status:0,tno:8,letter:[],label:"TEST"},
{tag:'37G',status:0,tno:9,letter:[],label:"TEST"},
{tag:'20C',status:0,tno:1,letter:[],label:"TEST"},
{tag:'99B',status:0,tno:2,letter:[],label:"TEST"},
{tag:'99A',status:0,tno:3,letter:[],label:"TEST"},
{tag:'23G',status:0,tno:4,letter:[],label:"TEST"},
{tag:'98A',status:0,tno:5,letter:[],label:"TEST"},
{tag:'22F',status:0,tno:6,letter:[],label:"TEST"},
{tag:'13A',status:0,tno:7,letter:[],label:"TEST"},
{tag:'36B',status:0,tno:8,letter:[],label:"TEST"},
{tag:'94B',status:0,tno:9,letter:[],label:"TEST"},
{tag:'12A',status:0,tno:10,letter:[],label:"TEST"},
{tag:'11A',status:0,tno:11,letter:[],label:"TEST"},
{tag:'92A',status:0,tno:12,letter:[],label:"TEST"},
{tag:'17B',status:0,tno:13,letter:[],label:"TEST"},
{tag:'70E',status:0,tno:14,letter:[],label:"TEST"},
{tag:'25D',status:0,tno:15,letter:[],label:"TEST"},
{tag:'70D',status:0,tno:16,letter:[],label:"TEST"},
{tag:'13B',status:0,tno:17,letter:[],label:"TEST"},
{tag:'98B',status:0,tno:18,letter:[],label:"TEST"},
{tag:'98C',status:0,tno:19,letter:[],label:"TEST"},
{tag:'98E',status:0,tno:20,letter:[],label:"TEST"},
{tag:'94H',status:0,tno:21,letter:[],label:"TEST"},
{tag:'94L',status:0,tno:22,letter:[],label:"TEST"},
{tag:'95C',status:0,tno:23,letter:[],label:"TEST"},
{tag:'95L',status:0,tno:24,letter:[],label:"TEST"},
{tag:'95P',status:0,tno:25,letter:[],label:"TEST"},
{tag:'95Q',status:0,tno:26,letter:[],label:"TEST"},
{tag:'95R',status:0,tno:27,letter:[],label:"TEST"},
{tag:'95S',status:0,tno:28,letter:[],label:"TEST"},
{tag:'92B',status:0,tno:29,letter:[],label:"TEST"},
{tag:'92C',status:0,tno:30,letter:[],label:"TEST"},
{tag:'97A',status:0,tno:31,letter:[],label:"TEST"},
{tag:'97B',status:0,tno:32,letter:[],label:"TEST"},
{tag:'97E',status:0,tno:33,letter:[],label:"TEST"},
{tag:'19A',status:0,tno:34,letter:[],label:"TEST"},
{tag:'16R',status:0,tno:35,letter:[],label:"TEST"},
{tag:'16S',status:0,tno:36,letter:[],label:"TEST"},
{tag:'98D',status:0,tno:37,letter:[],label:"TEST"},
{tag:'98G',status:0,tno:38,letter:[],label:"TEST"},
{tag:'98H',status:0,tno:39,letter:[],label:"TEST"},
]
const Title="TEST"
export default { Tags,Title}
\ No newline at end of file
......@@ -12,7 +12,7 @@ const Tags=[
"pattern":[
{"tag":"99B","status":"O","tno":5,"letter":[],"label":"(see qualifier description)","tagValue":[{},null]}
] },
{"seqlist":"A1","cyccnt":0,"status":"O","seqs":[[
{"seqlist":"A1","cyccnt":1,"status":"O","seqs":[[
{"tag":"16R","status":"M","tno":6,"letter":[],"label":"Start of Block","tagValue":[{},null]},
{"tag":"22F","status":"O","tno":7,"letter":[],"label":"Linkage Type Indicator","tagValue":[{},null]},
{"tag":"13A","status":"O","tno":8,"letter":["13A","13B"],"label":"Linked Message","tagValue":[{},null]},
......@@ -42,7 +42,7 @@ const Tags=[
"pattern":[
{"tag":"99B","status":"O","tno":5,"letter":[],"label":"(see qualifier description)","tagValue":[{},null]}
] },
{"seqlist":"A1","cyccnt":0,"status":"O","seqs":[[
{"seqlist":"A1","cyccnt":1,"status":"O","seqs":[[
{"tag":"16R","status":"M","tno":6,"letter":[],"label":"Start of Block","tagValue":[{},null]},
{"tag":"22F","status":"O","tno":7,"letter":[],"label":"Linkage Type Indicator","tagValue":[{},null]},
{"tag":"13A","status":"O","tno":8,"letter":["13A","13B"],"label":"Linked Message","tagValue":[{},null]},
......
......@@ -60,7 +60,8 @@ T71D:{"s1":{"reg":"[\\w\\.,\\-\\(\\)/\u003d\u0027\\+:\\?!\"%\u0026\\*\\\u003c\\\
T71F:{"s1":{"reg":"[A-Z]{3}","line":1,"length":3,"fixed":true,"type":"FUNC","content":"CUR","option":"M"},"s2":{"reg":"[\\d,]{1,15}","line":1,"length":15,"fixed":true,"type":"FUNC","content":"AMOUNT","option":"M"}},
T71G:{"s1":{"reg":"[A-Z]{3}","line":1,"length":3,"fixed":true,"type":"FUNC","content":"CUR","option":"M"},"s2":{"reg":"[\\d,]{1,15}","line":1,"length":15,"fixed":true,"type":"FUNC","content":"AMOUNT","option":"M"}},
T83J:{"s1":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{0,40}","line":5,"length":40,"fixed":false,"type":"x","option":"M"}},
T95L:{"s3":{"reg":"\\d{2}","line":1,"length":2,"fixed":true,"type":"n","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{18}","line":1,"length":18,"fixed":true,"type":"c","option":"M"}},
//T95L:{"s3":{"reg":"\\d{2}","line":1,"length":2,"fixed":true,"type":"n","option":"M"},"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{18}","line":1,"length":18,"fixed":true,"type":"c","option":"M"}},
T95L:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[A-Z0-9]{18}\\d{2}","line":1,"length":20,"fixed":true,"type":"c","option":"M"}},
T71N:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[\\w\\.,\\-\\(\\)/\u003d\u0027\\+:\\?!\"%\u0026\\*\\\u003c\\\u003e;\\{\\s@#]{0,35}","line":6,"length":35,"fixed":false,"type":"z","option":"O"}},
T95P:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"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"}},
T95Q:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"},"s2":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{0,35}","line":4,"length":35,"fixed":false,"type":"x","option":"M"}},
......
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 T11A extends Component
{
name='11A'
desp = "Currency of Denomination"
pattern = ":4!c//3!a"
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="DENO">DENO</Option>
<Option value="FXIS">FXIS</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Currency"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="Currency"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
{
Currency.map(cur=><Option key={cur} value={cur}>{cur}</Option>)
}
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T12A extends Component
{
name='12A'
desp = "Type of Financial Instrument"
pattern = ":4!c/[8c]/30x"
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="CLAS">CLAS</Option>
<Option value="OPST">OPST</Option>
<Option value="OPTI">OPTI</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 span={12}>
<FormItem
label="Instrument Code or Description"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input maxLength={30} style={{imeMode:'disabled'}} placeholder="Instrument Code or Description" value={value.s3} onChange={e=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
)
}
}
\ No newline at end of file
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 T13A extends Component
{
name='13A'
desp = "Linked Message"
pattern = ":4!c//3!c"
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="LINK">LINK</Option>
<Option value="COUP">COUP</Option>
<Option value="POOL">POOL</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Number Id"
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={3} style={{imeMode:'disabled'}} placeholder="Number Id"/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T13B extends Component
{
name='13B'
desp = "Certificate Number"
pattern = ":4!c/[8c]/30x"
tno = -1
keys=[1,2,3,4]
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="CERT">CERT</Option>
<Option value="LOST">LOST</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 span={12}>
<FormItem
label="Number"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input maxLength={30} style={{imeMode:'disabled'}} placeholder="Number" value={value.s3} onChange={e=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T16R extends Component
{
name='16R'
desp = "Start of Block"
pattern = ""
tno = -1
keys=[1]
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}`
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
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(1,val)} >
<Option value="FIA">FIA</Option>
<Option value="AMT">AMT</Option>
<Option value="LINK">LINK</Option>
<Option value="FIAC">FIAC</Option>
<Option value="GENL">GENL</Option>
<Option value="REPO">REPO</Option>
<Option value="BREAK">BREAK</Option>
<Option value="SETDET">SETDET</Option>
<Option value="SETPRTY">SETPRTY</Option>
<Option value="CSHPRTY">CSHPRTY</Option>
<Option value="TRADDET">TRADDET</Option>
<Option value="OTHRPRTY">OTHRPRTY</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T16S extends Component
{
name='16S'
desp = "End of Block"
pattern = ""
tno = -1
keys=[1]
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}`
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
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(1,val)} >
<Option value="FIA">FIA</Option>
<Option value="AMT">AMT</Option>
<Option value="LINK">LINK</Option>
<Option value="FIAC">FIAC</Option>
<Option value="GENL">GENL</Option>
<Option value="REPO">REPO</Option>
<Option value="BREAK">BREAK</Option>
<Option value="SETDET">SETDET</Option>
<Option value="SETPRTY">SETPRTY</Option>
<Option value="CSHPRTY">CSHPRTY</Option>
<Option value="TRADDET">TRADDET</Option>
<Option value="OTHRPRTY">OTHRPRTY</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T17B extends Component
{
name='17B'
desp = "Flag"
pattern = ":4!c//1!a"
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="FRNM">FRNM</Option>
<Option value="CALL">CALL</Option>
<Option value="PUTT">PUTT</Option>
<Option value="ACRU">ACRU</Option>
<Option value="STAM">STAM</Option>
<Option value="EXEC">EXEC</Option>
<Option value="RSCH">RSCH</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Flag"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="N/Y"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T19A extends Component {
name = '19A'
desp = "Amount"
pattern = ":4!c//[N]3!a15d"
tno = -1
keys = [1, 2, 3, 4]
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}`
if (obj.s4)
mval = `:${obj.s1}//${obj.s4}${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="FORF">FORF</Option>
<Option value="TRTE">TRTE</Option>
<Option value="REPP">REPP</Option>
<Option value="ACRU">ACRU</Option>
<Option value="DEAL">DEAL</Option>
<Option value="TAPC">TAPC</Option>
<Option value="ACRU">ACRU</Option>
<Option value="CHAR">CHAR</Option>
<Option value="COUN">COUN</Option>
<Option value="DEAL">DEAL</Option>
<Option value="EXEC">EXEC</Option>
<Option value="ISDI">ISDI</Option>
<Option value="LADT">LADT</Option>
<Option value="LEVY">LEVY</Option>
<Option value="LOCL">LOCL</Option>
<Option value="LOCO">LOCO</Option>
<Option value="MARG">MARG</Option>
<Option value="OTHR">OTHR</Option>
<Option value="REGF">REGF</Option>
<Option value="SETT">SETT</Option>
<Option value="SHIP">SHIP</Option>
<Option value="SPCN">SPCN</Option>
<Option value="STAM">STAM</Option>
<Option value="STEX">STEX</Option>
<Option value="TRAN">TRAN</Option>
<Option value="TRAX">TRAX</Option>
<Option value="VATA">VATA</Option>
<Option value="WITH">WITH</Option>
<Option value="ANTO">ANTO</Option>
<Option value="COAX">COAX</Option>
<Option value="ACCA">ACCA</Option>
<Option value="RSCH">RSCH</Option>
<Option value="RESU">RESU</Option>
<Option value="OCMT">OCMT</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Sign"
help={errmsg.s4}
validateStatus={errmsg.s4 ? 'error' : null}
>
<Select allowClear={true} value={value.s4} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(4, val)}>
<Option value={'N'}>{"N"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Currency"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="Currency"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
{
Currency.map(cur=><Option key={cur} value={cur}>{cur}</Option>)
}
</Select>
</FormItem>
</Col>
<Col span={12}>
<FormItem
label="Amount"
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={16} style={{imeMode:'disabled'}} placeholder="Amount"/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T20C extends Component
{
name='20C'
desp = "Sender's Message Reference"
pattern = ":4!c//16x"
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="SEME">SEME</Option>
<Option value="PROC">PROC</Option>
<Option value="SECO">SECO</Option>
<Option value="REPO">PEPO</Option>
</Select>
</FormItem>
</Col>
<Col span={12}>
<FormItem
label="Reference"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Input type="text" value={value.s2} addonBefore="/" onChange={e =>this.onChange(2, e.target.value)} maxLength={16} style={{ imeMode:'disabled'}} placeholder="Reference" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T23G extends Component
{
name='23G'
desp = "Function of the Message"
pattern = "4!c[/4!c]"
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}`
if(obj.s2)
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="Function"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
placeholder="Function"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(1,val)} >
<Option value="CANC">CANC</Option>
<Option value="NEWM">NEWM</Option>
<Option value="PREA">PREA</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Subfunction"
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select allowClear={true} value={value.s2} placeholder="Subfunction" style={{ width: "100%" }} onChange={val => this.onChange(2, val)}>
<Option value="CODU">CODU</Option>
<Option value="COPY">COPY</Option>
<Option value="DUPL">DUPL</Option>
<Option value="RECO">RECO</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T25D extends Component
{
name='25D'
desp = "Status Code"
pattern = ":4!c/[8c]/4!c"
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 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="MTCH">MTCH</Option>
<Option value="AFFM">AFMM</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 style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Status Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
placeholder="Status Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s3} onChange={val=>this.onChange(3,val)} >
<Option value="MACH">MACH</Option>
<Option value="NMAT">NMAT</Option>
<Option value="AFFI">AFFI</Option>
<Option value="NAFI">NAFI</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -35,10 +35,10 @@ export default class T35B extends Component
});
let mval = ""
if(obj.s1)
mval = "ISIN "+`${obj.s2}`
if(obj.s2)
mval = `\r\n${obj.s3}`
mval = "ISIN "+`${obj.s2}`
if(obj.s3)
mval = mval + `\r\n${obj.s3}`
this.props.onValue([obj,mval])
}
......@@ -60,6 +60,7 @@ export default class T35B extends Component
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Identification of Instrument"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
......@@ -72,6 +73,7 @@ export default class T35B extends Component
<Col span={24}>
<FormItem
label="Description of Instrument"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
......
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 T36B extends Component
{
name='36B'
desp = "Quantity of Financial Instrument"
pattern = ":4!c//4!c/15d"
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": '200px' }} span={3}>
<FormItem
label="Quantity"
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={15} style={{ imeMode: 'disabled' }} placeholder="Quantity" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
import TextArea from './ZTextArea'
const FormItem = Form.Item;
const Option = Select.Option
export default class T70C extends Component
{
name='70C'
desp = "Narrative"
pattern = ":4!c//4*35x"
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 (<div>
<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="DENC">DENC</Option>
<Option value="DECL">FIAN</Option>
<Option value="REGI">FXIN</Option>
<Option value="PACO">PACO</Option>
<Option value="FIAN">FIAN</Option>
<Option value="FXIN">FXIN</Option>
<Option value="SPRO">SPRO</Option>
</Select>
</FormItem>
</Col>
</Row>
<Col>
<FormItem
label="Narrative"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<TextArea type="textarea" onChange={e=>this.onChange(2,e.target.value)} value={value.s2} style={{imeMode:'disabled'}} placeholder="Narrative" rows={4} cols={35} maxLength={140}/>
</FormItem>
</Col>
</div>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
import TextArea from './ZTextArea'
const FormItem = Form.Item;
const Option = Select.Option
export default class T70D extends Component
{
name='70D'
desp = "Denomination Choice"
pattern = ":4!c//6*35x"
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 (<div>
<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="DENC">DENC</Option>
<Option value="DECL">FIAN</Option>
<Option value="REGI">FXIN</Option>
<Option value="PACO">PACO</Option>
<Option value="FIAN">FIAN</Option>
<Option value="FXIN">FXIN</Option>
<Option value="SPRO">SPRO</Option>
</Select>
</FormItem>
</Col>
</Row>
<Col>
<FormItem
label="Narrative"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<TextArea type="textarea" onChange={e=>this.onChange(2,e.target.value)} value={value.s2} style={{imeMode:'disabled'}} placeholder="Narrative" rows={6} cols={35} maxLength={210}/>
</FormItem>
</Col>
</div>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
import TextArea from './ZTextArea'
const FormItem = Form.Item;
const Option = Select.Option
export default class T70E extends Component
{
name='70E'
desp = "Financial Instrument Attribute Narrative"
pattern = ":4!c//10*35x"
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 (<div>
<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="DENC">DENC</Option>
<Option value="DECL">FIAN</Option>
<Option value="REGI">FXIN</Option>
<Option value="PACO">PACO</Option>
<Option value="FIAN">FIAN</Option>
<Option value="FXIN">FXIN</Option>
<Option value="SPRO">SPRO</Option>
</Select>
</FormItem>
</Col>
</Row>
<Col>
<FormItem
label="Narrative"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<TextArea type="textarea" onChange={e=>this.onChange(2,e.target.value)} value={value.s2} style={{imeMode:'disabled'}} placeholder="Narrative" rows={10} cols={35} maxLength={350}/>
</FormItem>
</Col>
</div>)
}
}
\ No newline at end of file
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 T92A extends Component {
name = '92A'
desp = "Rate"
pattern = ":4!c//[N]15d"
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.s2);
let mval = `:${obj.s1}//${temp}`
if (obj.s3)
mval = `:${obj.s1}//${obj.s3}${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="PRFC">PRFC</Option>
<Option value="CUFC">CUFC</Option>
<Option value="NWFC">NWFC</Option>
<Option value="INTR">INTR</Option>
<Option value="NXRT">NXRT</Option>
<Option value="INDX">INDX</Option>
<Option value="YTMR">YTMR</Option>
<Option value="VASU">VASU</Option>
<Option value="REPO">REPO</Option>
<Option value="RSPR">RSPR</Option>
<Option value="PRIC">PRIC</Option>
<Option value="SLMG">SLMG</Option>
<Option value="SHAI">SHAI</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Sign"
help={errmsg.s3}
validateStatus={errmsg.s3 ? 'error' : null}
>
<Select allowClear={true} value={value.s3} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(3, val)}>
<Option value={'N'}>{"N"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Rate"
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={15} style={{ imeMode: 'disabled' }} placeholder="Rate" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T92B extends Component
{
name='92B'
desp = "Exchange Rate"
pattern = ":4!c//3!a/3!a/15d"
tno = -1
keys=[1,2,3,4]
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.s4);
let mval = `:${obj.s1}//${obj.s2}/${obj.s3}/${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"
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1="EXCH"} placeholder="Qualifier" style={{ width: "100%" }} onChange={val => this.onChange(3, val)}>
</Input>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Currency"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="Currency"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
{
Currency.map(cur=><Option key={cur} value={cur}>{cur}</Option>)
}
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Currency"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Select
placeholder="Currency"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s3} onChange={val=>this.onChange(3,val)} >
{
Currency.map(cur=><Option key={cur} value={cur}>{cur}</Option>)
}
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Rate"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s4}
validateStatus={errmsg.s4 ? 'error' : null}
>
<Input value={value.s4} onChange={e => this.onChange(4, e.target.value)} maxLength={15} style={{ imeMode: 'disabled' }} placeholder="Rate" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T92C extends Component
{
name='92C'
desp = "Rate"
pattern = ":4!c/[8c]/24x"
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>
<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="PRFC">PRFC</Option>
<Option value="CUFC">CUFC</Option>
<Option value="NWFC">NWFC</Option>
<Option value="INTR">INTR</Option>
<Option value="NXRT">NXRT</Option>
<Option value="INDX">INDX</Option>
<Option value="YTMR">YTMR</Option>
<Option value="VASU">VASU</Option>
<Option value="REPO">REPO</Option>
<Option value="RSPR">RSPR</Option>
<Option value="PRIC">PRIC</Option>
<Option value="SLMG">SLMG</Option>
<Option value="SHAI">SHAI</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>
</Row>
<Col span={12}>
<FormItem
label="Rate Name"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input maxLength={24} style={{imeMode:'disabled'}} placeholder="Rate Name" value={value.s3} onChange={e=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
)
}
}
\ No newline at end of file
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 T94B extends Component
{
name='94B'
desp = "Place"
pattern = ":4!c/[8c]/4!c[/30x]"
tno = -1
keys=[1,2,3,4]
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}`
if (obj.s4)
mval = mval + '/' + obj.s4
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="CLEA">EXCH</Option>
<Option value="TRAD">OTCO</Option>
<Option value="SAFE">SAFE</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 style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Place Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Select
placeholder="Place Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s3} onChange={val=>this.onChange(3,val)} >
<Option value="EXCH">EXCH</Option>
<Option value="OTCO">OTCO</Option>
<Option value="PRIM">PRIM</Option>
<Option value="SECM">SECM</Option>
<Option value="VARI">VARI</Option>
<Option value="CUST">CUST</Option>
<Option value="ICSD">ICSD</Option>
<Option value="NCSD">NCSD</Option>
<Option value="SHHE">SHHE</Option>
</Select>
</FormItem>
</Col>
<Col span={12}>
<FormItem
label="Narrative"
help={errmsg.s4}
validateStatus={errmsg.s4?'error':null}
>
<Input maxLength={30} style={{imeMode:'disabled'}} placeholder="Narrative" value={value.s4} onChange={e=>this.onChange(4,e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T94H extends Component
{
name='94H'
desp = "Place"
pattern = ":4!c//4!a2!a2!c[3!c]"
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>
<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="CLEA">EXCH</Option>
<Option value="TRAD">OTCO</Option>
<Option value="SAFE">SAFE</Option>
</Select>
</FormItem>
</Col>
</Row>
<Col >
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(2,obj.bic)} /> } maxLength={16} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T94L extends Component
{
name='94L'
desp = "Place"
pattern = ":4!c//18!c2!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="CLEA">EXCH</Option>
<Option value="TRAD">OTCO</Option>
<Option value="SAFE">SAFE</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Legal Entity Identifier"
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={20} style={{ imeMode: 'disabled' }} placeholder="Legal Entity Identifier" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount,COUNTRY} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T95C extends Component
{
name='95C'
desp = "Party"
pattern = ":4!c//2!a"
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="ACOW">ACOW</Option>
<Option value="ALTE">ALTE</Option>
<Option value="BUYR">BUYR</Option>
<Option value="DEAG">DEAG</Option>
<Option value="DECU">DECU</Option>
<Option value="DEI1">DEI1</Option>
<Option value="DEI2">DEI2</Option>
<Option value="PSET">PSET</Option>
<Option value="REAG">REAG</Option>
<Option value="RECU">RECU</Option>
<Option value="REI1">REI1</Option>
<Option value="REI2">REI2</Option>
<Option value="SELL">SELL</Option>
<Option value="ALTE">ALTE</Option>
<Option value="ACCW">ACCW</Option>
<Option value="BENM">BENM</Option>
<Option value="DEBT">DEBT</Option>
<Option value="INTM">INTM</Option>
<Option value="PAYE">PAYE</Option>
<Option value="EXCH">EXCH</Option>
<Option value="MEOR">MEOR</Option>
<Option value="MERE">MERE</Option>
<Option value="TRRE">TRRE</Option>
<Option value="INVE">INVE</Option>
<Option value="VEND">VEND</Option>
<Option value="TRAG">TRAG</Option>
<Option value="BRKR">BRKR</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={5}>
<FormItem
label="Country Code"
required
>
<Select placeholder="Country Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
size={InputSize} style={{ width: "100%",zIndex:99 }} value={value.s2} onChange={(val)=>this.onChange(2,val)}>
{
COUNTRY.map(item=><Option key={item.code} value={item.code}>{item.code+'-'+item.name}</Option>)
}
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T95L extends Component
{
name='95L'
desp = "Party"
pattern = ":4!c//18!c2!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="ACOW">ACOW</Option>
<Option value="ALTE">ALTE</Option>
<Option value="BUYR">BUYR</Option>
<Option value="DEAG">DEAG</Option>
<Option value="DECU">DECU</Option>
<Option value="DEI1">DEI1</Option>
<Option value="DEI2">DEI2</Option>
<Option value="PSET">PSET</Option>
<Option value="REAG">REAG</Option>
<Option value="RECU">RECU</Option>
<Option value="REI1">REI1</Option>
<Option value="REI2">REI2</Option>
<Option value="SELL">SELL</Option>
<Option value="ALTE">ALTE</Option>
<Option value="ACCW">ACCW</Option>
<Option value="BENM">BENM</Option>
<Option value="DEBT">DEBT</Option>
<Option value="INTM">INTM</Option>
<Option value="PAYE">PAYE</Option>
<Option value="EXCH">EXCH</Option>
<Option value="MEOR">MEOR</Option>
<Option value="MERE">MERE</Option>
<Option value="TRRE">TRRE</Option>
<Option value="INVE">INVE</Option>
<Option value="VEND">VEND</Option>
<Option value="TRAG">TRAG</Option>
<Option value="BRKR">BRKR</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Legal Entity Identifier"
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={20} style={{ imeMode: 'disabled' }} placeholder="Legal Entity Identifier" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T95P extends Component
{
name='95P'
desp = "Party"
pattern = ":4!c//4!a2!a2!c[3!c]"
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>
<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="ACOW">ACOW</Option>
<Option value="ALTE">ALTE</Option>
<Option value="BUYR">BUYR</Option>
<Option value="DEAG">DEAG</Option>
<Option value="DECU">DECU</Option>
<Option value="DEI1">DEI1</Option>
<Option value="DEI2">DEI2</Option>
<Option value="PSET">PSET</Option>
<Option value="REAG">REAG</Option>
<Option value="RECU">RECU</Option>
<Option value="REI1">REI1</Option>
<Option value="REI2">REI2</Option>
<Option value="SELL">SELL</Option>
<Option value="ALTE">ALTE</Option>
<Option value="ACCW">ACCW</Option>
<Option value="BENM">BENM</Option>
<Option value="DEBT">DEBT</Option>
<Option value="INTM">INTM</Option>
<Option value="PAYE">PAYE</Option>
<Option value="EXCH">EXCH</Option>
<Option value="MEOR">MEOR</Option>
<Option value="MERE">MERE</Option>
<Option value="TRRE">TRRE</Option>
<Option value="INVE">INVE</Option>
<Option value="VEND">VEND</Option>
<Option value="TRAG">TRAG</Option>
<Option value="BRKR">BRKR</Option>
</Select>
</FormItem>
</Col>
</Row>
<Col >
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(2,obj.bic)} /> } maxLength={16} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
import TextArea from './ZTextArea'
const FormItem = Form.Item;
const Option = Select.Option
export default class T95Q extends Component
{
name='95Q'
desp = "Party"
pattern = ":4!c//4*35x"
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>
<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="ACOW">ACOW</Option>
<Option value="ALTE">ALTE</Option>
<Option value="BUYR">BUYR</Option>
<Option value="DEAG">DEAG</Option>
<Option value="DECU">DECU</Option>
<Option value="DEI1">DEI1</Option>
<Option value="DEI2">DEI2</Option>
<Option value="PSET">PSET</Option>
<Option value="REAG">REAG</Option>
<Option value="RECU">RECU</Option>
<Option value="REI1">REI1</Option>
<Option value="REI2">REI2</Option>
<Option value="SELL">SELL</Option>
<Option value="ALTE">ALTE</Option>
<Option value="ACCW">ACCW</Option>
<Option value="BENM">BENM</Option>
<Option value="DEBT">DEBT</Option>
<Option value="INTM">INTM</Option>
<Option value="PAYE">PAYE</Option>
<Option value="EXCH">EXCH</Option>
<Option value="MEOR">MEOR</Option>
<Option value="MERE">MERE</Option>
<Option value="TRRE">TRRE</Option>
<Option value="INVE">INVE</Option>
<Option value="VEND">VEND</Option>
<Option value="TRAG">TRAG</Option>
<Option value="BRKR">BRKR</Option>
</Select>
</FormItem>
</Col>
</Row>
<Col>
<FormItem
label="Name and Address"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<TextArea type="textarea" onChange={e=>this.onChange(2,e.target.value)} value={value.s2} style={{imeMode:'disabled'}} placeholder="Name and Address" rows={4} cols={35} maxLength={140}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T95R extends Component
{
name='95R'
desp = "Party"
pattern = ":4!c/8c/34x"
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.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="ACOW">ACOW</Option>
<Option value="ALTE">ALTE</Option>
<Option value="BUYR">BUYR</Option>
<Option value="DEAG">DEAG</Option>
<Option value="DECU">DECU</Option>
<Option value="DEI1">DEI1</Option>
<Option value="DEI2">DEI2</Option>
<Option value="PSET">PSET</Option>
<Option value="REAG">REAG</Option>
<Option value="RECU">RECU</Option>
<Option value="REI1">REI1</Option>
<Option value="REI2">REI2</Option>
<Option value="SELL">SELL</Option>
<Option value="ALTE">ALTE</Option>
<Option value="ACCW">ACCW</Option>
<Option value="BENM">BENM</Option>
<Option value="DEBT">DEBT</Option>
<Option value="INTM">INTM</Option>
<Option value="PAYE">PAYE</Option>
<Option value="EXCH">EXCH</Option>
<Option value="MEOR">MEOR</Option>
<Option value="MERE">MERE</Option>
<Option value="TRRE">TRRE</Option>
<Option value="INVE">INVE</Option>
<Option value="VEND">VEND</Option>
<Option value="TRAG">TRAG</Option>
<Option value="BRKR">BRKR</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 span={14}>
<FormItem
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
label="Proprietary Code"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Proprietary Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount,COUNTRY} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T95S extends Component
{
name='95S'
desp = "Party"
pattern = ":4!c/[8c]/4!c/2!a/30x"
tno = -1
keys=[1,2,3,4,5]
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}/${obj.s4}/${obj.s5}`
if (obj.s2)
mval = `:${obj.s1}/${obj.s2}/${obj.s3}/${obj.s4}/${obj.s5}`
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="ACOW">ACOW</Option>
<Option value="ALTE">ALTE</Option>
<Option value="BUYR">BUYR</Option>
<Option value="DEAG">DEAG</Option>
<Option value="DECU">DECU</Option>
<Option value="DEI1">DEI1</Option>
<Option value="DEI2">DEI2</Option>
<Option value="PSET">PSET</Option>
<Option value="REAG">REAG</Option>
<Option value="RECU">RECU</Option>
<Option value="REI1">REI1</Option>
<Option value="REI2">REI2</Option>
<Option value="SELL">SELL</Option>
<Option value="ALTE">ALTE</Option>
<Option value="ACCW">ACCW</Option>
<Option value="BENM">BENM</Option>
<Option value="DEBT">DEBT</Option>
<Option value="INTM">INTM</Option>
<Option value="PAYE">PAYE</Option>
<Option value="EXCH">EXCH</Option>
<Option value="MEOR">MEOR</Option>
<Option value="MERE">MERE</Option>
<Option value="TRRE">TRRE</Option>
<Option value="INVE">INVE</Option>
<Option value="VEND">VEND</Option>
<Option value="TRAG">TRAG</Option>
<Option value="BRKR">BRKR</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 style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Type of ID"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Select
placeholder="Type of ID"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s3} onChange={val=>this.onChange(3,val)} >
<Option value="ARNU">ARNU</Option>
<Option value="CCPT">CCPT</Option>
<Option value="CHTY">CHTY</Option>
<Option value="CORP">CORP</Option>
<Option value="DRLC">DRLC</Option>
<Option value="FIIN">FIIN</Option>
<Option value="TXID">TXID</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={5}>
<FormItem
label="Country Code"
required
>
<Select placeholder="Country Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
size={InputSize} style={{ width: "100%",zIndex:99 }} value={value.s4} onChange={(val)=>this.onChange(4,val)}>
{
COUNTRY.map(item=><Option key={item.code} value={item.code}>{item.code+'-'+item.name}</Option>)
}
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s5}
validateStatus={errmsg.s5?'error':null}
label="Alternate ID"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Alternate ID" value={value.s5} onChange={(e)=>this.onChange(5,e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T97A extends Component
{
name='97A'
desp = "Safekeeping Account"
pattern = ":4!c//35x"
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="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="Account Number"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Input type="text" value={value.s2} addonBefore="/" onChange={e =>this.onChange(2, e.target.value)} maxLength={35} style={{ imeMode:'disabled'}} placeholder="Account Number" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T97B extends Component
{
name='97B'
desp = "Safekeeping Account"
pattern = ":4!c/[8c]/4!c/35x"
tno = -1
keys=[1,2,3,4]
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}/${obj.s4}`
if (obj.s2)
mval = `:${obj.s1}/${obj.s2}/${obj.s3}/${obj.s4}`
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":'200px'}} span={3}>
<FormItem
label="Account Type Code"
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={4} style={{imeMode:'disabled'}} placeholder="Account Type Code"/>
</FormItem>
</Col>
<Col span={12}>
<FormItem
label="Account Number"
help={errmsg.s4}
validateStatus={errmsg.s4?'error':null}
>
<Input maxLength={35} style={{imeMode:'disabled'}} placeholder="Account Number" value={value.s4} onChange={e=>this.onChange(4,e.target.value)}/>
</FormItem>
</Col>
</Row>
)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T97A extends Component
{
name='97A'
desp = "Safekeeping Account"
pattern = ":4!c//34x"
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="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="International Bank Account Number"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Input type="text" value={value.s2} addonBefore="/" onChange={e =>this.onChange(2, e.target.value)} maxLength={34} style={{ imeMode:'disabled'}} placeholder="International Bank Account Number" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T98A extends Component
{
name='98A'
desp = "Preparation Date/Time"
pattern = ":4!c//8!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="PREP">PREP</Option>
<Option value="SETT">SETT</Option>
<Option value="TRAD">TRAD</Option>
<Option value="ADEL">ADEL</Option>
<Option value="COUP">COUP</Option>
<Option value="FRNR">FRNR</Option>
<Option value="MATU">MATU</Option>
<Option value="ISSU">ISSU</Option>
<Option value="CALD">CALD</Option>
<Option value="PUTT">PUTT</Option>
<Option value="DDTE">DDTE</Option>
<Option value="FCOU">FCOU</Option>
<Option value="TERM">TERM</Option>
<Option value="RERA">RERA</Option>
<Option value="PROC">PROC</Option>
<Option value="VALU">VALU</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s2} onChange={(date, dateString)=>this.onChange(2,dateString)} />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T98B extends Component
{
name='98B'
desp = "Preparation Date/Time"
pattern = ":4!c/[8c]/4!c"
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 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="PREP">PREP</Option>
<Option value="SETT">SETT</Option>
<Option value="TRAD">TRAD</Option>
<Option value="ADEL">ADEL</Option>
<Option value="COUP">COUP</Option>
<Option value="FRNR">FRNR</Option>
<Option value="MATU">MATU</Option>
<Option value="ISSU">ISSU</Option>
<Option value="CALD">CALD</Option>
<Option value="PUTT">PUTT</Option>
<Option value="DDTE">DDTE</Option>
<Option value="FCOU">FCOU</Option>
<Option value="TERM">TERM</Option>
<Option value="RERA">RERA</Option>
<Option value="PROC">PROC</Option>
<Option value="VALU">VALU</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 style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Date Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s1?'error':null}
>
<Select
placeholder="Date Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s3} onChange={val=>this.onChange(3,val)} >
<Option value="WISS">WISS</Option>
<Option value="VARI">VARI</Option>
<Option value="OPEN">OPEN</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,TimePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T98C extends Component
{
name='98C'
desp = "Preparation Date/Time"
pattern = ":4!c//8!n6!n"
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.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 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="PREP">PREP</Option>
<Option value="SETT">SETT</Option>
<Option value="TRAD">TRAD</Option>
<Option value="ADEL">ADEL</Option>
<Option value="COUP">COUP</Option>
<Option value="FRNR">FRNR</Option>
<Option value="MATU">MATU</Option>
<Option value="ISSU">ISSU</Option>
<Option value="CALD">CALD</Option>
<Option value="PUTT">PUTT</Option>
<Option value="DDTE">DDTE</Option>
<Option value="FCOU">FCOU</Option>
<Option value="TERM">TERM</Option>
<Option value="RERA">RERA</Option>
<Option value="PROC">PROC</Option>
<Option value="VALU">VALU</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s2} onChange={(date, dateString)=>this.onChange(2,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Time"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TimePicker defaultValue="" format="HHmmss" value={value.s3} onChange={(date, dateString)=>this.onChange(3,dateString)} />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -16,7 +16,7 @@ export default class T98D extends Component
tno = -1
keys=[1,2,3,4]
keys=[1,2,3,4,5]
onChange=(index,value)=>
{
let obj = {};
......@@ -37,7 +37,9 @@ export default class T98D extends Component
mval = `${obj.s1}${obj.s2}`
if(obj.s3)
mval = mval +','+obj.s3
if(obj.s4)
if(obj.s5)
mval = mval +'/'+obj.s5+obj.s4
else if(obj.s4)
mval = mval +'/'+obj.s4
this.props.onValue([obj,mval])
}
......@@ -85,6 +87,19 @@ export default class T98D extends Component
<Input value={value.s3} onChange={e=>this.onChange(3,e.target.value)} maxLength={3} style={{imeMode:'disabled'}} placeholder="Decimals"/>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Sign"
help={errmsg.s5}
validateStatus={errmsg.s5 ? 'error' : null}
>
<Select allowClear={true} value={value.s5} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(5, val)}>
<Option value={'N'}>{"N"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="UTC Indicator"
......
import React,{Component} from 'react'
import { Form, Input, DatePicker,TimePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T98E extends Component
{
name='98E'
desp = "Preparation Date/Time"
pattern = ":4!c//8!n6!n[,3n][/[N]2!n[2!n]]"
tno = -1
keys=[1,2,3,4,5,6]
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}${obj.s3}`
if(obj.s4)
mval = mval +','+obj.s4
if(obj.s6)
mval = mval +'/'+obj.s6+obj.s5
else if(obj.s5)
mval = mval +'/'+obj.s5
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="PREP">PREP</Option>
<Option value="SETT">SETT</Option>
<Option value="TRAD">TRAD</Option>
<Option value="ADEL">ADEL</Option>
<Option value="COUP">COUP</Option>
<Option value="FRNR">FRNR</Option>
<Option value="MATU">MATU</Option>
<Option value="ISSU">ISSU</Option>
<Option value="CALD">CALD</Option>
<Option value="PUTT">PUTT</Option>
<Option value="DDTE">DDTE</Option>
<Option value="FCOU">FCOU</Option>
<Option value="TERM">TERM</Option>
<Option value="RERA">RERA</Option>
<Option value="PROC">PROC</Option>
<Option value="VALU">VALU</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s2} onChange={(date, dateString)=>this.onChange(2,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Time"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TimePicker defaultValue="" format="HHmmss" value={value.s3} onChange={(date, dateString)=>this.onChange(3,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Decimals"
help={errmsg.s4}
validateStatus={errmsg.s4?'error':null}
>
<Input value={value.s4} onChange={e=>this.onChange(4,e.target.value)} maxLength={3} style={{imeMode:'disabled'}} placeholder="Decimals"/>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Sign"
help={errmsg.s6}
validateStatus={errmsg.s6 ? 'error' : null}
>
<Select allowClear={true} value={value.s6} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(6, val)}>
<Option value={'N'}>{"N"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="UTC Indicator"
help={errmsg.s5}
validateStatus={errmsg.s5?'error':null}
>
<TimePicker defaultValue="" format="HHmm" value={value.s5} onChange={(date, dateString)=>this.onChange(5,dateString)} />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -16,7 +16,7 @@ export default class T98G extends Component
tno = -1
keys=[1,2,3,4]
keys=[1,2,3,4,5]
onChange=(index,value)=>
{
let obj = {};
......@@ -37,7 +37,9 @@ export default class T98G extends Component
mval = `${obj.s1}${obj.s2}`
if(obj.s3)
mval = mval +','+obj.s3
if(obj.s4)
if(obj.s5)
mval = mval +'/'+obj.s5+obj.s4
else if(obj.s4)
mval = mval +'/'+obj.s4
this.props.onValue([obj,mval])
}
......@@ -85,6 +87,19 @@ export default class T98G extends Component
<Input value={value.s3} onChange={e=>this.onChange(3,e.target.value)} maxLength={3} style={{imeMode:'disabled'}} placeholder="Decimals"/>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Sign"
help={errmsg.s5}
validateStatus={errmsg.s5 ? 'error' : null}
>
<Select allowClear={true} value={value.s5} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(5, val)}>
<Option value={'N'}>{"N"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="UTC Indicator"
......
......@@ -16,7 +16,7 @@ export default class T98H extends Component
tno = -1
keys=[1,2,3]
keys=[1,2,3,4]
onChange=(index,value)=>
{
let obj = {};
......@@ -33,11 +33,12 @@ export default class T98H extends Component
obj['s'+i] = objtemp['s'+i]
});
let mval = ""
mval = `${obj.s1}`
let mval = `${obj.s1}`
if(obj.s2)
mval = mval +','+obj.s2
if(obj.s3)
if(obj.s4)
mval = mval +'/'+obj.s4+obj.s3
else if(obj.s3)
mval = mval +'/'+obj.s3
this.props.onValue([obj,mval])
}
......@@ -68,17 +69,30 @@ export default class T98H extends Component
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Decimals"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Input value={value.s2} onChange={e=>this.onChange(2,e.target.value)} maxLength={3} style={{imeMode:'disabled'}} placeholder="Decimals"/>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Sign"
help={errmsg.s4}
validateStatus={errmsg.s4 ? 'error' : null}
>
<Select allowClear={true} value={value.s4} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(4, val)}>
<Option value={'N'}>{"N"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="UTC Indicator"
help={errmsg.s4}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
......
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 T99A extends Component
{
name='99A'
desp = "Number of Days Accrued"
pattern = ":4!c//[N]3!n"
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.s2}`
if (obj.s3)
mval = `${obj.s1}//`+`${obj.s3}`+`${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 span={6}>
<FormItem
label="Qualifier"
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input type="text" value={value.s1="DAAC"} onChange={e=>this.onChange(1,e.target.value)} maxLength={16} style={{imeMode:'disabled'}} placeholder="4位固定长度数字" readOnly='true'/>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Sign"
help={errmsg.s3}
validateStatus={errmsg.s3 ? 'error' : null}
>
<Select allowClear={true} value={value.s3} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(3, val)}>
<Option value={'N'}>{"N"}</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={3} style={{imeMode:'disabled'}} placeholder="Number"/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
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 T99B extends Component
{
name='99B'
desp = "Number Count"
pattern = ":4!c//3!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={3} style={{imeMode:'disabled'}} placeholder="Number"/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -278,6 +278,43 @@ import T96J from './T96J';
import T98D from './T98D'
import T98G from './T98G'
import T98H from './T98H'
import T20C from './T20C'
import T99B from './T99B'
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 T94B from './T94B'
import T94H from './T94H'
import T94L from './T94L'
import T12A from './T12A'
import T11A from './T11A'
import T92A from './T92A'
import T17B from './T17B'
import T70E from './T70E'
import T25D from './T25D'
import T70D from './T70D'
import T13B from './T13B'
import T98C from './T98C'
import T98E from './T98E'
import T98B from './T98B'
import T95C from './T95C'
import T95L from './T95L'
import T95P from './T95P'
import T95Q from './T95Q'
import T95R from './T95R'
import T95S from './T95S'
import T92B from './T92B'
import T92C from './T92C'
import T19A from './T19A'
import T97A from './T97A'
import T97B from './T97B'
import T97E from './T97E'
import T70C from './T70C'
import T16R from './T16R'
import T16S from './T16S'
......@@ -566,8 +603,45 @@ export default function(tag,props,onValue){
        case "T98D" :return <T98D   {...props}  onValue={onValue}   />;
        case "T98G" :return <T98G   {...props}  onValue={onValue}   />;
        case "T98H" :return <T98H   {...props}  onValue={onValue}   />;
case "T20C" :return <T20C   {...props}  onValue={onValue}   />;
case "T99B" :return <T99B   {...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 "T94B" :return <T94B   {...props}  onValue={onValue}   />;
case "T12A" :return <T12A   {...props}  onValue={onValue}   />;
case "T11A" :return <T11A   {...props}  onValue={onValue}   />;
case "T92A" :return <T92A   {...props}  onValue={onValue}   />;
case "T17B" :return <T17B   {...props}  onValue={onValue}   />;
case "T70E" :return <T70E   {...props}  onValue={onValue}   />;
case "T25D" :return <T25D   {...props}  onValue={onValue}   />;
case "T70D" :return <T70D   {...props}  onValue={onValue}   />;
case "T13B" :return <T13B   {...props}  onValue={onValue}   />;
case "T98C" :return <T98C   {...props}  onValue={onValue}   />;
case "T98E" :return <T98E   {...props}  onValue={onValue}   />;
case "T94H" :return <T94H   {...props}  onValue={onValue}   />;
case "T94L" :return <T94L   {...props}  onValue={onValue}   />;
case "T98B" :return <T98B   {...props}  onValue={onValue}   />;
case "T70E" :return <T70E   {...props}  onValue={onValue}   />;
case "T95C" :return <T95C   {...props}  onValue={onValue}   />;
case "T95L" :return <T95L   {...props}  onValue={onValue}   />;
case "T95P" :return <T95P   {...props}  onValue={onValue}   />;
case "T95Q" :return <T95Q   {...props}  onValue={onValue}   />;
case "T95R" :return <T95R   {...props}  onValue={onValue}   />;
case "T95S" :return <T95S   {...props}  onValue={onValue}   />;
case "T92B" :return <T92B   {...props}  onValue={onValue}   />;
case "T92C" :return <T92C   {...props}  onValue={onValue}   />;
case "T19A" :return <T19A   {...props}  onValue={onValue}   />;
case "T97A" :return <T97A   {...props}  onValue={onValue}   />;
case "T97B" :return <T97B   {...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