Commit fb3ec117 by gq777

'update'

parent 19f56e30
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 T14A extends Component {
name = '14A'
desp = "Business Day Convention"
pattern = "9a"
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": '200px' }} span={3}>
<FormItem
label="Convention"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Convention"
style={{ width: "100%" }} value={value.s1} onChange={val => this.onChange(1, val)} >
<Option value="FOLLOWING">FOLLOWING</Option>
<Option value="FRN">FRN</Option>
<Option value="MODIFIEDF">MODIFIEDF</Option>
<Option value="OTHER">OTHER</Option>
<Option value="PRECEDING">PRECEDING</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 T14F extends Component {
name = '14F'
desp = "Floating Rate Option"
pattern = "24x"
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={24} 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 T14G extends Component {
name = '14G'
desp = "Averaging Frequency and Method"
pattern = "1!a/8!a"
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}/${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": '200px' }} span={3}>
<FormItem
label="Frequency"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Frequency"
style={{ width: "100%" }} value={value.s1} onChange={val => this.onChange(1, val)} >
<Option value="D">D</Option>
<Option value="M">M</Option>
<Option value="O">O</Option>
<Option value="W">W</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Method"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Method"
style={{ width: "100%" }} value={value.s2} onChange={val => this.onChange(2, val)} >
<Option value="UNWEIGHT">UNWEIGHT</Option>
<Option value="WEIGHTED">WEIGHTED</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 T14J extends Component {
name = '14J'
desp = "Reset Date Specification"
pattern = "5a"
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": '200px' }} span={3}>
<FormItem
label=""
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select size={InputSize}
placeholder=""
style={{ width: "100%" }} value={value.s1} onChange={val => this.onChange(1, val)} >
<Option value="FIRST">FIRST</Option>
<Option value="LAST">LAST</Option>
<Option value="OTHER">OTHER</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
const FormItem = Form.Item;
const Option = Select.Option
export default class T17A extends Component {
name = '17A'
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="N">N</Option>
<Option value="Y">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 T18A extends Component
{
name='18A'
desp = "Number of Repetitions"
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":'350px'}} 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, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T21B extends Component {
name = '21B'
desp = "Contract Number Party B"
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 T22E extends Component {
name = '22E'
desp = "Type of Payment"
pattern = "4!c"
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="FEES">FEES</Option>
<Option value="PRMP">PRMP</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -32,7 +32,7 @@ export default class T22S extends Component
obj['s'+i] = objtemp['s'+i]
});
let mval = `${obj.s1}${obj.s2}`
let mval = `${obj.s1}/${obj.s2}`
this.props.onValue([obj,mval])
}
......
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 T23A extends Component {
name = '23A'
desp = "Identification of the Swap"
pattern = "10a/5a"
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": '200px' }} span={3}>
<FormItem
label="Type of Swap"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Type of Swap"
style={{ width: "100%" }} value={value.s1} onChange={val => this.onChange(1, val)} >
<Option value="CAPBUYER">CAPBUYER</Option>
<Option value="CAPSELLER">CAPSELLER</Option>
<Option value="COLLARBYER">COLLARBYER</Option>
<Option value="COLLARSLLR">COLLARSLLR</Option>
<Option value="FIXEDFIXED">FIXEDFIXED</Option>
<Option value="FIXEDFLOAT">FIXEDFLOAT</Option>
<Option value="FLOATFIXED">FLOATFIXED</Option>
<Option value="FLOATFLOAT">FLOATFLOAT</Option>
<Option value="FLOORBUYER">FLOORBUYER</Option>
<Option value="FLOORSLLER">FLOORSLLER</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Settlement Method"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s1}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Settlement Method"
style={{ width: "100%" }} value={value.s2} onChange={val => this.onChange(2, val)} >
<Option value="CROSS">CROSS</Option>
<Option value="NET">NET</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,TimePicker,Row, Col,Button,Icon ,Select} from 'antd';
import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T30G extends Component
{
name='30G'
desp = "Variable Notional Start and End Date"
pattern = "8!n/8!n"
tno = -1
keys=[1,2]
onChange=(index,value)=>
{
let obj = {};
if(!value)
value = ""
let objtemp =this.props.value
objtemp = objtemp && objtemp.length? objtemp[0] : {}
objtemp["s"+index] = value;
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = `${obj.s1}/${obj.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="Start 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="End Date"
required={this.props.status=='M' || mval?'required':null}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<DatePicker defaultValue="" format="yyyyMMdd" value={value.s2} onChange={(date, dateString)=>this.onChange(2,dateString)} />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -34,7 +34,7 @@ export default class T32H extends Component {
let mval = ""
mval = `${obj.s1}${temp}`
if (obj.s3)
mval = '/' + obj.s3 + mval
mval = obj.s3 + mval
this.props.onValue([obj, mval])
}
......
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 T32M extends Component {
name = '32M'
desp = "Currency, Payment Amount"
pattern = "3!a15d"
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 temp = FormatAmount(obj.s2);
let mval = `${obj.s1}${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="Currency"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
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(1, 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.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Input value={value.s2} onChange={e => this.onChange(2, 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 T32U extends Component {
name = '32U'
desp = "Outstanding Notional Currency and Amount"
pattern = "3!a15d"
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 temp = FormatAmount(obj.s2);
let mval = `${obj.s1}${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="Currency"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
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(1, 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.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Input value={value.s2} onChange={e => this.onChange(2, 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 T33E extends Component {
name = '33E'
desp = "Reporting Currency and Tax Amount"
pattern = "3!a15d"
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 temp = FormatAmount(obj.s2);
let mval = ""
mval = `${obj.s1}${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="Currency"
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(1, val)} >
{
Currency.map(cur => <Option key={cur} value={cur}>{cur}</Option>)
}
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Amount"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Input value={value.s2} onChange={e => this.onChange(2, e.target.value)} maxLength={15} style={{ imeMode: 'disabled' }} placeholder="Amount" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -6,10 +6,10 @@ import {InputSize,Currency,FormatAmount} from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T90A extends Component
export default class T34C extends Component
{
name='90A'
name='34C'
desp = "Price"
pattern = "4!c//4!c/[N]15d"
tno = -1
......@@ -33,7 +33,7 @@ export default class T90A extends Component
});
let temp = FormatAmount(obj.s3);
let mval = ""
mval = `${obj.s1}${obj.s2}`
mval = `${obj.s1}//${obj.s2}`
if(obj.s4)
mval = mval +'/'+obj.s4
......
......@@ -34,7 +34,7 @@ export default class T34E extends Component {
let mval = ""
mval = `${obj.s1}${temp}`
if (obj.s3)
mval = '/' + obj.s3 + mval
mval = obj.s3 + mval
this.props.onValue([obj, mval])
}
......
......@@ -33,7 +33,7 @@ export default class T37G extends Component {
let mval = `${obj.s1}`
if (obj.s2)
mval = '/' + obj.s2 + mval
mval = obj.s2 + mval
this.props.onValue([obj, mval])
}
......
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 T37L extends Component {
name = '37L'
desp = "Rate"
pattern = "12d"
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": '200px' }} span={3}>
<FormItem
label="Rate"
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={12} style={{ imeMode: 'disabled' }} placeholder="Rate" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T37M extends Component {
name = '37M'
desp = "Fixed Rate"
pattern = "[N]12d"
tno = -1
keys = [1, 2]
onChange = (index, value) => {
let obj = {};
if (!value)
value = ""
let objtemp = this.props.value
objtemp = objtemp && objtemp.length ? objtemp[0] : {}
objtemp["s" + index] = value;
this.keys.forEach(i => {
obj['s' + i] = objtemp['s' + i]
});
let mval = `${obj.s1}`
if (obj.s2)
mval = obj.s2 + mval
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="Sign"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select allowClear={true} value={value.s2} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(2, val)}>
<Option value={'+'}>{"+"}</Option>
<Option value={'-'}>{"-"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Rate"
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={12} style={{ imeMode: 'disabled' }} placeholder="Rate" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select,Switch} from 'antd';
import {InputSize,Currency} from "./Utils"
import TextArea from './ZTextArea'
const FormItem = Form.Item;
const Option = Select.Option
export default class T37N extends Component
{
name='37N'
desp = "Details of Interest Rate"
pattern = "6*35x"
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={24}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<TextArea type= "textarea" maxLength={6*35} cols={35} rows={6} style={{imeMode:'disabled'}} placeholder="Narrative" 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, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T37R extends Component {
name = '37R'
desp = "Spread"
pattern = "[N]12d"
tno = -1
keys = [1, 2]
onChange = (index, value) => {
let obj = {};
if (!value)
value = ""
let objtemp = this.props.value
objtemp = objtemp && objtemp.length ? objtemp[0] : {}
objtemp["s" + index] = value;
this.keys.forEach(i => {
obj['s' + i] = objtemp['s' + i]
});
let mval = `${obj.s1}`
if (obj.s2)
mval = obj.s2 + mval
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="Sign"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select allowClear={true} value={value.s2} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(2, val)}>
<Option value={'+'}>{"+"}</Option>
<Option value={'-'}>{"-"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Rate"
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={12} style={{ imeMode: 'disabled' }} placeholder="Rate" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T37V extends Component {
name = '37V'
desp = "Cap Rate"
pattern = "[N]12d"
tno = -1
keys = [1, 2]
onChange = (index, value) => {
let obj = {};
if (!value)
value = ""
let objtemp = this.props.value
objtemp = objtemp && objtemp.length ? objtemp[0] : {}
objtemp["s" + index] = value;
this.keys.forEach(i => {
obj['s' + i] = objtemp['s' + i]
});
let mval = `${obj.s1}`
if (obj.s2)
mval = obj.s2 + mval
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="Sign"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select allowClear={true} value={value.s2} placeholder="Sign" style={{ width: "100%" }} onChange={val => this.onChange(2, val)}>
<Option value={'+'}>{"+"}</Option>
<Option value={'-'}>{"-"}</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Rate"
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={12} style={{ imeMode: 'disabled' }} placeholder="Rate" />
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T38E extends Component {
name = '38E'
desp = "Designated Maturity"
pattern = "2n1!a"
tno = -1
keys = [1, 2]
onChange = (index, value) => {
let obj = {};
if (!value)
value = ""
let objtemp = this.props.value
objtemp = objtemp && objtemp.length ? objtemp[0] : {}
objtemp["s" + index] = value;
this.keys.forEach(i => {
obj['s' + i] = objtemp['s' + i]
});
let mval = `${obj.s1}${obj.s2}`
this.props.onValue([obj, mval])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (<Row>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="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={2} style={{ imeMode: 'disabled' }} placeholder="Number" />
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Period"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Period"
style={{ width: "100%" }} value={value.s2} onChange={val => this.onChange(2, val)} >
<Option value="D">D</Option>
<Option value="M">M</Option>
<Option value="O">O</Option>
<Option value="W">W</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T38G extends Component {
name = '38G'
desp = "First Stub Period, Interpolation Period"
pattern = "2n1!a/2n1!a"
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}/${obj.s3}${obj.s4}`
this.props.onValue([obj, mval])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (<Row>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Number From"
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={2} style={{ imeMode: 'disabled' }} placeholder="Number From" />
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Period From"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Period From"
style={{ width: "100%" }} value={value.s2} onChange={val => this.onChange(2, val)} >
<Option value="D">D</Option>
<Option value="M">M</Option>
<Option value="O">O</Option>
<Option value="W">W</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Number To"
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={2} style={{ imeMode: 'disabled' }} placeholder="Number To" />
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Period To"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s4}
validateStatus={errmsg.s4 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Period To"
style={{ width: "100%" }} value={value.s4} onChange={val => this.onChange(4, val)} >
<Option value="D">D</Option>
<Option value="M">M</Option>
<Option value="O">O</Option>
<Option value="W">W</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency, FormatAmount } from "./Utils"
const FormItem = Form.Item;
const Option = Select.Option
export default class T38H extends Component {
name = '38H'
desp = "Last Stub Period, Interpolation Period"
pattern = "2n1!a/2n1!a"
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}/${obj.s3}${obj.s4}`
this.props.onValue([obj, mval])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (<Row>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Number From"
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={2} style={{ imeMode: 'disabled' }} placeholder="Number From" />
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Period From"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s2}
validateStatus={errmsg.s2 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Period From"
style={{ width: "100%" }} value={value.s2} onChange={val => this.onChange(2, val)} >
<Option value="D">D</Option>
<Option value="M">M</Option>
<Option value="O">O</Option>
<Option value="W">W</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
label="Number To"
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={2} style={{ imeMode: 'disabled' }} placeholder="Number To" />
</FormItem>
</Col>
<Col style={{ "minWidth": '200px' }} span={3}>
<FormItem
label="Period To"
required={this.props.status == 'M' || mval ? 'required' : null}
help={errmsg.s4}
validateStatus={errmsg.s4 ? 'error' : null}
>
<Select size={InputSize}
placeholder="Period To"
style={{ width: "100%" }} value={value.s4} onChange={val => this.onChange(4, val)} >
<Option value="D">D</Option>
<Option value="M">M</Option>
<Option value="O">O</Option>
<Option value="W">W</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>)
}
}
\ No newline at end of file
......@@ -16,7 +16,7 @@ export default class T71G extends Component
pattern = ""
tno = -1
keys=[1,2,]
keys=[1,2]
onChange=(index,value)=>
{
......
......@@ -17,7 +17,7 @@ export default class T71N extends Component
pattern = ""
tno = -1
keys=[1,2,]
keys=[1,2]
onChange=(index,value)=>
{
......
......@@ -32,14 +32,8 @@ export default class T77H extends Component {
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
let mval = `${obj.s1}/${obj.s2}//${obj.s3}`
this.props.onValue([obj, mval])
}
......@@ -98,7 +92,7 @@ export default class T77H extends Component {
</Col>
</Row>
</div>
)
}
......
......@@ -33,11 +33,11 @@ export default class T90A extends Component
});
let temp = FormatAmount(obj.s3);
let mval = ""
mval = `${obj.s1}${obj.s2}`
mval = `${obj.s1}//${obj.s2}`
if(obj.s4)
mval = mval +'/'+obj.s4
mval = mval+`${temp}`
mval = mval + `${temp}`
this.props.onValue([obj,mval])
}
......
......@@ -32,7 +32,7 @@ export default class T90B extends Component
obj['s'+i] = objtemp['s'+i]
});
let temp = FormatAmount(obj.s4);
let mval = `${obj.s1}${obj.s2}${obj.s3}${temp}`
let mval = `${obj.s1}//${obj.s2}/${obj.s3}${temp}`
this.props.onValue([obj,mval])
}
......
......@@ -31,7 +31,7 @@ export default class T90E extends Component
this.keys.forEach(i=>{
obj['s'+i] = objtemp['s'+i]
});
let mval = `${obj.s1}${obj.s2}`
let mval = `${obj.s1}//${obj.s2}`
this.props.onValue([obj,mval])
}
......
......@@ -36,7 +36,7 @@ export default class T98D extends Component
let mval = ""
mval = `${obj.s1}${obj.s2}`
if(obj.s3)
mval = mval +'/'+obj.s3
mval = mval +','+obj.s3
if(obj.s4)
mval = mval +'/'+obj.s4
this.props.onValue([obj,mval])
......
......@@ -36,7 +36,7 @@ export default class T98G extends Component
let mval = ""
mval = `${obj.s1}${obj.s2}`
if(obj.s3)
mval = mval +'/'+obj.s3
mval = mval +','+obj.s3
if(obj.s4)
mval = mval +'/'+obj.s4
this.props.onValue([obj,mval])
......
......@@ -36,7 +36,7 @@ export default class T98H extends Component
let mval = ""
mval = `${obj.s1}`
if(obj.s2)
mval = mval +'/'+obj.s2
mval = mval +','+obj.s2
if(obj.s3)
mval = mval +'/'+obj.s3
this.props.onValue([obj,mval])
......
......@@ -214,6 +214,26 @@ import T56J from './T56J'
import T86A from './T86A'
import T86D from './T86D'
import T86J from './T86J'
import T18A from './T18A'
import T33E from './T33E'
import T37L from './T37L';
import T23A from './T23A';
import T21B from './T21B';
import T14A from './T14A';
import T17A from './T17A';
import T37M from './T37M';
import T37N from './T37N';
import T32M from './T32M';
import T14F from './T14F';
import T37V from './T37V';
import T14J from './T14J';
import T38G from './T38G';
import T38H from './T38H';
import T14G from './T14G';
import T38E from './T38E';
import T30G from './T30G';
import T32U from './T32U';
import T22E from './T22E';
export default function(tag,props,onValue){
switch(tag)
......@@ -433,7 +453,26 @@ 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} />;
case "T18A" :return <T18A {...props} onValue={onValue} />;
case "T33E" :return <T33E {...props} onValue={onValue} />;
case "T37L" :return <T37L {...props} onValue={onValue} />;
case "T23A" :return <T23A {...props} onValue={onValue} />;
case "T21B" :return <T21B {...props} onValue={onValue} />;
case "T14A" :return <T14A {...props} onValue={onValue} />;
case "T17A" :return <T17A {...props} onValue={onValue} />;
case "T37M" :return <T37M {...props} onValue={onValue} />;
case "T37N" :return <T37N {...props} onValue={onValue} />;
case "T32M" :return <T32M {...props} onValue={onValue} />;
case "T14F" :return <T14F {...props} onValue={onValue} />;
case "T37V" :return <T37V {...props} onValue={onValue} />;
case "T14J" :return <T14J {...props} onValue={onValue} />;
case "T14G" :return <T14G {...props} onValue={onValue} />;
case "T38G" :return <T38G {...props} onValue={onValue} />;
case "T38H" :return <T38H {...props} onValue={onValue} />;
case "T38E" :return <T38E {...props} onValue={onValue} />;
case "T30G" :return <T30G {...props} onValue={onValue} />;
case "T32U" :return <T32U {...props} onValue={onValue} />;
case "T22E" :return <T22E {...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