userInfo-view.jsp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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. <!-- 基本信息 员工基本档案管理-->
  5. <html>
  6. <head>
  7. <title>员工基本信息</title>
  8. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  9. <script src="plug-in/layer/layer.js"></script>
  10. <script>
  11. $(function(){
  12. // $('#education').val("${userInfo.education}");
  13. // $('#hktype').val("${userInfo.hktype}");
  14. });
  15. function btn_ok(){
  16. var jzorgIds = $('#jzorgIds').val();
  17. var orgids = $('#orgIds').val();
  18. if(jzorgIds.indexOf(orgids) != -1){
  19. layer.alert("兼职机构不能包含主所属部门");
  20. }else{
  21. $("#btnsub").click();
  22. }
  23. }
  24. function callback(data){
  25. if(data.success) {
  26. top.tip(data.msg);
  27. window.location.href="personnelBaseArchivesManageController.do?goUpdateBase&id=${userInfo.id}";
  28. } else {
  29. layer.alert(data.msg);
  30. }
  31. }
  32. function openDepartmentSelect() {
  33. // $.dialog.setting.zIndex = getzIndex();
  34. // var orgIds = $("#orgIds").val();
  35. // $.dialog({content: 'url:departController.do?departSelect&orgIds='+orgIds, zIndex: 2101, title: '所属部门列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  36. // {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
  37. // {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  38. // ]}).zindex();
  39. var orgIds = $("#orgIds").val();
  40. if(orgIds != null || orgIds != ''){
  41. layer.alert("更换所属部门可能会造成排班异常,请提前删除旧排班");
  42. }
  43. $.dialog({
  44. content: 'url:dialogDealController.do?projectDepartTableAllWithChild&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '400px', opacity: 0.4, button: [
  45. {name: '<t:mutiLang langKey="common.confirm"/>', callback: function (){
  46. var iframe = this.iframe.contentWindow;
  47. if(iframe.getReason().length>0){
  48. var strData=eval(iframe.getReason());
  49. for(var key in strData[0]){
  50. if(key=="strPId"){
  51. $("#orgIds").val(strData[0][key]);
  52. }else if(key=="strDepartName"){
  53. $("#departname").val(strData[0][key]);
  54. }
  55. }
  56. }
  57. }, focus: true},
  58. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){
  59. // $('#departname').val('');
  60. // $('#orgIds').val('');
  61. }}
  62. ]}).zindex();
  63. }
  64. function callbackDepartmentSelect() {
  65. // var iframe = this.iframe.contentWindow;
  66. // var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
  67. // var nodes = treeObj.getCheckedNodes(true);
  68. // if(nodes.length>0){
  69. // var ids='',names='';
  70. // for(i=0;i<nodes.length;i++){
  71. // var node = nodes[i];
  72. // ids += node.id+',';
  73. // names += node.name+',';
  74. // }
  75. // // 把最后的逗号去掉
  76. // names = names.substring(0,names.length - 1);
  77. // //判断兼容机构里有没有所属机构
  78. // if(ids.length>0 && $('#jzorgIds').val().length>0){
  79. // if($('#jzorgIds').val().indexOf(ids)>=0){
  80. // $.messager.alert("错误","所属部门和兼容机构不能有重叠!!");
  81. // }else{
  82. // $('#departname').val(names);
  83. // $('#departname').blur();
  84. // $('#orgIds').val(ids);
  85. // }
  86. // }else{
  87. // $('#departname').val(names);
  88. // $('#departname').blur();
  89. // $('#orgIds').val(ids);
  90. // }
  91. // }
  92. }
  93. function callbackClean(){
  94. $('#departname').val('');
  95. $('#orgIds').val('');
  96. }
  97. function setOrgIds() {
  98. }
  99. function dataReload() {
  100. $.messager.confirm("确认", "确定要重置当前内容?所有内容将会恢复到编辑之前。", function (r) {
  101. if (r) {
  102. window.location.href="personnelBaseArchivesManageController.do?goUpdateBase&id=${userInfo.id}";
  103. }
  104. });
  105. }
  106. $(function(){
  107. $("#departname").prev().hide();
  108. $("#jzdepartname").prev().hide();
  109. });
  110. //兼职机构 start
  111. function openDepartmentSelectjz() {
  112. // $.dialog.setting.zIndex = getzIndex();
  113. // var jzorgIds = $("#jzorgIds").val();
  114. // $.dialog({content: 'url:departController.do?jzdepartSelect&jzorgIds='+jzorgIds, zIndex: 2100, title: '兼职机构列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
  115. // {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelectjz, focus: true},
  116. // {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  117. // ]}).zindex();
  118. var orgIds = $("#jzorgIds").val();
  119. $.dialog({
  120. content: 'url:dialogDealController.do?projectDepartTableAllCheckbox&ids='+orgIds, zIndex: getzIndex(), title: '兼职项目列表', lock: true, width: '600px', height: '400px', opacity: 0.4, button: [
  121. {name: '<t:mutiLang langKey="common.confirm"/>', callback: function (){
  122. var iframe = this.iframe.contentWindow;
  123. if(iframe.getReason().length>0){
  124. var strData=eval(iframe.getReason());
  125. for(var key in strData[0]){
  126. if(key=="strPId"){
  127. $("#jzorgIds").val(strData[0][key]);
  128. }else if(key=="strDepartName"){
  129. $("#jzdepartname").val(strData[0][key]);
  130. }
  131. }
  132. }
  133. }, focus: true},
  134. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){
  135. // $('#jzdepartname').val('');
  136. // $('#jzorgIds').val('');
  137. }}
  138. ]}).zindex();
  139. }
  140. function callbackDepartmentSelectjz() {
  141. // var iframe = this.iframe.contentWindow;
  142. // var treeObj = iframe.$.fn.zTree.getZTreeObj("jzdepartSelect");
  143. // var nodes = treeObj.getCheckedNodes(true);
  144. // if(nodes.length>0){
  145. // var ids='',names='';
  146. // for(i=0;i<nodes.length;i++){
  147. // var node = nodes[i];
  148. // ids += node.id+',';
  149. // names += node.name+',';
  150. // }
  151. // // 把最后的逗号去掉
  152. // names = names.substring(0,names.length - 1);
  153. // //判断兼容机构里有没有所属机构
  154. // if(ids.length>0 && $('#orgIds').val().length>0){
  155. // if(ids.indexOf( $('#orgIds').val() )>=0){
  156. // $.messager.alert("错误","所属部门和兼容机构不能有重叠!");
  157. // }else{
  158. // $('#jzdepartname').val(names);
  159. // $('#jzdepartname').blur();
  160. // $('#jzorgIds').val(ids);
  161. // }
  162. // }else{
  163. // $('#jzdepartname').val(names);
  164. // $('#jzdepartname').blur();
  165. // $('#jzorgIds').val(ids);
  166. // }
  167. // }
  168. }
  169. function callbackCleanjz(){
  170. $('#jzdepartname').val('');
  171. $('#jzorgIds').val('');
  172. }
  173. //兼职机构 end
  174. </script>
  175. </head>
  176. <body>
  177. <div class="easyui-layout" fit="true">
  178. <div region="center" style="padding:0px;border:0px">
  179. <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" tipSweep="true" action="personnelBaseArchivesManageController.do?updateUserData" tiptype="1" callback="callback">
  180. <input id="id" name="id" type="hidden" value="${userInfo.id}"/>
  181. <input id="status" name="status" type="hidden" value="${userInfo.status}"/>
  182. <input id="dingIsSynchronization" name="dingIsSynchronization" type="hidden" value="${userInfo.dingIsSynchronization}"/>
  183. <table cellpadding="0" cellspacing="1" class="formtable">
  184. <tr>
  185. <td align="right">
  186. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>员工登录类型</label>
  187. </td>
  188. <td class="value">
  189. <t:dictSelect field="userType" id="userType" type="list" typeGroupCode="userType" defaultVal="${userInfo.userType}" hasLabel="false" datatype="*" title="员工登录类型"></t:dictSelect>
  190. <span class="Validform_checktip"></span>
  191. <label class="Validform_label" style="display: none;">员工登录类型</label>
  192. </td>
  193. </tr>
  194. <tr>
  195. <td align="right" style="width:110px;">
  196. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>员工工号: </label>
  197. </td>
  198. <td class="value">
  199. <input id="userNum" class="inputxt" name="userNum" value="${userInfo.userNum }" datatype="s2-10" />
  200. <span class="Validform_checktip"> 员工工号范围在2~10位字符</span>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td align="right" width="10%" nowrap>
  205. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>员工姓名: </label>
  206. </td>
  207. <td class="value" width="60%">
  208. <input id="realName" class="inputxt" name="realName" value="${userInfo.realName }" datatype="s2-10">
  209. <span class="Validform_checktip"><t:mutiLang langKey="fill.realname"/></span>
  210. </td>
  211. </tr>
  212. <tr>
  213. <td align="right">
  214. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>性别</label>
  215. </td>
  216. <td class="value">
  217. <t:dictSelect field="gender" id="gender" type="list" typeGroupCode="sex" defaultVal="${userInfo.gender}" hasLabel="false" datatype="*" title="性别"></t:dictSelect>
  218. <span class="Validform_checktip"></span>
  219. <label class="Validform_label" style="display: none;">性别</label>
  220. </td>
  221. </tr>
  222. <tr>
  223. <td align="right">
  224. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>民族</label>
  225. </td>
  226. <td class="value">
  227. <t:dictSelect field="nation" id="nation" type="list" typeGroupCode="nation" defaultVal="${userInfo.nation}" hasLabel="false" datatype="*" title="民族"></t:dictSelect>
  228. <span class="Validform_checktip"></span>
  229. <label class="Validform_label" style="display: none;">民族</label>
  230. </td>
  231. </tr>
  232. <tr>
  233. <td align="right">
  234. <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.department"/>: </label>
  235. </td>
  236. <td class="value">
  237. <input id="departname" name="departname" type="text" readonly="readonly" class="inputxt" datatype="*" value="${departname}">
  238. <input id="orgIds" name="orgIds" type="hidden" value="${orgIds}">
  239. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a> -->
  240. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a> -->
  241. <!-- <span class="Validform_checktip">一线员工必须选择保安部、保洁部等部门;项目经理和内勤必须选择项目</span> -->
  242. </td>
  243. </tr>
  244. <tr>
  245. <td align="right">
  246. <label class="Validform_label"> <t:mutiLang langKey="common.jianzhidepartment"/>: </label>
  247. </td>
  248. <td class="value">
  249. <textarea id="jzdepartname" style="width:150px;height: 120px;" readonly="readonly" class="inputxt" rows="3" id="description" maxlength="200" name="description" placeholder="">${jzdepartname}</textarea>
  250. <input id="jzorgIds" name="jzorgIds" type="hidden" value="${jzorgIds}">
  251. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="jzdepartSearch" onclick="openDepartmentSelectjz()">选择</a> -->
  252. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="jzdepartRedo" onclick="callbackCleanjz()">清空</a> -->
  253. <!-- <span class="Validform_checktip">兼职机构可多选</span> -->
  254. </td>
  255. <tr>
  256. <td align="right" nowrap>
  257. <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.phone"/>: </label>
  258. </td>
  259. <td class="value">
  260. <input class="inputxt" name="mobilePhone" value="${userInfo.mobilePhone}" datatype="m" errormsg="手机号码不正确" userInfoValidType="t_s_user,mobilePhone,id">
  261. <span class="Validform_checktip"></span>
  262. </td>
  263. </tr>
  264. <tr>
  265. <td align="right">
  266. <label class="Validform_label"> <t:mutiLang langKey="common.tel"/>: </label>
  267. </td>
  268. <td class="value">
  269. <input class="inputxt" name="officePhone" value="${userInfo.officePhone}" datatype="n" errormsg="办公电话不正确" ignore="ignore">
  270. <span class="Validform_checktip"></span>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td align="right">
  275. <label class="Validform_label"> <t:mutiLang langKey="common.common.mail"/>: </label>
  276. </td>
  277. <td class="value">
  278. <input class="inputxt" name="email" value="${userInfo.email}" datatype="e" errormsg="邮箱格式不正确!" ignore="ignore">
  279. <span class="Validform_checktip"></span>
  280. </td>
  281. </tr>
  282. <tr>
  283. <td align="right">
  284. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>身份证号</label>
  285. </td>
  286. <td class="value">
  287. <input id="idcard" name="idcard" type="text" style="width: 149px" value='${userInfo.idcard}' placeholder="" datatype="idcard" errormsg="请填写正确的身份证号码!"/>
  288. <span class="Validform_checktip"></span>
  289. <label class="Validform_label" style="display: none;">身份证号</label>
  290. </td>
  291. </tr>
  292. <tr>
  293. <td align="right">
  294. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>学历</label>
  295. </td>
  296. <td class="value">
  297. <%-- <input id="education" name="address" type="text" style="width: 200px" value='${userInfo.education}' placeholder="" datatype="*0-100" ignore="ignore" errormsg="居住地址最多填写100文字!"/> --%>
  298. <!-- <select id="education" name="education" style="width: 150px"> -->
  299. <!-- <option value="3">高中</option> -->
  300. <!-- <option value="2">初中</option> -->
  301. <!-- <option value="1">小学</option> -->
  302. <!-- <option value="4">大专</option> -->
  303. <!-- <option value="5">本科</option> -->
  304. <!-- <option value="6">硕士</option> -->
  305. <!-- <option value="7">博士</option> -->
  306. <!-- <option value="0">无学历</option> -->
  307. <!-- </select> -->
  308. <t:dictSelect field="education" id="education" type="list" typeGroupCode="education" defaultVal="${userInfo.education}" hasLabel="false" datatype="*" title="学历"></t:dictSelect>
  309. <span class="Validform_checktip"></span>
  310. <label class="Validform_label" style="display: none;">学历</label>
  311. </td>
  312. </tr>
  313. <tr>
  314. <td align="right">
  315. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>户口属性</label>
  316. </td>
  317. <td class="value">
  318. <%-- <input id="hktype" name="hktype" type="text" style="width: 200px" value='${userInfo.hkaddress}' placeholder="" datatype="*0-100" ignore="ignore" errormsg="户口地址最多填写100文字!"/> --%>
  319. <!-- <select id="hktype" name="hktype" style="width: 150px"> -->
  320. <!-- <option value="3">城镇</option> -->
  321. <!-- <option value="2">农业</option> -->
  322. <!-- <option value="1">非农</option> -->
  323. <!-- </select> -->
  324. <t:dictSelect field="hktype" id="hktype" type="list" typeGroupCode="hktype" defaultVal="${userInfo.hktype}" hasLabel="false" datatype="*" title="户口属性"></t:dictSelect>
  325. <span class="Validform_checktip"></span>
  326. <label class="Validform_label" style="display: none;">户口属性</label>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td align="right">
  331. <label class="Validform_label">居住地址</label>
  332. </td>
  333. <td class="value">
  334. <input id="address" name="address" type="text" style="width: 200px" value='${userInfo.address}' placeholder="" datatype="*0-100" errormsg="居住地址最多填写100文字!"/>
  335. <span class="Validform_checktip"></span>
  336. <label class="Validform_label" style="display: none;">居住地址</label>
  337. </td>
  338. </tr>
  339. </tr>
  340. <tr>
  341. <td align="right">
  342. <label class="Validform_label">户口地址</label>
  343. </td>
  344. <td class="value">
  345. <input id="hkaddress" name="hkaddress" type="text" style="width: 200px" value='${userInfo.hkaddress}' placeholder="" datatype="*0-100" ignore="ignore" errormsg="户口地址最多填写100文字!"/>
  346. <span class="Validform_checktip"></span>
  347. <label class="Validform_label" style="display: none;">户口地址</label>
  348. </td>
  349. </tr>
  350. <tr style="display: none">
  351. <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.dev"/>: </label></td>
  352. <td class="value">
  353. <c:if test="${userInfo.devFlag == null || userInfo.devFlag == ''}" >
  354. <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="0" type="radio"></t:dictSelect>
  355. </c:if>
  356. <c:if test="${userInfo.devFlag != null && userInfo.devFlag != ''}" >
  357. <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="${userInfo.devFlag}" type="radio"></t:dictSelect>
  358. </c:if>
  359. <span class="Validform_checktip"></span>
  360. </td>
  361. </tr>
  362. <tr style="display: none">
  363. <td align="right">
  364. <label class="Validform_label">
  365. 工作流引擎:
  366. </label>
  367. </td>
  368. <td class="value">
  369. <c:if test="${userInfo.activitiSync == null || userInfo.activitiSync == ''}" >
  370. <input name="activitiSync" type="radio" datatype="min" min="1" value="1" checked="checked">
  371. 同步
  372. <input name="activitiSync" type="radio" value="0">
  373. 不同步
  374. <span class="Validform_checktip">是否同步工作流引擎</span>
  375. </c:if>
  376. <c:if test="${userInfo.activitiSync != null && userInfo.activitiSync != ''}" >
  377. <input name="activitiSync" type="radio" datatype="min" min="1" <c:if test="${userInfo.activitiSync eq 1}">checked="true"</c:if> value="1">
  378. 同步
  379. <input name="activitiSync" type="radio" <c:if test="${userInfo.activitiSync eq 0}">checked="true"</c:if> value="0">
  380. 不同步
  381. <span class="Validform_checktip">是否同步工作流引擎</span>
  382. </c:if>
  383. </td>
  384. </tr>
  385. <!-- <tr> -->
  386. <!-- <td height="50px" align="center" colspan="4" > -->
  387. <!-- <div style="margin-left:150px"> -->
  388. <%-- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">确定</a> --%>
  389. <%-- <a style="margin-left:80px" href="personnelBaseArchivesManageController.do?goUpdateBase&id=${userInfo.id}" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" >取消</a> --%>
  390. <!-- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-confirm" onclick="btn_ok()">确定</a> -->
  391. <!-- <a style="margin-left:6px;" href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-reload" onclick="dataReload()" >重置</a> -->
  392. <!-- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div> -->
  393. <!-- </div> -->
  394. <!-- </td> -->
  395. <!-- </tr> -->
  396. </table>
  397. </t:formvalid>
  398. </div>
  399. </div>
  400. </body>
  401. <html>