|
@@ -13,6 +13,7 @@ import com.jeeplus.modules.sg.managementcenter.activiti.service.ConstructionServ
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.service.DiscloseService;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.service.DiscloseService;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.service.ProcessPersonnelService;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.service.ProcessPersonnelService;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.utils.MyActiviUtils;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.utils.MyActiviUtils;
|
|
|
|
+import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
|
|
import org.activiti.bpmn.model.BpmnModel;
|
|
import org.activiti.bpmn.model.BpmnModel;
|
|
import org.activiti.engine.FormService;
|
|
import org.activiti.engine.FormService;
|
|
import org.activiti.engine.HistoryService;
|
|
import org.activiti.engine.HistoryService;
|
|
@@ -1139,7 +1140,8 @@ public class ActTaskService extends BaseService {
|
|
// 提交流程任务
|
|
// 提交流程任务
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
vars.put("pass", "yes".equals(act.getFlag())? true : false);
|
|
vars.put("pass", "yes".equals(act.getFlag())? true : false);
|
|
- vars.put("processer","项目经理");
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("processer",user.getProjectManageRole());
|
|
complete(act.getTaskId(), act.getProcInsId(), act.getComment(), vars);
|
|
complete(act.getTaskId(), act.getProcInsId(), act.getComment(), vars);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1153,7 +1155,7 @@ public class ActTaskService extends BaseService {
|
|
* pass1 = 设计变更
|
|
* pass1 = 设计变更
|
|
* pass2 = 项目关闭
|
|
* pass2 = 项目关闭
|
|
* pass3 = 政策处理(城区道路)
|
|
* pass3 = 政策处理(城区道路)
|
|
- * pass4 = 完成施工交底
|
|
|
|
|
|
+ * pass4 = 驳回施工单位
|
|
* pass5 = 政策处理(农场/民事)
|
|
* pass5 = 政策处理(农场/民事)
|
|
* */
|
|
* */
|
|
boolean pass1 = false;
|
|
boolean pass1 = false;
|
|
@@ -1200,19 +1202,23 @@ public class ActTaskService extends BaseService {
|
|
} else {
|
|
} else {
|
|
if (pass1 == true) {
|
|
if (pass1 == true) {
|
|
vars.put("pass1", true);
|
|
vars.put("pass1", true);
|
|
- vars.put("design", "运行人员");
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("design", user.getRunUnitRole());
|
|
}
|
|
}
|
|
if (pass2 == true) {
|
|
if (pass2 == true) {
|
|
vars.put("pass2", true);
|
|
vars.put("pass2", true);
|
|
- vars.put("itemClose", "专职");
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("itemClose", user.getDistributionEngineering());
|
|
}
|
|
}
|
|
if (pass3 == true) {
|
|
if (pass3 == true) {
|
|
vars.put("pass3", true);
|
|
vars.put("pass3", true);
|
|
- vars.put("coveredPerson", "施工单位");
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("coveredPerson", user.getConstructionUnitRole());
|
|
}
|
|
}
|
|
if (pass5 == true) {
|
|
if (pass5 == true) {
|
|
vars.put("pass5", true);
|
|
vars.put("pass5", true);
|
|
- vars.put("policy", "政策处理");
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("policy", user.getDistributionPolicy());
|
|
}
|
|
}
|
|
vars.put("pass", true);
|
|
vars.put("pass", true);
|
|
act.setComment("[存在问题]" + act.getComment());
|
|
act.setComment("[存在问题]" + act.getComment());
|
|
@@ -1444,7 +1450,8 @@ public class ActTaskService extends BaseService {
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
String flag = act.getFlag();
|
|
String flag = act.getFlag();
|
|
if ("yes".equals(flag)) {
|
|
if ("yes".equals(flag)) {
|
|
- vars.put("operators", fullName);
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("operators", user.getRunUnitRole());
|
|
} else {
|
|
} else {
|
|
//驳回到项目经理人工判断问题
|
|
//驳回到项目经理人工判断问题
|
|
String manager2 = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:项目经理人工判断问题");
|
|
String manager2 = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:项目经理人工判断问题");
|
|
@@ -1494,7 +1501,8 @@ public class ActTaskService extends BaseService {
|
|
// 提交流程任务
|
|
// 提交流程任务
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
if ("yes".equals(flag)) {
|
|
if ("yes".equals(flag)) {
|
|
- vars.put("systemfulltime", fullTime);
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("systemfulltime", user.getDistributionSystem());
|
|
} else {
|
|
} else {
|
|
String itemClose = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:判断项目是否需要关闭");
|
|
String itemClose = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:判断项目是否需要关闭");
|
|
vars.put("itemClose",itemClose );
|
|
vars.put("itemClose",itemClose );
|
|
@@ -1517,17 +1525,18 @@ public class ActTaskService extends BaseService {
|
|
vars.put("pass3", false);
|
|
vars.put("pass3", false);
|
|
vars.put("reject", false);
|
|
vars.put("reject", false);
|
|
String flag = act.getFlag();
|
|
String flag = act.getFlag();
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
if ("pass3".equals(flag)) {
|
|
if ("pass3".equals(flag)) {
|
|
vars.put("pass3", true);
|
|
vars.put("pass3", true);
|
|
vars.put("policy", UserUtils.getUser().getLoginName());
|
|
vars.put("policy", UserUtils.getUser().getLoginName());
|
|
act.setComment("[通过]"+act.getComment());
|
|
act.setComment("[通过]"+act.getComment());
|
|
} else if ("pass1".equals(flag)) {
|
|
} else if ("pass1".equals(flag)) {
|
|
vars.put("pass1", true);
|
|
vars.put("pass1", true);
|
|
- vars.put("design", "运行人员");
|
|
|
|
|
|
+ vars.put("design", user.getRunUnitRole());
|
|
act.setComment("[设计变更]"+act.getComment());
|
|
act.setComment("[设计变更]"+act.getComment());
|
|
} else if ("pass2".equals(flag)) {
|
|
} else if ("pass2".equals(flag)) {
|
|
vars.put("pass2", true);
|
|
vars.put("pass2", true);
|
|
- vars.put("itemClose", "专职");
|
|
|
|
|
|
+ vars.put("itemClose", user.getDistributionEngineering());
|
|
act.setComment("[项目关闭]"+act.getComment());
|
|
act.setComment("[项目关闭]"+act.getComment());
|
|
} else if ("reject".equals(flag)) {
|
|
} else if ("reject".equals(flag)) {
|
|
vars.put("reject", true);
|
|
vars.put("reject", true);
|
|
@@ -1535,10 +1544,8 @@ public class ActTaskService extends BaseService {
|
|
String manager = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:项目经理组织交底");
|
|
String manager = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:项目经理组织交底");
|
|
if (manager2!=null&&manager2!="") {
|
|
if (manager2!=null&&manager2!="") {
|
|
vars.put("policy",manager2);
|
|
vars.put("policy",manager2);
|
|
- System.out.println(manager2);
|
|
|
|
}else if (manager!=null&&manager!="") {
|
|
}else if (manager!=null&&manager!="") {
|
|
vars.put("policy",manager);
|
|
vars.put("policy",manager);
|
|
- System.out.println(manager);
|
|
|
|
}
|
|
}
|
|
act.setComment("[驳回]"+act.getComment());
|
|
act.setComment("[驳回]"+act.getComment());
|
|
}
|
|
}
|
|
@@ -1717,7 +1724,8 @@ public class ActTaskService extends BaseService {
|
|
vars.put("sealYes", false);
|
|
vars.put("sealYes", false);
|
|
vars.put("sealNo", false);
|
|
vars.put("sealNo", false);
|
|
if ("yes".equals(flag)) {
|
|
if ("yes".equals(flag)) {
|
|
- vars.put("sealPerson",fullName);
|
|
|
|
|
|
+ Project user = MyActiviUtils.findUser(act.getProcInsId());
|
|
|
|
+ vars.put("sealPerson",user.getDistributionPolicy());
|
|
act.setComment("[没有问题]"+act.getComment());
|
|
act.setComment("[没有问题]"+act.getComment());
|
|
vars.put("sealYes", true);
|
|
vars.put("sealYes", true);
|
|
} else {
|
|
} else {
|
|
@@ -1725,10 +1733,8 @@ public class ActTaskService extends BaseService {
|
|
String manager = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:项目经理组织交底");
|
|
String manager = MyActiviUtils.findHistoryActivity(act.getProcInsId(), "交底:项目经理组织交底");
|
|
if (manager2!=null&&manager2!="") {
|
|
if (manager2!=null&&manager2!="") {
|
|
vars.put("phasePerson",manager2);
|
|
vars.put("phasePerson",manager2);
|
|
- System.out.println(manager2);
|
|
|
|
}else if (manager!=null&&manager!="") {
|
|
}else if (manager!=null&&manager!="") {
|
|
vars.put("phasePerson",manager);
|
|
vars.put("phasePerson",manager);
|
|
- System.out.println(manager);
|
|
|
|
}
|
|
}
|
|
act.setComment("[驳回]" + act.getComment());
|
|
act.setComment("[驳回]" + act.getComment());
|
|
vars.put("sealNo", true);
|
|
vars.put("sealNo", true);
|
|
@@ -1782,7 +1788,7 @@ public class ActTaskService extends BaseService {
|
|
act.setComment("[重新发起]"+act.getComment());
|
|
act.setComment("[重新发起]"+act.getComment());
|
|
vars.put("phaseYes", true);
|
|
vars.put("phaseYes", true);
|
|
} else {
|
|
} else {
|
|
- act.setComment("[驳回]" + act.getComment());
|
|
|
|
|
|
+ act.setComment("[无需发起,结束流程]" + act.getComment());
|
|
vars.put("phaseNo", true);
|
|
vars.put("phaseNo", true);
|
|
}
|
|
}
|
|
// 设置意见
|
|
// 设置意见
|