userInfo-base-update.jsp 15 KB

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