queryByEduList.jsp 12 KB

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