| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <div class="easyui-layout" fit="true">
- <div region="center" style="padding: 0px; border: 0px">
- <t:datagrid name="queryList" checkbox="false" fitColumns="false"
- title="按户口类型统计" actionUrl="dbQueryUserController.do?queryByHukouDatagrid"
- idField="id" fit="true" queryMode="group">
- <t:dgCol title="主键" field="pid" hidden="true" queryMode="single"
- width="110"></t:dgCol>
- <t:dgCol title="项目名称" field="departname" sortable="false"
- queryMode="single" width="320"></t:dgCol>
- <t:dgCol title="项目在职人数" field="total" query="false" sortable="false"
- queryMode="single" width="120"></t:dgCol>
-
- <t:dgCol title="城镇" field="chengzhenCount" query="false" sortable="false" width="120"></t:dgCol>
- <t:dgCol title="农业" field="nongyeCount" query="false" sortable="false" width="120"></t:dgCol>
- <t:dgCol title="非农" field="feinongCount" query="false" sortable="false" width="120"></t:dgCol>
- <%-- <t:dgCol title="操作" sortable="false" field="opt" width="300"></t:dgCol> --%>
- <%-- <t:dgFunOpt title="开启" funname="enableObj(id,bpmStatus)" urlclass="ace_button" urlfont="fa-cog"></t:dgFunOpt> --%>
- <%-- <t:dgFunOpt title="离职报告下载" funname="downloadFile(id)" urlclass="ace_button" urlfont="fa-check" ></t:dgFunOpt> --%>
- <%-- <t:dgFunOpt exp="bpmStatus#eq#1" urlclass="ace_button" urlfont="fa-cog" funname="startUserDefinedProcess(id,bpmStatus,applicantId)" title="提交流程" /> --%>
- <%-- <t:dgFunOpt exp="bpmStatus#ne#1" urlclass="ace_button" urlfont="fa-cog" funname="startus(id,procInstId)" title="查看流程" /> --%>
- <%-- <t:dgFunOpt exp="bpmStatus#eq#2" urlclass="ace_button" urlfont="fa-cog" funname="startusr(id,procInstId,bpmStatus,reject,iamApplyUser,applicantId)" title="撤回流程" /> --%>
- <%-- <t:dgDelOpt title="删除" url="dbQueryUserController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> --%>
- <%-- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="dbQueryUserController.do?goAdd" funname="add"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="dbQueryUserController.do?goUpdate" funname="update"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="删除" icon="icon-remove" operationCode="remove" url="dbQueryUserController.do?logicDel" funname="deleteObj"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="查看" icon="icon-view" url="dbQueryUserController.do?goview" funname="goview"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="定时" icon="icon-search" url="dbQueryUserController.do?modify" funname="modify"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="撤销" icon="icon-edit" operationCode="edit" url="dbQueryUserController.do?disable" funname="disableObj"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="导出" icon="icon-put" operationCode="put" funname="ExportXls"></t:dgToolBar> --%>
- </t:datagrid>
- </div>
- <script>
- // $(function() {
- // var datagrid = $("#queryListtb");
- // datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
- // $("#pinjie1").html('');
- // datagrid.children(".datagrid-toolbar").children("span:first").after($("#pinjiechaxun1 div[name='pinjiechaxun2']").html());
- // $("#pinjiechaxun1").html('');
- // });
- </script>
- <!-- <div id="pinjie1"> -->
- <!-- <div name="pinjie2" style="padding:3px; height: auto" class="datagrid-toolbar"> -->
- <!-- <table style="height:85px;padding:0px" cellpadding="0" cellspacing="1" > -->
- <!-- <tbody> -->
- <!-- <tr> -->
- <!-- <td align="right" style="width: 74px;"> -->
- <!-- <label class="Validform_label"> -->
- <!-- 员工姓名: -->
- <!-- </label> -->
- <!-- </td> -->
- <!-- <td class="value"> -->
- <!-- <input id="realname" name="realname" type="text" style="width: 157px; " class="inputxt" placeholder="请输入员工姓名"> -->
- <!-- </td> -->
- <!-- <td align="right" style="width: 74px;"> -->
- <!-- <label class="Validform_label"> -->
- <!-- 申请状态: -->
- <!-- </label> -->
- <!-- </td> -->
- <!-- <td class="value"> -->
- <%-- <t:dictSelect field="bpmStatus" type="select" typeGroupCode="bpm_status" hasLabel="false" title="申请状态" ></t:dictSelect> --%>
- <!-- </td> -->
- <!-- <td align="right" style="width: 74px;"> -->
- <!-- <label class="Validform_label"> -->
- <!-- 所属单位: -->
- <!-- </label> -->
- <!-- </td> -->
- <!-- <td class="value" colspan="3"> -->
- <!-- <input readonly="true" type="text" id="departname" name="departname" style="width: 157px" placeholder="请选择所属单位" onclick="openDepartmentSelect()"> -->
- <!-- <input id="orgIds" name="orgIds" type="hidden" value=""> -->
- <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch" onclick="openDepartmentSelect()">选择</a> -->
- <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="callbackClean()">清空</a> -->
- <!-- </td> -->
- <!-- </tr> -->
- <!-- <tr> -->
- <!-- <td align="right"> -->
- <!-- <label class="Validform_label"> -->
- <!-- 申请日期: -->
- <!-- </label> -->
- <!-- </td> -->
- <!-- <td class="value" colspan="3"> -->
- <!-- <input id="applyDate_begin" name="applyDate_begin" type="text" style="width: 150px" class="Wdate" -->
- <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'applyDate_end\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~ -->
- <!-- <input id="applyDate_end" name="applyDate_end" type="text" style="width: 150px" class="Wdate" -->
- <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'applyDate_begin\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/> -->
- <!-- </td> -->
- <!-- <td align="right"> -->
- <!-- <label class="Validform_label"> -->
- <!-- 离职日期: -->
- <!-- </label> -->
- <!-- </td> -->
- <!-- <td class="value"> -->
- <!-- <input id="leaveDate_begin" name="leaveDate_begin" type="text" style="width: 150px" class="Wdate" -->
- <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'leaveDate_end\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~ -->
- <!-- <input id="leaveDate_end" name="leaveDate_end" type="text" style="width: 150px" class="Wdate" -->
- <!-- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'leaveDate_begin\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/> -->
- <!-- </td> -->
- <!-- <td align="right" style="width: 74px;"> -->
- <!-- <label class="Validform_label"> -->
- <!-- 离职类型: -->
- <!-- </label> -->
- <!-- </td> -->
- <!-- <td class="value"> -->
- <%-- <t:dictSelect field="leaveType" type="select" typeGroupCode="outType" hasLabel="false" title="离职类型" ></t:dictSelect> --%>
- <!-- </td> -->
- <!-- </tr> -->
- <!-- </tbody> -->
- <!-- </table> -->
- <!-- </div> -->
- <!-- </div> -->
- <!-- <div id="pinjiechaxun1"> -->
- <!-- <div name="pinjiechaxun2" style="padding:3px; height: auto" class="datagrid-toolbar"> -->
- <!-- <div style="float: right;"> -->
- <!-- <span> -->
- <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="personnelBaseArchivesManageSearch" onclick="queryListsearch()">查询</a> -->
- <!-- </span> -->
- <!-- <span> -->
- <!-- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="personnelBaseArchivesManageRedo" onclick="searchReset('queryList')">重置</a> -->
- <!-- </span> -->
- <!-- </div> -->
- <!-- </div> -->
- <!-- </div> -->
- <!-- </div> -->
- <!-- <script src = "webpage/cn/com/lzt/leave/queryList.js"></script> -->
- <script type="text/javascript">
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'dbQueryUserController.do?upload',
- "queryList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("dbQueryUserController.do?exportXls", "queryList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("dbQueryUserController.do?exportXlsByT",
- "queryList");
- }
- //新增
- function add(title, url, id) {
- window.location.href = url
- }
- //修改
- function update(title, url, id) {
- var rowsData = $('#' + id).datagrid('getSelections');
- if (!rowsData || rowsData.length == 0) {
- layer.alert('请选中一条数据');
- return;
- }
- /* if(rowsData[0].bpmStatus != 1){
- layer.alert('<t:mutiLang langKey="只有状态为<待提交>时才可进行<修改>操作"/>');
- return;
- } */
- if (rowsData[0].bpmStatus == 2) {
- layer.alert('<t:mutiLang langKey="申请处理中不可编辑"/>');
- return;
- } else if (rowsData[0].bpmStatus == 3) {
- layer.alert('<t:mutiLang langKey="申请已完成不可编辑"/>');
- return;
- }
- /* if(rowsData[0].applicantId != $("#user").val()){
- layer.alert('您无权限操作该数据!');
- return;
- } */
- updateNotCreateWin("修改", url, "queryList", false);
- }
- //查看
- function view(title, url, id) {
- viewNotCreateWin("查看", url, "queryList", false)
- }
- //新增
- function goview(title, url, id) {
- var rowsData = $('#' + id).datagrid('getSelections');
- if (!rowsData || rowsData.length == 0) {
- layer.alert('请选中一条数据');
- return;
- }
- window.location.href = url + '&id=' + rowsData[0].id + '&typeid='
- + rowsData[0].transferType;
- }
- function openDepartmentSelect() {
- $.dialog.setting.zIndex = getzIndex();
- var orgIds = $("#orgIds").val();
- // 查询所有组织结构
- $
- .dialog(
- {
- content : 'url:departController.do?departSelect&orgIds='
- + orgIds,
- zIndex : getzIndex(),
- title : '所属部门列表',
- lock : true,
- width : '400px',
- height : '350px',
- opacity : 0.4,
- button : [
- {
- name : '<t:mutiLang langKey="common.confirm"/>',
- callback : callbackDepartmentSelect,
- focus : true
- },
- {
- name : '<t:mutiLang langKey="common.cancel"/>',
- callback : function() {
- }
- } ]
- }).zindex();
- }
- function callbackDepartmentSelect() {
- // 查询所有组织结构
- var iframe = this.iframe.contentWindow;
- var treeObj = iframe.$.fn.zTree.getZTreeObj("departSelect");
- var nodes = treeObj.getCheckedNodes(true);
- if (nodes.length > 0) {
- var ids = '', names = '';
- for (i = 0; i < nodes.length; i++) {
- var node = nodes[i];
- ids += node.id + ',';
- names += node.name + ',';
- }
- $('#departname').val(names);
- $('#departname').blur();
- $('#orgIds').val(ids);
- }
- }
- function callbackClean() {
- $('#departname').val('');
- $('#orgIds').val('');
- }
- </script>
|