Commit 66253206 authored by wei's avatar wei 🎱

提交审阅文档签审流程模板

parent dc6a2659
......@@ -467,4 +467,53 @@ public class Constants {
put("PotSupplierQuestion", "潜在供方调查表");
put("EngineeOther", "其他");
}};
/**
* 文档签审流程模板
*/
public static final Map<String, String> EXT_DOC_WF_MAP = new HashMap<String, String>() {{
put("PermitApplicat", "许可证申请");
put("SpecialProblemAnalysis", "专项问题分析");
put("SummaryReport", "试验总结报告");
put("ReviewQuestion", "评审问题回答");
put("DesignAtlas", "设计图册");
put("InstallAtlas", "安装图册");
put("TechnicalConditions", "技术条件");
put("AnalysisReport", "分析报告");
put("CalculBook", "计算书");
put("DesignDescript", "设计说明书");
put("AssemblyPartsDiagram", "总装部件图");
put("PrincipleDrawing", "原理图");
put("PartDrawing", "零件图");
put("LayoutDrawings", "布置图");
put("OtherTechnicalDoc", "其他技术文件");
put("TestFile", "试验文件");
put("ProcureDoc", "采购文件");
put("NodeAuditFile", "节点审核文件");
put("NodeFileSupportMaterial", "节点文件支撑材料");
put("DesignParameters", "设计参数汇总");
put("SpecialDesignGuide", "专项设计准则及规范");
put("AnalysisDesign", "通用质量特性分析设计");
put("EngineerConditions", "工程通用技术条件");
put("DeviceRating", "设备分级");
put("PumpGenericFile", "泵阀通用文件");
put("DesignCatalog", "设计文件目录");
put("Regulations", "采用的法规或导则或标准清单");
put("EquipmentMaterials", "设备材料清单");
put("RootTSM", "技术状态管理");
put("ClosedLoopMatters", "闭环跟进事项");
put("ContractReview", "合同评审");
put("SoftwareManage", "软件管理");
put("RiskManage", "风险管理");
put("DesignInput", "设计输入");
put("StandardManage", "标准化管理");
put("DesignPlanning", "设计策划");
put("DocNumRegulate", "文件或图纸编号规定");
put("TmpTSM", "技术状态管理");
put("DocPreRegulate", "文件或图纸编制规定");
put("DesignDocRegulate", "设计文件管理规定");
put("DesignClarify", "设计澄清和更改");
put("DesignReview", "设计评审和确认");
put("DesignInterface", "设计接口");
}};
}
......@@ -76,7 +76,7 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
@Override
public void beforeUpdate(Collection<V> target, Collection<V> origin) {
for (V v : target) {
documentEvent.updateDocListener(v);
//documentEvent.updateDocListener(v);
}
}
......@@ -97,7 +97,12 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
if (!dxDocumentVO.getState().equals(Constants.EDIT)) {
throw new DxBusinessException("500", "该对象不是编制状态");
}
wfcProcessFeign.startProcessByKey(EXT_DOC_WF, dxDocumentVO);
String subTypeName = dxDocumentVO.getSubTypeName();
String processDefKey = "";
if (Constants.EXT_DOC_WF_MAP.containsKey(subTypeName)) {
processDefKey = EXT_DOC_WF;
}
wfcProcessFeign.startProcessByKey(processDefKey, dxDocumentVO);
return this.changeStatus(dxDocumentVO.getId(), Constants.SUBMIT_REVIEWING, true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment