diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/InContractMeasurementBillEditPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/InContractMeasurementBillEditPlugin.java index dab9969..7d05fbe 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/InContractMeasurementBillEditPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/InContractMeasurementBillEditPlugin.java @@ -4,9 +4,13 @@ import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObjectCollection; import kd.bos.dataentity.resource.ResManager; import kd.bos.dataentity.utils.StringUtils; +import kd.bos.entity.MainEntityType; import kd.bos.entity.datamodel.events.ChangeData; import kd.bos.entity.datamodel.events.PropertyChangedArgs; +import kd.bos.entity.property.DecimalProp; +import kd.bos.form.ClientProperties; import kd.bos.form.CloseCallBack; +import kd.bos.form.IClientViewProxy; import kd.bos.form.ShowFormHelper; import kd.bos.form.control.Control; import kd.bos.form.field.TextEdit; @@ -192,6 +196,9 @@ public class InContractMeasurementBillEditPlugin extends InContractMeasureBillEd BigDecimal oldValue = (BigDecimal)changeData.getOldValue(); if(oldValue.compareTo(new BigDecimal(0)) == 0){return;} + + + BigDecimal thisqty = (BigDecimal)this.getModel().getValue("thisqty", rowIndex, parentRowIndex);//本期计量数量 BigDecimal thisoftaxmount =(BigDecimal) this.getModel().getValue("thisoftaxmount", rowIndex, parentRowIndex);//本期计量含税金额 BigDecimal totalqty =(BigDecimal) this.getModel().getValue("totalqty", rowIndex, parentRowIndex);//数量 @@ -219,9 +226,10 @@ public class InContractMeasurementBillEditPlugin extends InContractMeasureBillEd // this.getModel().setValue("currenttaxamt",curtaxprice.multiply(totalqty).subtract(currentprice.multiply(totalqty)),rowIndex, parentRowIndex); // this.getModel().setValue("currentoftax",curtaxprice.multiply(totalqty),rowIndex, parentRowIndex); this.getView().updateView(); + PriceChangedWarn(oldPrice,currentprice,rowIndex, parentRowIndex); } // String resname = (String)this.getModel().getValue("resname", rowIndex, parentRowIndex); - PriceChangedWarn(oldPrice,currentprice,rowIndex, parentRowIndex); +// PriceChangedWarn(oldPrice,currentprice,rowIndex, parentRowIndex); } } @@ -239,6 +247,7 @@ public class InContractMeasurementBillEditPlugin extends InContractMeasureBillEd descEdit.setMustInput(true); } + } }