Commit 7d9d1805 by gq777

gengxing

parents 8f7668e7 889274c9
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T21F extends Component
{
name='21F'
desp = "Related Reference"
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={21}>
<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>
</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 T21R extends Component
{
name='21R'
desp = "Related Reference"
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={21}>
<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>
</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 T25A extends Component
{
name='25A'
desp = "Charges Account"
pattern = " /34x"
tno = -1
onChange=(val)=>{
this.props.onValue([{s1:val},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 style={{"minWidth":'100px'}} span={16}>
<FormItem
label="Account"
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input addonBefore="/" value={value.s1} onChange={e=>this.onChange(e.target.value)} maxLength={34} style={{imeMode:'disabled'}} placeholder="Account"/>
</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';
const FormItem = Form.Item;
export default class T28D extends Component
{
name='28D'
desp = "Message Index/Total"
pattern = " 5n/5n"
tno = -1
keys=[1,2]
constructor(props)
{
super(props)
}
componentWillMount()
{
}
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = `${obj.s1||''}${obj.s2?`/${obj.s2}`:''}`
this.props.onValue([obj,mval])
}
render()
{
let value =this.props.value
let mval = value && value.length? value[1] : ''
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
return (<Row>
<Col span={6}>
<FormItem
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="Statement Number"
>
<Input readOnly={this.readonly} type= "text" maxLength={5} style={{imeMode:'disabled'}} placeholder="Number" value={value.s1} onChange={(e)=>this.onChange(1,e.target.value)}/>
</FormItem>
</Col>
<Col span={6}>
<FormItem
help={errmsg.s2}
required={this.props.status=='M' || mval?'required':null}
validateStatus={errmsg.s2?'error':null}
label="Sequence Number"
>
<Input readOnly={this.readonly} type= "text" addonBefore="/" maxLength={5} style={{imeMode:'disabled'}} placeholder="Sequence Number" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -152,7 +152,7 @@ export default class T34C extends Component
<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}
>
......
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 T51C extends Component
{
name='51C'
desp = "Sending Institution"
pattern = ""
tno = -1
keys=[1]
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = ""
if(obj.s1)
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 >
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(1,obj.bic)} /> } maxLength={16} style={{imeMode:'disabled'}} placeholder="Identifier Code" 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 YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T50G extends Component
{
name='50G'
desp = "Ordering Customer"
pattern = " /34x 4!a2!a2!c[3!c]"
tno = -1
keys=[1,2]
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = ""
if(obj.s1)
mval = '/' + obj.s1
// if(obj.s2)
// mval = mval +'/' + obj.s2
if(obj.s2)
mval = mval?`${mval}\r\n${obj.s2}`:obj.s2
this.props.onValue([obj,mval])
}
render()
{
let value =this.props.value
let mval = value && value.length? value[1] : ''
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
return (
<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<Col span={14}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
label="Account"
>
<Input addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account" value={value.s1} onChange={(e)=>this.onChange(1,e.target.value)}/>
</FormItem>
</Col>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Identifier Code"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Input addonAfter={ <YBIC onSelect={obj=>this.onChange(2,obj.bic)} /> } maxLength={16} style={{imeMode:'disabled'}} placeholder="Identifier Code" value={value.s2} onChange={(e)=>this.onChange(2,e.target.value)}/>
</FormItem>
</Col>
</Row>
</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 T50H extends Component
{
name='50H'
desp = "Ordering Customer"
pattern = " /34x 4*35x"
tno = -1
keys=[1,2,]
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = ""
if(obj.s1)
mval = '/' + obj.s1
if(obj.s2)
mval = mval?`${mval}\r\n${obj.s2}`:obj.s2
this.props.onValue([obj,mval])
}
render()
{
let value =this.props.value
let mval = value && value.length? value[1] : ''
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
return (<div>
<Row>
<Col style={{"minWidth":'100px'}} span={16}>
<FormItem
label="Account"
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input value={value.s1} onChange={(e)=>this.onChange(1,e.target.value)} addonBefore="/" maxLength={34} style={{imeMode:'disabled'}} placeholder="Account"/>
</FormItem>
</Col>
</Row>
<Row>
<Col>
<FormItem
label="Name and Address"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<TextArea rows={4} cols={35} addonAfter={ <YBIC onSelect={obj=>this.onChange(2,obj.name)} /> } value={value.s2} onChange={(e)=>this.onChange(2,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,Row, Col,Button,Icon ,Select} from 'antd';
const FormItem = Form.Item;
export default class T50L extends Component
{
name='50L'
desp = "Related Reference"
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={21}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input maxLength={35} value={value.s1} placeholder={this.props.desp} style={{'imeMode':'disabled'}} 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';
const FormItem = Form.Item;
export default class T52C extends Component
{
name='52C'
desp = "Related Reference"
pattern = "/34X"
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={21}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input maxLength={35} value={value.s1} placeholder={this.props.desp} style={{'imeMode':'disabled'}} onChange={e=>this.onChange(e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -267,6 +267,28 @@ import T37K from './T37K';
import T17R from './T17R';
import T40B from './T40B';
import T73 from './T73';
import T22 from './T22'
import T31G from './T31G'
import T26F from './T26F'
import T34P from './T34P'
import T34R from './T34R'
import T26C from './T26C'
import T33G from './T33G'
import T71C from './T71C'
import T32F from './T32F'
import T37K from './T37K'
import T17R from './T17R'
import T21R from './T21R'
import T28D from './T28D'
import T50L from './T50L'
import T50C from './T50C'
import T21F from './T21F'
import T52C from './T52C'
import T50G from './T50G'
import T50H from './T50H'
import T25A from './T25A'
export default function(tag,props,onValue){
switch(tag)
......@@ -541,6 +563,16 @@ export default function(tag,props,onValue){
case "T17R" :return <T17R {...props} onValue={onValue} />;
case "T40B" :return <T40B {...props} onValue={onValue} />;
case "T73" :return <T73 {...props} onValue={onValue} />;
case "T21R" :return <T21R {...props} onValue={onValue} />;
case "T28D" :return <T28D {...props} onValue={onValue} />;
case "T50C" :return <T50C {...props} onValue={onValue} />;
case "T50L" :return <T50L {...props} onValue={onValue} />;
case "T21F" :return <T21F {...props} onValue={onValue} />;
case "T52C" :return <T52C {...props} onValue={onValue} />;
case "T50G" :return <T50G {...props} onValue={onValue} />;
case "T50H" :return <T50H {...props} onValue={onValue} />;
case "T25A" :return <T25A {...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