From 50903445e11dcce641541c336754e94ffab89744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=B0=8F=E4=BC=9F?= Date: Tue, 15 Apr 2025 16:16:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=89=8D=E5=8D=95=E4=BB=B7=E5=8F=98?= =?UTF-8?q?=E5=8A=A8=20=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/InContractMeasurementBillEditPlugin.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); } + } }