Commit f535c43d by fukai

Merge branch 'ncb' of https://gitee.com/zeng_hui/swifteditor into ncb

parents 5ba996d9 6aaf0826
import React,{Component} from 'react' import React,{Component} from 'react'
import {bindActionCreators} from 'redux'; import {bindActionCreators} from 'redux';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import {Table,Steps,Row,Col,Input} from 'antd' import {Table,Steps,Row,Col} from 'antd'
import { updateTreeValue,updateRcvBic,initSwiftMessageTree ,updateSwiftMessage} from '../store/modules/swift/swift_action'; import { updateTreeValue,updateRcvBic,initSwiftMessageTree ,updateSwiftMessage} from '../store/modules/swift/swift_action';
...@@ -10,55 +10,30 @@ const Step = Steps.Step; ...@@ -10,55 +10,30 @@ const Step = Steps.Step;
export const mty=[ export const mty=[
{mty:"mt101",desp:"MT 101 Request for Transfer"},
{mty:"mt103",desp:"MT 103 Single Customer Credit Transfer"}, {mty:"mt103",desp:"MT 103 Single Customer Credit Transfer"},
{mty:"mt195",desp:"MT 195 Queries"}, {mty:"mt195",desp:"MT 195 Queries"},
{mty:"mt196",desp:"MT 196 Answers"}, {mty:"mt196",desp:"MT 196 Answers"},
{mty:"mt199",desp:"MT 199 Free Format Message"}, {mty:"mt199",desp:"MT 199 Free Format Message"},
{mty:"mt202",desp:"MT 202 General Financial Institution Transfer"}, {mty:"mt202",desp:"MT 202 General Financial Institution Transfer"},
{mty:"mt202COV",desp:"MT 202 COV General Financial Institution Transfer"}, {mty:"mt202COV",desp:"MT 202 COV General Financial Institution Transfer"},
{mty:"mt210",desp:"MT 210 Notice to Receive"},
{mty:"mt292",desp:"MT 292 Request for Cancellation"},
{mty:"mt295",desp:"MT 295 Queries"}, {mty:"mt295",desp:"MT 295 Queries"},
{mty:"mt296",desp:"MT 296 Answers"}, {mty:"mt296",desp:"MT 296 Answers"},
{mty:"mt299",desp:"MT 299 Free Format Message"}, {mty:"mt299",desp:"MT 299 Free Format Message"},
{mty:"mt300",desp:"MT 300 Foregin Exchang confirmation"},
{mty:"mt300",desp:"MT 300 Foreign Exchange Confirmation"},
{mty:"mt305",desp:"MT 305 Foreign Currency Option Confirmation"},
{mty:"mt320",desp:"MT 320 Fixed Loan/Deposit Confirmation"},
{mty:"mt360",desp:"MT 360 Single Currency Interest Rate Derivative Confirmation"},
{mty:"mt400",desp:"MT 400 Advice of Payment"},
{mty:"mt410",desp:"MT 410 Acknowledgement"}, {mty:"mt410",desp:"MT 410 Acknowledgement"},
{mty:"mt420",desp:"MT 420 Tracer"}, {mty:"mt420",desp:"MT 420 Tracer"},
{mty:"mt422",desp:"MT 422 Advice of Fate and Request for Instructions"}, {mty:"mt422",desp:"MT 422 Advice of Fate and Request for Instructions"},
{mty:"mt499",desp:"MT 499 Free Format Message"}, {mty:"mt499",desp:"MT 499 Free Format Message"},
{mty:"mt600",desp:"MT 600 Commodity Trade Confirmation"},
{mty:"mt605",desp:"MT 605 Commodity Notice to Receive"},
{mty:"mt620",desp:"MT 620 Commodity Fixed Loan/Deposit Confirmation"},
{mty:"mt700",desp:"MT 700 Issue of a Documentary Credit"}, {mty:"mt700",desp:"MT 700 Issue of a Documentary Credit"},
{mty:"mt701",desp:"MT 701 General Financial Institution Transfer"}, {mty:"mt701",desp:"MT 701 General Financial Institution Transfer"},
{mty:"mt707",desp:"MT 707 Amendment to a Documentary Credit"}, {mty:"mt707",desp:"MT 707 Amendment to a Documentary Credit"},
{mty:"mt710",desp:"MT 710 Advice of a Third Bank's or a Non-Bank's Documentary Credit"},
{mty:"mt720",desp:"MT 720 Transfer of a Documentary Credit"},
{mty:"mt730",desp:"MT 730 Acknowledgement"},
{mty:"mt732",desp:"MT 732 Advice of Discharge"}, {mty:"mt732",desp:"MT 732 Advice of Discharge"},
{mty:"mt740",desp:"MT 740 Authorisation to Reimburse"}, {mty:"mt740",desp:"MT 740 Authorisation to Reimburse"},
{mty:"mt742",desp:"MT 742 Reimbursement Claim"},
{mty:"mt747",desp:"MT 747 Amendment to an Authorisation to Reimburse"}, {mty:"mt747",desp:"MT 747 Amendment to an Authorisation to Reimburse"},
{mty:"mt750",desp:"MT 750 Advice of Discrepancy"}, {mty:"mt750",desp:"MT 750 Advice of Discrepancy"},
{mty:"mt752",desp:"MT 752 Authorisation to Pay, Accept or Negotiate"}, {mty:"mt752",desp:"MT 752 Authorisation to Pay, Accept or Negotiate"},
{mty:"mt754",desp:"MT 754 Advice of Payment/Acceptance/Negotiation"}, {mty:"mt754",desp:"MT 754 Advice of Payment/Acceptance/Negotiation"},
{mty:"mt756",desp:"MT 756 Advice of Reimbursement or Payment"},
{mty:"mt759",desp:"MT 759 Ancillary Trade Structured Message"}, {mty:"mt759",desp:"MT 759 Ancillary Trade Structured Message"},
...@@ -69,6 +44,9 @@ export const mty=[ ...@@ -69,6 +44,9 @@ export const mty=[
{mty:"mt769",desp:"MT 769 Advice of Reduction or Release"}, {mty:"mt769",desp:"MT 769 Advice of Reduction or Release"},
{mty:"mt799",desp:"MT 799 Free Format Message"}, {mty:"mt799",desp:"MT 799 Free Format Message"},
{mty:"mt999",desp:"MT 999 Free Format Message"}, {mty:"mt999",desp:"MT 999 Free Format Message"},
{mty:"mt1000",desp:"MT 1000 TEST"},
] ]
// const columns = [{ // const columns = [{
// title: '创建报文', // title: '创建报文',
...@@ -81,15 +59,8 @@ export const mty=[ ...@@ -81,15 +59,8 @@ export const mty=[
// ] // ]
export class LeadPage extends Component export class LeadPage extends Component
{ {
constructor(props)
{
super(props)
this.state={fil:''}
}
columns = [{ columns = [{
title: <div> title: '创建报文',
<Input placeholder="输入报文类型数字,快速筛选" size="large" onChange={e=>this.setState({fil:e.target.value})}/>
</div>,
dataIndex: 'desp', dataIndex: 'desp',
key: 'desp', key: 'desp',
render:(text,record)=>{ render:(text,record)=>{
...@@ -122,7 +93,7 @@ export class LeadPage extends Component ...@@ -122,7 +93,7 @@ export class LeadPage extends Component
<Col span={3}/> <Col span={3}/>
<Col span={18}> <Col span={18}>
<Table columns={this.columns} dataSource={this.state.fil?mty.filter(item=>item.mty.startsWith('mt'+this.state.fil)):mty} /> <Table columns={this.columns} dataSource={mty} />
</Col> </Col>
<Col span={3}/> <Col span={3}/>
......
const M='M'
const O='O'
const Tags=[
{tag:'60M',status:0,tno:1,letter:[],label:"TEST"},
{tag:'90A',status:0,tno:2,letter:[],label:"TEST"},
{tag:'90B',status:0,tno:3,letter:[],label:"TEST"},
{tag:'90C',status:0,tno:4,letter:[],label:"TEST"},
{tag:'90D',status:0,tno:5,letter:[],label:"TEST"},
{tag:'90E',status:0,tno:6,letter:[],label:"TEST"},
{tag:'91A',status:0,tno:7,letter:[],label:"TEST"},
{tag:'91D',status:0,tno:8,letter:[],label:"TEST"},
{tag:'98D',status:0,tno:9,letter:[],label:"TEST"},
{tag:'98G',status:0,tno:10,letter:[],label:"TEST"},
{tag:'98H',status:0,tno:11,letter:[],label:"TEST"},
{tag:'89A',status:0,tno:12,letter:[],label:"TEST"},
{tag:'34C',status:0,tno:13,letter:[],label:"TEST"},
{tag:'22Q',status:0,tno:14,letter:[],label:"TEST"},
{tag:'22W',status:0,tno:15,letter:[],label:"TEST"},
{tag:'22V',status:0,tno:16,letter:[],label:"Execution Venue"},
{tag:'35B',status:0,tno:17,letter:[],label:"TEST"},
{tag:'22U',status:0,tno:18,letter:[],label:"TEST"},
{tag:'22T',status:0,tno:19,letter:[],label:"TEST"},
{tag:'22S',status:0,tno:20,letter:[],label:"TEST"},
{tag:'22R',status:0,tno:21,letter:[],label:"Prior Transaction Identifier"},
{tag:'22P',status:0,tno:22,letter:[],label:"TEST"},
{tag:'22N',status:0,tno:23,letter:[],label:"Transaction Identifier"},
{tag:'22M',status:0,tno:24,letter:[],label:"TEST"},
{tag:'91J',status:0,tno:25,letter:[],label:"TEST"},
{tag:'22L',status:0,tno:26,letter:[],label:"TEST"},
{tag:'15E',status:0,tno:27,letter:[],label:"New Sequence"},
{tag:'24D',status:0,tno:28,letter:[],label:"TEST"},
{tag:'14S',status:0,tno:29,letter:[],label:"TEST"},
]
const Title="TEST"
export default { Tags,Title}
\ No newline at end of file
import MTn92 from './MTn92'
import MTn91 from './MTn91'
import MTn96 from './MTn96' import MTn96 from './MTn96'
import MTn95 from './MTn95' import MTn95 from './MTn95'
import MTn98 from './MTn98'
import MTn99 from './MTn99' import MTn99 from './MTn99'
import MT210 from './MT210'
import MT750 from './MT750'
import MT410 from './MT410'
import MT499 from './MT499'
import MT752 from './MT752'
import MT730 from './MT730'
import MT950 from './MT950'
import MT732 from './MT732'
import MT754 from './MT754'
import MT710 from './MT710'
import MT799 from './MT799'
import MT756 from './MT756'
import MT759 from './MT759'
import MT360 from './MT360'
import MT320 from './MT320'
import MT760 from './MT760' import MT760 from './MT760'
import MT101 from './MT101'
import MT420 from './MT420' import MT420 from './MT420'
import MT300 from './MT300' import MT750 from './MT750'
import MT410 from './MT410'
import MT740 from './MT740' import MT740 from './MT740'
import MT103 from './MT103' import MT103 from './MT103'
import MT202 from './MT202' import MT202 from './MT202'
import MT400 from './MT400'
import MT422 from './MT422' import MT422 from './MT422'
import MT620 from './MT620' import MT499 from './MT499'
import MT720 from './MT720' import MT752 from './MT752'
import MT742 from './MT742' import MT732 from './MT732'
import MT940 from './MT940' import MT754 from './MT754'
import MT600 from './MT600'
import MT700 from './MT700' import MT700 from './MT700'
import MT202COV from './MT202COV' import MT799 from './MT799'
import MT305 from './MT305'
import MT701 from './MT701' import MT701 from './MT701'
import MT767 from './MT767' import MT767 from './MT767'
import MT768 from './MT768' import MT768 from './MT768'
import MT747 from './MT747' import MT747 from './MT747'
import MT769 from './MT769' import MT769 from './MT769'
import MT605 from './MT605'
import MT707 from './MT707' import MT707 from './MT707'
import MT759 from './MT759'
import MT940 from './MT940'
import MT950 from './MT950'
import MT202COV from './MT202COV'
import MT1000 from './MT1000'
import MT300 from './MT300'
export default function MTFactory(mty) {
export default function MTFactory(mty) if (mty == "mt202cov")
{ return MT202COV
if (mty == "mt760")
if(mty=="mt210")
return MT210
if(mty=="mt750")
return MT750
if(mty=="mt410")
return MT410
if(mty=="mt499")
return MT499
if(mty=="mt752")
return MT752
if(mty=="mt730")
return MT730
if(mty=="mt950")
return MT950
if(mty=="mt732")
return MT732
if(mty=="mt754")
return MT754
if(mty=="mt710")
return MT710
if(mty=="mt799")
return MT799
if(mty=="mt756")
return MT756
if(mty=="mt759")
return MT759
if(mty=="mt360")
return MT360
if(mty=="mt320")
return MT320
if(mty=="mt760")
return MT760 return MT760
if(mty=="mt101") if (mty == "mt759")
return MT101 return MT759
if(mty=="mt420") if (mty == "mt420")
return MT420 return MT420
if(mty=="mt300") if (mty == "mt750")
return MT300 return MT750
if(mty=="mt740") if (mty == "mt410")
return MT410
if (mty == "mt740")
return MT740 return MT740
if(mty=="mt103") if (mty == "mt103")
return MT103 return MT103
if(mty=="mt202") if (mty == "mt202")
return MT202 return MT202
if(mty=="mt400") if (mty == "mt422")
return MT400
if(mty=="mt422")
return MT422 return MT422
if(mty=="mt620") if (mty == "mt499")
return MT620 return MT499
if(mty=="mt720") if (mty == "mt752")
return MT720 return MT752
if(mty=="mt742") if (mty == "mt732")
return MT742 return MT732
if(mty=="mt940") if (mty == "mt754")
return MT940 return MT754
if(mty=="mt600") if (mty == "mt700")
return MT600
if(mty=="mt700")
return MT700 return MT700
if(mty=="mt202COV") if (mty == "mt799")
return MT202COV return MT799
if(mty=="mt305") if (mty == "mt701")
return MT305
if(mty=="mt701")
return MT701 return MT701
if(mty=="mt767") if (mty == "mt767")
return MT767 return MT767
if(mty=="mt768") if (mty == "mt768")
return MT768 return MT768
if(mty=="mt747") if (mty == "mt747")
return MT747 return MT747
if(mty=="mt769") if (mty == "mt769")
return MT769 return MT769
if(mty=="mt605") if (mty == "mt707")
return MT605
if(mty=="mt707")
return MT707 return MT707
if (mty == 'mt940')
if(/mt\d92/.test(mty)) return MT940
return MTn92 if (mty == 'mt950')
if(/mt\d91/.test(mty)) return MT950
return MTn91 if (/mt\d96/.test(mty))
if(/mt\d96/.test(mty))
return MTn96 return MTn96
if(/mt\d95/.test(mty)) if (/mt\d95/.test(mty))
return MTn95 return MTn95
if(/mt\d98/.test(mty)) if (/mt\d99/.test(mty))
return MTn98
if(/mt\d99/.test(mty))
return MTn99 return MTn99
if (mty == 'mt1000')
return MT1000
if (mty == 'mt300')
return MT300
} }
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
const FormItem = Form.Item;
export default class T14C extends Component
{
name='14C'
desp = "Year"
pattern = ""
tno = -1
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
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>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<DatePicker defaultValue="" format="yyyy" value={value.s1} onChange={(date, dateString) => this.onChange(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';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T14E extends Component
{
name='14E'
desp = "Clearing or Settlement Session"
pattern = "35x"
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":'350px'}} span={3}>
<FormItem
label=""
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={35} style={{imeMode:'disabled'}} placeholder=""/>
</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';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T14S extends Component {
name = '14S'
desp = "Settlement Rate Source"
pattern = "3!a2n[/4!n/4!c]"
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.s2}`
if (obj.s3)
mval = mval + '/' + 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="Rate Source"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={3} style={{ imeMode: 'disabled' }} placeholder="" />
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label=" "
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="" />
</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="HHmm" value={value.s3} onChange={(date, dateString) => this.onChange(3, dateString)} />
</FormItem>
</Col>
<Col span={3}>
<FormItem
help={errmsg.s4}
validateStatus={errmsg.s4 ? 'error' : null}
label="Location"
>
<Input addonBefore="/" maxLength={4} style={{ imeMode: 'disabled' }} placeholder="Location" 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 T15A extends Component
{
name='15A'
desp = "New Sequence"
pattern = ""
tno = -1
render(){
return (<Row></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 T15B extends Component
{
name='15B'
desp = "New Sequence"
pattern = ""
tno = -1
render()
{
return (<Row>
</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 T15C extends Component
{
name='15C'
desp = "New Sequence"
pattern = ""
tno = -1
render()
{
return (<Row>
</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 T15D extends Component
{
name='15D'
desp = "New Sequence"
pattern = ""
tno = -1
render()
{
return (<Row>
</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 T15E extends Component
{
name='15E'
desp = "New Sequence"
pattern = ""
tno = -1
render()
{
return (<Row>
</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 T16A extends Component
{
name='16A'
desp = "Number of Settlements"
pattern = "5n"
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":'150px'}} span={3}>
<FormItem
label="Number"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={5} 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 } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17F extends Component {
name = '17F'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
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 span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option>
<Option value="D">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</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 } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17I extends Component {
name = '17I'
desp = "Payment versus Payment Settlement Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
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 span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option>
<Option value="D">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</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 } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17O extends Component {
name = '17O'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
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 span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option>
<Option value="D">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</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 } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17T extends Component {
name = '17T'
desp = "Block Trade Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
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 span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option>
<Option value="D">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</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 } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17U extends Component {
name = '17U'
desp = "Block Trade Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
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 span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option>
<Option value="D">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</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 T21A extends Component {
name = '21A'
desp = "Reference to Opening Confirmation"
pattern = "16x"
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": '350px' }} span={3}>
<FormItem
label=""
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={16} style={{ imeMode: 'disabled' }} placeholder="" />
</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 T21G extends Component {
name = '21G'
desp = "Broker's Reference"
pattern = "16x"
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": '350px' }} span={3}>
<FormItem
label=""
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={16} style={{ imeMode: 'disabled' }} placeholder="" />
</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 T22C extends Component
{
name='22'
desp = "Common Reference"
pattern = "16x"
tno = -1
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
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={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input maxLength={16} value={value.s1} placeholder={this.props.desp} style={{'imeMode':'disabled'}} onChange={e=>this.onChange(e.target.value)}/>
</FormItem>
</Col>
<Col span={1}></Col>
{/*(this.props.mty && 'mt410,mt420,mt422,mt701'.indexOf(this.props.mty) > -100)?null:
<Col span={2}><Button size="small" type="primary" shape="circle" icon="plus" title="Gener Ref."/></Col>*/}
</Row>)
}
}
\ No newline at end of file
...@@ -7,7 +7,7 @@ import {InputSize,Currency,FormatAmount} from "./Utils" ...@@ -7,7 +7,7 @@ import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item; const FormItem = Form.Item;
const Option = Select.Option const Option = Select.Option
export default class T22A extends Component export default class T22D extends Component
{ {
name='22D' name='22D'
......
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 T22L extends Component
{
name='22L'
desp = "Reporting Jurisdiction"
pattern = "35x"
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":'350px'}} span={3}>
<FormItem
label="Reporting Jurisdiction"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={35} style={{imeMode:'disabled'}} placeholder="Reporting Jurisdiction"/>
</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 T22M extends Component {
name = '22M'
desp = " PUTI Namespace/Issuer Code"
pattern = "30x"
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": '350px' }} span={3}>
<FormItem
label="Namespace"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={30} style={{ imeMode: 'disabled' }} placeholder="Namespace" />
</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 T22N extends Component {
name = '22N'
desp = "Transaction Identifier"
pattern = "32x"
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": '350px' }} span={3}>
<FormItem
label=""
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={32} style={{ imeMode: 'disabled' }} placeholder="" />
</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 T22P extends Component {
name = '22P'
desp = " PUTI Namespace/Issuer Code"
pattern = "30x"
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": '350px' }} span={3}>
<FormItem
label="Namespace"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={30} style={{ imeMode: 'disabled' }} placeholder="Namespace" />
</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 T22Q extends Component
{
name='22Q'
desp = "Collateral Portfolio Code"
pattern = "10x"
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":'150px'}} span={3}>
<FormItem
label="Portfolio"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={10} style={{imeMode:'disabled'}} placeholder="Portfolio"/>
</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 T22R extends Component {
name = '22R'
desp = "Prior Transaction Identifier"
pattern = "32x"
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": '350px' }} span={3}>
<FormItem
label=""
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={32} style={{ imeMode: 'disabled' }} placeholder="" />
</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 T22S extends Component
{
name='22S'
desp = "Cleared Product Identification"
pattern = "1!a/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":'150px'}} span={3}>
<FormItem
label="Side Indicator"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select allowClear={true} value={value.s1} placeholder="Side Indicator" style={{ width: "100%" }} onChange={val=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="P">P</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'350px'}} span={3}>
<FormItem
label="Identification"
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={35} style={{imeMode:'disabled'}} placeholder="Identification"/>
</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 T22T extends Component
{
name='22T'
desp = "Cleared Product Identification"
pattern = "35x"
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":'350px'}} span={3}>
<FormItem
label="Identification"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={35} style={{imeMode:'disabled'}} placeholder="Identification"/>
</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 T22U extends Component
{
name='22U'
desp = "Underlying Product Identifier"
pattern = "6a"
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":'150px'}} span={3}>
<FormItem
label="Product Identifier"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={6} style={{imeMode:'disabled'}} placeholder="Product 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"
const FormItem = Form.Item;
const Option = Select.Option
export default class T22V extends Component
{
name='22V'
desp = "Link Swap Identification"
pattern = "35x"
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":'350px'}} span={3}>
<FormItem
label=""
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={35} style={{imeMode:'disabled'}} placeholder=""/>
</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 T22W extends Component
{
name='22W'
desp = "Link Swap Identification"
pattern = "42x"
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":'350px'}} span={3}>
<FormItem
label="Identification"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} maxLength={42} style={{imeMode:'disabled'}} placeholder="Identification"/>
</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 T24D extends Component
{
name='24D'
desp = "Dealing Method"
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}`
if(obj.s2)
mval = mval +'/' + 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":'150px'}} span={3}>
<FormItem
label="Method"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select allowClear={true} value={value.s1} placeholder="Method" style={{ width: "100%" }} onChange={val=>this.onChange(1,val)}>
<Option value="BROK">BROK</Option>
<Option value="ELEC">ELEC</Option>
<Option value="FAXT">FAXT</Option>
<Option value="PHON">PHON</Option>
<Option value="TELX">TELX</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'350px'}} span={3}>
<FormItem
label="Additional Information"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Input addonBefore="/" value={value.s2} onChange={e=>this.onChange(2,e.target.value)} maxLength={35} style={{imeMode:'disabled'}} placeholder="Additional Information"/>
</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 T26H extends Component {
name = '26H'
desp = "Counterparty's Reference"
pattern = "16x"
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": '350px' }} span={3}>
<FormItem
label=""
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Input value={value.s1} onChange={e => this.onChange(1, e.target.value)} maxLength={16} style={{ imeMode: 'disabled' }} placeholder="" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import TextArea from './ZTextArea'
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 T29A extends Component
{
name='29A'
desp = "Contact Information"
pattern = "4*35x"
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 (
<div>
<Row>
<Col span={24}>
<FormItem
label="Narrative"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<TextArea type= "textarea" maxLength={4*35} cols={35} rows={4} style={{imeMode:'disabled'}} placeholder="Narrative" value={value.s1} onChange={(e)=>this.onChange(1,e.target.value)}/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
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 T30T extends Component
{
name='30T'
desp = "Date"
pattern = "8!n"
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
label="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s1} onChange={(date, dateString)=>this.onChange(1,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';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T30U extends Component
{
name='30U'
desp = "Date"
pattern = "8!n"
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}`.replace('/','')
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={5}>
<FormItem
validateStatus={errmsg.s1?'error':null}
help={errmsg.s1}
>
<DatePicker size={InputSize} defaultValue="" format="YYYYMMdd" value={value.s1} onChange={(date, dateString)=>this.onChange(1,dateString)} />
</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';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T30V extends Component
{
name='30V'
desp = "Date"
pattern = "8!n"
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
label="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s1} onChange={(date, dateString)=>this.onChange(1,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';
import { InputSize, Currency, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T32E extends Component {
name = '32E'
desp = "Currency"
pattern = "3!a"
tno = -1
onChange = (val) => {
this.props.onValue([{ s1: val }, val])
}
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
placeholder="Currency"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val => this.onChange(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 T90A extends Component
{
name='90A'
desp = "Price"
pattern = "4!c//4!c/[N]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.s3);
let mval = ""
mval = `${obj.s1}${obj.s2}${temp}`
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":'200px'}} span={3}>
<FormItem
label="Commission Type"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select
placeholder="Commission Type"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(1,val)} >
<Option value="DISC">DISC</Option>
<Option value="PRCT">PRCT</Option>
<Option value="PREM">PREM</Option>
<Option value="YIEL">YIEL</Option>
<Option value="AKTI">AKTI</Option>
<Option value="ANTO">ANTO</Option>
<Option value="BAKL">BAKL</Option>
<Option value="CBCH">CBCH</Option>
<Option value="CHAR">CHAR</Option>
<Option value="COAX">COAX</Option>
<Option value="COUN">COUN</Option>
<Option value="CREB">CREB</Option>
<Option value="DEAL">DEAL</Option>
<Option value="DSCA">DSCA</Option>
<Option value="ENTF">ENTF</Option>
<Option value="EQUL">EQUL</Option>
<Option value="ERFE">ERFE</Option>
<Option value="EUTR">EUTR</Option>
<Option value="EXEC">EXEC</Option>
<Option value="HDGE">HDGE</Option>
<Option value="ISDI">ISDI</Option>
<Option value="LADT">LADT</Option>
<Option value="LEVY">LEVY</Option>
<Option value="LIDT">LIDT</Option>
<Option value="LOCL">LOCL</Option>
<Option value="LOCO">LOCO</Option>
<Option value="LOTE">LOTE</Option>
<Option value="LYDT">LYDT</Option>
<Option value="MACO">MACO</Option>
<Option value="MARG">MARG</Option>
<Option value="OCMT">OCMT</Option>
<Option value="OTHR">OTHR</Option>
<Option value="OTMG">OTMG</Option>
<Option value="PRDF">PRDF</Option>
<Option value="PRMA">PRMA</Option>
<Option value="PRWI">PRWI</Option>
<Option value="REFD">REFD</Option>
<Option value="REGF">REGF</Option>
<Option value="REMU">REMU</Option>
<Option value="RESU">RESU</Option>
<Option value="RSCH">RSCH</Option>
<Option value="SAMG">SAMG</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="SUBS">SUBS</Option>
<Option value="TOTL">TOTL</Option>
<Option value="TRAN">TRAN</Option>
<Option value="TRAX">TRAX</Option>
<Option value="VATA">VATA</Option>
<Option value="WITH">WITH</Option>
<Option value="ZWIS">ZWIS</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.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":'200px'}} span={3}>
<FormItem
label="Price"
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="Price"/>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Sign"
required={this.props.status=='M' || mval?'required':null}
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={'+'}>{"+"}</Option>
<Option value={'-'}>{"-"}</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import TextArea from './ZTextArea'
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 T35B extends Component
{
name='35B'
desp = "Identification of Financial Instrument"
pattern = "[ISIN1!e12!c][4*35x]"
tno = -1
keys=[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 = "ISIN "+`${obj.s2}\r\n${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 (
<div>
<Row>
<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}
>
<Input value={value.s2} onChange={e=>this.onChange(2,e.target.value)} maxLength={12} style={{imeMode:'disabled'}} placeholder="Identification of Instrument"/>
</FormItem>
</Col>
</Row>
<Row>
<Col span={24}>
<FormItem
label="Description of Instrument"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TextArea type= "textarea" maxLength={4*35} cols={35} rows={4} style={{imeMode:'disabled'}} placeholder="Description of Instrument" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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,COUNTRY} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T39M extends Component {
name = '39M'
desp = "Country Code"
pattern = "2!a"
tno = -1
onChange = (val) => {
this.props.onValue([{ s1: val }, val])
}
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={5}>
<FormItem
label="Country Code"
required
>
<Select placeholder="Country Code"
showSearch
optionFilterProp="children"
notFoundContent="Wrong Code"
size={InputSize} style={{ width: "100%",zIndex:99 }} value={value.s1} onChange={(val)=>this.onChange(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 TextArea from './ZTextArea'
const FormItem = Form.Item;
export default class T77D extends Component
{
name='77D'
desp = "Narrative"
pattern = ""
tno = -1
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
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>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<TextArea wrap="physical" type= "textarea" maxLength={35*6} cols={35} rows={10} style={{imeMode:'disabled'}} placeholder="Narrative Description of the Original Message to Which the Answer Relates" value={value.s1} onChange={(e)=>this.onChange(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 } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T77H extends Component {
name = '77H'
desp = "Type, Date, Version of the Agreement"
pattern = "6a[/8!n][//4!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 = ""
if (obj.s1)
mval = obj.s1
if (obj.s2)
mval = mval + obj.s2
if (obj.s3)
mval = mval + 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 (
<div>
<Row>
<Col style={{ "minWidth": '100px' }} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
required={this.props.status == 'M' || mval ? 'required' : null}
validateStatus={errmsg.s1 ? 'error' : null}
label="Type of Agreement"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="Type of Agreement" onChange={(val) => this.onChange(1, val)}>
<Option value="AFB">AFB</Option>
<Option value="DERV">DERV</Option>
<Option value="FBF">FBF</Option>
<Option value="FEOMA">FEOMA</Option>
<Option value="ICOM">ICOM</Option>
<Option value="IFEMA">IFEMA</Option>
<Option value="ISDA">ISDA</Option>
<Option value="ISDACN">ISDACN</Option>
<Option value="OTHER">OTHER</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Date"
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="Version"
help={errmsg.s3}
validateStatus={errmsg.s3 ? 'error' : null}
>
<DatePicker defaultValue="" format="yyyy" value={value.s3} onChange={(date, dateString) => this.onChange(3, dateString)} />
</FormItem>
</Col>
</Col>
</Row>
</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} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T81A extends Component
{
name='81A'
desp = "CCP"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={11} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T82A extends Component
{
name='82A'
desp = "Party A"
pattern = " [/1!a][/34x] 4!a2!a2!c[3!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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col >
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={16} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
import YBIC from './YBIC'
const FormItem = Form.Item;
export default class T82D extends Component
{
name='82D'
desp = "Applicant Bank"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Name and Address"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TextArea rows={4} cols={35} addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.name)} /> } type= "textarea" maxLength={140} style={{imeMode:'disabled'}} placeholder="Name and Address" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
const FormItem = Form.Item;
export default class T82J extends Component
{
name='82J'
desp = "Applicant Bank"
pattern = "5*40x"
tno = -1
keys=[1,2,3]
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
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>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<TextArea wrap="physical" type= "textarea" maxLength={200} cols={40} rows={5} style={{imeMode:'disabled'}} placeholder="Narrative Description of the Original Message to Which the Answer Relates" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T83A extends Component
{
name='83A'
desp = "Party A"
pattern = " [/1!a][/34x] 4!a2!a2!c[3!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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col >
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={16} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
import YBIC from './YBIC'
const FormItem = Form.Item;
export default class T83D extends Component
{
name='83D'
desp = "Applicant Bank"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Name and Address"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TextArea rows={4} cols={35} addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.name)} /> } type= "textarea" maxLength={140} style={{imeMode:'disabled'}} placeholder="Name and Address" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
const FormItem = Form.Item;
export default class T83J extends Component
{
name='83J'
desp = "Applicant Bank"
pattern = "5*40x"
tno = -1
keys=[1,2,3]
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
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>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<TextArea wrap="physical" type= "textarea" maxLength={200} cols={40} rows={5} style={{imeMode:'disabled'}} placeholder="Narrative Description of the Original Message to Which the Answer Relates" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T84A extends Component
{
name='84A'
desp = "Dealing Branch Party A"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={11} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T85A extends Component
{
name='85A'
desp = "Dealing Branch Party B"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={11} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T87A extends Component
{
name='87A'
desp = "Party A"
pattern = " [/1!a][/34x] 4!a2!a2!c[3!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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col >
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={16} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
import YBIC from './YBIC'
const FormItem = Form.Item;
export default class T87D extends Component
{
name='87D'
desp = "Party Identifier Name and Address"
pattern = "[/1!a][/34x] 4*35x"
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Name and Address"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TextArea rows={4} cols={35} addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.name)} /> } type= "textarea" maxLength={140} style={{imeMode:'disabled'}} placeholder="Name and Address" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
const FormItem = Form.Item;
export default class T87J extends Component
{
name='87J'
desp = "Party Identification"
pattern = "5*40x"
tno = -1
keys=[1,2,3]
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
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>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<TextArea wrap="physical" type= "textarea" maxLength={200} cols={40} rows={5} style={{imeMode:'disabled'}} placeholder="Narrative Description of the Original Message to Which the Answer Relates" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T88A extends Component
{
name='88A'
desp = "Broker Identification"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={11} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T89A extends Component
{
name='89A'
desp = "Reporting Party"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={11} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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 T90A extends Component
{
name='90A'
desp = "Price"
pattern = "4!c//4!c/[N]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.s3);
let mval = ""
mval = `${obj.s1}${obj.s2}${temp}`
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="INDC">INDC</Option>
<Option value="MRKT">MRKT</Option>
<Option value="EXER">EXER</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Percentage Type Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="Percentage Type Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
<Option value="DISC">DISC</Option>
<Option value="PRCT">PRCT</Option>
<Option value="PREM">PREM</Option>
<Option value="YIEL">YIEL</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Price"
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="Price"/>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Sign"
required={this.props.status=='M' || mval?'required':null}
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={'+'}>{"+"}</Option>
<Option value={'-'}>{"-"}</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 T90B extends Component
{
name='90B'
desp = "Price"
pattern = "4!c//4!c/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.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"
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="INDC">INDC</Option>
<Option value="MRKT">MRKT</Option>
<Option value="EXER">EXER</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Amount Type Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="Amount Type Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
<Option value="ACTU">DISC</Option>
<Option value="DISC">PRCT</Option>
<Option value="PREM">EXER</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="Price"
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={16} style={{imeMode:'disabled'}} placeholder="Price"/>
</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 T90C extends Component
{
name='90C'
desp = "Number and Sum of Entries"
pattern = "5n3!a15d"
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="Number"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} style={{imeMode:'disabled'}} placeholder="Number"/>
</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';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T90C extends Component
{
name='90C'
desp = "Number and Sum of Entries"
pattern = "5n3!a15d"
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="Number"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={e=>this.onChange(1,e.target.value)} style={{imeMode:'disabled'}} placeholder="Number"/>
</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';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T90E extends Component
{
name='90E'
desp = "Price"
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}${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="MRKT">MRKT</Option>
</Select>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Price Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Select
placeholder="Price Code"
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s2} onChange={val=>this.onChange(2,val)} >
<Option value="UKWN">UKWN</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} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T91A extends Component
{
name='91A'
desp = "Reporting Party"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={11} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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} from "./Utils"
import YBIC from './YBIC'
import TextArea from './ZTextArea'
const FormItem = Form.Item;
const Option = Select.Option
export default class T91D extends Component
{
name='91D'
desp = "Reporting Party"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Name and Address"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TextArea rows={4} cols={35} addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.name)} /> } value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)} type= "textarea" maxLength={140} style={{imeMode:'disabled'}} placeholder="Name and Address"/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import TextArea from './ZTextArea'
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 T91J extends Component {
name = '91J'
desp = "Identification of Financial Instrument"
pattern = "5*40x"
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 span={24}>
<FormItem
label="Party Identification"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<TextArea type="textarea" maxLength={5*40} cols={35} rows={5} style={{ imeMode: 'disabled' }} placeholder="Party Identification" value={value.s1} onChange={(e) => this.onChange(1, 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 T94A extends Component
{
name='94A'
desp = "Scope of Operation"
pattern = ""
tno = -1
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
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={5}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Select size={InputSize}
placeholder={this.props.desp}
showSearch
allowClear={true}
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(val)} >
<Option value="AGNT">AGNT</Option>
<Option value="BILA">BILA</Option>
<Option value="BROK">BROK</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} from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T96A extends Component
{
name='96A'
desp = "Clearing Exception Party"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.bic)} /> } maxLength={11} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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} from "./Utils"
import YBIC from './YBIC'
import TextArea from './ZTextArea'
const FormItem = Form.Item;
const Option = Select.Option
export default class T96D extends Component
{
name='96D'
desp = "Clearing Exception Party"
pattern = ""
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 = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval +'/' + obj.s2
if(obj.s3)
mval = mval?`${mval}\r\n${obj.s3}`: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 (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={10}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="D/C"
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="D/C" onChange={(val)=>this.onChange(1,val)}>
<Option value="C">C</Option>
<Option value="D">D</Option>
</Select>
</FormItem>
</Col>
<Col span={14}>
<FormItem
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Name and Address"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<TextArea rows={4} cols={35} addonAfter={ <YBIC onSelect={obj=>this.onChange(3,obj.name)} /> } value={value.s3} onChange={(e)=>this.onChange(3,e.target.value)} type= "textarea" maxLength={140} style={{imeMode:'disabled'}} placeholder="Name and Address"/>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
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 T98D extends Component
{
name='98D'
desp = "Execution Timestamp"
pattern = "8!n6!n[,3n][/[N]2!n[2!n]]"
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 = ""
mval = `${obj.s1}${obj.s2}`
if(obj.s3)
mval = mval +'/'+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="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s1} onChange={(date, dateString)=>this.onChange(1,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Time"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<TimePicker defaultValue="" format="HHmmss" value={value.s2} onChange={(date, dateString)=>this.onChange(2,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Decimals"
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={3} style={{imeMode:'disabled'}} placeholder="Decimals"/>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="UTC Indicator"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s4}
validateStatus={errmsg.s4?'error':null}
>
<TimePicker defaultValue="" format="HHmm" value={value.s4} onChange={(date, dateString)=>this.onChange(4,dateString)} />
</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';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T98G extends Component
{
name='98G'
desp = "Confirmation Timestamp"
pattern = "8!n6!n[,3n][/[N]2!n[2!n]]"
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 = ""
mval = `${obj.s1}${obj.s2}`
if(obj.s3)
mval = mval +'/'+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="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s1} onChange={(date, dateString)=>this.onChange(1,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Time"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<TimePicker defaultValue="" format="HHmmss" value={value.s2} onChange={(date, dateString)=>this.onChange(2,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Decimals"
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={3} style={{imeMode:'disabled'}} placeholder="Decimals"/>
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="UTC Indicator"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s4}
validateStatus={errmsg.s4?'error':null}
>
<TimePicker defaultValue="" format="HHmm" value={value.s4} onChange={(date, dateString)=>this.onChange(4,dateString)} />
</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';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T98H extends Component
{
name='98H'
desp = "Clearing Timestamp"
pattern = "6!n[,3n][/[N]2!n[2!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 = ""
mval = `${obj.s1}`
if(obj.s2)
mval = mval +'/'+obj.s2
if(obj.s3)
mval = mval +'/'+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="Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<DatePicker defaultValue="" format="yyMMdd" value={value.s1} onChange={(date, dateString)=>this.onChange(1,dateString)} />
</FormItem>
</Col>
<Col style={{"minWidth":'100px'}} span={3}>
<FormItem
label="Decimals"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'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="UTC Indicator"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s4}
validateStatus={errmsg.s3?'error':null}
>
<TimePicker defaultValue="" format="HHmm" value={value.s3} onChange={(date, dateString)=>this.onChange(3,dateString)} />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
...@@ -8,8 +8,6 @@ import T22D from "./T22D" ...@@ -8,8 +8,6 @@ import T22D from "./T22D"
import T23H from "./T23H" import T23H from "./T23H"
import T45D from './T45D' import T45D from './T45D'
import T23X from './T23X' import T23X from './T23X'
import T50A from "./T50A" import T50A from "./T50A"
import T50B from "./T50B" import T50B from "./T50B"
import T50F from "./T50F" import T50F from "./T50F"
...@@ -126,6 +124,59 @@ import T64 from './T64' ...@@ -126,6 +124,59 @@ import T64 from './T64'
import T86 from './T86' import T86 from './T86'
import T65 from './T65' import T65 from './T65'
import T25P from './T25P' import T25P from './T25P'
<<<<<<< HEAD
import T90A from './T90A'
import T90B from './T90B'
import T90C from './T90C'
import T90D from './T90D'
import T90E from './T90E'
import T91A from './T91A'
import T91D from './T91D'
import T98D from './T98D'
import T98G from './T98G'
import T98H from './T98H'
import T89A from './T89A'
import T34C from './T34C'
import T22Q from './T22Q'
import T22W from './T22W'
import T22V from './T22V'
import T35B from './T35B'
import T22U from './T22U'
import T22T from './T22T'
import T22S from './T22S'
import T22R from './T22R'
import T22P from './T22P'
import T22N from './T22N'
import T22M from './T22M'
import T91J from './T91J'
import T22L from './T22L'
import T15E from './T15E'
import T24D from './T24D'
import T14S from './T14S'
=======
//新增
import T15A from './T15A'
import T94A from './T94A'
import T22C from './T22C'
import T17T from './T17T'
import T17U from './T17U'
import T17I from './T17I'
import T82A from './T82A'
import T82D from './T82D'
import T82J from './T82J'
import T83A from './T83A'
import T83D from './T83D'
import T83J from './T83J'
import T87A from './T87A'
import T87D from './T87D'
import T87J from './T87J'
import T77H from './T77H'
import T77D from './T77D'
import T14C from './T14C'
import T32E from './T32E'
import T30U from './T30U'
import T39M from './T39M'
>>>>>>> 17586701b8b55cff5a5d09db8bb21e9918f59300
export default function(tag,props,onValue){ export default function(tag,props,onValue){
switch(tag) switch(tag)
...@@ -255,6 +306,61 @@ export default function(tag,props,onValue){ ...@@ -255,6 +306,61 @@ export default function(tag,props,onValue){
case "T65" :return <T65 {...props} onValue={onValue} />; case "T65" :return <T65 {...props} onValue={onValue} />;
case "T86" :return <T86 {...props} onValue={onValue} />; case "T86" :return <T86 {...props} onValue={onValue} />;
case "T25P" :return <T25P {...props} onValue={onValue} />; case "T25P" :return <T25P {...props} onValue={onValue} />;
<<<<<<< HEAD
case "T90A" :return <T90A {...props} onValue={onValue} />;
case "T90B" :return <T90B {...props} onValue={onValue} />;
case "T90C" :return <T90C {...props} onValue={onValue} />;
case "T90D" :return <T90D {...props} onValue={onValue} />;
case "T90E" :return <T90E {...props} onValue={onValue} />;
case "T91A" :return <T91A {...props} onValue={onValue} />;
case "T91D" :return <T91D {...props} onValue={onValue} />;
case "T98D" :return <T98D {...props} onValue={onValue} />;
case "T98G" :return <T98G {...props} onValue={onValue} />;
case "T98H" :return <T98H {...props} onValue={onValue} />;
case "T89A" :return <T89A {...props} onValue={onValue} />;
case "T34C" :return <T34C {...props} onValue={onValue} />;
case "T22Q" :return <T22Q {...props} onValue={onValue} />;
case "T22W" :return <T22W {...props} onValue={onValue} />;
case "T22V" :return <T22V {...props} onValue={onValue} />;
case "T35B" :return <T35B {...props} onValue={onValue} />;
case "T22U" :return <T22U {...props} onValue={onValue} />;
case "T22T" :return <T22T {...props} onValue={onValue} />;
case "T22S" :return <T22S {...props} onValue={onValue} />;
case "T22R" :return <T22R {...props} onValue={onValue} />;
case "T22P" :return <T22P {...props} onValue={onValue} />;
case "T22N" :return <T22N {...props} onValue={onValue} />;
case "T22M" :return <T22M {...props} onValue={onValue} />;
case "T91J" :return <T91J {...props} onValue={onValue} />;
case "T22L" :return <T22L {...props} onValue={onValue} />;
case "T15E" :return <T15E {...props} onValue={onValue} />;
case "T24D" :return <T24D {...props} onValue={onValue} />;
case "T14S" :return <T14S {...props} onValue={onValue} />;
=======
//新增
case "T15A" :return <T15A {...props} onValue={onValue} />;
case "T94A" :return <T94A {...props} onValue={onValue} />;
case "T22C" :return <T22C {...props} onValue={onValue} />;
case "T17T" :return <T17T {...props} onValue={onValue} />;
case "T17U" :return <T17U {...props} onValue={onValue} />;
case "T17I" :return <T17I {...props} onValue={onValue} />;
case "T82A" :return <T82A {...props} onValue={onValue} />;
case "T82D" :return <T82D {...props} onValue={onValue} />;
case "T82J" :return <T82J {...props} onValue={onValue} />;
case "T83A" :return <T83A {...props} onValue={onValue} />;
case "T83D" :return <T83D {...props} onValue={onValue} />;
case "T83J" :return <T83J {...props} onValue={onValue} />;
case "T87A" :return <T87A {...props} onValue={onValue} />;
case "T87D" :return <T87D {...props} onValue={onValue} />;
case "T87J" :return <T87J {...props} onValue={onValue} />;
case "T77H" :return <T77H {...props} onValue={onValue} />;
case "T77D" :return <T77D {...props} onValue={onValue} />;
case "T14C" :return <T14C {...props} onValue={onValue} />;
case "T32E" :return <T32E {...props} onValue={onValue} />;
case "T30U" :return <T30U {...props} onValue={onValue} />;
case "T39M" :return <T39M {...props} onValue={onValue} />;
>>>>>>> 17586701b8b55cff5a5d09db8bb21e9918f59300
} }
} }
\ 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