fix:
1.回填时,只能将信保年度的第一行回填到单据中
This commit is contained in:
parent
813c72a5db
commit
78f3330522
@ -154,7 +154,8 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
parentModel.setValue("yem_sinosurerate_cd", subMap.get("yem_sinosurerate_cd"));
|
||||
parentModel.setValue("yem_term_cd", subMap.get("yem_term_cd"));
|
||||
|
||||
parentModel.setValue("yem_year_e", subMap.get("year"));
|
||||
// parentModel.setValue("yem_year_e", subMap.get("year"));
|
||||
dynamicObject.set("yem_year_e", subMap.get("year"));
|
||||
parentModel.setValue("yem_creditstatus_e", subMap.get("creditstatus"));
|
||||
|
||||
parentModel.setValue("yem_insuranceamt_cd", subMap.get("yem_premium"));//保险费
|
||||
@ -303,7 +304,7 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
BigDecimal actualsinkamt = (BigDecimal) map.get("actulPreAmt");
|
||||
dynamicObject.set("yem_amountowed", paymentamt1Cd.subtract(actualsinkamt).abs());
|
||||
|
||||
dynamicObject.set("yem_year_e", map.get("year"));
|
||||
// dynamicObject.set("yem_year_e", map.get("year"));
|
||||
dynamicObject.set("yem_creditstatus_e", map.get("creditstatus"));
|
||||
|
||||
dynamicObject.set("yem_premium", map.get("yem_premium"));
|
||||
@ -398,7 +399,6 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
IDataModel parentmodel = parentView.getModel();
|
||||
DynamicObject parentdataEntity = parentmodel.getDataEntity(true);
|
||||
DynamicObjectCollection parentCreditEntry = parentdataEntity.getDynamicObjectCollection("yem_creditdetail");
|
||||
|
||||
for (DynamicObject dynamicObject : thisCreditEntry) {
|
||||
int index = thisCreditEntry.indexOf(dynamicObject);
|
||||
DynamicObjectCollection subCollection = dynamicObject.getDynamicObjectCollection("yem_crecollection");
|
||||
@ -420,7 +420,6 @@ public class CreditBackFillEdit extends AbstractFormPlugin {
|
||||
parentAddNer.set("yem_crecollecamt", crecollection.getBigDecimal("yem_crecollecamt"));//收款金额
|
||||
}
|
||||
}
|
||||
|
||||
BigDecimal creactualamt = BigDecimal.ZERO;// 实际收汇金额
|
||||
BigDecimal creactuallocamt = BigDecimal.ZERO;// 实际收汇金额本位币
|
||||
for (DynamicObject parentSubObject : parentSubCollection) {
|
||||
|
Loading…
Reference in New Issue
Block a user