|
@@ -19,12 +19,14 @@ import com.jeeplus.modules.sg.audit.information.utils.ResponseUtil;
|
|
import com.jeeplus.modules.sg.financial.erpcredit.util.ExportUtil;
|
|
import com.jeeplus.modules.sg.financial.erpcredit.util.ExportUtil;
|
|
import com.jeeplus.modules.sg.financial.erpcredit.util.ImportUtil;
|
|
import com.jeeplus.modules.sg.financial.erpcredit.util.ImportUtil;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.entity.*;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.entity.*;
|
|
|
|
+import com.jeeplus.modules.sg.managementcenter.activiti.service.UploadImagesService;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.utils.MyActiviUtils;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.utils.MyActiviUtils;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.utils.MyImportUtils;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.utils.MyImportUtils;
|
|
import com.jeeplus.modules.sg.managementcenter.materialinfo.entity.MaterialInfo;
|
|
import com.jeeplus.modules.sg.managementcenter.materialinfo.entity.MaterialInfo;
|
|
import com.jeeplus.modules.sg.managementcenter.materialinfo.service.MaterialInfoService;
|
|
import com.jeeplus.modules.sg.managementcenter.materialinfo.service.MaterialInfoService;
|
|
import com.jeeplus.modules.sg.managementcenter.materialproject.entity.MaterialProject;
|
|
import com.jeeplus.modules.sg.managementcenter.materialproject.entity.MaterialProject;
|
|
import com.jeeplus.modules.sg.managementcenter.materialproject.service.MaterialProjectService;
|
|
import com.jeeplus.modules.sg.managementcenter.materialproject.service.MaterialProjectService;
|
|
|
|
+import com.jeeplus.modules.sg.managementcenter.moduleacquisition.entity.ModuleBlock;
|
|
import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
|
|
import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
|
|
import com.jeeplus.modules.sg.managementcenter.project.entity.Project1;
|
|
import com.jeeplus.modules.sg.managementcenter.project.entity.Project1;
|
|
|
|
|
|
@@ -44,11 +46,13 @@ import com.jeeplus.modules.sys.entity.DictValue;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.utils.DictUtils;
|
|
import com.jeeplus.modules.sys.utils.DictUtils;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
|
|
+import com.jeeplus.modules.sys.web.FileController;
|
|
import org.activiti.engine.*;
|
|
import org.activiti.engine.*;
|
|
import org.activiti.engine.repository.ProcessDefinition;
|
|
import org.activiti.engine.repository.ProcessDefinition;
|
|
import org.apache.poi.hssf.usermodel.*;
|
|
import org.apache.poi.hssf.usermodel.*;
|
|
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
|
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
|
|
+import org.apache.shiro.authz.annotation.Logical;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
@@ -79,13 +83,13 @@ public class ConstructionController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private ActTaskService actTaskService;
|
|
private ActTaskService actTaskService;
|
|
@Autowired
|
|
@Autowired
|
|
- private RuntimeService runtimeService;
|
|
|
|
|
|
+ private UploadImagesService uploadImagesService;
|
|
@Autowired
|
|
@Autowired
|
|
private TaskService taskService;
|
|
private TaskService taskService;
|
|
@Autowired
|
|
@Autowired
|
|
private ProjectService projectService;
|
|
private ProjectService projectService;
|
|
@Autowired
|
|
@Autowired
|
|
- private MaterialProjectService materialProjectService;
|
|
|
|
|
|
+ private FileController fileController;
|
|
@Autowired
|
|
@Autowired
|
|
private MaterialInfoService materialInfoService;
|
|
private MaterialInfoService materialInfoService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -200,6 +204,25 @@ public class ConstructionController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 运行经理驳回-设计单位人员调整文件
|
|
|
|
+ */
|
|
|
|
+ @RequestMapping(value = "operatorUploadAfter")
|
|
|
|
+ public String operatorUploadAfter(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/operatorUploadAfter";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 修改项目文件路径
|
|
|
|
+ */
|
|
|
|
+ @RequestMapping(value = "uploadAfter")
|
|
|
|
+ public String uploadAfter(UploadImages uploadImages, Model model) {
|
|
|
|
+ UploadImages uploadImages1 = uploadImagesService.get(uploadImages.getId());
|
|
|
|
+ model.addAttribute("uploadImages", uploadImages1);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/uploadAfter";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 运行经理审核设计变更后
|
|
* 运行经理审核设计变更后
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "managerUploadList")
|
|
@RequestMapping(value = "managerUploadList")
|
|
@@ -333,7 +356,6 @@ public class ConstructionController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "singleForm")
|
|
@RequestMapping(value = "singleForm")
|
|
public String singleForm(Construction construction, Model model) {
|
|
public String singleForm(Construction construction, Model model) {
|
|
-
|
|
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
return "modules/sg/managementcenter/activiti/singleForm";
|
|
return "modules/sg/managementcenter/activiti/singleForm";
|
|
}
|
|
}
|
|
@@ -390,6 +412,43 @@ public class ConstructionController extends BaseController {
|
|
courseList.add("民事政处");
|
|
courseList.add("民事政处");
|
|
model.addAttribute("courseList", courseList);
|
|
model.addAttribute("courseList", courseList);
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
|
|
+ MaterialInfo materialInfo = new MaterialInfo();
|
|
|
|
+ materialInfo.setProjectName(construction.getReserveProjectName());
|
|
|
|
+ List<MaterialInfo> list = materialInfoService.findList(materialInfo);
|
|
|
|
+ Integer count = 0;
|
|
|
|
+ for (MaterialInfo m : list) {
|
|
|
|
+ String materialName = m.getMaterialName();
|
|
|
|
+ if (materialName != null && materialName != "") {
|
|
|
|
+ if (materialName.equals("FTU,三遥数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("FTU,二遥数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,遮蔽立式数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,户外立式数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,组屏式数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("一二次融合成套环网箱(2进2出)数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("一二次融合成套柱上负荷开关(户外)数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (count > 0) {
|
|
|
|
+ construction.getQuantity().setIncludeAutomation("是");
|
|
|
|
+ } else {
|
|
|
|
+ construction.getQuantity().setIncludeAutomation("否");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
return "modules/sg/managementcenter/activiti/editEng";
|
|
return "modules/sg/managementcenter/activiti/editEng";
|
|
}
|
|
}
|
|
|
|
|
|
@@ -418,6 +477,50 @@ public class ConstructionController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "engineering")
|
|
@RequestMapping(value = "engineering")
|
|
public String engineering(Construction construction, Model model) {
|
|
public String engineering(Construction construction, Model model) {
|
|
|
|
+ //获取项目的所有的领料数据
|
|
|
|
+ MaterialInfo materialInfo = new MaterialInfo();
|
|
|
|
+ materialInfo.setProjectName(construction.getReserveProjectName());
|
|
|
|
+ List<MaterialInfo> list = materialInfoService.findList(materialInfo);
|
|
|
|
+ Integer ftuThree = 0;
|
|
|
|
+ Integer ftuTwo = 0;
|
|
|
|
+ Integer dtuVertical = 0;
|
|
|
|
+ Integer dtuOutdoor = 0;
|
|
|
|
+ Integer dtuGroup = 0;
|
|
|
|
+ Integer ringCages = 0;
|
|
|
|
+ Integer poleMounted = 0;
|
|
|
|
+ for (MaterialInfo m : list) {
|
|
|
|
+ String materialName = m.getMaterialName();
|
|
|
|
+ if (materialName != null && materialName != "") {
|
|
|
|
+ if (materialName.equals("FTU,三遥数量")) {
|
|
|
|
+ ftuThree += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("FTU,二遥数量")) {
|
|
|
|
+ ftuTwo += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,遮蔽立式数量")) {
|
|
|
|
+ dtuVertical += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,户外立式数量")) {
|
|
|
|
+ dtuOutdoor += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,组屏式数量")) {
|
|
|
|
+ dtuGroup += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("一二次融合成套环网箱(2进2出)数量")) {
|
|
|
|
+ ringCages += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("一二次融合成套柱上负荷开关(户外)数量")) {
|
|
|
|
+ poleMounted += 1;
|
|
|
|
+ }
|
|
|
|
+ construction.setFtuThree(ftuThree.toString());
|
|
|
|
+ construction.setFtuTwo(ftuTwo.toString());
|
|
|
|
+ construction.setDtuVertical(dtuVertical.toString());
|
|
|
|
+ construction.setDtuOutdoor(dtuOutdoor.toString());
|
|
|
|
+ construction.setDtuGroup(dtuGroup.toString());
|
|
|
|
+ construction.setRingCages(ringCages.toString());
|
|
|
|
+ construction.setPoleMounted(poleMounted.toString());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
return "modules/sg/managementcenter/activiti/engineering";
|
|
return "modules/sg/managementcenter/activiti/engineering";
|
|
}
|
|
}
|
|
@@ -1096,7 +1199,8 @@ public class ConstructionController extends BaseController {
|
|
construction = new Construction();
|
|
construction = new Construction();
|
|
Row row = ei.getRow(i);
|
|
Row row = ei.getRow(i);
|
|
quantity.setReserveProjectName(ei.getCellValue(row, 0).toString());
|
|
quantity.setReserveProjectName(ei.getCellValue(row, 0).toString());
|
|
- quantity.setIncludeAutomation(ei.getCellValue(row, 1).toString());
|
|
|
|
|
|
+ //quantity.setIncludeAutomation(ei.getCellValue(row, 1).toString());
|
|
|
|
+
|
|
quantity.setWayOf(ei.getCellValue(row, 2).toString());
|
|
quantity.setWayOf(ei.getCellValue(row, 2).toString());
|
|
quantity.setAssignmentStyle(ei.getCellValue(row, 3).toString());
|
|
quantity.setAssignmentStyle(ei.getCellValue(row, 3).toString());
|
|
quantity.setOperationSubstation(ei.getCellValue(row, 4).toString());
|
|
quantity.setOperationSubstation(ei.getCellValue(row, 4).toString());
|
|
@@ -1109,7 +1213,8 @@ public class ConstructionController extends BaseController {
|
|
quantity.setProcessingType(ei.getCellValue(row, 11).toString());
|
|
quantity.setProcessingType(ei.getCellValue(row, 11).toString());
|
|
quantity.setProcessingDescription(ei.getCellValue(row, 12).toString());
|
|
quantity.setProcessingDescription(ei.getCellValue(row, 12).toString());
|
|
construction.setQuantity(quantity);
|
|
construction.setQuantity(quantity);
|
|
- String includeAutomation = quantity.getIncludeAutomation();
|
|
|
|
|
|
+// String includeAutomation = quantity.getIncludeAutomation();
|
|
|
|
+ String includeAutomation = "";
|
|
String wayOf = quantity.getWayOf();
|
|
String wayOf = quantity.getWayOf();
|
|
String assignmentStyle = quantity.getAssignmentStyle();
|
|
String assignmentStyle = quantity.getAssignmentStyle();
|
|
String operationSubstation = quantity.getOperationSubstation();
|
|
String operationSubstation = quantity.getOperationSubstation();
|
|
@@ -1119,6 +1224,44 @@ public class ConstructionController extends BaseController {
|
|
String policyIssues = quantity.getPolicyIssues();
|
|
String policyIssues = quantity.getPolicyIssues();
|
|
String processingType = quantity.getProcessingType();
|
|
String processingType = quantity.getProcessingType();
|
|
String processingDescription = quantity.getProcessingDescription();
|
|
String processingDescription = quantity.getProcessingDescription();
|
|
|
|
+
|
|
|
|
+ MaterialInfo materialInfo = new MaterialInfo();
|
|
|
|
+ materialInfo.setProjectName(construction.getReserveProjectName());
|
|
|
|
+ List<MaterialInfo> list = materialInfoService.findList(materialInfo);
|
|
|
|
+ Integer count = 0;
|
|
|
|
+ for (MaterialInfo m : list) {
|
|
|
|
+ String materialName = m.getMaterialName();
|
|
|
|
+ if (materialName != null && materialName != "") {
|
|
|
|
+ if (materialName.equals("FTU,三遥数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("FTU,二遥数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,遮蔽立式数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,户外立式数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("DTU,三遥,组屏式数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("一二次融合成套环网箱(2进2出)数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (materialName.equals("一二次融合成套柱上负荷开关(户外)数量")) {
|
|
|
|
+ count += 1;
|
|
|
|
+ }
|
|
|
|
+ if (count > 0) {
|
|
|
|
+ includeAutomation = "是";
|
|
|
|
+ } else {
|
|
|
|
+ includeAutomation = "否";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
can = true;
|
|
can = true;
|
|
flag = "";
|
|
flag = "";
|
|
if ("".equals(includeAutomation)) {
|
|
if ("".equals(includeAutomation)) {
|
|
@@ -1312,4 +1455,123 @@ public class ConstructionController extends BaseController {
|
|
}
|
|
}
|
|
return j;
|
|
return j;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 设计人员审核不通过-修改文件
|
|
|
|
+ */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "saveUpload")
|
|
|
|
+ public AjaxJson saveOld(UploadImages uploadImages, Model model, HttpServletRequest request) throws Exception {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ /**
|
|
|
|
+ * 后台hibernate-validation插件校验
|
|
|
|
+ */
|
|
|
|
+ String errMsg = beanValidator(uploadImages);
|
|
|
|
+ if (StringUtils.isNotBlank(errMsg)) {
|
|
|
|
+ j.setSuccess(false);
|
|
|
|
+ j.setMsg(errMsg);
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+ uploadImagesService.saveUpload(uploadImages);
|
|
|
|
+ j.setSuccess(true);
|
|
|
|
+ j.setMsg("保存模块成功");
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *所有政策处理清单,缴费单
|
|
|
|
+ * */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "conData")
|
|
|
|
+ public Map<String, Object> conPage(ConstructionUpload constructionUpload, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
|
|
+ Page<ConstructionUpload> page = uploadImagesService.findConPage(new Page<ConstructionUpload>(request, response), constructionUpload);
|
|
|
|
+ //当判定系统为linux的时候
|
|
|
|
+ if (Global.SYS_TYPE.equals("2")) {
|
|
|
|
+ List<ConstructionUpload> list = page.getList();
|
|
|
|
+ for (ConstructionUpload upload :
|
|
|
|
+ list) {
|
|
|
|
+ String a = "";
|
|
|
|
+ String path = upload.getProcessingList();
|
|
|
|
+ String[] split = path.split("\\|");
|
|
|
|
+ for (int i = 0; i < split.length; i++) {
|
|
|
|
+ a += "http://" + request.getServerName() + split[i] + "|";
|
|
|
|
+ }
|
|
|
|
+ upload.setProcessingList(a);
|
|
|
|
+
|
|
|
|
+ String b = "";
|
|
|
|
+ String billList = upload.getBillList();
|
|
|
|
+ String[] split1 = path.split("\\|");
|
|
|
|
+ for (int i = 0; i < split1.length; i++) {
|
|
|
|
+ b += "http://" + request.getServerName() + split[i] + "|";
|
|
|
|
+ }
|
|
|
|
+ upload.setBillList(b);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return getBootstrapData(page);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 新增项目政策处理方案
|
|
|
|
+ */
|
|
|
|
+ @RequestMapping(value = "conUpdate")
|
|
|
|
+ public String conUpdate(ConstructionUpload constructionUpload, Model model) {
|
|
|
|
+ model.addAttribute("constructionUpload", constructionUpload);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/conUpdate";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 修改交底结论页面
|
|
|
|
+ */
|
|
|
|
+ @RequestMapping(value = "updateConUpload")
|
|
|
|
+ public String updateConUpload(ConstructionUpload constructionUpload, Model model) {
|
|
|
|
+ ConstructionUpload conUpload = uploadImagesService.getConUpload(constructionUpload);
|
|
|
|
+ model.addAttribute("constructionUpload", conUpload);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/updateConUpload";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "conUpdateSave")
|
|
|
|
+ public AjaxJson conUpdateSave(ConstructionUpload constructionUpload, Model model) throws Exception {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ try {
|
|
|
|
+ uploadImagesService.conUpdateSave(constructionUpload);
|
|
|
|
+ j.setSuccess(true);
|
|
|
|
+ j.setMsg("修改成功");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ j.setSuccess(false);
|
|
|
|
+ j.setMsg("修改失败");
|
|
|
|
+ }
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "saveConUpload")
|
|
|
|
+ public AjaxJson saveConUpload(ConstructionUpload constructionUpload, Model model) throws Exception {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ try {
|
|
|
|
+ uploadImagesService.updateConUpload(constructionUpload);
|
|
|
|
+ j.setSuccess(true);
|
|
|
|
+ j.setMsg("修改成功");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ j.setSuccess(false);
|
|
|
|
+ j.setMsg("修改失败");
|
|
|
|
+ }
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "delConUpload")
|
|
|
|
+ public AjaxJson delConUpload(ConstructionUpload constructionUpload, Model model) throws Exception {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ try {
|
|
|
|
+ uploadImagesService.delConUpload(constructionUpload);
|
|
|
|
+ j.setSuccess(true);
|
|
|
|
+ j.setMsg("删除成功");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ j.setSuccess(false);
|
|
|
|
+ j.setMsg("删除失败");
|
|
|
|
+ }
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
}
|
|
}
|