queryByUserEventList.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@include file="/context/mytags.jsp"%>
  4. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  5. <div class="easyui-layout" fit="true">
  6. <div region="center" style="padding: 0px; border: 0px">
  7. <t:datagrid name="queryList" checkbox="false" fitColumns="false"
  8. title="按关键事件统计" actionUrl="dbQueryUserController.do?queryByUserEventDatagrid"
  9. idField="id" fit="true" queryMode="group">
  10. <t:dgCol title="主键" field="pid" hidden="true" queryMode="single"
  11. width="110"></t:dgCol>
  12. <t:dgCol title="项目名称" field="departname" sortable="false"
  13. queryMode="single" width="120"></t:dgCol>
  14. <t:dgCol title="项目在职人数" field="total" query="false" sortable="false"
  15. queryMode="single" width="120"></t:dgCol>
  16. <t:dgCol title="入职" field="ruzhi" query="false" sortable="false" width="120"></t:dgCol>
  17. <t:dgCol title="离职" field="lizhi" query="false" sortable="false" width="120"></t:dgCol>
  18. <t:dgCol title="调入" field="diaoru" query="false" sortable="false" width="120"></t:dgCol>
  19. <t:dgCol title="调出" field="diaochu" query="false" sortable="false" width="120"></t:dgCol>
  20. <t:dgCol title="借调入" field="jiediaoru" query="false" sortable="false" width="120"></t:dgCol>
  21. <t:dgCol title="借调出" field="jiediaochu" query="false" sortable="false" width="120"></t:dgCol>
  22. <t:dgCol title="晋升" field="jinsheng" query="false" sortable="false" width="120"></t:dgCol>
  23. <t:dgCol title="降职" field="jiangzhi" query="false" sortable="false" width="120"></t:dgCol>
  24. <t:dgCol title="内部培训" field="neibupeixun" query="false" sortable="false" width="120"></t:dgCol>
  25. <t:dgCol title="外部培训" field="waibupeixun" query="false" sortable="false" width="120"></t:dgCol>
  26. <t:dgCol title="内部嘉奖" field="neibujiajiang" query="false" sortable="false" width="120"></t:dgCol>
  27. <t:dgCol title="业主褒奖" field="yezhubaojiang" query="false" sortable="false" width="120"></t:dgCol>
  28. <t:dgCol title="内部处罚" field="neibuchufa" query="false" sortable="false" width="120"></t:dgCol>
  29. <t:dgCol title="外部投诉" field="waibutousu" query="false" sortable="false" width="120"></t:dgCol>
  30. <t:dgCol title="外部处罚" field="waibuchufa" query="false" sortable="false" width="120"></t:dgCol>
  31. <%-- <t:dgCol title="操作" sortable="false" field="opt" width="300"></t:dgCol> --%>
  32. <%-- <t:dgFunOpt title="开启" funname="enableObj(id,bpmStatus)" urlclass="ace_button" urlfont="fa-cog"></t:dgFunOpt> --%>
  33. <%-- <t:dgFunOpt title="离职报告下载" funname="downloadFile(id)" urlclass="ace_button" urlfont="fa-check" ></t:dgFunOpt> --%>
  34. <%-- <t:dgFunOpt exp="bpmStatus#eq#1" urlclass="ace_button" urlfont="fa-cog" funname="startUserDefinedProcess(id,bpmStatus,applicantId)" title="提交流程" /> --%>
  35. <%-- <t:dgFunOpt exp="bpmStatus#ne#1" urlclass="ace_button" urlfont="fa-cog" funname="startus(id,procInstId)" title="查看流程" /> --%>
  36. <%-- <t:dgFunOpt exp="bpmStatus#eq#2" urlclass="ace_button" urlfont="fa-cog" funname="startusr(id,procInstId,bpmStatus,reject,iamApplyUser,applicantId)" title="撤回流程" /> --%>
  37. <%-- <t:dgDelOpt title="删除" url="dbQueryUserController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> --%>
  38. <%-- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="dbQueryUserController.do?goAdd" funname="add"></t:dgToolBar> --%>
  39. <%-- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="dbQueryUserController.do?goUpdate" funname="update"></t:dgToolBar> --%>
  40. <%-- <t:dgToolBar title="删除" icon="icon-remove" operationCode="remove" url="dbQueryUserController.do?logicDel" funname="deleteObj"></t:dgToolBar> --%>
  41. <%-- <t:dgToolBar title="查看" icon="icon-view" url="dbQueryUserController.do?goview" funname="goview"></t:dgToolBar> --%>
  42. <%-- <t:dgToolBar title="定时" icon="icon-search" url="dbQueryUserController.do?modify" funname="modify"></t:dgToolBar> --%>
  43. <%-- <t:dgToolBar title="撤销" icon="icon-edit" operationCode="edit" url="dbQueryUserController.do?disable" funname="disableObj"></t:dgToolBar> --%>
  44. <%-- <t:dgToolBar title="导出" icon="icon-put" operationCode="put" funname="ExportXls"></t:dgToolBar> --%>
  45. </t:datagrid>
  46. </div>
  47. <input id = "yearMonth" value="${yearMonth}" />
  48. <script>
  49. // $(function() {
  50. // var datagrid = $("#queryListtb");
  51. // datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
  52. // $("#pinjie1").html('');
  53. // datagrid.children(".datagrid-toolbar").children("span:first").after($("#pinjiechaxun1 div[name='pinjiechaxun2']").html());
  54. // $("#pinjiechaxun1").html('');
  55. // });
  56. </script>
  57. <!-- <div id="pinjie1"> -->
  58. <!-- <div name="pinjie2" style="padding:3px; height: auto" class="datagrid-toolbar"> -->
  59. <!-- <table style="height:85px;padding:0px" cellpadding="0" cellspacing="1" > -->
  60. <!-- <tbody> -->
  61. <!-- <tr> -->
  62. <!-- <td align="right" style="width: 74px;"> -->
  63. <!-- <label class="Validform_label"> -->
  64. <!-- 员工姓名: -->
  65. <!-- </label> -->
  66. <!-- </td> -->
  67. <!-- <td class="value"> -->
  68. <!-- <input id="realname" name="realname" type="text" style="width: 157px; " class="inputxt" placeholder="请输入员工姓名"> -->
  69. <!-- </td> -->
  70. <!-- <td align="right" style="width: 74px;"> -->
  71. <!-- <label class="Validform_label"> -->
  72. <!-- 申请状态: -->
  73. <!-- </label> -->
  74. <!-- </td> -->
  75. <!-- <td class="value"> -->
  76. <%-- <t:dictSelect field="bpmStatus" type="select" typeGroupCode="bpm_status" hasLabel="false" title="申请状态" ></t:dictSelect> --%>
  77. <!-- </td> -->
  78. <!-- <td align="right" style="width: 74px;"> -->
  79. <!-- <label class="Validform_label"> -->
  80. <!-- 所属单位: -->
  81. <!-- </label> -->
  82. <!-- </td> -->
  83. <!-- <td class="value" colspan="3"> -->
  84. <!-- <input readonly="true" type="text" id="departname" name="departname" style="width: 157px" placeholder="请选择所属单位" onclick="openDepartmentSelect()"> -->
  85. <!-- <input id="orgIds" name="orgIds" type="hidden" value=""> -->
  86. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a> -->
  87. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a> -->
  88. <!-- </td> -->
  89. <!-- </tr> -->
  90. <!-- <tr> -->
  91. <!-- <td align="right"> -->
  92. <!-- <label class="Validform_label"> -->
  93. <!-- 申请日期: -->
  94. <!-- </label> -->
  95. <!-- </td> -->
  96. <!-- <td class="value" colspan="3"> -->
  97. <!-- <input id="applyDate_begin" name="applyDate_begin" type="text" style="width: 150px" class="Wdate" -->
  98. <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'applyDate_end\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~ -->
  99. <!-- <input id="applyDate_end" name="applyDate_end" type="text" style="width: 150px" class="Wdate" -->
  100. <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'applyDate_begin\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/> -->
  101. <!-- </td> -->
  102. <!-- <td align="right"> -->
  103. <!-- <label class="Validform_label"> -->
  104. <!-- 离职日期: -->
  105. <!-- </label> -->
  106. <!-- </td> -->
  107. <!-- <td class="value"> -->
  108. <!-- <input id="leaveDate_begin" name="leaveDate_begin" type="text" style="width: 150px" class="Wdate" -->
  109. <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'leaveDate_end\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~ -->
  110. <!-- <input id="leaveDate_end" name="leaveDate_end" type="text" style="width: 150px" class="Wdate" -->
  111. <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'leaveDate_begin\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/> -->
  112. <!-- </td> -->
  113. <!-- <td align="right" style="width: 74px;"> -->
  114. <!-- <label class="Validform_label"> -->
  115. <!-- 离职类型: -->
  116. <!-- </label> -->
  117. <!-- </td> -->
  118. <!-- <td class="value"> -->
  119. <%-- <t:dictSelect field="leaveType" type="select" typeGroupCode="outType" hasLabel="false" title="离职类型" ></t:dictSelect> --%>
  120. <!-- </td> -->
  121. <!-- </tr> -->
  122. <!-- </tbody> -->
  123. <!-- </table> -->
  124. <!-- </div> -->
  125. <!-- </div> -->
  126. <!-- <div id="pinjiechaxun1"> -->
  127. <!-- <div name="pinjiechaxun2" style="padding:3px; height: auto" class="datagrid-toolbar"> -->
  128. <!-- <div style="float: right;"> -->
  129. <!-- <span> -->
  130. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="personnelBaseArchivesManageSearch" onclick="queryListsearch()">查询</a> -->
  131. <!-- </span> -->
  132. <!-- <span> -->
  133. <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="personnelBaseArchivesManageRedo" onclick="searchReset('queryList')">重置</a> -->
  134. <!-- </span> -->
  135. <!-- </div> -->
  136. <!-- </div> -->
  137. <!-- </div> -->
  138. <!-- </div> -->
  139. <!-- <script src = "webpage/cn/com/lzt/leave/queryList.js"></script> -->
  140. <script type="text/javascript">
  141. //导入
  142. function ImportXls() {
  143. openuploadwin('Excel导入', 'dbQueryUserController.do?upload',
  144. "queryList");
  145. }
  146. //导出
  147. function ExportXls() {
  148. JeecgExcelExport("dbQueryUserController.do?exportXls", "queryList");
  149. }
  150. //模板下载
  151. function ExportXlsByT() {
  152. JeecgExcelExport("dbQueryUserController.do?exportXlsByT",
  153. "queryList");
  154. }
  155. //新增
  156. function add(title, url, id) {
  157. window.location.href = url
  158. }
  159. //修改
  160. function update(title, url, id) {
  161. var rowsData = $('#' + id).datagrid('getSelections');
  162. if (!rowsData || rowsData.length == 0) {
  163. layer.alert('请选中一条数据');
  164. return;
  165. }
  166. /* if(rowsData[0].bpmStatus != 1){
  167. layer.alert('<t:mutiLang langKey="只有状态为<待提交>时才可进行<修改>操作"/>');
  168. return;
  169. } */
  170. if (rowsData[0].bpmStatus == 2) {
  171. layer.alert('<t:mutiLang langKey="申请处理中不可编辑"/>');
  172. return;
  173. } else if (rowsData[0].bpmStatus == 3) {
  174. layer.alert('<t:mutiLang langKey="申请已完成不可编辑"/>');
  175. return;
  176. }
  177. /* if(rowsData[0].applicantId != $("#user").val()){
  178. layer.alert('您无权限操作该数据!');
  179. return;
  180. } */
  181. updateNotCreateWin("修改", url, "queryList", false);
  182. }
  183. //查看
  184. function view(title, url, id) {
  185. viewNotCreateWin("查看", url, "queryList", false)
  186. }
  187. //新增
  188. function goview(title, url, id) {
  189. var rowsData = $('#' + id).datagrid('getSelections');
  190. if (!rowsData || rowsData.length == 0) {
  191. layer.alert('请选中一条数据');
  192. return;
  193. }
  194. window.location.href = url + '&id=' + rowsData[0].id + '&typeid='
  195. + rowsData[0].transferType;
  196. }
  197. function openDepartmentSelect() {
  198. $.dialog.setting.zIndex = getzIndex();
  199. var orgIds = $("#orgIds").val();
  200. // 查询所有组织结构
  201. $
  202. .dialog(
  203. {
  204. content : 'url:departController.do?departSelect&orgIds='
  205. + orgIds,
  206. zIndex : getzIndex(),
  207. title : '所属部门列表',
  208. lock : true,
  209. width : '400px',
  210. height : '350px',
  211. opacity : 0.4,
  212. button : [
  213. {
  214. name : '<t:mutiLang langKey="common.confirm"/>',
  215. callback : callbackDepartmentSelect,
  216. focus : true
  217. },
  218. {
  219. name : '<t:mutiLang langKey="common.cancel"/>',
  220. callback : function() {
  221. }
  222. } ]
  223. }).zindex();
  224. }
  225. function callbackDepartmentSelect() {
  226. // 查询所有组织结构
  227. var iframe = this.iframe.contentWindow;
  228. var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
  229. var nodes = treeObj.getCheckedNodes(true);
  230. if (nodes.length > 0) {
  231. var ids = '', names = '';
  232. for (i = 0; i < nodes.length; i++) {
  233. var node = nodes[i];
  234. ids += node.id + ',';
  235. names += node.name + ',';
  236. }
  237. $('#departname').val(names);
  238. $('#departname').blur();
  239. $('#orgIds').val(ids);
  240. }
  241. }
  242. function callbackClean() {
  243. $('#departname').val('');
  244. $('#orgIds').val('');
  245. }
  246. </script>