receiverUser-detail.jsp 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: EDZ
  4. Date: 2021/6/19
  5. Time: 11:08
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
  9. <%@include file="/context/mytags.jsp" %>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <title>场所档案</title>
  14. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  15. <script type="text/javascript">
  16. //编写自定义JS代码
  17. function openManagerSelect() {
  18. var windowapi;
  19. try {
  20. windowapi = frameElement.api, W = windowapi.opener;
  21. } catch (e) {
  22. }
  23. //$.dialog.setting.zIndex = getzIndex();
  24. var orgIds = $("#orgIds").val();
  25. if(typeof(windowapi) == 'undefined'){
  26. $.dialog({content: 'url:publicpageController.do?userSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '员工列表', lock: true, width: '1000px', height: '600px', opacity: 0.4, button: [
  27. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackManagerSelect, focus: true},
  28. //update-by yulong.zhao 改为function中调用close方法否则多层弹出框,遮罩效果会关闭一个窗口后消失
  29. //{name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  30. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
  31. ]})
  32. }else{
  33. $.dialog({content: 'url:publicpageController.do?userSelect&orgIds='+orgIds, zIndex: getzIndex(), title: '员工列表', lock: true,parent : windowapi,width: '1000px', height: '600px', opacity: 0.4,button: [
  34. {name: '<t:mutiLang langKey="common.confirm"/>', callback: callbackManagerSelect, focus: true},
  35. //update-by yulong.zhao 改为function中调用close方法否则多层弹出框,遮罩效果会关闭一个窗口后消失
  36. //{name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){}}
  37. {name: '<t:mutiLang langKey="common.cancel"/>', callback: function (){close();}}
  38. ]}).zindex();
  39. }
  40. }
  41. function callbackManagerSelect() {
  42. var iframe = this.iframe.contentWindow;
  43. var rowData = iframe.getSelectedRow()[0];
  44. $("#userId").val(rowData.id);
  45. $('#userName').val(rowData.realName);
  46. $('#mobilePhone').val(rowData.mobilePhone);
  47. $('#department').val(rowData.glcName);
  48. $('#inPostId').val(rowData.postId);
  49. $("#belongDutiesId").val(rowData.belongDutiesId);
  50. }
  51. function callbackClean(){
  52. $('#userId').val('');
  53. $('#userName').val('');
  54. $('#mobilePhone').val('');
  55. $('#department').val('');
  56. $('#inPostId').val('');
  57. $('#belongDutiesId').val('');
  58. }
  59. </script>
  60. </head>
  61. <body>
  62. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="receiverUserController.do?doAddOrUpdate">
  63. <input id="id" name="id" type="hidden" value="${receiverUser.id }"/>
  64. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  65. <tr>
  66. <td align="right">
  67. <label class="Validform_label">
  68. <span color="red" class="requiredIcon">*</span>员工姓名:
  69. </label>
  70. </td>
  71. <td class="value">
  72. <input id="userName" name="userName" type="text" readonly="readonly" class="inputxt" onclick="openManagerSelect()"
  73. placeholder="请选择" datatype="*" value="${receiverUser.userName}"
  74. >
  75. <input id="userId" name="userId" type="hidden" value="${receiverUser.userId}">
  76. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openManagerSelect()">选择</a>
  77. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="callbackClean()">清空</a>
  78. <%-- <span class="Validform_checktip">一线员工必须选择保安部、保洁部等部门;项目经理和内勤必须选择项目</span>--%>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td align="right">
  83. <label class="Validform_label">
  84. 手机号码:
  85. </label>
  86. </td>
  87. <td class="value">
  88. <input id="mobilePhone" name="mobilePhone" disabled type="text" style="width: 150px"
  89. ignore="checked" placeholder="自动带入"
  90. value='${receiverUser.mobilePhone}'/>
  91. <span class="Validform_checktip"></span>
  92. <label class="Validform_label" style="display: none;">手机号码</label>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td align="right">
  97. <label class="Validform_label">
  98. 所属部门:
  99. </label>
  100. </td>
  101. <td class="value" colspan="3">
  102. <input id="department" name="department" disabled type="text" style="width: 150px"
  103. ignore="checked" placeholder="自动带入"
  104. value='${receiverUser.department}'/>
  105. <span class="Validform_checktip"></span>
  106. <label class="Validform_label" style="display: none;">所属部门</label>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td align="right">
  111. <label class="Validform_label">
  112. 职务:
  113. </label>
  114. </td>
  115. <td class="value">
  116. <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>
  117. <span class="Validform_checktip">自动带入</span>
  118. <label class="Validform_label" style="display: none;">职务</label>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td align="right">
  123. <label class="Validform_label">
  124. 岗位:
  125. </label>
  126. </td>
  127. <td class="value">
  128. <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>
  129. <span class="Validform_checktip">自动带入</span>
  130. <label class="Validform_label" style="display: none;">岗位</label>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td align="right">
  135. <label class="Validform_label">
  136. 作业类型:
  137. </label>
  138. </td>
  139. <td class="value">
  140. <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>
  141. <%-- <span class="Validform_checktip">一线员工必须选择保安部、保洁部等部门;项目经理和内勤必须选择项目</span>--%>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td align="right">
  146. <label class="Validform_label">
  147. 区域:
  148. </label>
  149. </td>
  150. <td class="value">
  151. <t:dictSelect field="areaRegion" type="list" typeGroupCode="areaRegion" defaultVal="${receiverUser.areaRegion}" hasLabel="false" title="所属网格化区域"></t:dictSelect>
  152. <span class="Validform_checktip"></span>
  153. <label class="Validform_label" style="display: none;">区域</label>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td align="right">
  158. <label class="Validform_label">
  159. <span color="red" class="requiredIcon">*</span>消息类型:
  160. </label>
  161. </td>
  162. <td class="value">
  163. <t:dictSelect field="msgType" type="list" datatype="*" typeGroupCode="receiverMsgType" defaultVal="${receiverUser.msgType}" hasLabel="false" title="消息类型" ></t:dictSelect>
  164. <span class="Validform_checktip"></span>
  165. <label class="Validform_label" style="display: none;">消息类型</label>
  166. </td>
  167. </tr>
  168. </table>
  169. </t:formvalid>
  170. </body>
  171. </html>