| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <%--
- Created by IntelliJ IDEA.
- User: EDZ
- Date: 2021/6/19
- Time: 11:08
- To change this template use File | Settings | File Templates.
- --%>
- <%@ 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 openManagerSelect() {
- var windowapi;
- try {
- windowapi = frameElement.api, W = windowapi.opener;
- } catch (e) {
- }
- //$.dialog.setting.zIndex = getzIndex();
- var orgIds = $("#orgIds").val();
- if(typeof(windowapi) == 'undefined'){
- $.dialog({content: 'url:publicpageController.do?userSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '员工列表', lock: true, width: '1000px', height: '600px', opacity: 0.4, button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackManagerSelect, focus: true},
- //update-by yulong.zhao 改为function中调用close方法否则多层弹出框,遮罩效果会关闭一个窗口后消失
- //{name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
- ]})
- }else{
- $.dialog({content: 'url:publicpageController.do?userSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '员工列表', lock: true,parent : windowapi,width: '1000px', height: '600px', opacity: 0.4,button: [
- {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackManagerSelect, focus: true},
- //update-by yulong.zhao 改为function中调用close方法否则多层弹出框,遮罩效果会关闭一个窗口后消失
- //{name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
- {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
- ]}).zindex();
- }
- }
- function callbackManagerSelect() {
- var iframe = this.iframe.contentWindow;
- var rowData = iframe.getSelectedRow()[0];
- $("#userId").val(rowData.id);
- $('#userName').val(rowData.realName);
- $('#mobilePhone').val(rowData.mobilePhone);
- $('#department').val(rowData.glcName);
- $('#inPostId').val(rowData.postId);
- $("#belongDutiesId").val(rowData.belongDutiesId);
- }
- function callbackClean(){
- $('#userId').val('');
- $('#userName').val('');
- $('#mobilePhone').val('');
- $('#department').val('');
- $('#inPostId').val('');
- $('#belongDutiesId').val('');
- }
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="receiverUserController.do?doAddOrUpdate">
- <input id="id" name="id" type="hidden" value="${receiverUser.id }"/>
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>员工姓名:
- </label>
- </td>
- <td class="value">
- <input id="userName" name="userName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect()"
- placeholder="请选择" datatype="*" value="${receiverUser.userName}"
- >
- <input id="userId" name="userId" type="hidden" value="${receiverUser.userId}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect()">选择</a>
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean()">清空</a>
- <%-- <span class="Validform_checktip">一线员工必须选择保安部、保洁部等部门;项目经理和内勤必须选择项目</span>--%>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 手机号码:
- </label>
- </td>
- <td class="value">
- <input id="mobilePhone" name="mobilePhone" disabled type="text" style="width: 150px"
- ignore="checked" placeholder="自动带入"
- value='${receiverUser.mobilePhone}'/>
- <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">
- <input id="department" name="department" disabled type="text" style="width: 150px"
- ignore="checked" placeholder="自动带入"
- value='${receiverUser.department}'/>
- <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">
- <t:dictSelect field="belongDutiesId" readonly="readonly" id="belongDutiesId" type="list" dictTable="t_bus_duties" dictField="id" dictText="duties_name" defaultVal="${receiverUser.belongDutiesId}" 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">
- 岗位:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="inPostId" readonly="readonly" type="list" id="inPostId" dictTable="t_bus_post" dictField="id" dictText="post_name" defaultVal="${receiverUser.inPostId}" 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">
- 作业类型:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="scheduleTypeId" type="list" id="scheduleTypeId" dictTable="t_b_car_schedule_type" dictField="id" dictText="name" defaultVal="${receiverUser.scheduleTypeId}" hasLabel="false" title="岗位" ></t:dictSelect>
- <%-- <span class="Validform_checktip">一线员工必须选择保安部、保洁部等部门;项目经理和内勤必须选择项目</span>--%>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 区域:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="areaRegion" type="list" typeGroupCode="areaRegion" defaultVal="${receiverUser.areaRegion}" 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="msgType" type="list" datatype="*" typeGroupCode="receiverMsgType" defaultVal="${receiverUser.msgType}" hasLabel="false" title="消息类型" ></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">消息类型</label>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- </html>
|