|
@@ -18,9 +18,7 @@ import com.jeeplus.modules.sg.audit.information.utils.FreemarkerUtil;
|
|
import com.jeeplus.modules.sg.audit.information.utils.ResponseUtil;
|
|
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.Disclose;
|
|
|
|
-import com.jeeplus.modules.sg.managementcenter.activiti.entity.Quantity;
|
|
|
|
-import com.jeeplus.modules.sg.managementcenter.activiti.entity.UploadImages;
|
|
|
|
|
|
+import com.jeeplus.modules.sg.managementcenter.activiti.entity.*;
|
|
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;
|
|
@@ -36,7 +34,6 @@ import com.jeeplus.common.utils.StringUtils;
|
|
import com.jeeplus.core.web.BaseController;
|
|
import com.jeeplus.core.web.BaseController;
|
|
import com.jeeplus.modules.act.service.ActProcessService;
|
|
import com.jeeplus.modules.act.service.ActProcessService;
|
|
import com.jeeplus.modules.act.service.ActTaskService;
|
|
import com.jeeplus.modules.act.service.ActTaskService;
|
|
-import com.jeeplus.modules.sg.managementcenter.activiti.entity.Construction;
|
|
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.service.ConstructionService;
|
|
import com.jeeplus.modules.sg.managementcenter.activiti.service.ConstructionService;
|
|
import com.jeeplus.modules.sg.managementcenter.project.service.ProjectService;
|
|
import com.jeeplus.modules.sg.managementcenter.project.service.ProjectService;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
@@ -47,6 +44,7 @@ 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.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;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -167,7 +165,7 @@ public class ConstructionController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 交底:运行人员审核图纸
|
|
* 交底:运行人员审核图纸
|
|
- * */
|
|
|
|
|
|
+ */
|
|
@RequestMapping(value = "auditDrawings")
|
|
@RequestMapping(value = "auditDrawings")
|
|
public String auditDrawings(Construction construction, Model model) {
|
|
public String auditDrawings(Construction construction, Model model) {
|
|
|
|
|
|
@@ -177,7 +175,7 @@ public class ConstructionController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 交底:运行单位经理审核方案
|
|
* 交底:运行单位经理审核方案
|
|
- * */
|
|
|
|
|
|
+ */
|
|
@RequestMapping(value = "designUpload")
|
|
@RequestMapping(value = "designUpload")
|
|
public String designUpload(Construction construction, Model model) {
|
|
public String designUpload(Construction construction, Model model) {
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
@@ -186,7 +184,7 @@ public class ConstructionController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 设计单位人员重新设计
|
|
* 设计单位人员重新设计
|
|
- * */
|
|
|
|
|
|
+ */
|
|
@RequestMapping(value = "operatorUploadList")
|
|
@RequestMapping(value = "operatorUploadList")
|
|
public String operatorUploadList(Construction construction, Model model) {
|
|
public String operatorUploadList(Construction construction, Model model) {
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
@@ -195,7 +193,7 @@ public class ConstructionController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 运行经理审核设计变更后
|
|
* 运行经理审核设计变更后
|
|
- * */
|
|
|
|
|
|
+ */
|
|
@RequestMapping(value = "managerUploadList")
|
|
@RequestMapping(value = "managerUploadList")
|
|
public String managerUploadList(Construction construction, Model model) {
|
|
public String managerUploadList(Construction construction, Model model) {
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
@@ -204,7 +202,7 @@ public class ConstructionController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 配网经理审核设计变更后
|
|
* 配网经理审核设计变更后
|
|
- * */
|
|
|
|
|
|
+ */
|
|
@RequestMapping(value = "afterDistribution")
|
|
@RequestMapping(value = "afterDistribution")
|
|
public String afterDistribution(Construction construction, Model model) {
|
|
public String afterDistribution(Construction construction, Model model) {
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
@@ -365,6 +363,24 @@ public class ConstructionController extends BaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "editEng")
|
|
@RequestMapping(value = "editEng")
|
|
public String editEng(Construction construction, Model model) {
|
|
public String editEng(Construction construction, Model model) {
|
|
|
|
+ Quantity quantity = construction.getQuantity();
|
|
|
|
+ if (construction.getQuantity() != null) {
|
|
|
|
+ if (construction.getQuantity().getProcessingType() != null && construction.getQuantity().getProcessingType() != "") {
|
|
|
|
+ String processingType = construction.getQuantity().getProcessingType();
|
|
|
|
+ String[] split = processingType.split(",");
|
|
|
|
+ List<String> processList = new ArrayList<>();
|
|
|
|
+ for (int i = 0; i < split.length; i++) {
|
|
|
|
+ String s = split[i].toString();
|
|
|
|
+ processList.add(s);
|
|
|
|
+ }
|
|
|
|
+ construction.getQuantity().setProcessingTypeList(processList);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ List<String> courseList = new ArrayList<String>();
|
|
|
|
+ courseList.add("行政政处");
|
|
|
|
+ courseList.add("农村政处");
|
|
|
|
+ courseList.add("民事政处");
|
|
|
|
+ model.addAttribute("courseList", courseList);
|
|
model.addAttribute("construction", construction);
|
|
model.addAttribute("construction", construction);
|
|
return "modules/sg/managementcenter/activiti/editEng";
|
|
return "modules/sg/managementcenter/activiti/editEng";
|
|
}
|
|
}
|
|
@@ -399,8 +415,248 @@ public class ConstructionController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 下载施工交底模板文件
|
|
|
|
|
|
+ * 农村政处开始页面
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "ruralOffice")
|
|
|
|
+ public String ruralOffice(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralOffice";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 农村专职判断
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "ruralJudge")
|
|
|
|
+ public String ruralJudge(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralJudge";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 农村上传文件
|
|
* */
|
|
* */
|
|
|
|
+ @RequestMapping(value = "ruralFiles")
|
|
|
|
+ public String ruralFiles(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralFiles";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 农村是否借款
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "ruralLoan")
|
|
|
|
+ public String ruralLoan(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralLoan";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 农村是否支付
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "ruralPays")
|
|
|
|
+ public String ruralPays(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralPays";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 行政政处开始页面
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "administrativeOffice")
|
|
|
|
+ public String administrativeOffice(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralOffice";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 行政专职判断
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "administrativeJudge")
|
|
|
|
+ public String administrativeJudge(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralJudge";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 行政上传文件
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "administrativeFiles")
|
|
|
|
+ public String administrativeFiles(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralFiles";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 行政是否借款
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "administrativeLoan")
|
|
|
|
+ public String administrativeLoan(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralLoan";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 行政是否支付
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "administrativePays")
|
|
|
|
+ public String administrativePays(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralPays";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 民事政处开始页面
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "civilOffice")
|
|
|
|
+ public String civilOffice(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralOffice";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 民事专职判断
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "civilJudge")
|
|
|
|
+ public String civilJudge(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralJudge";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 民事上传文件
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "civilFiles")
|
|
|
|
+ public String civilFiles(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralFiles";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 民事是否借款
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "civilLoan")
|
|
|
|
+ public String civilLoan(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralLoan";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 民事是否支付
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "civilPays")
|
|
|
|
+ public String civilPays(Construction construction, Model model) {
|
|
|
|
+ model.addAttribute("construction", construction);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/ruralPays";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 土建工程量数据列表
|
|
|
|
+ * */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "engineeringTable")
|
|
|
|
+ public Map<String, Object> engineeringTable(EngineeringAmount engineeringAmount, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
|
|
+ Page<EngineeringAmount> page = constructionService.engineeringTable(new Page<EngineeringAmount>(request, response), engineeringAmount);
|
|
|
|
+ return getBootstrapData(page);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 其它工程量数据列表
|
|
|
|
+ * */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "otherTable")
|
|
|
|
+ public Map<String, Object> otherTable(OtherAmount otherAmount, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
|
|
+ Page<OtherAmount> page = constructionService.otherTable(new Page<OtherAmount>(request, response), otherAmount);
|
|
|
|
+ return getBootstrapData(page);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 土建工程量修改页面
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "editEngAmount")
|
|
|
|
+ public String editEngAmount(EngineeringAmount engineeringAmount, Model model) {
|
|
|
|
+ if (!"".equals(engineeringAmount.getId()) && engineeringAmount.getId() != null) {
|
|
|
|
+ engineeringAmount = constructionService.getEngAmount(engineeringAmount);
|
|
|
|
+ }
|
|
|
|
+ model.addAttribute("engineeringAmount", engineeringAmount);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/editEngAmount";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 其它工程量修改页面
|
|
|
|
+ * */
|
|
|
|
+ @RequestMapping(value = "editOther")
|
|
|
|
+ public String editOther(OtherAmount otherAmount, Model model) {
|
|
|
|
+ if (!"".equals(otherAmount.getId()) && otherAmount.getId() != null) {
|
|
|
|
+ otherAmount = constructionService.getOtherAmount(otherAmount);
|
|
|
|
+ }
|
|
|
|
+ model.addAttribute("otherAmount", otherAmount);
|
|
|
|
+ return "modules/sg/managementcenter/activiti/editOther";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 土建工程量添加,修改
|
|
|
|
+ * */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "EngAmountSave")
|
|
|
|
+ public AjaxJson EngAmountSave(EngineeringAmount engineeringAmount, Model model) throws Exception {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ try {
|
|
|
|
+ constructionService.EngAmountSave(engineeringAmount);
|
|
|
|
+ j.setSuccess(true);
|
|
|
|
+ j.setMsg("修改成功");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ j.setSuccess(false);
|
|
|
|
+ j.setMsg("修改失败");
|
|
|
|
+ }
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 其它工程量添加,修改
|
|
|
|
+ * */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "addOther")
|
|
|
|
+ public AjaxJson addOther(OtherAmount otherAmount, Model model) throws Exception {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ try {
|
|
|
|
+ constructionService.addOther(otherAmount);
|
|
|
|
+ j.setSuccess(true);
|
|
|
|
+ j.setMsg("修改成功");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ j.setSuccess(false);
|
|
|
|
+ j.setMsg("修改失败");
|
|
|
|
+ }
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 土建工程量删除
|
|
|
|
+ * */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "delEngAmount")
|
|
|
|
+ public AjaxJson delEngAmount(String id) {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ constructionService.delEngAmount(id);
|
|
|
|
+ j.setMsg("删除工程量成功");
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 其它工程量删除
|
|
|
|
+ * */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "delOtherAmount")
|
|
|
|
+ public AjaxJson delOtherAmount(String id) {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ constructionService.delOtherAmount(id);
|
|
|
|
+ j.setMsg("删除工程量成功");
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 下载施工交底模板文件
|
|
|
|
+ */
|
|
@RequestMapping(value = "excelOut")
|
|
@RequestMapping(value = "excelOut")
|
|
public void excelStandardTemplateOut(HttpServletRequest request,
|
|
public void excelStandardTemplateOut(HttpServletRequest request,
|
|
HttpServletResponse response) throws IOException {
|
|
HttpServletResponse response) throws IOException {
|
|
@@ -438,10 +694,10 @@ public class ConstructionController extends BaseController {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 下载工程量模板文件
|
|
* 下载工程量模板文件
|
|
- * */
|
|
|
|
|
|
+ */
|
|
@RequestMapping(value = "excelQuantity")
|
|
@RequestMapping(value = "excelQuantity")
|
|
public void excelOutQuantity(HttpServletRequest request,
|
|
public void excelOutQuantity(HttpServletRequest request,
|
|
- HttpServletResponse response) throws IOException {
|
|
|
|
|
|
+ HttpServletResponse response) throws IOException {
|
|
String fileName = "quantity.xlsx";
|
|
String fileName = "quantity.xlsx";
|
|
String filePath = getClass().getResource("/freemarker/" + fileName).getPath();
|
|
String filePath = getClass().getResource("/freemarker/" + fileName).getPath();
|
|
File f = new File(filePath);
|
|
File f = new File(filePath);
|
|
@@ -475,7 +731,7 @@ public class ConstructionController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 保存请假申请
|
|
|
|
|
|
+ * 发起施工交底流程
|
|
*/
|
|
*/
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "save")
|
|
@RequestMapping(value = "save")
|
|
@@ -510,7 +766,7 @@ public class ConstructionController extends BaseController {
|
|
//循环项目信息
|
|
//循环项目信息
|
|
for (Project each : listById) {
|
|
for (Project each : listById) {
|
|
if (each.getAssignment() == null) {
|
|
if (each.getAssignment() == null) {
|
|
- info += each.getReserveProjectName() + "未填写施工任务分配信息";
|
|
|
|
|
|
+ info += "<" + each.getReserveProjectName() + ">" + "未填写施工任务分配信息\t";
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
//查询是否有此配网项目经理人员(表中暂无配网项目经理人员信息)
|
|
//查询是否有此配网项目经理人员(表中暂无配网项目经理人员信息)
|
|
@@ -522,7 +778,7 @@ public class ConstructionController extends BaseController {
|
|
construction.setReserveProjectName(each.getReserveProjectName());
|
|
construction.setReserveProjectName(each.getReserveProjectName());
|
|
constructionService.newSave(construction);//保存
|
|
constructionService.newSave(construction);//保存
|
|
//根据储备项目暂定名称修改项目状态
|
|
//根据储备项目暂定名称修改项目状态
|
|
- constructionService.updateStatus(construction);
|
|
|
|
|
|
+ constructionService.updateStatus(construction.getReserveProjectName());
|
|
// 启动流程
|
|
// 启动流程
|
|
ProcessDefinition p = actProcessService.getProcessDefinition(construction.getAct().getProcDefId());
|
|
ProcessDefinition p = actProcessService.getProcessDefinition(construction.getAct().getProcDefId());
|
|
String title = construction.getCurrentUser().getName() + "在" + DateUtils.getDateTime() + "发起" + p.getName();
|
|
String title = construction.getCurrentUser().getName() + "在" + DateUtils.getDateTime() + "发起" + p.getName();
|
|
@@ -558,6 +814,36 @@ public class ConstructionController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
|
+ @RequestMapping(value = "engSave")
|
|
|
|
+ public AjaxJson engSave(Construction construction, Model model) throws Exception {
|
|
|
|
+ AjaxJson j = new AjaxJson();
|
|
|
|
+ List<String> processingTypeList = construction.getQuantity().getProcessingTypeList();
|
|
|
|
+ String processType = "";
|
|
|
|
+ for (int i = 0; i < processingTypeList.size(); i++) {
|
|
|
|
+ processType += processingTypeList.get(i) + ",";
|
|
|
|
+ }
|
|
|
|
+ if (construction.getQuantity().getPolicyIssues().equals("是")) {
|
|
|
|
+ construction.getQuantity().setProcessingType(processType);
|
|
|
|
+ } else {
|
|
|
|
+ construction.getQuantity().setProcessingType("");
|
|
|
|
+ construction.getQuantity().setProcessingDescription("");
|
|
|
|
+ }
|
|
|
|
+ construction.getQuantity().setReserveProjectName(construction.getReserveProjectName());
|
|
|
|
+ try {
|
|
|
|
+ List<Construction> constructionList = new ArrayList<>();
|
|
|
|
+ constructionList.add(construction);
|
|
|
|
+ constructionService.quantityInsert(constructionList);
|
|
|
|
+ j.setSuccess(true);
|
|
|
|
+ j.setMsg("修改成功");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ j.setSuccess(false);
|
|
|
|
+ j.setMsg("修改失败");
|
|
|
|
+ }
|
|
|
|
+ return j;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @ResponseBody
|
|
@RequestMapping(value = "importDisclose")
|
|
@RequestMapping(value = "importDisclose")
|
|
public AjaxJson importDisclose(@RequestParam("file") MultipartFile file, HttpServletResponse response, HttpServletRequest request) {
|
|
public AjaxJson importDisclose(@RequestParam("file") MultipartFile file, HttpServletResponse response, HttpServletRequest request) {
|
|
AjaxJson j = new AjaxJson();
|
|
AjaxJson j = new AjaxJson();
|
|
@@ -572,7 +858,7 @@ public class ConstructionController extends BaseController {
|
|
ImportExcel ei = new ImportExcel(file, 0, 0);
|
|
ImportExcel ei = new ImportExcel(file, 0, 0);
|
|
Disclose disclose;
|
|
Disclose disclose;
|
|
int lastDataRowNum = ei.getLastDataRowNum();
|
|
int lastDataRowNum = ei.getLastDataRowNum();
|
|
- for (int i = 3; i <=lastDataRowNum; i++) {
|
|
|
|
|
|
+ for (int i = 3; i <= lastDataRowNum; i++) {
|
|
construction = new Construction();
|
|
construction = new Construction();
|
|
disclose = new Disclose();
|
|
disclose = new Disclose();
|
|
Row row = ei.getRow(i);
|
|
Row row = ei.getRow(i);
|
|
@@ -625,12 +911,60 @@ public class ConstructionController extends BaseController {
|
|
disclose.setOtherAdjusted(ei.getCellValue(row, 21).toString());
|
|
disclose.setOtherAdjusted(ei.getCellValue(row, 21).toString());
|
|
//其他方案调整原因描述
|
|
//其他方案调整原因描述
|
|
disclose.setDescriptionReasons(ei.getCellValue(row, 22).toString());
|
|
disclose.setDescriptionReasons(ei.getCellValue(row, 22).toString());
|
|
|
|
+ //是否存在难以解决的政处
|
|
|
|
+ disclose.setDifficultResolve(ei.getCellValue(row, 233).toString());
|
|
|
|
+ //是否需要进行设计变更
|
|
|
|
+ disclose.setDesignChanges(ei.getCellValue(row, 24).toString());
|
|
|
|
+ //是否需要进行项目关闭
|
|
|
|
+ disclose.setNeedsClosed(ei.getCellValue(row, 25).toString());
|
|
|
|
+ //政处问题描述
|
|
|
|
+ disclose.setAffairsDescription(ei.getCellValue(row, 26).toString());
|
|
|
|
+ //是否需要规划报批(150米及以上土建)
|
|
|
|
+ disclose.setPlanningRequired(ei.getCellValue(row, 27).toString());
|
|
|
|
+ //是否涉及高铁、高速
|
|
|
|
+ disclose.setHighSpeed(ei.getCellValue(row, 28).toString());
|
|
|
|
+ //是否存在复杂民事政处
|
|
|
|
+ disclose.setAffairsOffice(ei.getCellValue(row, 29).toString());
|
|
|
|
+ //图纸方案是否存在前置条件
|
|
|
|
+ disclose.setPreconditions(ei.getCellValue(row, 30).toString());
|
|
|
|
+ //前置条件描述
|
|
|
|
+ disclose.setPreconditionDescription(ei.getCellValue(row, 31).toString());
|
|
|
|
+ //是否需要定制物资
|
|
|
|
+ disclose.setCustomizedMaterials(ei.getCellValue(row, 32).toString());
|
|
|
|
+ //是否能定制
|
|
|
|
+ disclose.setCustomizedCan(ei.getCellValue(row, 33).toString());
|
|
|
|
+ //定制原因描述
|
|
|
|
+ disclose.setReasonDescription(ei.getCellValue(row, 34).toString());
|
|
|
|
+ //定制物资描述
|
|
|
|
+ disclose.setMaterialDescription(ei.getCellValue(row, 35).toString());
|
|
|
|
+ //拆旧物资是否与设计一致
|
|
|
|
+ disclose.setDemolitionMaterials(ei.getCellValue(row, 36).toString());
|
|
|
|
+ //型号不一致描述
|
|
|
|
+ disclose.setModelDescription(ei.getCellValue(row, 37).toString());
|
|
|
|
+ //数量不一致描述
|
|
|
|
+ disclose.setQuantityDescription(ei.getCellValue(row, 38).toString());
|
|
|
|
+ //图纸标注是否存在问题
|
|
|
|
+ disclose.setDrawingAnnotation(ei.getCellValue(row, 39).toString());
|
|
|
|
+ //图纸标注问题描述
|
|
|
|
+ disclose.setDrawingProblem(ei.getCellValue(row, 40).toString());
|
|
|
|
+ //是否存在停电问题
|
|
|
|
+ disclose.setPowerOutage(ei.getCellValue(row, 41).toString());
|
|
|
|
+ //停电问题问题描述
|
|
|
|
+ disclose.setPowerProblem(ei.getCellValue(row, 42).toString());
|
|
|
|
+ //是否邻近带电线路
|
|
|
|
+ disclose.setNearLiveLine(ei.getCellValue(row, 43).toString());
|
|
|
|
+ //是否下穿高压线路
|
|
|
|
+ disclose.setHighVoltageLine(ei.getCellValue(row, 44).toString());
|
|
|
|
+ //是否存在复杂管线
|
|
|
|
+ disclose.setComplexPipeline(ei.getCellValue(row, 45).toString());
|
|
|
|
+ //是否涉及复杂停电
|
|
|
|
+ disclose.setComplicatedPower(ei.getCellValue(row, 46).toString());
|
|
construction.setDisclose(disclose);
|
|
construction.setDisclose(disclose);
|
|
constructionList.add(construction);
|
|
constructionList.add(construction);
|
|
}
|
|
}
|
|
//比对当前节点可以导入交底结论的信息
|
|
//比对当前节点可以导入交底结论的信息
|
|
List<Construction> criteriaList = new ArrayList<>();
|
|
List<Construction> criteriaList = new ArrayList<>();
|
|
- for (Construction c:activityList) {
|
|
|
|
|
|
+ for (Construction c : activityList) {
|
|
for (Construction n : constructionList) {
|
|
for (Construction n : constructionList) {
|
|
if (c.getReserveProjectName().equals(n.getReserveProjectName())) {
|
|
if (c.getReserveProjectName().equals(n.getReserveProjectName())) {
|
|
criteriaList.add(n);
|
|
criteriaList.add(n);
|
|
@@ -645,7 +979,7 @@ public class ConstructionController extends BaseController {
|
|
List<Construction> insertList = (List<Construction>) stringObjectMap.get("newConList");
|
|
List<Construction> insertList = (List<Construction>) stringObjectMap.get("newConList");
|
|
if (insertList.size() > 0) {
|
|
if (insertList.size() > 0) {
|
|
for (Construction c : insertList) {
|
|
for (Construction c : insertList) {
|
|
- for (Construction n:activityList) {
|
|
|
|
|
|
+ for (Construction n : activityList) {
|
|
if (c.getReserveProjectName().equals(n.getReserveProjectName())) {
|
|
if (c.getReserveProjectName().equals(n.getReserveProjectName())) {
|
|
sendList.add(n);
|
|
sendList.add(n);
|
|
c.getAct().setProcInsId(n.getProcInsId());
|
|
c.getAct().setProcInsId(n.getProcInsId());
|
|
@@ -673,33 +1007,33 @@ public class ConstructionController extends BaseController {
|
|
*/
|
|
*/
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "uploadData")
|
|
@RequestMapping(value = "uploadData")
|
|
- public Map<String, Object> uploadData(UploadImages uploadImages, HttpServletRequest request, HttpServletResponse response, Model model,String procInsId) {
|
|
|
|
- if (procInsId!=null&&procInsId!="") {
|
|
|
|
- uploadImages.setProcInsId(procInsId);
|
|
|
|
- }
|
|
|
|
- //查询出所有的附件信息
|
|
|
|
- Page<UploadImages> page = constructionService.findUploadPage(new Page<UploadImages>(request, response), uploadImages);
|
|
|
|
- //当判定系统为linux的时候
|
|
|
|
- if (Global.SYS_TYPE.equals("2")) {
|
|
|
|
- List<UploadImages> list = page.getList();
|
|
|
|
- for (UploadImages upload:
|
|
|
|
- list) {
|
|
|
|
- String a = "";
|
|
|
|
- String path = upload.getPath();
|
|
|
|
- String[] split = path.split("\\|");
|
|
|
|
- for (int i = 0; i < split.length; i++) {
|
|
|
|
- a += "http://" + request.getServerName() + split[i] + "|";
|
|
|
|
- }
|
|
|
|
- upload.setPath(a);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<UploadImages> list1 = page.getList();
|
|
|
|
- for (UploadImages images : list1) {
|
|
|
|
- String dictLabels = DictUtils.getDictLabel(images.getImgName(), "uploadFileType","");
|
|
|
|
- images.setImgName(dictLabels);
|
|
|
|
- }
|
|
|
|
- List<UploadImages> list = page.getList();
|
|
|
|
- //循环list
|
|
|
|
|
|
+ public Map<String, Object> uploadData(UploadImages uploadImages, HttpServletRequest request, HttpServletResponse response, Model model, String procInsId) {
|
|
|
|
+ if (procInsId != null && procInsId != "") {
|
|
|
|
+ uploadImages.setProcInsId(procInsId);
|
|
|
|
+ }
|
|
|
|
+ //查询出所有的附件信息
|
|
|
|
+ Page<UploadImages> page = constructionService.findUploadPage(new Page<UploadImages>(request, response), uploadImages);
|
|
|
|
+ //当判定系统为linux的时候
|
|
|
|
+ if (Global.SYS_TYPE.equals("2")) {
|
|
|
|
+ List<UploadImages> list = page.getList();
|
|
|
|
+ for (UploadImages upload :
|
|
|
|
+ list) {
|
|
|
|
+ String a = "";
|
|
|
|
+ String path = upload.getPath();
|
|
|
|
+ String[] split = path.split("\\|");
|
|
|
|
+ for (int i = 0; i < split.length; i++) {
|
|
|
|
+ a += "http://" + request.getServerName() + split[i] + "|";
|
|
|
|
+ }
|
|
|
|
+ upload.setPath(a);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ List<UploadImages> list1 = page.getList();
|
|
|
|
+ for (UploadImages images : list1) {
|
|
|
|
+ String dictLabels = DictUtils.getDictLabel(images.getImgName(), "uploadFileType", "");
|
|
|
|
+ images.setImgName(dictLabels);
|
|
|
|
+ }
|
|
|
|
+ List<UploadImages> list = page.getList();
|
|
|
|
+ //循环list
|
|
return getBootstrapData(page);
|
|
return getBootstrapData(page);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -708,7 +1042,7 @@ public class ConstructionController extends BaseController {
|
|
*/
|
|
*/
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "btnMaterial")
|
|
@RequestMapping(value = "btnMaterial")
|
|
- public AjaxJson btnMaterial(MultipartFile file, HttpServletResponse response, HttpServletRequest request) throws IOException, InvalidFormatException {
|
|
|
|
|
|
+ public AjaxJson btnMaterial(MultipartFile file, HttpServletResponse response, HttpServletRequest request) throws IOException, InvalidFormatException {
|
|
AjaxJson j = new AjaxJson();
|
|
AjaxJson j = new AjaxJson();
|
|
ImportExcel mo = new ImportExcel(file, 1, "模块表");
|
|
ImportExcel mo = new ImportExcel(file, 1, "模块表");
|
|
ImportExcel importExcel = new ImportExcel(file, 1, "领料清单");
|
|
ImportExcel importExcel = new ImportExcel(file, 1, "领料清单");
|
|
@@ -725,11 +1059,11 @@ public class ConstructionController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 导入物料表
|
|
|
|
|
|
+ * 导入工程量
|
|
*/
|
|
*/
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "importQuantity")
|
|
@RequestMapping(value = "importQuantity")
|
|
- public AjaxJson importQuantity(MultipartFile file,HttpServletResponse response, HttpServletRequest request) throws IOException, InvalidFormatException {
|
|
|
|
|
|
+ public AjaxJson importQuantity(MultipartFile file, HttpServletResponse response, HttpServletRequest request) throws IOException, InvalidFormatException {
|
|
AjaxJson j = new AjaxJson();
|
|
AjaxJson j = new AjaxJson();
|
|
List<Construction> constructionList = new ArrayList<>();
|
|
List<Construction> constructionList = new ArrayList<>();
|
|
Construction construction;
|
|
Construction construction;
|
|
@@ -834,16 +1168,29 @@ public class ConstructionController extends BaseController {
|
|
if ("".equals(processingType)) {
|
|
if ("".equals(processingType)) {
|
|
flag += "政策处理类型不能为空\t";
|
|
flag += "政策处理类型不能为空\t";
|
|
can = false;
|
|
can = false;
|
|
|
|
+ } else {
|
|
|
|
+ String[] split = processingType.split(",");
|
|
|
|
+ for (String a : split) {
|
|
|
|
+ if ("行政政处".equals(a) || "农村政处".equals(a) || "民事政处".equals(a)) {
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ flag += "政策处理类型填写有误\t";
|
|
|
|
+ can = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if ("".equals(processingDescription)) {
|
|
if ("".equals(processingDescription)) {
|
|
flag += "政策处理描述不能为空\t";
|
|
flag += "政策处理描述不能为空\t";
|
|
can = false;
|
|
can = false;
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ construction.getQuantity().setProcessingType("");
|
|
|
|
+ construction.getQuantity().setProcessingDescription("");
|
|
}
|
|
}
|
|
if (can) {
|
|
if (can) {
|
|
constructionList.add(construction);
|
|
constructionList.add(construction);
|
|
} else {
|
|
} else {
|
|
- allFlag += quantity.getReserveProjectName() + flag + "\n";
|
|
|
|
|
|
+ allFlag += "<" + quantity.getReserveProjectName() + ">" + flag + "\n";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (constructionList.size() > 0) {
|
|
if (constructionList.size() > 0) {
|