|
@@ -1,9 +1,8 @@
|
|
|
/**
|
|
|
* Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
|
|
|
*/
|
|
|
-package com.jeeplus.modules.sg.financial.project.web;
|
|
|
+package com.jeeplus.modules.sg.managementcenter.project.web;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -11,11 +10,10 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.ConstraintViolationException;
|
|
|
|
|
|
-import com.jeeplus.modules.sg.financial.project.entity.Project;
|
|
|
-import com.jeeplus.modules.sg.financial.project.service.ProjectService;
|
|
|
-import com.jeeplus.modules.sg.financial.project.util.ImportUtil;
|
|
|
-import com.jeeplus.modules.sg.financial.project.util.ProExcelInfo;
|
|
|
-import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
|
|
+import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
|
|
|
+import com.jeeplus.modules.sg.managementcenter.project.service.ProjectService;
|
|
|
+import com.jeeplus.modules.sg.managementcenter.project.util.ImportUtil;
|
|
|
+import com.jeeplus.modules.sg.managementcenter.project.util.ProExcelInfo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
@@ -25,15 +23,12 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
-import com.google.common.collect.Lists;
|
|
|
import com.jeeplus.common.utils.DateUtils;
|
|
|
import com.jeeplus.common.json.AjaxJson;
|
|
|
import com.jeeplus.core.persistence.Page;
|
|
|
import com.jeeplus.core.web.BaseController;
|
|
|
import com.jeeplus.common.utils.StringUtils;
|
|
|
import com.jeeplus.common.utils.excel.ExportExcel;
|
|
|
-import com.jeeplus.common.utils.excel.ImportExcel;
|
|
|
-import com.jeeplus.modules.test.one.dialog.entity.Leave1;
|
|
|
|
|
|
/**
|
|
|
* 表单Controller
|
|
@@ -41,7 +36,7 @@ import com.jeeplus.modules.test.one.dialog.entity.Leave1;
|
|
|
* @version 2018-06-12
|
|
|
*/
|
|
|
@Controller
|
|
|
-@RequestMapping(value = "${adminPath}/sg/financial/project")
|
|
|
+@RequestMapping(value = "${adminPath}/sg/managementcenter/project")
|
|
|
public class ProjectController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@@ -66,7 +61,7 @@ public class ProjectController extends BaseController {
|
|
|
@RequestMapping(value = {"list", ""})
|
|
|
public String list(Project project, Model model) {
|
|
|
model.addAttribute("leave1", project);
|
|
|
- return "modules/sg/financial/project/projectList";
|
|
|
+ return "modules/sg/managementcenter/project/projectList";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -80,6 +75,14 @@ public class ProjectController extends BaseController {
|
|
|
return getBootstrapData(page);
|
|
|
}
|
|
|
|
|
|
+ @ResponseBody
|
|
|
+// @RequiresPermissions("test:one:dialog:leave1:list")
|
|
|
+ @RequestMapping(value = "dataSys")
|
|
|
+ public Map<String, Object> dataSys(Project project, HttpServletRequest request, HttpServletResponse response, Model model) {
|
|
|
+ project.setStatus("0");
|
|
|
+ Page<Project> page = projectService.findPage(new Page<Project>(request, response), project);
|
|
|
+ return getBootstrapData(page);
|
|
|
+ }
|
|
|
/**
|
|
|
* 查看,增加,编辑表单表单页面
|
|
|
*/
|
|
@@ -87,7 +90,7 @@ public class ProjectController extends BaseController {
|
|
|
@RequestMapping(value = "form")
|
|
|
public String form(Project project, Model model) {
|
|
|
model.addAttribute("leave1", project);
|
|
|
- return "modules/sg/financial/project/projectForm";
|
|
|
+ return "modules/sg/managementcenter/project/projectForm";
|
|
|
}
|
|
|
|
|
|
/**
|