| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512 |
- <%@ 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 type="text/javascript">
- //编写自定义JS代码
- $(function () {
- $.Datatype.checkIdcard = function (val, obj, frm) {
- var msg = true;
- $.ajax({
- url: 'userActivitiController.do?checkIdcard'
- , data: {idcard: val}
- , dataType: 'json'
- , method: "POST"
- , async: false
- , success: function (d) {
- if (!d.success) {
- msg = d.msg
- }
- }
- }
- )
- return msg;
- }
- });
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table"
- action="userActivitiController.do?doAdd" callback="callback">
- <input id="id" name="id" type="hidden" value="${obj.id }"/>
- <input id="userType" name="userType" type="hidden" value="${projectUser?1:0}"/>
- <table style="width: 1000px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right" nowrap>
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>员工工号: </label>
- </td>
- <td class="value">
- <%--<c:if test="${obj.id!=null }"> ${obj.userNum } </c:if>--%>
- <%--<c:if test="${obj.id==null }">--%>
- <input id="userNum" class="inputxt" name="userNum" value="${obj.userNum }" datatype="s2-10"
- userInfoValidType="t_s_user,userNum,id"/>
- <span class="Validform_checktip"></span>
- <span class="Validform_checktip" style="display: none;"> 员工工号范围在2~10位字符</span>
- <%--</c:if>--%>
- </td>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>员工姓名:
- </label>
- </td>
- <td class="value">
- <input id="realname" name="realName" type="text" style="width: 150px" class="inputxt" datatype="s2-10"
- value="${obj.realName}"/>
- <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="gender" id="gender" type="list" typeGroupCode="sex" defaultVal="${obj.gender}"
- hasLabel="false" datatype="*" title="性别"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">性别</label>
- </td>
- <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="${empty obj.nation?'hanzu':obj.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>手机号码:
- </label>
- </td>
- <td class="value">
- <input id="mobilephone" name="mobilePhone" type="text" style="width: 150px" class="inputxt"
- value="${obj.mobilePhone}" datatype="m" errormsg="手机号码不正确"
- userInfoValidType="t_s_user,mobilePhone,id"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">手机号</label>
- </td>
- <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: 150px" class="inputxt" -->
- <%-- value='${obj.idcard}' placeholder="" datatype="idcard,checkIdcard" errormsg="请填写正确的身份证号码!" --%>
- <!-- /> -->
- <input id="idcard" name="idcard" type="text" style="width: 150px" class="inputxt"
- value='${obj.idcard}' placeholder="" datatype="idcard,checkIdcard" 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">
- <t:dictSelect field="education" id="education" type="list" typeGroupCode="education" hasLabel="false"
- datatype="*" title="学历" defaultVal="${obj.education}"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">学历</label>
- </td>
- <td align="right">
- <label class="Validform_label"><span color="red" class="requiredIcon">*</span>户口属性</label>
- </td>
- <td class="value">
- <t:dictSelect field="hktype" id="hktype" type="list"
- typeGroupCode="hktype" hasLabel="false" datatype="*" title="户口属性"
- defaultVal="${obj.hktype}"></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="money" name="money" type="text" style="width: 150px" class="inputxt" datatype="d"
- value="${obj.money}"/>
- <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" colspan="3">
- <input id="departname" name="departName" type="text" readonly="readonly" class="inputxt" datatype="*"
- value="${obj.departName}">
- <input id="departId" name="departId" type="hidden" value="${obj.departId}">
- <c:if test="${empty param.load}">
- <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>
- </c:if>
- <span class="Validform_checktip">
- <c:if test="${projectUser}">所属部门只能单选</c:if>
- <c:if test="${not projectUser}">一线员工必须选择保安部、保洁部等部门;项目经理和内勤必须选择项目</c:if>
- </span>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>职务:
- </label>
- </td>
- <td class="value" >
- <input id="duty" name="duty" type="hidden" datatype="*" value="${obj.duty}">
- <input id="dutyName" name="dutyName" type="text" style="width: 150px" readonly="readonly"
- value='${obj.dutyName}' placeholder="请选择所属职务"/>
- <c:if test="${empty param.load}">
- <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" id="dutiesSearch"
- onclick="openDutiesSelect()">选择</a>
- <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-clean" id="dutiesRedo"
- onclick="dutiesClean()">清空</a>
- </c:if>
- <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" colspan="2">
- <input id="address" name="address" type="text" style="width: 300px" class="inputxt" datatype="*0-100"
- value="${obj.address}"/>
- <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" colspan="2">
- <input id="hkaddress" name="hkaddress" type="text" style="width: 300px" class="inputxt"
- datatype="*0-100" value="${obj.hkaddress}"/>
- <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="contractStime" name="contractStime" type="text" style="width: 150px"
- class="Wdate" onClick="WdatePicker()" readonly="readonly" datatype="*"
- value="<fmt:formatDate value="${obj.contractStime}" pattern="yyyy-MM-dd"/>"/>
- <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="contractLong" name="contractLong" type="text" style="width: 150px" class="inputxt"
- datatype="n" value="${obj.contractLong}"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">合同时长</label>
- </td>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>试用期限(月):
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="trialPeriod" id="trialPeriod" type="list" typeGroupCode="shiyongqi" datatype="*"
- defaultVal="${obj.trialPeriod}" hasLabel="false" 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="jiaojin" id="jiaojin" type="list" typeGroupCode="jiaojin"
- hasLabel="false" datatype="*" title="缴金方式" defaultVal="${obj.jiaojin}"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">缴金方式</label>
- </td>
- <td align="right">
- <label class="Validform_label">
- 拟排班方式:
- </label>
- </td>
- <td class="value">
- <input id="prearrange" name="prearrange" type="text" style="width: 150px" class="inputxt"
- value="${obj.prearrange}"/>
- <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" colspan="2">
- <input id="experience" name="experience" type="text" style="width: 300px" class="inputxt"
- value="${obj.experience}"/>
- <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" colspan="3">
- <textarea id="remark" name="remark" type="text" class="inputxt" ignore="ignore"
- style="width: 300px; height: 60px;">${obj.remark}</textarea>
- <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" colspan="3">${needNum}</td>
- </tr>
- <%--<tr>
- <td align="right">
- <label class="Validform_label">
- 用户账户:
- </label>
- </td>
- <td class="value">
- <input id="username" name="userName" type="text" style="width: 150px" class="inputxt" datatype="s2-10" value="${obj.userName}"
- userInfoValidType="t_s_base_user,username,id"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">用户账户</label>
- </td>
- </tr>
- <tr>
- <td align="right"><label class="Validform_label"> <t:mutiLang langKey="common.common.mail"/>: </label></td>
- <td class="value">
- <input class="inputxt" name="email" value="${obj.email}" datatype="e" errormsg="邮箱格式不正确!">
- <span class="Validform_checktip"></span>
- </td>
- </tr>--%>
- <div style="display:none"><input type="submit" id="btn_sub" value=""/></div>
- <c:choose>
- <c:when test="${param.returnBack ==1}"><%--审批退回--%>
- <tr id="tdbtn">
- <td height="38px" align="right"> <!-- style="display: none" -->
- <!-- <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="history.go(-1)">返回</a> -->
- <a href="javascript:void(0)" class="easyui-linkbutton l-btn" iconcls="icon-le-ok"
- onclick="btn_ok()"> 保 存</a>
- </td>
- </tr>
- </c:when>
- <c:otherwise>
- <c:if test="${empty param.load}">
- <tr>
- <td height="50px" align="center" colspan="2">
- <a href="javascript:void(0)" class="easyui-linkbutton l-btn" iconcls="icon-confirm" onclick="btn_ok()">确定</a>
- <a style="margin-left:0px" href="javascript:void(0)" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-return"
- onclick="cal();">返回</a>
- </td>
- </tr>
- </c:if>
- </c:otherwise>
- </c:choose>
- </table>
- </t:formvalid>
- </body>
- <script>
- function openDepartmentSelect() {
- var departId = $("#departId").val();
- var projectUser = '${projectUser}';
- var params = '&ids=' + departId;
- if (projectUser == 'true') {
- $.dialog({
- content: 'url:dialogDealController.do?projectDepartTablePartChild' + params,
- zIndex: getzIndex(),
- title: '项目名称列表',
- lock: true,
- width: '600px',
- height: '400px',
- opacity: 0.4,
- button: [
- {
- name: '确定', 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") {
- $("#departId").val(strData[0][key]);
- } else if (key == "strDepartName") {
- $("#departname").val(strData[0][key]);
- }
- }
- }
- }, focus: true
- },
- {
- name: '取消', callback: function () {
- $('#departname').val('');
- $('#departId').val('');
- }
- }
- ]
- }).zindex();
- } else {
- $.dialog({
- content: 'url:dialogDealController.do?projectDepartTableAllWithChild' + params,
- 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") {
- $("#departId").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('');
- $('#departId').val('');
- }
- }
- ]
- }).zindex();
- }
- }
- function callbackClean() {
- $('#departname').val('');
- $('#departId').val('');
- }
- // 职务选择
- function openDutiesSelect() {
- $.dialog.setting.zIndex = getzIndex();
- var orgIds = $("#duty").val();
- $.dialog({
- content: 'url:dutiesController.do?departSelect${dutyCodeFilter}&orgIds=' + orgIds,
- zIndex: getzIndex(),
- title: '职务列表',
- lock: true,
- width: '400px',
- height: '350px',
- opacity: 0.4,
- button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackDutiesSelect, focus: true},
- {
- name: '<t:mutiLang langKey="common.cancel"/>', callback: function () {
- }
- }
- ]
- }).zindex();
- }
- // 职务回调
- function callbackDutiesSelect() {
- var iframe = this.iframe.contentWindow;
- var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
- var nodes = treeObj.getCheckedNodes();
- // var nodes = treeObj.getSelectedNodes();
- // console.log(nodes);
- if (nodes.length > 0) {
- var ids = '', names = '';
- for (var i = 0; i < nodes.length; i++) {
- var node = nodes[i];
- ids += node.id + ',';
- names += node.name + ',';
- }
- ids = ids.substring(0, ids.length - 1);
- names = names.substring(0, names.length - 1);
- $("#dutyName").val(names);
- $("#dutyName").blur();
- $("#duty").val(ids);
- }
- }
- function dutiesClean() {
- $("#duty").val('');
- $("#dutyName").val('');
- }
- function btn_ok() {
- $("#btn_sub").click();
- }
- function cal(){
- location='userActivitiController.do?list';
- }
- function callback(){
- console.log(arguments)
- <c:choose>
- <c:when test="${param.returnBack ==1}"><%--审批退回--%>
- tip("已保存,请重新提交审批");
- </c:when>
- <c:otherwise>
- location='userActivitiController.do?list';
- </c:otherwise>
- </c:choose>
- }
- </script>
|