From d26d5dcc7bd955ac423540158727494b33905377 Mon Sep 17 00:00:00 2001 From: ljw Date: Fri, 6 Dec 2024 16:41:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.=E5=8F=96=E6=B6=88=E6=94=B6=E6=AC=BE?= =?UTF-8?q?=E5=8D=95=E6=89=93=E5=BC=80=E8=A7=86=E5=9B=BE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BA=E6=A0=87=E5=87=86=E6=94=B6=E6=AC=BE=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wm/fm/gathering/from/GatheringEcit.java | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/yem/wm/fm/gathering/from/GatheringEcit.java b/src/main/java/com/yem/wm/fm/gathering/from/GatheringEcit.java index 8c633c40..91b1ce4c 100644 --- a/src/main/java/com/yem/wm/fm/gathering/from/GatheringEcit.java +++ b/src/main/java/com/yem/wm/fm/gathering/from/GatheringEcit.java @@ -28,7 +28,6 @@ import kd.bos.form.field.RefBillEdit; import kd.bos.form.field.events.BeforeF7SelectEvent; import kd.bos.form.field.events.BeforeF7SelectListener; import kd.bos.form.operate.AbstractOperate; -import kd.bos.mvc.bill.BillView; import kd.bos.orm.query.QCP; import kd.bos.orm.query.QFilter; import kd.bos.servicehelper.BusinessDataServiceHelper; @@ -410,21 +409,21 @@ public class GatheringEcit extends AbstractBillPlugIn implements BeforeF7SelectL * @Description 根据布局给单据类型 */ public void setBillType() { - IFormView view = this.getView(); - IDataModel model = this.getModel(); - FormShowParameter fsp = this.getView().getFormShowParameter(); - OperationStatus status = fsp.getStatus(); - String key = ((BillView) this.getView()).getRootControl().getKey(); - QFilter qFilter = null; - if (OperationStatus.ADDNEW == status) { - if (key.equals("yem_gathering_cw")) { - qFilter = new QFilter("number", QCP.equals, "yem_gathering_BJ"); - } - if (qFilter != null) { - DynamicObject billType = BusinessDataServiceHelper.loadSingle("bos_billtype", "id", qFilter.toArray()); - model.setValue("yem_billtype", billType); - } - } +// IFormView view = this.getView(); +// IDataModel model = this.getModel(); +// FormShowParameter fsp = this.getView().getFormShowParameter(); +// OperationStatus status = fsp.getStatus(); +// String key = ((BillView) this.getView()).getRootControl().getKey(); +// QFilter qFilter = null; +// if (OperationStatus.ADDNEW == status) { +// if (key.equals("yem_gathering_cw")) { +// qFilter = new QFilter("number", QCP.equals, "yem_gathering_BJ"); +// } +// if (qFilter != null) { +// DynamicObject billType = BusinessDataServiceHelper.loadSingle("bos_billtype", "id", qFilter.toArray()); +// model.setValue("yem_billtype", billType); +// } +// } } /**