示例#1
0
 // 审核
 public String auditTechReport() {
   String id = ((String[]) formMap.get("id"))[0] + "";
   String workflowId = ((String[]) formMap.get("workflowId"))[0] + ""; // 存放workflowid
   String ifBackFlag = ((String[]) formMap.get("ifBackFlag"))[0] + "";
   String checkContent = ((String[]) formMap.get("checkContent"))[0] + "";
   if (ifBackFlag.equals("1")) {
     TechReptDef instance = techReptDefService.get(Long.parseLong(id));
     // 更新审核人
     List<ReptTechDtl> reptTechDtls = instance.getReptTechDtl();
     for (int i = 0; i < reptTechDtls.size(); i++) {
       ReptTechDtl rtd = reptTechDtls.get(i);
       rtd.setGovernor(getCurUser().getName());
     }
     techReptDefService.save(instance);
     if (checkContent == null) {
       checkContent = "批准审核";
     }
     workFlowService.endTaskInstance(
         Long.parseLong(workflowId), getCurUser().getName(), checkContent);
   } else {
     if (checkContent == null) {
       checkContent = "驳回审核";
     }
     workFlowService.endTaskInstance(Long.parseLong(workflowId), "驳回", getCurUser(), checkContent);
   }
   return "backToTop";
 }
示例#2
0
 // 初始填报
 public String submitTechReport() {
   // 添加更新时间和更新人
   String id = ((String[]) formMap.get("id"))[0] + "";
   TechReptDef instance = techReptDefService.get(Long.parseLong(id));
   instance.setReptFlag(true);
   techReptDefService.save(instance);
   startWorkFlow(instance);
   return "backToTop";
 }