From 4a57b0f90a0c20ed5f826922ecd7755fab75e35a Mon Sep 17 00:00:00 2001 From: ljw Date: Mon, 4 Nov 2024 19:57:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.=E5=8F=91=E8=BF=90=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E5=8D=95=E5=88=A0=E9=99=A4=E8=A1=8C=E6=95=88?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../es/shippingdetails/form/ShippingDetailsFormPlugin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yem/wm/es/shippingdetails/form/ShippingDetailsFormPlugin.java b/src/main/java/com/yem/wm/es/shippingdetails/form/ShippingDetailsFormPlugin.java index 23831453..f1e483c8 100644 --- a/src/main/java/com/yem/wm/es/shippingdetails/form/ShippingDetailsFormPlugin.java +++ b/src/main/java/com/yem/wm/es/shippingdetails/form/ShippingDetailsFormPlugin.java @@ -399,14 +399,15 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef super.beforeDeleteRow(e); String name = e.getEntryProp().getName(); int[] rowIndexs = e.getRowIndexs(); - if ("yem_es_materialinfo".equals(name)){ + String string = this.getModel().getDataEntityType().getName(); + if ("yem_es_materialinfo".equals(name)&&"yem_xshippingdetails".equals(string)){ for (int rowIndex : rowIndexs) { BigDecimal yemStorageqty = (BigDecimal)this.getModel().getValue("yem_storageqty", rowIndex); BigDecimal yemDeliveryqty = (BigDecimal) this.getModel().getValue("yem_deliveryqty", rowIndex); BigDecimal yemTradeappqty = (BigDecimal)this.getModel().getValue("yem_tradeappqty", rowIndex); if (yemStorageqty.compareTo(BigDecimal.ZERO)>0||yemDeliveryqty.compareTo(BigDecimal.ZERO)>0||yemTradeappqty.compareTo(BigDecimal.ZERO)>0){ this.getView().showMessage("删除单已存在下游单,不允许删除!!!"); - e.setCancel(false); + e.setCancel(true); } } }