Compare commits

...

2 Commits

Author SHA1 Message Date
xiaoshi 718f345f16 优化代码 2024-12-14 17:06:07 +08:00
xiaoshi ad571b823a 优化代码 2024-12-14 17:00:37 +08:00
2 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
this.getView().setVisible(true, new String[]{"flexpanelturnover"});
this.getView().setVisible(false, new String[]{"flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelmaterial","flexpanelother"});
}else{
this.getView().setVisible(false, new String[]{"flexpanelturnover","flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelmaterial","flexpanelother"});
this.getView().setVisible(true, new String[]{"flexpanelturnover","flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelmaterial","flexpanelother"});
}
}
}

View File

@ -24,7 +24,8 @@ public class DynamicSetPMApprovalFlowPlugin implements IWorkflowPlugin {
// 获取单据体中的经理字段将用户设置为当前单据的当前节点的审批人
DynamicObject obj = BusinessDataServiceHelper.loadSingle(pkId, entityNumber);
DynamicObject project = obj.getDynamicObject("project");
DynamicObject zcgjManger = project.getDynamicObject("zcgj_pm");
DynamicObject projectInfo = BusinessDataServiceHelper.loadSingle(project.getLong("id"), "ec_project");
DynamicObject zcgjManger = projectInfo.getDynamicObject("zcgj_pm");
long userId = zcgjManger.getLong("id");
ApproversIdList.add(userId);
// 返回审批人的id集合