Commit 4fae0002 by s_guodong

增加MT110、MT190

parent 7e73bcf0
...@@ -12,6 +12,8 @@ const Step = Steps.Step; ...@@ -12,6 +12,8 @@ const Step = Steps.Step;
export const mty=[ export const mty=[
{mty:"mt101",desp:"MT 101 Request for Transfer"}, {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:"mt110",desp:"MT 110 Advice of Cheque(s)"},
{mty:"mt190",desp:"MT 190 dvice of Charges"},
{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"},
...@@ -27,6 +29,7 @@ export const mty=[ ...@@ -27,6 +29,7 @@ export const mty=[
{mty:"mt305",desp:"MT 305 Foreign Currency Option Confirmation"}, {mty:"mt305",desp:"MT 305 Foreign Currency Option Confirmation"},
{mty:"mt320",desp:"MT 320 Fixed Loan/Deposit Confirmation"}, {mty:"mt320",desp:"MT 320 Fixed Loan/Deposit Confirmation"},
{mty:"mt360",desp:"MT 360 Single Currency Interest Rate Derivative Confirmation"}, {mty:"mt360",desp:"MT 360 Single Currency Interest Rate Derivative Confirmation"},
{mty:"mt399",desp:"MT 399 Free Format Message"},
{mty:"mt400",desp:"MT 400 Advice of Payment"}, {mty:"mt400",desp:"MT 400 Advice of Payment"},
{mty:"mt410",desp:"MT 410 Acknowledgement"}, {mty:"mt410",desp:"MT 410 Acknowledgement"},
...@@ -40,9 +43,20 @@ export const mty=[ ...@@ -40,9 +43,20 @@ export const mty=[
{mty:"mt600",desp:"MT 600 Commodity Trade Confirmation"}, {mty:"mt600",desp:"MT 600 Commodity Trade Confirmation"},
{mty:"mt601",desp:"MT 601 Commodity Option Confirmation"},
{mty:"mt604",desp:"MT 604 Commodity Transfer"},
{mty:"mt605",desp:"MT 605 Commodity Notice to Receive"}, {mty:"mt605",desp:"MT 605 Commodity Notice to Receive"},
{mty:"mt606",desp:"MT 606 Commodity Debit Advice"},
{mty:"mt607",desp:"MT 607 Commodity Credit Advice"}, {mty:"mt607",desp:"MT 607 Commodity Credit Advice"},
{mty:"mt608",desp:"MT 608 Statement of a Commodity Account"},
{mty:"mt620",desp:"MT 620 Commodity Fixed Loan/Deposit Confirmation"}, {mty:"mt620",desp:"MT 620 Commodity Fixed Loan/Deposit Confirmation"},
{mty:"mt690",desp:"MT 690 Advice of Charges"},
{mty:"mt691",desp:"MT 691 Request for Payment of Charges"},
{mty:"mt692",desp:"MT 692 Request for Cancellation"},
{mty:"mt695",desp:"MT 695 Queries"},
{mty:"mt696",desp:"MT 696 Answers"},
{mty:"mt698",desp:"MT 698 Proprietary Message"},
{mty:"mt699",desp:"MT 699 Free Format Message"},
{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"},
......
const Tags=[
{"tag":"20","status":"M","tno":1,"letter":[],"label":"Sender's Reference","tagValue":[{},null]},
{"tag":"53A","status":"O","tno":2,"letter":["53A","53B","53D"],"label":"Sender's Correspondent","tagValue":[{},null]},
{"tag":"54A","status":"O","tno":3,"letter":["54A","54B","54D"],"label":"Receiver's Correspondent","tagValue":[{},null]},
{"tag":"72","status":"O","tno":4,"letter":[],"label":"Sender to Receiver Information","tagValue":[{},null]},
{"cyclist":"5","cycs":[[
{"tag":"21","status":"M","tno":5,"letter":[],"label":"Cheque Number","tagValue":[{},null]},
{"tag":"30","status":"M","tno":6,"letter":[],"label":"Date of Issue","tagValue":[{},null]},
{"tag":"32A","status":"M","tno":7,"letter":["32A","32B"],"label":"Amount","tagValue":[{},null]},
{"tag":"50A","status":"O","tno":8,"letter":["50A","50F","50K"],"label":"Payer","tagValue":[{},null]},
{"tag":"52A","status":"O","tno":9,"letter":["52A","52B","52D"],"label":"Drawer Bank","tagValue":[{},null]},
{"tag":"59","status":"M","tno":10,"letter":["59","59F"],"label":"Payee","tagValue":[{},null]}
]],
"pattern":[
{"tag":"21","status":"M","tno":5,"letter":[],"label":"Cheque Number","tagValue":[{},null]},
{"tag":"30","status":"M","tno":6,"letter":[],"label":"Date of Issue","tagValue":[{},null]},
{"tag":"32A","status":"M","tno":7,"letter":["32A","32B"],"label":"Amount","tagValue":[{},null]},
{"tag":"50A","status":"O","tno":8,"letter":["50A","50F","50K"],"label":"Payer","tagValue":[{},null]},
{"tag":"52A","status":"O","tno":9,"letter":["52A","52B","52D"],"label":"Drawer Bank","tagValue":[{},null]},
{"tag":"59","status":"M","tno":10,"letter":["59","59F"],"label":"Payee","tagValue":[{},null]}
] }
]
const Title = "MT 110 Advice of Cheque(s)"
export default { Tags,Title} ;
import MT1000 from './MT1000' import MT1000 from './MT1000'
import MT101 from './MT101' import MT101 from './MT101'
import MT103 from './MT103' import MT103 from './MT103'
import MT110 from './MT110'
import MT202 from './MT202' import MT202 from './MT202'
import MT202COV from './MT202COV' import MT202COV from './MT202COV'
...@@ -84,6 +85,8 @@ export default function MTFactory(mty) ...@@ -84,6 +85,8 @@ export default function MTFactory(mty)
return MT101 return MT101
if(mty=="mt103") if(mty=="mt103")
return MT103 return MT103
if(mty=="mt110")
return MT110
if(mty=="mt202") if(mty=="mt202")
return MT202 return MT202
if(mty=="mt202cov") if(mty=="mt202cov")
......
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 T52B extends Component
{
name='52B'
desp = "Drawer 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 span={12}>
<FormItem
label="Location"
help={errmsg.s3}
validateStatus={errmsg.s3 ? 'error' : null}
>
<Input type="text" value={value.s3} onChange={e =>this.onChange(3, e.target.value)} maxLength={35} style={{ imeMode:'disabled'}} placeholder="Location" />
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
...@@ -198,6 +198,7 @@ import T51 from "./T51" ...@@ -198,6 +198,7 @@ import T51 from "./T51"
import T51A from "./T51A" import T51A from "./T51A"
import T51D from "./T51D" import T51D from "./T51D"
import T52A from "./T52A" import T52A from "./T52A"
import T52B from "./T52B"
import T52C from './T52C' import T52C from './T52C'
import T52D from "./T52D" import T52D from "./T52D"
import T53A from "./T53A" import T53A from "./T53A"
...@@ -552,6 +553,7 @@ export default function(tag,props,onValue){ ...@@ -552,6 +553,7 @@ export default function(tag,props,onValue){
        case "T51A" :return <T51A   {...props}  onValue={onValue}   />;         case "T51A" :return <T51A   {...props}  onValue={onValue}   />;
        case "T51D" :return <T51D   {...props}  onValue={onValue}   />;         case "T51D" :return <T51D   {...props}  onValue={onValue}   />;
        case "T52A" :return <T52A   {...props}  onValue={onValue}   />;         case "T52A" :return <T52A   {...props}  onValue={onValue}   />;
        case "T52B" :return <T52B   {...props}  onValue={onValue}   />;
        case "T52C" :return <T52C   {...props}  onValue={onValue}   />;         case "T52C" :return <T52C   {...props}  onValue={onValue}   />;
        case "T52D" :return <T52D   {...props}  onValue={onValue}   />;         case "T52D" :return <T52D   {...props}  onValue={onValue}   />;
        case "T53A" :return <T53A   {...props}  onValue={onValue}   />;         case "T53A" :return <T53A   {...props}  onValue={onValue}   />;
......
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