From 6b613696feba9812bbd5d0a616315a7ac326ea27 Mon Sep 17 00:00:00 2001 From: chenshaoxin <1981897232@qq.com> Date: Mon, 10 Mar 2025 18:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=99=88=E7=BB=8D=E9=91=AB?= =?UTF-8?q?=20=E6=97=B6=E9=97=B4=EF=BC=9A2025/03/10=20=2018=EF=BC=9A00=20?= =?UTF-8?q?=E5=86=85=E5=AE=B9=EF=BC=9A=E6=88=90=E6=9C=AC=E6=B5=8B=E7=AE=97?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../formplugin/RecosMeasurecosFormPlugin.java | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java b/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java index 090045d..85a96e8 100644 --- a/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java +++ b/main/java/shkd/repc/recos/formplugin/RecosMeasurecosFormPlugin.java @@ -9,6 +9,7 @@ import kd.bos.entity.EntityMetadataCache; import kd.bos.entity.MainEntityType; import kd.bos.entity.datamodel.IDataModel; import kd.bos.entity.plugin.Plugin; +import kd.bos.entity.property.ComboProp; import kd.bos.fileservice.FileItem; import kd.bos.fileservice.FileService; import kd.bos.fileservice.FileServiceFactory; @@ -140,10 +141,17 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl listvalue.add(dynamicObject.getString("entry_longnumber"));//科目编码 listvalue.add(dynamicObject.getString("entry_accountname"));//科目名称 listvalue.add(dynamicObject.getString("qeug_cwysfl"));//财务预算分类 - listvalue.add(dynamicObject.getString("entry_measureplanidx.name"));//估算口径 - DynamicObject entry_idxunit = dynamicObject.getDynamicObject("entry_idxunit"); +// listvalue.add(dynamicObject.getString("entry_measureplanidx.name"));//估算口径 + listvalue.add(dynamicObject.getString("qeug_combofield"));//估算口径 +// DynamicObject entry_idxunit = dynamicObject.getDynamicObject("entry_idxunit"); +// if (entry_idxunit!=null){ +// listvalue.add(dynamicObject.getDynamicObject("entry_idxunit").getString("name"));//单位 +// }else { +// listvalue.add(""); +// } + DynamicObject entry_idxunit = dynamicObject.getDynamicObject("qeug_entry_unit"); if (entry_idxunit!=null){ - listvalue.add(dynamicObject.getDynamicObject("entry_idxunit").getString("name"));//单位 + listvalue.add(dynamicObject.getDynamicObject("qeug_entry_unit").getString("name"));//单位 }else { listvalue.add(""); } @@ -564,13 +572,15 @@ public class RecosMeasurecosFormPlugin extends AbstractFormPlugin implements Upl sheetNameView.getModel().setValue("qeug_cwysfl",value.getQeug_cwysfl(),key);//财务预算分类 - DynamicObject measureidxexp = QueryServiceHelper.queryOne("recos_measureidxexp", "id,name,number", new QFilter("name", QCP.equals, value.getEntry_measureplanidx()).toArray()); - if (measureidxexp==null){ - sheetNameView.getModel().setValue("entry_measureplanidx",null,key); - }else { - DynamicObject recos_measureidxexp = BusinessDataServiceHelper.loadSingle(measureidxexp.getString("id"),"recos_measureidxexp"); - sheetNameView.getModel().setValue("entry_measureplanidx",recos_measureidxexp,key);//估算口径 - } +// DynamicObject measureidxexp = QueryServiceHelper.queryOne("recos_measureidxexp", "id,name,number", new QFilter("name", QCP.equals, value.getEntry_measureplanidx()).toArray()); +// if (measureidxexp==null){ +// sheetNameView.getModel().setValue("entry_measureplanidx",null,key); +// }else { +// DynamicObject recos_measureidxexp = BusinessDataServiceHelper.loadSingle(measureidxexp.getString("id"),"recos_measureidxexp"); +// sheetNameView.getModel().setValue("entry_measureplanidx",recos_measureidxexp,key);//估算口径 +// } + sheetNameView.getModel().setValue("qeug_combofield",value.getEntry_measureplanidx(),key);//估算口径 + String entry_workloadunit = value.getEntry_workloadunit(); DynamicObject unit = QueryServiceHelper.queryOne("bd_measureunits", "id,name,number", new QFilter("name", QCP.equals, entry_workloadunit).toArray());