非标保存
This commit is contained in:
parent
a3018da3fc
commit
a00451e076
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue