| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <!-- 基本信息 员工基本档案管理-->
- <html>
- <head>
- <title>员工基本信息</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script src="plug-in/layer/layer.js"></script>
- <script>
- $(function(){
- // $('#education').val("${userInfo.education}");
- // $('#hktype').val("${userInfo.hktype}");
- });
- function btn_ok(){
- $("#btnsub").click();
- }
- function callback(data){
- if(data.success) {
- top.tip(data.msg);
- window.location.href="personnelInfoUploadController.do?goUpdateBase&userId=${userInfo.id}";
- } else {
- layer.alert(data.msg);
- }
- }
- function openDepartmentSelect() {
- // var windowapi;
- // try {
- // windowapi = frameElement.api, W = windowapi.opener;
- // } catch (e) {
- // }
- // var orgIds = $("#projectId").val();
- // if(typeof(windowapi) == 'undefined'){
- // $.dialog({content: 'url:departController.do?departSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '所属部门列表', lock: true, width: '400px', height: '350px', opacity: 0.4, button: [
- // {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
- // {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
- // ]})
- // }else{
- // $.dialog({content: 'url:departController.do?departSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '所属部门列表', lock: true,parent : windowapi, width: '400px', height: '350px', opacity: 0.4,button: [
- // {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelect, focus: true},
- // {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
- // ]})
- // }
- var orgIds = $("#orgIds").val();
- if(orgIds != null || orgIds != ''){
- layer.alert("不支持更换所属部门,请联系人事部");
- return;
- }
- $.dialog({
- content: 'url:dialogDealController.do?projectDepartTablePartChild&ids='+orgIds, zIndex: getzIndex(), title: '项目名称列表', lock: true, width: '600px', height: '400px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: function (){
- var iframe = this.iframe.contentWindow;
- if(iframe.getReason().length>0){
- var strData=eval(iframe.getReason());
- for(var key in strData[0]){
- if(key=="strPId"){
- $("#orgIds").val(strData[0][key]);
- }else if(key=="strDepartName"){
- $("#departname").val(strData[0][key]);
- }
- }
- }
- }, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){
- $('#departname').val('');
- $('#orgIds').val('');
- }}
-
- ]}).zindex();
- }
- function callbackDepartmentSelect() {
- // var iframe = this.iframe.contentWindow;
- // var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
- // var nodes = treeObj.getCheckedNodes(true);
- // if(nodes.length>0){
- // var ids='',names='';
- // for(i=0;i<nodes.length;i++){
- // var node = nodes[i];
- // ids += node.id+',';
- // names += node.name+',';
- // }
- // // 把最后的逗号去掉
- // names = names.substring(0,names.length - 1);
- // //判断兼容机构里有没有所属机构
- // if(ids.length>0){
- // $('#departname').val(names);
- // $('#departname').blur();
- // $('#orgIds').val(ids);
- // }
-
- // }
- }
-
- function callbackClean(){
- $('#departname').val('');
- $('#orgIds').val('');
- }
- function setOrgIds() {
-
- }
- function dataReload() {
- $.messager.confirm("确认", "确定要重置当前内容?所有内容将会恢复到编辑之前。", function (r) {
- if (r) {
- window.location.href="personnelInfoUploadController.do?goUpdateBase&userId=${userInfo.id}";
- }
- });
- }
- $(function(){
- $("#departname").prev().hide();
- $("#jzdepartname").prev().hide();
- });
- //兼职机构 start
- function openDepartmentSelectjz() {
- $.dialog.setting.zIndex = getzIndex();
- var jzorgIds = $("#jzorgIds").val();
- $.dialog({content: 'url:departController.do?jzdepartSelect&jzorgIds='+jzorgIds, zIndex: 2100, title: '兼职机构列表', lock: true, width: '600px', height: '400px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDepartmentSelectjz, focus: true},
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- ]}).zindex();
- }
-
- function callbackDepartmentSelectjz() {
- var iframe = this.iframe.contentWindow;
- var treeObj = iframe.$.fn.zTree.getZTreeObj("jzdepartSelect");
- var nodes = treeObj.getCheckedNodes(true);
- if(nodes.length>0){
- var ids='',names='';
- for(i=0;i<nodes.length;i++){
- var node = nodes[i];
- ids += node.id+',';
- names += node.name+',';
- }
- // 把最后的逗号去掉
- names = names.substring(0,names.length - 1);
- //判断兼容机构里有没有所属机构
- if(ids.length>0 && $('#orgIds').val().length>0){
- if(ids.indexOf( $('#orgIds').val() )>=0){
- $.messager.alert("错误","所属部门和兼容机构不能有重叠!");
- }else{
- $('#jzdepartname').val(names);
- $('#jzdepartname').blur();
- $('#jzorgIds').val(ids);
- }
- }else{
- $('#jzdepartname').val(names);
- $('#jzdepartname').blur();
- $('#jzorgIds').val(ids);
- }
-
- }
- }
- function callbackCleanjz(){
- $('#jzdepartname').val('');
- $('#jzorgIds').val('');
- }
- //兼职机构 end
- </script>
- </head>
- <body>
- <div class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" tipSweep="true" action="personnelInfoUploadController.do?updateUserData" tiptype="1" callback="callback">
- <input id="id" name="id" type="hidden" value="${userInfo.id}"/>
- <input id="status" name="status" type="hidden" value="${userInfo.status}"/>
- <input id="dingIsSynchronization" name="dingIsSynchronization" type="hidden" value="${userInfo.dingIsSynchronization}"/>
- <table cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right" style="width:110px;">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>员工工号: </label>
- </td>
- <td class="value">
- <input id="userNum" class="inputxt" name="userNum" value="${userInfo.userNum }" datatype="s2-10" />
- <span class="Validform_checktip"> 员工工号范围在2~10位字符</span>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">员工姓名</label>
- </td>
- <td class="value">
- <label>${userInfo.realName}</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>性别</label>
- </td>
- <td class="value">
- <t:dictSelect field="gender" id="gender" type="list" typeGroupCode="sex" defaultVal="${userInfo.gender}" hasLabel="false" datatype="*" title="性别"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">性别</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>民族</label>
- </td>
- <td class="value">
- <t:dictSelect field="nation" id="nation" type="list" typeGroupCode="nation" defaultVal="${userInfo.nation}" hasLabel="false" datatype="*" title="民族"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">民族</label>
- </td>
- </tr>
-
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span><t:mutiLang langKey="common.department"/>: </label>
- </td>
- <td class="value">
- <input id="departname" name="departname" type="text" readonly="readonly" class="inputxt" datatype="*" value="${departname}">
- <input id="orgIds" name="orgIds" type="hidden" value="${orgIds}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a>
- <span class="Validform_checktip">一线员工必须选择保安部、保洁部等部门</span>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="#FF0000"></font>
- 兼职机构:
- </label>
- </td>
- <td class="value" colspan="3" >
- <textarea id="jzdepartname" style="width:150px;height: 120px;" readonly="readonly" class="inputxt" rows="3" id="description" maxlength="200" name="description" placeholder="">${jzdepartname}</textarea>
-
- <label class="Validform_label" style="display: none;">备注说明</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">手机号码</label>
- </td>
- <td class="value">
- <label>${userInfo.mobilePhone}</label>
- </td>
- </tr>
-
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>身份证号</label>
- </td>
- <td class="value">
- <input id="idcard" name="idcard" type="text" style="width: 149px" value='${userInfo.idcard}' placeholder="" datatype="idcard" errormsg="请填写正确的身份证号码!"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">身份证号</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>学历</label>
- </td>
- <td class="value">
- <%-- <input id="education" name="address" type="text" style="width: 200px" value='${userInfo.education}' placeholder="" datatype="*0-100" ignore="ignore" errormsg="居住地址最多填写100文字!"/> --%>
- <!-- <select id="education" name="education" style="width: 150px"> -->
- <!-- <option value="3">高中</option> -->
- <!-- <option value="2">初中</option> -->
- <!-- <option value="1">小学</option> -->
- <!-- <option value="4">大专</option> -->
- <!-- <option value="5">本科</option> -->
- <!-- <option value="6">硕士</option> -->
- <!-- <option value="7">博士</option> -->
- <!-- <option value="0">无学历</option> -->
- <!-- </select> -->
- <t:dictSelect field="education" id="education" type="list" typeGroupCode="education" defaultVal="${userInfo.education}" hasLabel="false" datatype="*" title="学历"></t:dictSelect>
-
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">学历</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>户口属性</label>
- </td>
- <td class="value">
- <%-- <input id="hktype" name="hktype" type="text" style="width: 200px" value='${userInfo.hkaddress}' placeholder="" datatype="*0-100" ignore="ignore" errormsg="户口地址最多填写100文字!"/> --%>
- <!-- <select id="hktype" name="hktype" style="width: 150px"> -->
- <!-- <option value="3">城镇</option> -->
- <!-- <option value="2">农业</option> -->
- <!-- <option value="1">非农</option> -->
- <!-- </select> -->
- <t:dictSelect field="hktype" id="hktype" type="list" typeGroupCode="hktype" defaultVal="${userInfo.hktype}" hasLabel="false" datatype="*" title="户口属性"></t:dictSelect>
-
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">户口属性</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">居住地址</label>
- </td>
- <td class="value">
- <input id="address" name="address" type="text" style="width: 200px" value='${userInfo.address}' placeholder="" datatype="*0-100" errormsg="居住地址最多填写100文字!"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">居住地址</label>
- </td>
- </tr>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">户口地址</label>
- </td>
- <td class="value">
- <input id="hkaddress" name="hkaddress" type="text" style="width: 200px" value='${userInfo.hkaddress}' placeholder="" datatype="*0-100" ignore="ignore" errormsg="户口地址最多填写100文字!"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">户口地址</label>
- </td>
- </tr>
- <tr style="display: none">
- <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.dev"/>: </label></td>
- <td class="value">
- <c:if test="${userInfo.devFlag == null || userInfo.devFlag == ''}" >
- <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="0" type="radio"></t:dictSelect>
- </c:if>
- <c:if test="${userInfo.devFlag != null && userInfo.devFlag != ''}" >
- <t:dictSelect id="devFlag" field="devFlag" typeGroupCode="dev_flag" hasLabel="false" datatype="*" defaultVal="${userInfo.devFlag}" type="radio"></t:dictSelect>
- </c:if>
- <span class="Validform_checktip"></span>
- </td>
- </tr>
- <tr style="display: none">
- <td align="right">
- <label class="Validform_label">
- 工作流引擎:
- </label>
- </td>
- <td class="value">
- <c:if test="${userInfo.activitiSync == null || userInfo.activitiSync == ''}" >
- <input name="activitiSync" type="radio" datatype="min" min="1" value="1" checked="checked">
- 同步
- <input name="activitiSync" type="radio" value="0">
- 不同步
- <span class="Validform_checktip">是否同步工作流引擎</span>
- </c:if>
- <c:if test="${userInfo.activitiSync != null && userInfo.activitiSync != ''}" >
- <input name="activitiSync" type="radio" datatype="min" min="1" <c:if test="${userInfo.activitiSync eq 1}">checked="true"</c:if> value="1">
- 同步
- <input name="activitiSync" type="radio" <c:if test="${userInfo.activitiSync eq 0}">checked="true"</c:if> value="0">
- 不同步
- <span class="Validform_checktip">是否同步工作流引擎</span>
- </c:if>
- </td>
- </tr>
-
- <tr>
- <td height="50px" align="center" colspan="4" >
- <div style="margin-left:150px">
- <%-- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">确定</a> --%>
- <%-- <a style="margin-left:80px" href="personnelBaseArchivesManageController.do?goUpdateBase&id=${userInfo.id}" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" >取消</a> --%>
- <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-confirm" onclick="btn_ok()">确定</a>
-
- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- </div>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </div>
- </div>
- </body>
- <html>
|