非标保存

This commit is contained in:
李贵强 2025-02-26 12:39:19 +08:00
parent a3018da3fc
commit a00451e076
1 changed files with 9 additions and 4 deletions

View File

@ -174,10 +174,15 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic
DynamicObjectCollection collections = productParent.get(i).getDynamicObjectCollection(SUB_ENTRY);
//先清空计入估算表数值再赋值触发保存
for (int j = 0; j < collections.size(); j++) {
this.getModel().setValue("qeug_jrgsbsz", BigDecimal.ZERO, j, i);
BigDecimal hjs = collections.get(j).getBigDecimal("qeug_hjs");
BigDecimal tzz = collections.get(j).getBigDecimal("qeug_tzz");
this.getModel().setValue("qeug_jrgsbsz", hjs.add(tzz), j, i);
if (collections.get(j).getString("qeug_fl").equals("非标")){
this.getModel().setValue("qeug_jrgsbsz", BigDecimal.ONE, j, i);
this.getModel().setValue("qeug_jrgsbsz", BigDecimal.ZERO, j, i);
}else {
this.getModel().setValue("qeug_jrgsbsz", BigDecimal.ZERO, j, i);
BigDecimal hjs = collections.get(j).getBigDecimal("qeug_hjs");
BigDecimal tzz = collections.get(j).getBigDecimal("qeug_tzz");
this.getModel().setValue("qeug_jrgsbsz", hjs.add(tzz), j, i);
}
}
}
this.getView().addClientCallBack("auto_save", 0);