| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419 |
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib uri="http://fzywtx.com/jsp/yw/yr" prefix="yr"%>
- <%@ taglib uri="http://fzywtx.com/jsp/yw/select" prefix="l"%>
- <form id="editForm" action="" method='post'>
- <script type="text/javascript">
- var old_tabid = "${tabid}";
- $(function() {
- loadingShow();
- addFlowDept();
- bindDept();
- loadingHide();
- loadPosition();
- });
- function loadPosition(){
- var ids = document.getElementsByName("branch_company_id");
- for ( var i = 0; i < ids.length; i++) {
- sendAsyncAjax({"deptId":ids[i].value,"idi":i}, "PositionAction.do?task=positionTree&time="+ new Date().getTime(), "json", function (data){
- for ( var j = 0; j < data.length; j++) {
- $("#otherposname_"+data[j].idi).append( "<option value='"+data[j].eu_pos_id+"'>"+data[j].text+"</option>" );
- }
- var positionId = $("#positionId_"+data[0].idi).val();
- $("#otherposname_"+data[0].idi).find("option[value='"+positionId+"']").attr("selected",true);
- });
-
- }
- }
- function openGroups(e){
- var n = $(e).attr("id");
- var i = $(e).next().attr("id");
- var sel = $(e).next().next().attr("id");
- openTypeTree("selectGroup",{type:"deptsingle",tab:"1",backId:i,backName:n,okpress:function (id,name){
- $("#"+n).val(name);
- $("#"+i).val(id);
- if("" != id){
- sendAsyncAjax({"deptId":id}, "PositionAction.do?task=positionTree&time="+ new Date().getTime(), "json", function (data){
- $("#"+sel).empty(); //清空下拉框
- $("#"+sel).append("<option value=''>--请选择--</option>");
- for ( var i = 0; i < data.length; i++) {
- $("#"+sel).append( "<option value='"+data[i].eu_pos_id+"'>"+data[i].text+"</option>" );
- }
- });
- }else{
- $("#"+sel).empty(); //清空下拉框
- $("#"+sel).append("<option value=''>--请选择--</option>");
- }
- }
- });
- }
- function isRelacePos(e){
- var v = $(e).val();
- var posSelect = $(e).next().next();
- if(v == ''||v==undefined){
- $(posSelect).prepend("<option value='' selected='selected'>--请选择--</option>");
- $(posSelect).get(0).options[0].selected = true;
- }else{
- $("option[value='']",posSelect).remove();
- }
- }
- function addFlowDept(){
- $("select[name='branch_company_id']").each(function(){
- var id = this.id;
- $(this).val(id);
- });
- }
- function bindDept(){
- $(".add a").bind("click",function(){
- var o = $(this).parent().parent();
- addOtherDept(o);
- });
- $(".del a").bind("click",function(){
- delOtherDept(this);
- });
- }
- function addOtherDept(o){
- var deptPosition = $(".dept-position").clone();
- var len = $(".dept-position-remove").length+1;
- $(".error_msg",deptPosition).remove();
- $(deptPosition).addClass("dept-position-remove");
- $(deptPosition).removeClass("inputError");
- $(deptPosition).attr("id","dept-position"+len);
- $("#name_0",deptPosition).attr("id","name_"+len);
- $("#gid_0",deptPosition).attr("id","gid_"+len);
- $("#otherposname_0",deptPosition).attr("id","otherposname_"+len);
- //$("select",deptPosition).each(function(){
- //$(this).get(0).options[0].selected = true;
- //});
- $(deptPosition).removeClass("dept-position");
- $(".add a",deptPosition).html("删除");
- $(".add a",deptPosition).unbind("click");
- $(".add a",deptPosition).bind("click",function(){
- delOtherDept(this);
- });
- $(".add",deptPosition).removeClass("add");
- $(".add",deptPosition).addClass("del");
- $("[name='isFollow']",deptPosition).attr("checked",false);
- $("[name='isLogin']",deptPosition).attr("checked",false);
- $(o).parent().append(deptPosition);
- }
- function delOtherDept(e){
- $(e).parent().parent().remove();
- }
- </script>
- <div class="notice-msg" id="noticeMsg"></div>
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <td colspan="5">
- <input name="selectGroup" type="hidden" id="selectGroup"/>
- <input type="button" id="subBtu" class="l-button" value="保存" onclick="submitStaff();"/>
- </td>
- </tr>
- <tr>
- <td colspan="1">
- <input type="hidden" name="old_is_active_eu" id="old_is_active_eu" value="${staff.is_active_eu }" />
- <input type="checkbox" id="checkbox_active" name="checkbox_active" <c:if test="${empty checked}">onclick="checkUserName()"</c:if><c:if test="${not empty checked}">checked="checked"</c:if>> <c:if test="${not empty checked}">修改</c:if><c:if test="${empty checked}">激活</c:if>至EU平台
- </td>
- <td colspan="4"><input type="text" id="username" name="username" style="display: none;" onblur="checkuserhide('is_username')" value="${staff.username}"/><div id="staff_name_div">${staff.username}</div>
- </td>
- </tr>
- <tr>
- <td>工号<FONT COLOR="red">*</FONT>:</td>
- <td>
- <input type="text" id="job_number" name="job_number" value="${staff.job_number }" maxlength="15">
- <span id="jobNumSpan"></span>
- <input type="hidden" name="jobNumCheck" id="jobNumCheck" value="" >
- </td>
- <td>档案号:</td>
- <td><input type="text" id="file_num" name="file_num" value="${staff.file_num }"></td>
- <td rowspan="5" width="20%">
- <c:choose>
- <c:when test="${null==staff.staff_photo_path||staff.staff_photo_path=='' }">
- <img id="stuPic" alt="1寸照片" src="/shares/images/hr/job/man.png" width="150px;" height="200px;"><br>
- </c:when>
- <c:otherwise>
- <img id="stuPic" alt="1寸照片" src="${staff.staff_photo_path }" width="150px;" height="200px;"><br>
- </c:otherwise>
- </c:choose>
- 照片上传: <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="staff_photo" />
- <jsp:param name="folder" value="hr/staff" />
- <jsp:param name="documentId" value="${staff.staff_photo}" />
- <jsp:param name="size" value="1" />
- <jsp:param name="isView" value="1" />
- <jsp:param name="isDelFile" value="1" />
- <jsp:param name="definedCss" value="" />
- <jsp:param name="imgViewId" value="stuPic" />
- </jsp:include>
- <input type="hidden" id="staff_photo_check" name="staff_photo_check">
- </td>
- </tr>
- <tr>
- <td>考勤用户号<FONT COLOR="red">*</FONT>:</td>
- <td>
- <input type="text" id="att_user_id" name="att_user_id" value="${staff.att_user_id }">
- <span id="attUserNumSpan"></span>
- <input type="hidden" name="attUserNumCheck" id="attUserNumCheck" value="" >
- </td>
- <td>班次:</td>
- <td>
- <select id="att_shit_id" name="att_shit_id" class="short-text">
- <option value="" selected="selected">--请选择--</option>
- <c:forEach items="${listAttendanceShift}" var="attendanceShift">
- <option value="${attendanceShift.shift_id }" ${staff.att_shit_id==attendanceShift.shift_id?"selected":"" }>${attendanceShift.shift_name }</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td>姓名<FONT COLOR="red">*</FONT>:
- </td>
- <td><input type="text" id="staff_name" name="staff_name" <c:if test="${empty checked}">onblur="checkUserName()"</c:if> value="${staff.staff_name }" maxlength="6"/></td>
- <td>性别:</td>
- <td><select name="staff_sex" id="staff_sex">
- <c:forEach var="listSex" items="${listStaffSex}">
- <c:choose>
- <c:when
- test="${listSex.data_id eq staff.staff_sex}">
- <option value="${listSex.data_id }" selected="selected">${listSex.value_name}</option>
- </c:when>
- <c:otherwise>
- <option value="${listSex.data_id }">${listSex.value_name}</option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td>民族:</td>
- <td><input type="text" id="ethnic_group"
- name="ethnic_group" value="${staff.ethnic_group}"></td>
- <td>出生日期:</td>
- <td><input type="text" id="staff_birthday"
- name="staff_birthday"
- value="${staff.staff_birthday}"></td>
- </tr>
- <tr>
- <td>血型:</td>
- <td><input type="text" id="blood_type" name="blood_type"
- value="${staff.blood_type }"></td>
- <td>身高:</td>
- <td><input type="text" id="body_height" name="body_height"
- value="${staff.body_height }"></td>
- </tr>
- <tr>
- <td>体重:</td>
- <td><input type="text" id="body_weight" name="body_weight"
- value="${staff.body_weight }"></td>
- <td>婚姻状况:</td>
- <td colspan="2"><select name="marital_status" id="marital_status">
- <c:forEach var="listMaritalStatus" items="${listMaritalStatus}">
- <c:choose>
- <c:when test="${listMaritalStatus.data_id eq staff.marital_status}">
- <option value="${listMaritalStatus.data_id }" selected="selected">${listMaritalStatus.value_name}</option>
- </c:when>
- <c:otherwise>
- <option value="${listMaritalStatus.data_id }">${listMaritalStatus.value_name}</option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td>是否党员:</td>
- <td>
- <select name="is_party" id="is_party">
- <option value="0" <c:if test="${staff.is_party == '0' }">selected="selected"</c:if> >否</option>
- <option value="1" <c:if test="${staff.is_party == '1' }">selected="selected"</c:if> >是</option>
- </select>
- </td>
- <td>政治面貌:</td>
- <td colspan="2"><input type="text" id="political_landscape"
- name="political_landscape"
- value="${staff.political_landscape }"></td>
- </tr>
- <tr>
- <td>籍贯:</td>
- <td><input type="text" id="native" name="native"
- value="${staff._native }"></td>
- <td><yr:pr text="${pr.eu_org_dept_other}"/><FONT COLOR="red">*</FONT>:</td>
- <td colspan="2">
- <c:if test="${empty followGroups}">
- <div class="dept-position" id="dept-position" style="padding-top:2px;padding-bottom:2px;">
- <span><input type="radio" name="isFollow" value="1" checked/>主岗</span>
- <span><input type="radio" name="isLogin" value="1" checked/>默认登录</span>
- <input type="text" value="${fromGroup.groupName}" name="branch_company_name" id="name_0" onclick="openGroups(this)" onchange="isRelacePos(this)" readonly="readonly"/>
- <input type="hidden" value="${fromGroup.id}" class="formselect" name="branch_company_id" id="gid_0"/>
- <!-- field:列表名 name:下拉框名称 table:表名 value:列表值 current:当前值-->
- <%-- <c:if test="${session.loginID eq '1' }"> --%>
- <%-- <l:select require="false" field="posname" name="otherposname" table="t_position" value="universalid" current=""/> --%>
- <%-- </c:if> --%>
- <%-- <c:if test="${session.loginID ne '1' }"> --%>
- <%-- <l:select filter=" unit=${session.unit.id}" require="false" field="posname" name="otherposname" table="t_position" value="universalid" current=""/> --%>
- <%-- </c:if> --%>
- <select name="otherposname" id="otherposname_0">
- <option value="">--请选择--</option>
- </select>
- <span class="add"><a href='#'>增加</a></span>
- </div>
- </c:if>
- <c:if test="${not empty followGroups}">
- <c:forEach items="${followGroups}" var="follow" varStatus="i">
- <div id="dept-position${i.index}" class="${i.index==0?'dept-position':'dept-position-remove'}" style="padding-top:2px;padding-bottom:2px;">
- <c:if test="${follow.type eq '1'}">
- <span><input type="radio" name="isFollow" value="${follow.groupID}_${follow.positionId}" checked/>主岗</span>
- </c:if>
- <c:if test="${follow.type ne '1'}">
- <span><input type="radio" name="isFollow" value="${follow.groupID}_${follow.positionId}"/>主岗</span>
- </c:if>
- <c:if test="${follow.isLogin eq '1'}">
- <span><input type="radio" name="isLogin" value="${follow.groupID}_${follow.positionId}" checked/>默认登录</span>
- </c:if>
- <c:if test="${follow.isLogin ne '1'}">
- <span><input type="radio" name="isLogin" value="${follow.groupID}_${follow.positionId}"/>默认登录</span>
- </c:if>
- <input type="text" value="${follow.groupName}" name="branch_company_name" id="name_${i.index}" onclick="openGroups(this)" onchange="isRelacePos(this)" readonly="readonly"/>
- <input type="hidden" value="${follow.groupID}" class="formselect" name="branch_company_id" id="gid_${i.index}"/>
- <!-- field:列表名 name:下拉框名称 table:表名 value:列表值 current:当前值-->
- <%-- <c:if test="${session.loginID eq '1' }"> --%>
- <%-- <l:select require="false" field="posname" name="otherposname" table="t_position" value="universalid" current="${follow.positionId}"/> --%>
- <%-- </c:if> --%>
- <%-- <c:if test="${session.loginID ne '1' }"> --%>
- <%-- <l:select filter=" unit=${session.unit.id}" require="false" field="posname" name="otherposname" table="t_position" value="universalid" current="${follow.positionId}"/> --%>
- <%-- </c:if> --%>
- <select name="otherposname" id="otherposname_${i.index}">
- <option value="">--请选择--</option>
- </select>
- <input type="hidden" id="positionId_${i.index}" value="${follow.positionId}">
- <c:if test="${i.index>0}">
- <span class="del"><a href='#'>删除</a></span>
- </c:if>
- <c:if test="${i.index==0}">
- <span class="add"><a href='#'>增加</a></span>
- </c:if>
- </div>
- </c:forEach>
- </c:if>
- </td>
- </tr>
- <tr>
- <td>身份证号码<FONT COLOR="red">*</FONT>:</td>
- <td>
- <input type="text" id="id_number"
- name="id_number" value="${staff.id_number }" onblur="checkIdNumber(this);" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" maxlength="18" >
- <div id="id_number_div"></div>
- </td>
- <td>户口性质:</td>
- <td colspan="2"><input type="text" id="anmelden_pro" name="anmelden_pro" value="${staff.anmelden_pro }"></td>
- </tr>
- <tr>
- <td>职称:</td>
- <td><input type="text" id="job_title"
- name="job_title" value="${staff.job_title }"
- size="50"></td>
- <td>家庭住址:</td>
- <td colspan="2"><input type="text" id="census_address"
- name="census_address"
- value="${staff.census_address }" size="50"></td>
-
- </tr>
- <tr>
- <td>现住址:</td>
- <td><input type="text" id="home_address"
- name="home_address" value="${staff.home_address }"
- size="50"></td>
- <td>手机号:</td>
- <td colspan="2"><input type="text" id="self_phone"
- name="self_phone" value="${staff.self_phone }"
- size="50"></td>
- </tr>
- <tr>
- <td>入司日期:</td>
- <td><input type="text" id="register_time"
- name="register_time"
- value="${staff.register_time}"></td>
- <td>劳动合同有效期至:</td>
- <td colspan="2"><input type="text" id="agreement_time"
- name="agreement_time"
- value="${staff.agreement_time}"></td>
- </tr>
- <tr>
- <td>社保起始日期:</td>
- <td><input type="text" id="social_time"
- name="social_time" value="${staff.social_time}"></td>
- <td>医保起始日期:</td>
- <td colspan="2"><input type="text" id="health_time"
- name="health_time" value="${staff.health_time}"></td>
- </tr>
- <tr>
- <td>住房公积金起始日期:</td>
- <td><input type="text" id="fund_time"
- name="fund_time" value="${staff.fund_time }"></td>
- <td>工种:</td>
- <td colspan="2">
- <select id="craft_type" name="craft_type" class="short-text">
- <option value="0" selected="selected">==请选择==</option>
- <c:forEach items="${crafttype }" var="craft">
- <option value="${craft.dvalue }" ${staff.craft_type == craft.dvalue?"selected":"" }>${craft.dname }</option>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td>联系人:</td>
- <td><input type="text" id="contact_person"
- name="contact_person"
- value="${staff.contact_person }"></td>
- <td>联系电话:</td>
- <td colspan="2"><input type="text"
- id="contact_person_phone" name="contact_person_phone"
- value="${staff.contact_person_phone }"></td>
- </tr>
- <tr>
- <td>身份证附件:</td>
- <td colspan="4"><input type="hidden" id="id_number_affix"
- name="id_number_affix"> <jsp:include
- page="/include/file.jsp">
- <jsp:param name="fieldName" value="sfzDocumentId" />
- <jsp:param name="folder" value="hr/staff" />
- <jsp:param name="documentId" value="${staff.id_number_affix}" />
- <jsp:param name="size" value="5" />
- <jsp:param name="isView" value="1" />
- <jsp:param name="isDelFile" value="1" />
- <jsp:param name="definedCss" value="file-style" />
- </jsp:include></td>
- </tr>
- <tr>
- <td>合同附件:</td>
- <td colspan="4"><input type="hidden" id="agreement_affix"
- name="agreement_affix"> <jsp:include
- page="/include/file.jsp">
- <jsp:param name="fieldName" value="htDocumentId" />
- <jsp:param name="folder" value="hr/staff" />
- <jsp:param name="documentId" value="${staff.agreement_affix}" />
- <jsp:param name="size" value="30" />
- <jsp:param name="isView" value="1" />
- <jsp:param name="isDelFile" value="1" />
- <jsp:param name="definedCss" value="file-style" />
- </jsp:include></td>
- </tr>
- <input type="hidden" name="is_dimission" id="is_dimission" value="${staff.is_dimission}"/>
- </table>
- </center>
- </div>
- </form>
|