d70b5f4d03cb86e7d133eab06ae19c9de4da9a23.svn-base 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <%@include file="../../../include1.jsp" %>
  7. <!-- 更多查询筛选过滤 js css -->
  8. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  9. <link href="/nwyj/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
  11. <!-- 更多查询筛选过滤 js css -->
  12. <title></title>
  13. <style type="text/css">
  14. .margin_topDown_10{
  15. margin: 10px 0;
  16. }
  17. .hide_dom{
  18. display: none;
  19. }
  20. .search_table{
  21. width:100%;
  22. }
  23. .search_table .search_table_td1{
  24. width:80%;
  25. }
  26. .search_table .search_table_td2{
  27. width:20%;
  28. text-align:right;
  29. }
  30. </style>
  31. <script type="text/javascript" src="/nwyj/scripts/business/exercise/examineManagement/examineList.js"></script>
  32. </head>
  33. <body>
  34. <div id="layout1">
  35. <!-- 左边的树 -->
  36. <div position="left" id="hztitle" style="margin-right:10px;">
  37. <div class="layout_content">
  38. <ul id="treeDept-gzfw" class="ztree"></ul>
  39. </div>
  40. </div>
  41. <!-- <div class="box2 margin_topDown_10" id="searchPanel" statusType="none"> -->
  42. <div class="plan_detail" id="plan_detail" position="center">
  43. <div class="box2" style="margin: 10px 0">
  44. <fieldset>
  45. <table width="100%" >
  46. <tr>
  47. <td width="93%">
  48. <input type="text" name="EXAMINE_TASK_NAME" id="EXAMINE_TASK_NAME" width="300px" watermark="请输入任务名称" onkeydown="if(event.keyCode==13){searchHandler();}" maxlength="38"/>&nbsp;&nbsp;
  49. <!-- <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button> -->
  50. <a id="searchOne"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  51. <input style='display:none' />
  52. </td>
  53. <!-- <td width="7%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询</span></a></td> -->
  54. </tr>
  55. </table>
  56. <!-- <form id="queryForm" method="post">
  57. <input id="hiddenText" type="text" class="hide_dom" />
  58. <div class="starSearch">
  59. <table class="table-style" >
  60. <tr>
  61. <td align="right" >单位名称:</td>
  62. <td width="300px"><div id="EXAMINEE_UNIT_606"></div>
  63. </td>
  64. <td align="right" style="padding-left:10px">任务名称:</td>
  65. <td>
  66. <input type="text" name="EXAMINE_TASK_ID_606" id="EXAMINE_TASK_ID_606"/>
  67. <select editable=false name="EXAMINE_TASK_ID_606" id="EXAMINE_TASK_ID_606" selAlign="" prompt="请选择" selWidth="300" boxHeight="180"></select>
  68. </td>
  69. <td align="right" width="73%">
  70. <button type="button" onclick="searchHandler()"><span class="icon_find">查询</span></button>
  71. &nbsp;&nbsp;&nbsp;
  72. <button type="button" onclick="clear_msg()"><span class="icon_reload">重置</span></button>
  73. </td>
  74. </tr>
  75. </table>
  76. </div>
  77. <div id="moreDiv" style="display: none;">
  78. </div>
  79. </form> -->
  80. </fieldset>
  81. </div>
  82. <div class="padding_right5">
  83. <div id="dataGrid"></div>
  84. </div>
  85. </div>
  86. <script type="text/javascript">
  87. //登陆人的机构id
  88. var loadCorp = "";
  89. var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  90. var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp,"deptLevel",getDeptLevel2(userDeptId_inner)];
  91. var setting;
  92. function getDeptLevel2(dpids){
  93. var dept_level = "";
  94. $.ajax({
  95. url : $.pathname()+ "/ws/planService/PlanService/getDeptLevel",
  96. type : 'post',
  97. timeout : 60000,
  98. data : {id:dpids},
  99. dataType : 'text',
  100. async: false,
  101. success : function(data){
  102. dept_level = data;
  103. }
  104. });
  105. return dept_level;
  106. }
  107. /***
  108. * 页面初始化
  109. */
  110. $(function(){
  111. /* 初始化页面布局 */
  112. var layout = $("#layout1").layout({
  113. leftWidth : 250,
  114. space : 10,
  115. onEndResize : function() {
  116. listGrid.resetWidth();
  117. }
  118. });
  119. setting = {
  120. view : {
  121. selectedMulti : false
  122. },
  123. async : {
  124. enable : true,
  125. dataType : 'JSON',
  126. dataName : 'treeNodes',
  127. aysnc : false,
  128. url : getAsyncUrl,
  129. autoParam : [ "id", "name", "orgLevel" ],
  130. otherParam : setloadtype_in
  131. },
  132. callback: {
  133. onClick:zTreeSelect,
  134. onAsyncSuccess:checkAndSetHeight,//changeFormat.js
  135. onExpand:checkAndSetHeight
  136. }
  137. };
  138. $.fn.zTree.init($("#treeDept-gzfw"), setting);
  139. });
  140. var isAdd = false;
  141. function getAsyncUrl(treeId, treeNode) {
  142. return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
  143. : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo3";
  144. }
  145. var zTree,node,tab;
  146. var zTreeCompId = "";
  147. var zTreeINS_UNITS = "";
  148. //点击树节点page/system/department/UserInfoEdit.jsp
  149. function zTreeSelect(event,treeId,treeNode) {
  150. //init(treeNode.id);
  151. zTreeCompId = treeNode.id;
  152. zTreeINS_UNITS=treeNode.orgLevel;
  153. var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
  154. var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  155. 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+"'";
  156. //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+"%')";
  157. listGrid.setOptions({//重置加载列表的参数
  158. params : {
  159. "listId" :'606' ,
  160. "condition" : condition,
  161. direction:'DESC',
  162. sort: 'UPDATEDATE'
  163. }
  164. });
  165. listGrid.rend();
  166. }
  167. //处理高度自适应,每次浏览器尺寸变化时触发
  168. function customHeightSet(contentHeight){
  169. $(".cusBoxContent").height(contentHeight-50)
  170. $("#page").height(contentHeight-50);
  171. }
  172. </script>
  173. </body>
  174. </html>