From 7fa6b622b5bc1d1825e824a24f3c5f5c4acb70ac Mon Sep 17 00:00:00 2001 From: weiyunlong Date: Wed, 4 Dec 2024 18:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E7=94=BB=E5=83=8F=E6=98=BE=E7=A4=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ControlFieldOnBizTypePlugin.java | 8 ++++---- .../formplugin/PortraitBasicsFormPlugin.java | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/main/java/shkd/repc/rebm/formplugin/ControlFieldOnBizTypePlugin.java b/main/java/shkd/repc/rebm/formplugin/ControlFieldOnBizTypePlugin.java index 0cdd6c2..4ed95ca 100644 --- a/main/java/shkd/repc/rebm/formplugin/ControlFieldOnBizTypePlugin.java +++ b/main/java/shkd/repc/rebm/formplugin/ControlFieldOnBizTypePlugin.java @@ -16,8 +16,8 @@ import java.util.EventObject; public class ControlFieldOnBizTypePlugin extends AbstractBillPlugIn implements Plugin { /* - * 采购需求单-根据业务类型控制字段和容器显隐 - * */ + * 采购需求单-根据业务类型控制字段和容器显隐 + * */ @Override public void afterBindData(EventObject e) { @@ -48,8 +48,8 @@ public class ControlFieldOnBizTypePlugin extends AbstractBillPlugIn implements P Object newValue = changeData.getNewValue(); IFormView view = this.getView(); view.setVisible(false, "qeug_renovation_proj", "qeug_renovation_pur", "qeug_renovation_scop", "qeug_renovation_type", - "qeug_softdecoration", "qeug_emt_bp", "qeug_proj_budget", "qeug_soft_budget", "qeug_purchase_type", - "qeug_applyamount", "qeug_outline", "advconap"); + "qeug_softdecoration", "qeug_emt_bp", "qeug_proj_budget", "qeug_soft_budget", "qeug_purchase_type", + "qeug_applyamount", "qeug_outline", "advconap"); if (newValue != null) { DynamicObject bizType = (DynamicObject) newValue; diff --git a/main/java/shkd/repc/resm/formplugin/PortraitBasicsFormPlugin.java b/main/java/shkd/repc/resm/formplugin/PortraitBasicsFormPlugin.java index 7624fab..311467f 100644 --- a/main/java/shkd/repc/resm/formplugin/PortraitBasicsFormPlugin.java +++ b/main/java/shkd/repc/resm/formplugin/PortraitBasicsFormPlugin.java @@ -6,6 +6,7 @@ import kd.bos.orm.query.QCP; import kd.bos.orm.query.QFilter; import kd.bos.servicehelper.BusinessDataServiceHelper; +import java.util.Date; import java.util.EventObject; /** @@ -30,6 +31,12 @@ public class PortraitBasicsFormPlugin extends AbstractFormPlugin { String qeug_regstatuses = supplier1.getString("qeug_regstatuses");//经营状态 String qeug_linkman = supplier1.getString("qeug_linkman");//外部联系人 String qeug_recommender = supplier1.getString("qeug_recommender");//内部推荐人 + String qeug_state = supplier1.getString("qeug_state");//供应商状态 + String qeug_purtext = supplier1.getString("qeug_purtext");//采购说明 + String qeug_purpose = supplier1.getString("qeug_purpose");//用途 + String qeug_source = supplier1.getString("qeug_source");//供应商来源 + Date qeug_begin = supplier1.getDate("qeug_begin");//营业期限(起始) + Date qeug_end = supplier1.getDate("qeug_end");//营业期限(终止) this.getView().getModel().setValue("qeug_controllingperson", qeug_controllingperses); @@ -38,12 +45,24 @@ public class PortraitBasicsFormPlugin extends AbstractFormPlugin { this.getView().getModel().setValue("qeug_regstatus", qeug_regstatuses); this.getView().getModel().setValue("qeug_linkman", qeug_linkman); this.getView().getModel().setValue("qeug_recommender", qeug_recommender); + this.getView().getModel().setValue("qeug_states", qeug_state); + this.getView().getModel().setValue("qeug_purtext", qeug_purtext); + this.getView().getModel().setValue("qeug_purpose", qeug_purpose); + this.getView().getModel().setValue("qeug_source", qeug_source); + this.getView().getModel().setValue("qeug_begin", qeug_begin); + this.getView().getModel().setValue("qeug_end", qeug_end); this.getView().updateView("qeug_controllingperson"); this.getView().updateView("qeug_regnumber"); this.getView().updateView("qeug_orgnumber"); this.getView().updateView("qeug_regstatus"); this.getView().updateView("qeug_linkman"); this.getView().updateView("qeug_recommender"); + this.getView().updateView("qeug_states"); + this.getView().updateView("qeug_purtext"); + this.getView().updateView("qeug_purpose"); + this.getView().updateView("qeug_source"); + this.getView().updateView("qeug_begin"); + this.getView().updateView("qeug_end"); // this.getView().updateView(); }