queryByUserOperateList.jsp 11 KB

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