123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <%@include file="../../../include1.jsp" %>
- <!-- 更多查询筛选过滤 js css -->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
- <link href="/nwyj/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
- <!-- 更多查询筛选过滤 js css -->
-
- <title></title>
- <style type="text/css">
- .margin_topDown_10{
- margin: 10px 0;
- }
- .hide_dom{
- display: none;
- }
- .search_table{
- width:100%;
- }
- .search_table .search_table_td1{
- width:80%;
- }
- .search_table .search_table_td2{
- width:20%;
- text-align:right;
- }
- </style>
- <script type="text/javascript" src="/nwyj/scripts/business/exercise/examineManagement/examineList.js"></script>
- </head>
- <body>
- <div id="layout1">
- <!-- 左边的树 -->
- <div position="left" id="hztitle" style="margin-right:10px;">
- <div class="layout_content">
- <ul id="treeDept-gzfw" class="ztree"></ul>
- </div>
- </div>
- <!-- <div class="box2 margin_topDown_10" id="searchPanel" statusType="none"> -->
- <div class="plan_detail" id="plan_detail" position="center">
- <div class="box2" style="margin: 10px 0">
- <fieldset>
- <table width="100%" >
- <tr>
- <td width="93%">
- <input type="text" name="EXAMINE_TASK_NAME" id="EXAMINE_TASK_NAME" width="300px" watermark="请输入任务名称" onkeydown="if(event.keyCode==13){searchHandler();}" maxlength="38"/>
- <!-- <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button> -->
- <a id="searchOne"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
- <input style='display:none' />
- </td>
- <!-- <td width="7%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询</span></a></td> -->
- </tr>
- </table>
- <!-- <form id="queryForm" method="post">
- <input id="hiddenText" type="text" class="hide_dom" />
- <div class="starSearch">
- <table class="table-style" >
- <tr>
- <td align="right" >单位名称:</td>
- <td width="300px"><div id="EXAMINEE_UNIT_606"></div>
- </td>
- <td align="right" style="padding-left:10px">任务名称:</td>
- <td>
- <input type="text" name="EXAMINE_TASK_ID_606" id="EXAMINE_TASK_ID_606"/>
- <select editable=false name="EXAMINE_TASK_ID_606" id="EXAMINE_TASK_ID_606" selAlign="" prompt="请选择" selWidth="300" boxHeight="180"></select>
- </td>
- <td align="right" width="73%">
- <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button>
-
- <button type="button" onclick="clear_msg()"><span class="icon_reload">重置</span></button>
- </td>
- </tr>
- </table>
- </div>
- <div id="moreDiv" style="display: none;">
-
- </div>
- </form> -->
- </fieldset>
- </div>
- <div class="padding_right5">
- <div id="dataGrid"></div>
- </div>
- </div>
- <script type="text/javascript">
- //登陆人的机构id
- var loadCorp = "";
- var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp,"deptLevel",getDeptLevel2(userDeptId_inner)];
- var setting;
- function getDeptLevel2(dpids){
- var dept_level = "";
- $.ajax({
- url : $.pathname()+ "/ws/planService/PlanService/getDeptLevel",
- type : 'post',
- timeout : 60000,
- data : {id:dpids},
- dataType : 'text',
- async: false,
- success : function(data){
- dept_level = data;
- }
- });
- return dept_level;
- }
- /***
- * 页面初始化
- */
- $(function(){
- /* 初始化页面布局 */
- var layout = $("#layout1").layout({
- leftWidth : 250,
- space : 10,
- onEndResize : function() {
- listGrid.resetWidth();
- }
-
- });
- setting = {
- view : {
- selectedMulti : false
- },
- async : {
- enable : true,
- dataType : 'JSON',
- dataName : 'treeNodes',
- aysnc : false,
- url : getAsyncUrl,
- autoParam : [ "id", "name", "orgLevel" ],
- otherParam : setloadtype_in
- },
- callback: {
- onClick:zTreeSelect,
- onAsyncSuccess:checkAndSetHeight,//changeFormat.js
- onExpand:checkAndSetHeight
- }
- };
- $.fn.zTree.init($("#treeDept-gzfw"), setting);
- });
- var isAdd = false;
- function getAsyncUrl(treeId, treeNode) {
- return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
- : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo3";
- }
- var zTree,node,tab;
- var zTreeCompId = "";
- var zTreeINS_UNITS = "";
- //点击树节点page/system/department/UserInfoEdit.jsp
- function zTreeSelect(event,treeId,treeNode) {
- //init(treeNode.id);
- zTreeCompId = treeNode.id;
- zTreeINS_UNITS=treeNode.orgLevel;
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
- var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var condition = "is_del = 0 and FINISH_STATE = '1' and ( EXAMINE_TASK_ID IN (select FD_OBJECTID from ECM_TRAIN_EXAMINE_EXAMINE_TASK where WRITER_DEPT = '"+corpId+"') or EXAMINEE_NAME_ID = '"+userId+"' ) and EXAMINEE_UNIT='"+zTreeCompId+"'";
- //var condition = "is_del = 0 and FINISH_STATE = '1' and EXAMINE_TASK_ID <> '' and EXAMINEE_UNIT in(select DEPT_ID from sys_department where DEPT_PATH like '%"+zTreeCompId+"%')";
- listGrid.setOptions({//重置加载列表的参数
- params : {
- "listId" :'606' ,
- "condition" : condition,
- direction:'DESC',
- sort: 'UPDATEDATE'
- }
- });
- listGrid.rend();
- }
- //处理高度自适应,每次浏览器尺寸变化时触发
- function customHeightSet(contentHeight){
- $(".cusBoxContent").height(contentHeight-50)
- $("#page").height(contentHeight-50);
- }
- </script>
- </body>
- </html>
|