Commit 0502e58d by gq777

'update'

parent 9f760d65
......@@ -32,7 +32,7 @@ export default class T31 extends Component {
});
let mval = `${obj.s1}${obj.s2}`
let mval = `${obj.s1}/${obj.s2}`
this.props.onValue([obj, mval])
}
......
......@@ -34,8 +34,11 @@ export default class T35B extends Component
obj['s'+i] = objtemp['s'+i]
});
let mval = "ISIN "+`${obj.s2}\r\n${obj.s3}`
let mval = ""
if(obj.s1)
mval = "ISIN "+`${obj.s2}`
if(obj.s2)
mval = `\r\n${obj.s3}`
this.props.onValue([obj,mval])
}
......@@ -57,7 +60,6 @@ export default class T35B extends Component
<Col style={{"minWidth":'200px'}} span={3}>
<FormItem
label="Identification of Instrument"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
......@@ -70,7 +72,6 @@ export default class T35B extends Component
<Col span={24}>
<FormItem
label="Description of Instrument"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
......
import React, { Component } from 'react'
import 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 T53J extends Component {
name = '53J'
desp = "Delivery Agent"
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} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T56B extends Component
{
name='56B'
desp = "Intermediary"
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="Location"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input type= "text" maxLength={35} style={{imeMode:'disabled'}} placeholder="Location" 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 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 T57J extends Component {
name = '57J'
desp = "Receiving Agent"
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 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 T58J extends Component {
name = '58J'
desp = "Beneficiary Institution"
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
......@@ -32,8 +32,13 @@ export default class T77H extends Component {
obj['s' + i] = objtemp['s' + i]
});
let mval = `${obj.s1}/${obj.s2}//${obj.s3}`
let mval = `${obj.s1}`
if(obj.s2)
mval = mval + `/${obj.s1}`
if(obj.s3)
mval = mval + `//${obj.s1}`
this.props.onValue([obj, mval])
}
......
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency} from "./Utils"
import TextArea from './ZTextArea'
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T81D extends Component
{
name='81D'
desp = "Central Counterparty Clearing House (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="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 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 T81J extends Component {
name = '81J'
desp = "Central Counterparty Clearing House (CCP)"
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} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T86B extends Component
{
name='86B'
desp = "Intermediary"
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="Location"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input type= "text" maxLength={35} style={{imeMode:'disabled'}} placeholder="Location" 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"
const FormItem = Form.Item;
const Option = Select.Option
export default class T87B extends Component
{
name='87B'
desp = "Receiver of the Commodity"
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="Location"
help={errmsg.s3}
validateStatus={errmsg.s3?'error':null}
>
<Input type= "text" maxLength={35} style={{imeMode:'disabled'}} placeholder="Location" 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 T88D extends Component
{
name='88D'
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="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 T88J extends Component {
name = '88J'
desp = "Broker Identification"
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} from "./Utils"
import TextArea from './ZTextArea'
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T89D extends Component
{
name='89D'
desp = "Clearing Broker"
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 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 T89J extends Component {
name = '89J'
desp = "Clearing Broker"
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 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 T96J extends Component {
name = '96J'
desp = "Clearing Exception Party"
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
......@@ -214,7 +214,6 @@ import T56J from './T56J'
import T86A from './T86A'
import T86D from './T86D'
import T86J from './T86J'
<<<<<<< HEAD
import T18A from './T18A'
import T33E from './T33E'
import T37L from './T37L';
......@@ -235,9 +234,22 @@ import T38E from './T38E';
import T30G from './T30G';
import T32U from './T32U';
import T22E from './T22E';
=======
import T22 from './T22'
>>>>>>> 23f5238007ed410689a8722c7ae246841842f5c8
import T22 from './T22';
import T81D from './T81D';
import T81J from './T81J';
import T89D from './T89D';
import T96D from './T96D';
import T96J from './T96J';
import T58J from './T58J';
import T57J from './T57J';
import T53J from './T53J';
import T88D from './T88D';
import T88J from './T88J';
import T56B from './T56B';
import T87B from './T87B';
import T86B from './T86B';
import T37R from './T37R';
export default function(tag,props,onValue){
switch(tag)
......@@ -457,7 +469,6 @@ export default function(tag,props,onValue){
case "T86A" :return <T86A {...props} onValue={onValue} />;
case "T86D" :return <T86D {...props} onValue={onValue} />;
case "T86J" :return <T86J {...props} onValue={onValue} />;
<<<<<<< HEAD
case "T18A" :return <T18A {...props} onValue={onValue} />;
case "T33E" :return <T33E {...props} onValue={onValue} />;
case "T37L" :return <T37L {...props} onValue={onValue} />;
......@@ -478,10 +489,22 @@ export default function(tag,props,onValue){
case "T30G" :return <T30G {...props} onValue={onValue} />;
case "T32U" :return <T32U {...props} onValue={onValue} />;
case "T22E" :return <T22E {...props} onValue={onValue} />;
=======
case "T22" :return <T22 {...props} onValue={onValue} />;
>>>>>>> 23f5238007ed410689a8722c7ae246841842f5c8
case "T81D" :return <T81D {...props} onValue={onValue} />;
case "T81J" :return <T81J {...props} onValue={onValue} />;
case "T89D" :return <T89D {...props} onValue={onValue} />;
case "T89J" :return <T89J {...props} onValue={onValue} />;
case "T96D" :return <T96D {...props} onValue={onValue} />;
case "T96J" :return <T96J {...props} onValue={onValue} />;
case "T58J" :return <T58J {...props} onValue={onValue} />;
case "T57J" :return <T57J {...props} onValue={onValue} />;
case "T53J" :return <T53J {...props} onValue={onValue} />;
case "T88D" :return <T88D {...props} onValue={onValue} />;
case "T88J" :return <T88J {...props} onValue={onValue} />;
case "T56B" :return <T56B {...props} onValue={onValue} />;
case "T87B" :return <T87B {...props} onValue={onValue} />;
case "T86B" :return <T86B {...props} onValue={onValue} />;
case "T37R" :return <T37R {...props} onValue={onValue} />;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment