diff --git a/main/java/shkd/repc/recos/formplugin/MeasureciFormPlugin.java b/main/java/shkd/repc/recos/formplugin/MeasureciFormPlugin.java index a91e862..570ce88 100644 --- a/main/java/shkd/repc/recos/formplugin/MeasureciFormPlugin.java +++ b/main/java/shkd/repc/recos/formplugin/MeasureciFormPlugin.java @@ -33,11 +33,12 @@ public class MeasureciFormPlugin extends AbstractFormPlugin { DynamicObjectCollection productentry = repmd_projectbill.getDynamicObjectCollection("productentry");//获取对应产品 List children = productentry .stream().filter(e -> e.getDynamicObject("productentry_producttype").getString("id").equals(producttypeid.toString())).collect(Collectors.toList()); DynamicObjectCollection qeug_entryentity = children.get(0).getDynamicObjectCollection("qeug_subentryentity");//子单据体 - Map result = new HashMap<>(); + Map result = new HashMap<>(); for (int i = 0; i { + BigDecimal sum = (BigDecimal) ((Object[]) value)[0]; // 获取工程量基数 + String remark = (String) ((Object[]) value)[1]; // 获取备注 + for (DynamicObject dynamicObject : myList) { if (dynamicObject.getString("entry_accountname").equals(key)){ -// this.getModel().setValue("entry_workload",value,(int)dynamicObject.get("seq")-1);//工程量 - this.getModel().setValue("qeug_gcljs",value,(int)dynamicObject.get("seq")-1);//工程量基数 + //设置工程量基数 + this.getModel().setValue("qeug_gcljs",sum,(int)dynamicObject.get("seq")-1); + // 设置说明 + this.getModel().setValue("entry_description", remark, (int) dynamicObject.get("seq") - 1); } } });