Browse Source

2019 11-19 11:42

xs 5 years ago
parent
commit
e0e3549196

+ 1 - 1
src/main/java/com/jeeplus/modules/sg/financial/project/entity/Project.java

@@ -1,4 +1,4 @@
-package com.jeeplus.modules.sg.financial.project.entity;
+package com.jeeplus.modules.sg.managementcenter.project.entity;
 
 import com.jeeplus.common.utils.excel.annotation.ExcelField;
 import com.jeeplus.core.persistence.DataEntity;

+ 2 - 3
src/main/java/com/jeeplus/modules/sg/financial/project/mapper/ProjectMapper.java

@@ -1,12 +1,11 @@
 /**
  * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
  */
-package com.jeeplus.modules.sg.financial.project.mapper;
+package com.jeeplus.modules.sg.managementcenter.project.mapper;
 
 import com.jeeplus.core.persistence.BaseMapper;
 import com.jeeplus.core.persistence.annotation.MyBatisMapper;
-import com.jeeplus.modules.sg.financial.project.entity.Project;
-import com.jeeplus.modules.test.one.dialog.entity.Leave1;
+import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
 
 /**
  * 请假表单MAPPER接口

+ 1 - 1
src/main/java/com/jeeplus/modules/sg/financial/project/mapper/xml/ProjectMapper.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.jeeplus.modules.sg.financial.project.mapper.ProjectMapper">
+<mapper namespace="com.jeeplus.modules.sg.managementcenter.project.mapper.ProjectMapper">
     
 	<sql id="projectColumns">
 		a.id AS "id",

+ 3 - 5
src/main/java/com/jeeplus/modules/sg/financial/project/service/ProjectService.java

@@ -1,19 +1,17 @@
 /**
  * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
  */
-package com.jeeplus.modules.sg.financial.project.service;
+package com.jeeplus.modules.sg.managementcenter.project.service;
 
 import java.util.List;
 
-import com.jeeplus.modules.sg.financial.project.entity.Project;
-import com.jeeplus.modules.sg.financial.project.mapper.ProjectMapper;
+import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
+import com.jeeplus.modules.sg.managementcenter.project.mapper.ProjectMapper;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
 import com.jeeplus.core.persistence.Page;
 import com.jeeplus.core.service.CrudService;
-import com.jeeplus.modules.test.one.dialog.entity.Leave1;
-import com.jeeplus.modules.test.one.dialog.mapper.Leave1Mapper;
 
 /**
  * 请假表单Service

+ 1 - 1
src/main/java/com/jeeplus/modules/sg/financial/project/util/ImportUtil.java

@@ -1,7 +1,7 @@
 /**
  * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
  */
-package com.jeeplus.modules.sg.financial.project.util;
+package com.jeeplus.modules.sg.managementcenter.project.util;
 
 import com.google.common.collect.Lists;
 import com.jeeplus.common.utils.Reflections;

+ 2 - 3
src/main/java/com/jeeplus/modules/sg/financial/project/util/ProExcelInfo.java

@@ -1,6 +1,5 @@
-package com.jeeplus.modules.sg.financial.project.util;
-import com.jeeplus.common.utils.excel.ImportExcel;
-import com.jeeplus.modules.sg.financial.project.entity.Project;
+package com.jeeplus.modules.sg.managementcenter.project.util;
+import com.jeeplus.modules.sg.managementcenter.project.entity.Project;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.poi.ss.usermodel.Row;
 

+ 8 - 13
src/main/java/com/jeeplus/modules/sg/financial/project/web/ProjectController.java

