diff --git a/common/src/main/resources/static/jquery-ztree/3.5/css/metro/zTreeStyle.css b/common/src/main/resources/static/jquery-ztree/3.5/css/metro/zTreeStyle.css index 468de52b..faa887fe 100644 --- a/common/src/main/resources/static/jquery-ztree/3.5/css/metro/zTreeStyle.css +++ b/common/src/main/resources/static/jquery-ztree/3.5/css/metro/zTreeStyle.css @@ -98,7 +98,7 @@ ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height /* 树搜索相关 */ .treeSearchInput {padding:13px 0 0 20px;} .treeSearchInput label {padding:5px 0 3px 0;font-size:13px;font-weight:normal;vertical-align:middle;} -.treeSearchInput input {width:145px;vertical-align:middle;line-height:24px;height:26px;border:1px solid #bbb;padding:0 4px;} +.treeSearchInput input {width:140px;vertical-align:middle;line-height:24px;height:26px;border:1px solid #bbb;padding:0 4px;} .treeSearchInput button {border:1px solid #bbb;vertical-align:middle;height:26px;height:26px\9;font-size:13px;background:#efefef;padding:0 8px;} .treeShowHideButton {position:absolute;right:8px;top:-3px;font-size:12px;color:#333;z-index:3;} .treeShowHideButton label {cursor:pointer;} diff --git a/modules/core/src/main/java/com/jeesite/modules/sys/web/CompanyController.java b/modules/core/src/main/java/com/jeesite/modules/sys/web/CompanyController.java index 73980342..e4b7315d 100644 --- a/modules/core/src/main/java/com/jeesite/modules/sys/web/CompanyController.java +++ b/modules/core/src/main/java/com/jeesite/modules/sys/web/CompanyController.java @@ -144,7 +144,7 @@ public class CompanyController extends BaseController { @ResponseBody public String save(@Validated Company company) { companyService.save(company); - return renderResult(Global.TRUE, "保存公司'" + company.getCompanyName() + "'成功!"); + return renderResult(Global.TRUE, text("保存公司''{0}''成功", company.getCompanyName())); } /** @@ -160,11 +160,11 @@ public class CompanyController extends BaseController { where.setParentCodes("," + company.getId() + ","); long count = companyService.findCount(where); if (count > 0) { - return renderResult(Global.FALSE, "该公司包含未停用的子公司!"); + return renderResult(Global.FALSE, text("该公司包含未停用的子公司!")); } company.setStatus(Company.STATUS_DISABLE); companyService.updateStatus(company); - return renderResult(Global.TRUE, "停用公司" + company.getCompanyName() + "成功"); + return renderResult(Global.TRUE, text("停用公司''{0}''成功", company.getCompanyName())); } /** @@ -177,7 +177,7 @@ public class CompanyController extends BaseController { public String enable(Company company) { company.setStatus(Company.STATUS_NORMAL); companyService.updateStatus(company); - return renderResult(Global.TRUE, "启用公司" + company.getCompanyName() + "成功"); + return renderResult(Global.TRUE, text("启用公司''{0}''成功", company.getCompanyName())); } /** @@ -189,7 +189,7 @@ public class CompanyController extends BaseController { @ResponseBody public String delete(Company company) { companyService.delete(company); - return renderResult(Global.TRUE, "删除公司成功!"); + return renderResult(Global.TRUE, text("删除公司''{0}''成功", company.getCompanyName())); } /** diff --git a/modules/core/src/main/java/com/jeesite/modules/sys/web/OfficeController.java b/modules/core/src/main/java/com/jeesite/modules/sys/web/OfficeController.java index 62c01faf..ce8db414 100644 --- a/modules/core/src/main/java/com/jeesite/modules/sys/web/OfficeController.java +++ b/modules/core/src/main/java/com/jeesite/modules/sys/web/OfficeController.java @@ -149,7 +149,7 @@ public class OfficeController extends BaseController { @ResponseBody public String save(@Validated Office office, String cmd, Model model) { officeService.save(office); - return renderResult(Global.TRUE, "保存机构'" + office.getOfficeName() + "'成功"); + return renderResult(Global.TRUE, text("保存机构''{0}''成功", office.getOfficeName())); } /** @@ -165,11 +165,11 @@ public class OfficeController extends BaseController { where.setParentCodes("," + office.getId() + ","); long count = officeService.findCount(where); if (count > 0) { - return renderResult(Global.FALSE, "该机构包含未停用的子机构!"); + return renderResult(Global.FALSE, text("该机构包含未停用的子机构!")); } office.setStatus(Office.STATUS_DISABLE); officeService.updateStatus(office); - return renderResult(Global.TRUE, "停用机构" + office.getOfficeName() + "成功"); + return renderResult(Global.TRUE, text("停用机构''{0}''成功", office.getOfficeName())); } /** @@ -182,7 +182,7 @@ public class OfficeController extends BaseController { public String enable(Office office) { office.setStatus(Office.STATUS_NORMAL); officeService.updateStatus(office); - return renderResult(Global.TRUE, "启用机构" + office.getOfficeName() + "成功"); + return renderResult(Global.TRUE, text("启用机构''{0}''成功", office.getOfficeName())); } /** @@ -194,7 +194,7 @@ public class OfficeController extends BaseController { @ResponseBody public String delete(Office office) { officeService.delete(office); - return renderResult(Global.TRUE, "删除机构"+office.getOfficeName()+"成功"); + return renderResult(Global.TRUE, text("删除机构''{0}''成功", office.getOfficeName())); } /** diff --git a/modules/core/src/main/java/com/jeesite/modules/sys/web/PostController.java b/modules/core/src/main/java/com/jeesite/modules/sys/web/PostController.java index fab68065..e83f2d30 100644 --- a/modules/core/src/main/java/com/jeesite/modules/sys/web/PostController.java +++ b/modules/core/src/main/java/com/jeesite/modules/sys/web/PostController.java @@ -68,10 +68,10 @@ public class PostController extends BaseController { @ResponseBody public String save(@Validated Post post, String oldRoleName, Model model) { if (!"true".equals(checkPostName(oldRoleName, post.getPostName()))) { - return renderResult(Global.FALSE, "保存岗位'" + post.getPostName() + "'失败, 岗位名已存在"); + return renderResult(Global.FALSE, text("保存岗位失败,岗位名称''{0}''已存在", post.getPostName())); } postService.save(post); - return renderResult(Global.TRUE, "保存岗位'" + post.getPostName() + "'成功!"); + return renderResult(Global.TRUE, text("保存岗位''{0}''成功", post.getPostName())); } @RequiresPermissions("sys:post:edit") @@ -80,7 +80,7 @@ public class PostController extends BaseController { public String disable(Post post, HttpServletRequest request, HttpServletResponse response, Model model) { post.setStatus(Post.STATUS_DISABLE); postService.updateStatus(post); - return renderResult(Global.TRUE, "停用岗位'" + post.getPostName() + "'成功!"); + return renderResult(Global.TRUE, text("停用岗位''{0}''成功", post.getPostName())); } @RequiresPermissions("sys:post:edit") @@ -89,7 +89,7 @@ public class PostController extends BaseController { public String enable(Post post, HttpServletRequest request, HttpServletResponse response, Model model) { post.setStatus(Post.STATUS_NORMAL); postService.updateStatus(post); - return renderResult(Global.TRUE, "启用岗位'" + post.getPostName() + "'成功!"); + return renderResult(Global.TRUE, text("启用岗位''{0}''成功", post.getPostName())); } @RequiresPermissions("sys:post:edit") @@ -97,7 +97,7 @@ public class PostController extends BaseController { @ResponseBody public String delete(Post post) { postService.delete(post); - return renderResult(Global.TRUE, "删除岗位成功"); + return renderResult(Global.TRUE, text("删除岗位''{0}''成功", post.getPostName())); } /** diff --git a/modules/core/src/main/java/com/jeesite/modules/sys/web/user/EmpUserController.java b/modules/core/src/main/java/com/jeesite/modules/sys/web/user/EmpUserController.java index 2d9df268..4c3587f0 100644 --- a/modules/core/src/main/java/com/jeesite/modules/sys/web/user/EmpUserController.java +++ b/modules/core/src/main/java/com/jeesite/modules/sys/web/user/EmpUserController.java @@ -142,7 +142,7 @@ public class EmpUserController extends BaseController { return renderResult(Global.FALSE, "非法操作,不能够操作此用户!"); } if (!Global.TRUE.equals(userService.checkLoginCode(oldLoginCode, empUser.getLoginCode()/*, null*/))) { - return renderResult(Global.FALSE, text("保存用户'{0}'失败,登录账号已存在", empUser.getLoginCode())); + return renderResult(Global.FALSE, text("保存用户失败,登录账号''{0}''已存在", empUser.getLoginCode())); } if (StringUtils.inString(op, Global.OP_ADD, Global.OP_EDIT)){ empUser.setUserType(User.USER_TYPE_EMPLOYEE); @@ -248,7 +248,7 @@ public class EmpUserController extends BaseController { } empUser.setStatus(User.STATUS_DISABLE); userService.updateStatus(empUser); - return renderResult(Global.TRUE, text("停用用户成功")); + return renderResult(Global.TRUE, text("停用用户''{0}''成功", empUser.getUserName())); } /** @@ -268,7 +268,7 @@ public class EmpUserController extends BaseController { } empUser.setStatus(User.STATUS_NORMAL); userService.updateStatus(empUser); - return renderResult(Global.TRUE, text("启用用户成功")); + return renderResult(Global.TRUE, text("启用用户''{0}''成功", empUser.getUserName())); } /** @@ -287,7 +287,7 @@ public class EmpUserController extends BaseController { return renderResult(Global.FALSE, "非法操作,不能够操作此用户!"); } userService.updatePassword(empUser.getUserCode(), null); - return renderResult(Global.TRUE, text("重置用户密码成功")); + return renderResult(Global.TRUE, text("重置用户''{0}''密码成功", empUser.getUserName())); } /** diff --git a/modules/core/src/main/resources/db/upgrade/core/versions b/modules/core/src/main/resources/db/upgrade/core/versions index b648b3bb..dd57ee08 100644 --- a/modules/core/src/main/resources/db/upgrade/core/versions +++ b/modules/core/src/main/resources/db/upgrade/core/versions @@ -1,2 +1,3 @@ 4.0.0 -4.0.1 \ No newline at end of file +4.0.1 +4.0.2 \ No newline at end of file diff --git a/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties b/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties index 9ace6d21..749c28dc 100644 --- a/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties +++ b/modules/core/src/main/resources/i18n/core/common_view/i18n_en.properties @@ -1,6 +1,8 @@ # =========== common =========== +英语=English + 保\ 存=Save 关\ 闭=Close 确定=Ok diff --git a/modules/core/src/main/resources/i18n/core/sys/i18n_en.properties b/modules/core/src/main/resources/i18n/core/sys/i18n_en.properties index 6cfd94a1..57f236d8 100644 --- a/modules/core/src/main/resources/i18n/core/sys/i18n_en.properties +++ b/modules/core/src/main/resources/i18n/core/sys/i18n_en.properties @@ -1,8 +1,45 @@ +# =========== 通用字典 =========== + +是=Yes +否=No +男=Man +女=Woman +正常=Normal +删除=Delete +停用=Disable +冻结=Freeze +待审=Audit +驳回=Rejected +草稿=Draft + +# =========== 通用字段 =========== + +状态=Status +备注信息=Remarks +创建者=Create by +创建时间=Create date +更新者=Update by +更新时间=Update date +排序号=Sort + +# =========== 功能标题 =========== + +系统管理=System mgt +组织管理=Organization +用户管理=User manage +机构管理=Office manage +公司管理=Company manage +岗位管理=Position manage + +用户选择=User select +机构选择=Office select +公司选择=Company select +区域选择=Area select +日期选择=Date select +日期时间=Date time # =========== 登录页 =========== -英语=English - 登录=Login 请填写登录账号.=Please enter login account. @@ -45,10 +82,6 @@ 修改头像=Change Avatar -用户昵称=Nickname -电子邮箱=Email -手机号码=Mobile -办公电话=Phone 个性签名=Signature 上次登录=Last Login 时间=Time @@ -66,43 +99,6 @@ 新保密问题=New secret questions 新保密问题答案=New secret answers -# =========== 通用字典 =========== - -是=Yes -否=No -男=Man -女=Woman -正常=Normal -删除=Delete -停用=Disable -冻结=Freeze -待审=Audit -驳回=Rejected -草稿=Draft - -# =========== 通用字段 =========== - -状态=Status -备注信息=Remarks -创建者=Create by -创建时间=Create date -更新者=Update by -更新时间=Update date - -# =========== 功能标题 =========== - -系统管理=System mgt -组织管理=Organization -用户管理=User manage -机构管理=Office manage -公司管理=Company manage -岗位管理=Position manage - -用户选择=User select -机构选择=Office select -公司选择=Company select -区域选择=Area select - # =========== 用户管理 =========== 组织机构=Office @@ -123,12 +119,12 @@ 确认要将该用户密码重置到初始状态吗?=Are you sure want to reset the user password to the initial state? 重置密码=Reset password +保存用户失败,登录账号''{0}''已存在=Save user failed, login account ''{0}'' already exists 保存用户''{0}''成功=Save the user ''{0}'' success -保存用户''{0}''失败,登录账号已存在=Save user ''{0}'' failed, login account already exists 停用用户失败,不允许停用当前用户=Disable user failed. Not disable current user -停用用户成功=Disable user success -启用用户成功=Enable user success -重置用户密码成功=Reset user password success +停用用户''{0}''成功=Disable user ''{0}'' success +启用用户''{0}''成功=Enable user ''{0}'' success +重置用户''{0}''密码成功=Reset user ''{0}'' password success 删除用户失败,不允许删除当前用户=Delete user failed. Not delete current user 删除用户''{0}''成功=Delete user ''{0}'' success 用户分配数据权限成功=User assign data scopes success @@ -175,6 +171,21 @@ 确认要删除该机构及所有子机构吗?=Are you sure want to delete this office and sub office? 新增下级机构=New sub office +保存机构''{0}''成功=Save the office ''{0}'' success +该机构包含未停用的子机构!=The office contains enable sub office! +停用机构''{0}''成功=Disable office ''{0}'' success +启用机构''{0}''成功=Enable office ''{0}'' success +删除机构''{0}''成功=Delete office ''{0}'' success + +上级机构=Parent Office +机构名称=Office name +机构代码=Office code +机构全称=Office full name +机构类型=Office type +负责人=Principal +联系地址=Address +邮政编码=Zip code + # =========== 公司管理 =========== 新增公司=New company @@ -188,6 +199,19 @@ 确认要删除该公司及所有子公司吗?=Are you sure want to delete this company and sub company? 新增下级公司=New sub company +保存公司''{0}''成功=Save the company ''{0}'' success +该公司包含未停用的子公司!=The company contains enable sub company! +停用公司''{0}''成功=Disable company ''{0}'' success +启用公司''{0}''成功=Enable company ''{0}'' success +删除公司''{0}''成功=Delete company ''{0}'' success + +上级公司=Parent company +公司名称=Company name +公司编码=Company code +公司全称=Company full name +归属区域=Area +包含机构=Office + # =========== 岗位管理 =========== 新增岗位=New position @@ -199,3 +223,14 @@ 确认要启用该岗位吗?=Are you sure want to enable this position? 删除岗位=Delete position 确认要删除该岗位吗?=Are you sure want to delete this position? + +保存岗位失败,岗位名称''{0}''已存在=Save position failed, position name ''{0}'' already exists +保存岗位''{0}''成功=Save the position ''{0}'' success +停用岗位''{0}''成功=Disable position ''{0}'' success +启用岗位''{0}''成功=Enable position ''{0}'' success +删除岗位''{0}''成功=Delete position ''{0}'' success + +岗位名称=Position name +岗位名称已存在=Position already exists +岗位编码=Position code +岗位分类=Position type diff --git a/modules/core/src/main/resources/views/modules/sys/companyForm.html b/modules/core/src/main/resources/views/modules/sys/companyForm.html index 49c3d2e0..4cf2de14 100644 --- a/modules/core/src/main/resources/views/modules/sys/companyForm.html +++ b/modules/core/src/main/resources/views/modules/sys/companyForm.html @@ -11,13 +11,13 @@ <#form:form id="inputForm" model="${company}" action="${ctx}/sys/company/save" method="post" class="form-horizontal">