parent
80134d3518
commit
26e848f83b
|
@ -15,9 +15,8 @@ public class inputBondEntryDataPlugin extends AbstractBillPlugIn implements Plug
|
||||||
public void propertyChanged(PropertyChangedArgs e) {
|
public void propertyChanged(PropertyChangedArgs e) {
|
||||||
String name = e.getProperty().getName();
|
String name = e.getProperty().getName();
|
||||||
int rowIndex = e.getChangeSet()[0].getRowIndex();
|
int rowIndex = e.getChangeSet()[0].getRowIndex();
|
||||||
DynamicObject dataEntity = this.getModel().getDataEntity(true);
|
|
||||||
if("shkd_entrybillno".equals(name)) {
|
if("shkd_entrybillno".equals(name)) {
|
||||||
DynamicObject shkdEntrybillno = (DynamicObject)dataEntity.get("shkd_entrybillno");
|
DynamicObject shkdEntrybillno = (DynamicObject) this.getView().getModel().getValue("shkd_entrybillno");
|
||||||
DynamicObject cfm_loanbill_bond = BusinessDataServiceHelper.loadSingle(shkdEntrybillno.get("id"), "cfm_loanbill_bond");
|
DynamicObject cfm_loanbill_bond = BusinessDataServiceHelper.loadSingle(shkdEntrybillno.get("id"), "cfm_loanbill_bond");
|
||||||
//债券发行人
|
//债券发行人
|
||||||
this.getModel().setValue("shkd_entryorg", cfm_loanbill_bond.get("org"),rowIndex);
|
this.getModel().setValue("shkd_entryorg", cfm_loanbill_bond.get("org"),rowIndex);
|
||||||
|
@ -32,7 +31,7 @@ public class inputBondEntryDataPlugin extends AbstractBillPlugIn implements Plug
|
||||||
|
|
||||||
}
|
}
|
||||||
if("shkd_entrycontractnum".equals(name)) {
|
if("shkd_entrycontractnum".equals(name)) {
|
||||||
DynamicObject shkd_entrycontractnum = (DynamicObject)dataEntity.get("shkd_entrycontractnum");
|
DynamicObject shkd_entrycontractnum = (DynamicObject) this.getView().getModel().getValue("shkd_entrycontractnum");
|
||||||
DynamicObject cfm_loancontractbill = BusinessDataServiceHelper.loadSingle(shkd_entrycontractnum.get("id"), "cfm_loancontractbill");
|
DynamicObject cfm_loancontractbill = BusinessDataServiceHelper.loadSingle(shkd_entrycontractnum.get("id"), "cfm_loancontractbill");
|
||||||
//借款金额
|
//借款金额
|
||||||
this.getModel().setValue("shkd_borrowamount", cfm_loancontractbill.get("amount"),rowIndex);
|
this.getModel().setValue("shkd_borrowamount", cfm_loancontractbill.get("amount"),rowIndex);
|
||||||
|
|
Loading…
Reference in New Issue