From 006a7f0293e88420cebb6264def0b92aac4de16c Mon Sep 17 00:00:00 2001 From: ggxl <194689125@qq.com> Date: Sat, 30 Nov 2024 17:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E9=87=8F=E5=92=8C?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java b/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java index 001d9fd..30dab24 100644 --- a/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java +++ b/main/java/shkd/repc/rebm/formplugin/ImportPurchaseApplyBillPlugin.java @@ -221,8 +221,10 @@ public class ImportPurchaseApplyBillPlugin extends AbstractBillPlugIn implements if (entryIds.contains(entryId)) { int index = model.createNewEntryRow("projectentry"); model.setValue("qeug_purentry_id", entryId, index); - model.setValue("purentrycontent", entry.get("qeug_materialname"), index); - DynamicObject project = entry.getDynamicObject("qeug_project"); + model.setValue("purentrycontent", entry.get("qeug_materialname"), index);// 物料名称 + model.setValue("qeug_qty", entry.get("qeug_qty"), index);// 数量 + model.setValue("qeug_unit", entry.get("qeug_unit"), index);// 单位 + DynamicObject project = entry.getDynamicObject("qeug_project");// 项目 if (project != null) { QFilter projectQF = new QFilter("number", QCP.equals, project.getString("number")); DynamicObject purproject = BusinessDataServiceHelper.loadSingle("rebm_purproject", projectQF.toArray());