@@ -1,9 +1,8 @@
 /**
  * Copyright &copy; 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";
 	}
 	
 		/**
@@ -87,7 +82,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";
 	}
 
 	/**

src/main/webapp/webpage/modules/sg/financial/project/projectForm.jsp → src/main/webapp/webpage/modules/sg/managementcenter/project/projectForm.jsp


+ 8 - 8
src/main/webapp/webpage/modules/sg/financial/project/projectList.js

@@ -36,7 +36,7 @@ $(document).ready(function() {
                //可供选择的每页的行数(*)    
                pageList: [5,10, 25, 50, 100],
                //这个接口需要处理bootstrap table传递的固定参数,并返回特定格式的json数据  
-               url: "${ctx}/sg/financial/project/data",
+               url: "${ctx}/sg/managementcenter/project/data",
                //默认值为 'limit',传给服务端的参数为:limit, offset, search, sort, order Else
                //queryParamsType:'',   
                ////查询参数,每次调用是会带上这个参数,可自定义                         
@@ -60,7 +60,7 @@ $(document).ready(function() {
                    } else if($el.data("item") == "delete"){
                         jp.confirm('确认要删除该请假表单记录吗?', function(){
                        	jp.loading();
-                       	jp.get("${ctx}/sg/financial/project/delete?id="+row.id, function(data){
+                       	jp.get("${ctx}/sg/managementcenter/project/delete?id="+row.id, function(data){
                    	  		if(data.success){
                    	  			$('#projectTable').bootstrapTable('refresh');
                    	  			jp.success(data.msg);
@@ -213,7 +213,7 @@ $(document).ready(function() {
 			    btn: ['确定', '关闭'],
 			    	btn1: function(index, layero){
 				        var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
-						iframeWin.contentWindow.importExcel('${ctx}/sg/financial/project/import', function (data) {
+						iframeWin.contentWindow.importExcel('${ctx}/sg/managementcenter/project/import', function (data) {
 							if(data.success){
 								jp.success(data.msg);
 								refresh();
@@ -233,7 +233,7 @@ $(document).ready(function() {
 		
 		
 	 $("#export").click(function(){//导出Excel文件
-			jp.downloadFile('${ctx}/sg/financial/project/export');
+			jp.downloadFile('${ctx}/sg/managementcenter/project/export');
 	  });
 
 		    
@@ -270,7 +270,7 @@ $(document).ready(function() {
 
 		jp.confirm('确认要删除该项目管理表单记录吗?', function(){
 			jp.loading();  	
-			jp.get("${ctx}/sg/financial/project/deleteAll?ids=" + getIdSelections(), function(data){
+			jp.get("${ctx}/sg/managementcenter/project/deleteAll?ids=" + getIdSelections(), function(data){
          	  		if(data.success){
          	  			$('#projectTable').bootstrapTable('refresh');
          	  			jp.success(data.msg);
@@ -288,7 +288,7 @@ $(document).ready(function() {
   }
   
    function add(){
-	  jp.openSaveDialog('新增项目管理表单', "${ctx}/sg/financial/project/form",'800px', '500px');
+	  jp.openSaveDialog('新增项目管理表单', "${ctx}/sg/managementcenter/project/form",'800px', '500px');
   }
 
 
@@ -297,14 +297,14 @@ $(document).ready(function() {
        if(id == undefined){
 	      id = getIdSelections();
 	}
-	jp.openSaveDialog('编辑项目管理表单', "${ctx}/sg/financial/project/form?id=" + id, '800px', '500px');
+	jp.openSaveDialog('编辑项目管理表单', "${ctx}/sg/managementcenter/project/form?id=" + id, '800px', '500px');
   }
   
  function view(id){//没有权限时,不显示确定按钮
       if(id == undefined){
              id = getIdSelections();
       }
-        jp.openViewDialog('查看项目管理表单', "${ctx}/sg/financial/project/form?id=" + id, '800px', '500px');
+        jp.openViewDialog('查看项目管理表单', "${ctx}/sg/managementcenter/project/form?id=" + id, '800px', '500px');
  }
 
 

src/main/webapp/webpage/modules/sg/financial/project/projectList.jsp → src/main/webapp/webpage/modules/sg/managementcenter/project/projectList.jsp