From 5fb17867cf9172acf19802f57a86342dcd997da9 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 4 Mar 2017 00:16:57 +0800 Subject: [PATCH] JavaEE Enterprise Basic Development Platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New version 4.2.0-RELEASE_bugfixed.2 release! # https://github.com/ushelp/EasyEE-Auto/issues/2 # 搜索按钮添加国际化支持 # 修复 mybaits 用户排序问题 # Search button add i18n support # Fixed mybatis sysuser sort problem --- .../configuration/MultipartConfiguration.java | 5 - .../main/resources/i18n/messages.properties | 2 + .../resources/i18n/messages_en.properties | 2 + .../resources/i18n/messages_zh_CN.properties | 2 + .../webapp/WEB-INF/content/main/hr/Dept.jsp | 5 +- .../webapp/WEB-INF/content/main/hr/Emp.jsp | 5 +- .../WEB-INF/content/main/sys/sysLog.jsp | 2 +- .../WEB-INF/content/main/sys/sysRole.jsp | 2 +- .../WEB-INF/content/main/sys/sysUser.jsp | 2 +- .../sh/base/controller/BaseController.java | 3 +- .../main/resources/i18n/messages.properties | 2 + .../resources/i18n/messages_en.properties | 2 + .../resources/i18n/messages_zh_CN.properties | 2 + .../webapp/WEB-INF/content/main/hr/Dept.jsp | 4 +- .../webapp/WEB-INF/content/main/hr/Emp.jsp | 3 +- .../src/main/webapp/WEB-INF/shiro_temp.ini | 306 ------------------ .../sm/base/controller/BaseController.java | 4 +- .../sys/service/impl/SysUserServiceImpl.java | 15 +- .../main/resources/i18n/messages.properties | 2 + .../resources/i18n/messages_en.properties | 2 + .../resources/i18n/messages_zh_CN.properties | 2 + .../webapp/WEB-INF/content/main/hr/Dept.jsp | 5 +- .../webapp/WEB-INF/content/main/hr/Emp.jsp | 5 +- .../WEB-INF/content/main/sys/sysLog.jsp | 2 +- .../WEB-INF/content/main/sys/sysRole.jsp | 2 +- .../WEB-INF/content/main/sys/sysUser.jsp | 2 +- .../sys/service/impl/SysUserServiceImpl.java | 15 +- .../main/resources/i18n/messages.properties | 2 + .../resources/i18n/messages_en.properties | 2 + .../resources/i18n/messages_zh_CN.properties | 2 + .../webapp/WEB-INF/content/main/hr/Dept.jsp | 5 +- .../webapp/WEB-INF/content/main/hr/Emp.jsp | 5 +- .../WEB-INF/content/main/sys/sysLog.jsp | 2 +- .../WEB-INF/content/main/sys/sysRole.jsp | 2 +- .../WEB-INF/content/main/sys/sysUser.jsp | 2 +- .../easyee/ssh/base/action/BaseAction.java | 2 +- .../base/dao/impl/CommonDAOSpringImpl.java | 2 +- .../main/resources/i18n/messages.properties | 2 + .../resources/i18n/messages_en.properties | 2 + .../resources/i18n/messages_zh_CN.properties | 2 + .../webapp/WEB-INF/content/main/hr/Dept.jsp | 4 +- .../webapp/WEB-INF/content/main/hr/Emp.jsp | 4 +- .../WEB-INF/content/main/sys/sysLog.jsp | 2 +- .../WEB-INF/content/main/sys/sysRole.jsp | 2 +- .../WEB-INF/content/main/sys/sysUser.jsp | 2 +- .../WEB-INF/content/main/hr/Dept.jsp | 4 +- .../WEB-INF/content/main/hr/Emp.jsp | 4 +- .../WEB-INF/content/main/sys/sysLog.jsp | 2 +- .../WEB-INF/content/main/sys/sysRole.jsp | 2 +- .../WEB-INF/content/main/sys/sysUser.jsp | 2 +- .../content/main/sys/sysUser_iframe.jsp | 2 +- 51 files changed, 108 insertions(+), 359 deletions(-) delete mode 100644 project/easyee-sh/src/main/webapp/WEB-INF/shiro_temp.ini diff --git a/project/easyee-sh-springboot/src/main/java/cn/easyproject/easyee/sh/base/configuration/MultipartConfiguration.java b/project/easyee-sh-springboot/src/main/java/cn/easyproject/easyee/sh/base/configuration/MultipartConfiguration.java index 35d635b7..22c3e7d6 100644 --- a/project/easyee-sh-springboot/src/main/java/cn/easyproject/easyee/sh/base/configuration/MultipartConfiguration.java +++ b/project/easyee-sh-springboot/src/main/java/cn/easyproject/easyee/sh/base/configuration/MultipartConfiguration.java @@ -2,15 +2,10 @@ import javax.servlet.MultipartConfigElement; -import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.web.servlet.MultipartConfigFactory; -import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.context.support.ReloadableResourceBundleMessageSource; -import org.springframework.web.servlet.LocaleResolver; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; -import org.springframework.web.servlet.i18n.CookieLocaleResolver; /** * diff --git a/project/easyee-sh-springboot/src/main/resources/i18n/messages.properties b/project/easyee-sh-springboot/src/main/resources/i18n/messages.properties index 84b9f370..67f5a774 100644 --- a/project/easyee-sh-springboot/src/main/resources/i18n/messages.properties +++ b/project/easyee-sh-springboot/src/main/resources/i18n/messages.properties @@ -5,11 +5,13 @@ label.add = Add label.cancel = Cancel label.cancelEdit = Cancel Edit label.chkbox = Select +label.clear = Clear label.delete = Destory label.edit = Edit label.info = \ information label.list = \ List label.reset = Reset +label.search = Search msg.choiceDeleteRow = Please select the row to delete msg.choiceEditRow = Please select the row you want to modify diff --git a/project/easyee-sh-springboot/src/main/resources/i18n/messages_en.properties b/project/easyee-sh-springboot/src/main/resources/i18n/messages_en.properties index 84b9f370..67f5a774 100644 --- a/project/easyee-sh-springboot/src/main/resources/i18n/messages_en.properties +++ b/project/easyee-sh-springboot/src/main/resources/i18n/messages_en.properties @@ -5,11 +5,13 @@ label.add = Add label.cancel = Cancel label.cancelEdit = Cancel Edit label.chkbox = Select +label.clear = Clear label.delete = Destory label.edit = Edit label.info = \ information label.list = \ List label.reset = Reset +label.search = Search msg.choiceDeleteRow = Please select the row to delete msg.choiceEditRow = Please select the row you want to modify diff --git a/project/easyee-sh-springboot/src/main/resources/i18n/messages_zh_CN.properties b/project/easyee-sh-springboot/src/main/resources/i18n/messages_zh_CN.properties index 22f1f160..e6f666c9 100644 --- a/project/easyee-sh-springboot/src/main/resources/i18n/messages_zh_CN.properties +++ b/project/easyee-sh-springboot/src/main/resources/i18n/messages_zh_CN.properties @@ -5,11 +5,13 @@ label.add = \u6DFB\u52A0 label.cancel = \u53D6\u6D88 label.cancelEdit = \u64A4\u9500\u4FEE\u6539 label.chkbox = \u591A\u9009\u6846 +label.clear = \u6E05\u9664 label.delete = \u5220\u9664 label.edit = \u4FEE\u6539 label.info = \u4FE1\u606F label.list = \u5217\u8868 label.reset = \u91CD\u7F6E +label.search = \u641C\u7D22 msg.choiceDeleteRow = \u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u884C msg.choiceEditRow = \u8BF7\u9009\u62E9\u8981\u4FEE\u6539\u7684\u884C diff --git a/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Dept.jsp b/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Dept.jsp index 23970945..51eec7df 100644 --- a/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Dept.jsp +++ b/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Dept.jsp @@ -3,6 +3,7 @@ String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> +<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%> <%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%> <%-- 1. 页面Datagrid初始化相关JS --%> @@ -83,8 +84,8 @@
部门名称: 地址: - Search - Clear + +
添加部门 diff --git a/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Emp.jsp b/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Emp.jsp index 86df9216..d264fbf9 100644 --- a/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Emp.jsp +++ b/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/hr/Emp.jsp @@ -5,6 +5,7 @@ + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> +<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%> <%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%> <%-- 1. 页面Datagrid初始化相关JS --%> <%-- JS代码必须包含在页面中,引入外部JS文件会导致表格界面在未完成初始化前就显示,出现短暂的未初始化界面 --%> @@ -182,8 +183,8 @@ id="empDeptno" style="width:90px;" data-options="editable:false,panelHeight:'auto'"> Search - Clear + onclick="Emp.doSearch()"> + Search + onclick="sysLog.doSearch()"> diff --git a/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/sys/sysRole.jsp b/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/sys/sysRole.jsp index fcd5616a..8ee4036b 100644 --- a/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/sys/sysRole.jsp +++ b/project/easyee-sh-springboot/src/main/webapp/WEB-INF/content/main/sys/sysRole.jsp @@ -172,7 +172,7 @@ Search + onclick="sysRole.doSearch()"> 正常 Search + onclick="sysUser.doSearch()"> <%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%> - +<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%> <%-- 1. 页面Datagrid初始化相关JS --%> <%-- JS代码必须包含在页面中,引入外部JS文件会导致表格界面在未完成初始化前就显示,出现短暂的未初始化界面 --%>