user_backup20171225.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>用户信息</title>
  7. <t:base type="jquery,easyui,tools"></t:base>
  8. <%--update-start--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
  9. <%--update-start--Author:zhangguoming Date:20140825 for:添加所属部门combobox多选的处理方法--%>
  10. <script>
  11. <%-- // update-start--Author:zhangguoming Date:20140826 for:将combobox修改为combotree
  12. function setOrgIds() {
  13. // var orgIds = $("#orgSelect").combobox("getValues");
  14. var orgIds = $("#orgSelect").combotree("getValues");
  15. $("#orgIds").val(orgIds);
  16. }
  17. $(function() {
  18. $("#orgSelect").combotree({
  19. onChange: function(n, o) {
  20. if($("#orgSelect").combotree("getValues") != "") {
  21. $("#orgSelect option").eq(1).attr("selected", true);
  22. } else {
  23. $("#orgSelect option").eq(1).attr("selected", false);
  24. }
  25. }
  26. });
  27. $("#orgSelect").combobox("setValues", ${orgIdList});
  28. $("#orgSelect").combotree("setValues", ${orgIdList});
  29. }); --%>
  30. // update-start--Author:zhangguoming Date:20140826 for:将combobox修改为combotree
  31. function openDepartmentSelect() {
  32. $.dialog.setting.zIndex = getzIndex();
  33. var orgIds = $("#orgIds").val();
  34. $.dialog({content: 'url:departController.do?departSelect&orgIds='+orgIds, zIndex: 2101, title: '所属部门列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  35. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
  36. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  37. ]}).zindex();
  38. }
  39. function callbackDepartmentSelect() {
  40. var iframe = this.iframe.contentWindow;
  41. var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
  42. var nodes = treeObj.getCheckedNodes(true);
  43. if(nodes.length>0){
  44. var ids='',names='';
  45. for(i=0;i<nodes.length;i++){
  46. var node = nodes[i];
  47. ids += node.id+',';
  48. names += node.name+',';
  49. }
  50. //判断兼容机构里有没有所属机构
  51. if(ids.length>0 && $('#jzorgIds').val().length>0){
  52. if($('#jzorgIds').val().indexOf(ids)>=0){
  53. console.info("ids:"+ids);
  54. console.info("orgIds:"+$('#orgIds').val());
  55. $.messager.alert("错误","所属机构和兼容机构不能有重叠!!");
  56. }else{
  57. $('#departname').val(names);
  58. $('#departname').blur();
  59. $('#orgIds').val(ids);
  60. }
  61. }else{
  62. $('#departname').val(names);
  63. $('#departname').blur();
  64. $('#orgIds').val(ids);
  65. }
  66. }
  67. }
  68. function callbackClean(){
  69. $('#departname').val('');
  70. $('#orgIds').val('');
  71. }
  72. function setOrgIds() {}
  73. $(function(){
  74. $("#departname").prev().hide();
  75. $("#jzdepartname").prev().hide();
  76. });
  77. <%--update-end--Author:zhangguoming Date:20140825 for:添加所属部门combobox多选的处理方法--%>
  78. //兼职机构 start
  79. function openDepartmentSelectjz() {
  80. $.dialog.setting.zIndex = getzIndex();
  81. var jzorgIds = $("#jzorgIds").val();
  82. $.dialog({content: 'url:departController.do?jzdepartSelect&jzorgIds='+jzorgIds, zIndex: 2100, title: '兼职机构列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  83. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelectjz, focus: true},
  84. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  85. ]}).zindex();
  86. }
  87. function callbackDepartmentSelectjz() {
  88. var iframe = this.iframe.contentWindow;
  89. var treeObj = iframe.$.fn.zTree.getZTreeObj("jzdepartSelect");
  90. var nodes = treeObj.getCheckedNodes(true);
  91. if(nodes.length>0){
  92. var ids='',names='';
  93. for(i=0;i<nodes.length;i++){
  94. var node = nodes[i];
  95. ids += node.id+',';
  96. names += node.name+',';
  97. }
  98. //判断兼容机构里有没有所属机构
  99. if(ids.length>0 && $('#orgIds').val().length>0){
  100. if(ids.indexOf( $('#orgIds').val() )>=0){
  101. console.info("ids:"+ids);
  102. console.info("orgIds:"+$('#orgIds').val());
  103. $.messager.alert("错误","所属机构和兼容机构不能有重叠!");
  104. }else{
  105. $('#jzdepartname').val(names);
  106. $('#jzdepartname').blur();
  107. $('#jzorgIds').val(ids);
  108. }
  109. }else{
  110. $('#jzdepartname').val(names);
  111. $('#jzdepartname').blur();
  112. $('#jzorgIds').val(ids);
  113. }
  114. }
  115. }
  116. function callbackCleanjz(){
  117. $('#jzdepartname').val('');
  118. $('#jzorgIds').val('');
  119. }
  120. //兼职机构 end
  121. function contains(arr, obj) {
  122. var i = arr.length;
  123. while (i--) {
  124. if (arr[i] === obj) {
  125. return true;
  126. }
  127. }
  128. return false;
  129. }
  130. </script>
  131. <%--update-end--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
  132. </head>
  133. <body style="overflow-y: hidden" scroll="no">
  134. <%--update-start--Author:zhangguoming Date:20140825 for:格式化页面代码 并 添加所属部门combobox多选框--%>
  135. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="userController.do?saveUser" beforeSubmit="setOrgIds">
  136. <input id="id" name="id" type="hidden" value="${user.id }">
  137. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  138. <tr>
  139. <td align="right" width="25%" nowrap>
  140. <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.username"/>: </label>
  141. </td>
  142. <td class="value" width="85%">
  143. <c:if test="${user.id!=null }"> ${user.userName } </c:if>
  144. <c:if test="${user.id==null }">
  145. <input id="userName" class="inputxt" name="userName" validType="t_s_base_user,userName,id" value="${user.userName }" datatype="s2-10" />
  146. <span class="Validform_checktip"> <t:mutiLang langKey="username.rang2to10"/></span>
  147. </c:if>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td align="right" width="10%" nowrap>
  152. <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.real.name"/>: </label>
  153. </td>
  154. <td class="value" width="10%">
  155. <input id="realName" class="inputxt" name="realName" value="${user.realName }" datatype="s2-10">
  156. <span class="Validform_checktip"><t:mutiLang langKey="fill.realname"/></span>
  157. </td>
  158. </tr>
  159. <c:if test="${user.id==null }">
  160. <tr>
  161. <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.password"/>: </label></td>
  162. <td class="value">
  163. <input type="password" class="inputxt" value="" name="password" plugin="passwordStrength" datatype="*6-18" errormsg="" />
  164. <span class="passwordStrength" style="display: none;">
  165. <span><t:mutiLang langKey="common.weak"/></span>
  166. <span><t:mutiLang langKey="common.middle"/></span>
  167. <span class="last"><t:mutiLang langKey="common.strong"/></span>
  168. </span>
  169. <span class="Validform_checktip"> <t:mutiLang langKey="password.rang6to18"/></span>
  170. </td>
  171. </tr>
  172. <tr>
  173. <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.repeat.password"/>: </label></td>
  174. <td class="value">
  175. <input id="repassword" class="inputxt" type="password" value="${user.password}" recheck="password" datatype="*6-18" errormsg="两次输入的密码不一致!">
  176. <span class="Validform_checktip"><t:mutiLang langKey="common.repeat.password"/></span>
  177. </td>
  178. </tr>
  179. </c:if>
  180. <tr>
  181. <td align="right">
  182. <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.department"/>: </label>
  183. </td>
  184. <td class="value">
  185. <%--update-start--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
  186. <%--update-start--Author:zhangguoming Date:20140826 for:将combobox修改为combotree--%>
  187. <%--<select class="easyui-combobox" data-options="multiple:true, editable: false" id="orgSelect" datatype="*">--%>
  188. <%--<select class="easyui-combotree" data-options="url:'departController.do?getOrgTree', multiple:true, cascadeCheck:false"
  189. id="orgSelect" name="orgSelect" datatype="select1">
  190. update-end--Author:zhangguoming Date:20140826 for:将combobox修改为combotree
  191. <c:forEach items="${departList}" var="depart">
  192. <option value="${depart.id }">${depart.departname}</option>
  193. </c:forEach>
  194. </select> --%>
  195. <%-- <t:departSelect departId="${tsDepart.id }" departName="${tsDepart.departname }"></t:departSelect>--%>
  196. <input id="departname" name="departname" type="text" readonly="readonly" class="inputxt" datatype="*" value="${departname}">
  197. <input id="orgIds" name="orgIds" type="hidden" value="${orgIds}">
  198. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="departSearch" onclick="openDepartmentSelect()">选择</a>
  199. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-redo" id="departRedo" onclick="callbackClean()">清空</a>
  200. <%--update-end--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
  201. <span class="Validform_checktip"><t:mutiLang langKey="please.only.department"/></span>
  202. </td>
  203. </tr>
  204. <!-- 兼职机构 start -->
  205. <tr>
  206. <td align="right">
  207. <label class="Validform_label"> <t:mutiLang langKey="common.jianzhidepartment"/>: </label>
  208. </td>
  209. <td class="value">
  210. <input id="jzdepartname" name="jzdepartname" type="text" readonly="readonly" class="inputxt" value="${jzdepartname}">
  211. <input id="jzorgIds" name="jzorgIds" type="hidden" value="${jzorgIds}">
  212. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="jzdepartSearch" onclick="openDepartmentSelectjz()">选择</a>
  213. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-redo" id="jzdepartRedo" onclick="callbackCleanjz()">清空</a>
  214. <%--update-end--Author:jg_renjie Date:20160320 for:#942 【组件封装】所属部门弹出模式,目前是列表,得改造成树方式--%>
  215. <span class="Validform_checktip"><t:mutiLang langKey="please.muti.jzdepartment"/></span>
  216. </td>
  217. </tr>
  218. <!-- 兼职机构 end -->
  219. <tr>
  220. <td align="right">
  221. <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.role"/>: </label>
  222. </td>
  223. <td class="value" nowrap>
  224. <input id="roleid" name="roleid" type="hidden" value="${id}"/>
  225. <input name="roleName" id="roleName" class="inputxt" value="${roleName }" readonly="readonly" datatype="*" />
  226. <t:choose hiddenName="roleid" hiddenid="id" textname="roleName" url="userController.do?roles" name="roleList" icon="icon-search" title="common.role.list" isclear="true" isInit="true"></t:choose>
  227. <span class="Validform_checktip"><t:mutiLang langKey="role.muti.select"/></span>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td align="right" nowrap>
  232. <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.phone"/>: </label>
  233. </td>
  234. <td class="value">
  235. <input class="inputxt" name="mobilePhone" value="${user.mobilePhone}" datatype="m" errormsg="手机号码不正确" validType="t_s_user,mobilePhone,id">
  236. <span class="Validform_checktip"></span>
  237. </td>
  238. </tr>
  239. <tr>
  240. <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.tel"/>: </label></td>
  241. <td class="value">
  242. <input class="inputxt" name="officePhone" value="${user.officePhone}" datatype="n" errormsg="办公室电话不正确" ignore="ignore">
  243. <span class="Validform_checktip"></span>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.mail"/>: </label></td>
  248. <td class="value">
  249. <input class="inputxt" name="email" value="${user.email}" datatype="e" errormsg="邮箱格式不正确!" ignore="ignore">
  250. <span class="Validform_checktip"></span>
  251. </td>
  252. </tr>
  253. <tr style="display: none">
  254. <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.dev"/>: </label></td>
  255. <td class="value">
  256. <c:if test="${user.devFlag == null || user.devFlag == ''}" >
  257. <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="0" type="radio"></t:dictSelect>
  258. </c:if>
  259. <c:if test="${user.devFlag != null && user.devFlag != ''}" >
  260. <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="${user.devFlag}" type="radio"></t:dictSelect>
  261. </c:if>
  262. <span class="Validform_checktip"></span>
  263. </td>
  264. </tr>
  265. <tr style="display: none">
  266. <td align="right">
  267. <label class="Validform_label">
  268. 工作流引擎:
  269. </label>
  270. </td>
  271. <td class="value">
  272. <c:if test="${user.activitiSync == null || user.activitiSync == ''}" >
  273. <input name="activitiSync" type="radio" datatype="min" min="1" value="1" checked="checked">
  274. 同步
  275. <input name="activitiSync" type="radio" value="0">
  276. 不同步
  277. <span class="Validform_checktip">是否同步工作流引擎</span>
  278. </c:if>
  279. <c:if test="${user.activitiSync != null && user.activitiSync != ''}" >
  280. <input name="activitiSync" type="radio" datatype="min" min="1" <c:if test="${user.activitiSync eq 1}">checked="true"</c:if> value="1">
  281. 同步
  282. <input name="activitiSync" type="radio" <c:if test="${user.activitiSync eq 0}">checked="true"</c:if> value="0">
  283. 不同步
  284. <span class="Validform_checktip">是否同步工作流引擎</span>
  285. </c:if>
  286. </td>
  287. </tr>
  288. </table>
  289. </t:formvalid>
  290. <%--update-end--Author:zhangguoming Date:20140825 for:格式化页面代码 并 添加所属部门combobox多选框--%>
  291. </body>