87f969cb21b50d320b215ff58b90381d99d3f8d0.svn-base 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <title></title>
  7. <%@include file="/page/include1.jsp" %>
  8. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/system/invoking/invoking.js"></script>
  9. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  10. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  11. <script type="text/javascript" src="<%=path%>/scripts/business/em/monitor/responseReceive/GovResponseReceiveManager.js"></script>
  12. <script type="text/javascript">
  13. // 部门id
  14. var dpids = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  15. var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
  16. var conditionData = {"list":[
  17. {"name":"响应类别","className":"RESPONSE_NAME","list":[
  18. {"key":"全部","value":"0000"},{"key":"防风防汛","value":"311"},{"key":"地震灾害","value":"312"},{"key":"低温雨雪冰冻灾害","value":"313"},
  19. {"key":"人身事故","value":"314"},{"key":"大面积停电事件","value":"315"},{"key":"设备事故","value":"316"},{"key":"电厂大坝厂房事故","value":"317"},{"key":"环境污染","value":"318"},
  20. {"key":"突发公共卫生","value":"319"},{"key":"电厂供应及客户服务","value":"320"},{"key":"生产场所防恐怖袭击","value":"321"},{"key":"突发性群体事件","value":"322"}
  21. ,{"key":"突发新闻事件","value":"323"},{"key":"涉外突发事件","value":"324"},{"key":"网络与信息安全","value":"325"}
  22. ]},
  23. {"name":"响应级别","className":"RESPONSE_LEVEL","list":[
  24. {"key":"全部","value":"0000"},{"key":"I级","value":"29"},{"key":"II级","value":"30"},{"key":"III级","value":"31"},{"key":"IV级","value":"32"}
  25. ]},//29I级,30II级,31III级,32IV级
  26. {"name":"响应性质","className":"EARLY_WARNING_PROPERTY","list":[
  27. {"key":"全部","value":"0000"},{"key":"初次发布","value":"49"},{"key":"调整","value":"50"},{"key":"解除","value":"51"}
  28. ]},
  29. {"name":"响应状态","className":"RESPONSE_STATUS","list":[
  30. {"key":"全部","value":"0000"},{"key":"发布","value":"33"},{"key":"解除","value":"34"}
  31. ]}//33发布,34解除
  32. ]};
  33. var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
  34. var userDeptId_inner = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  35. var setting;
  36. var loadCorp = "";
  37. var g;
  38. var setloadtype_in=["deptId", userDeptId_inner,"type","","loadCorp",loadCorp];
  39. $(function(){
  40. $('#moreTable').hide();//默认隐藏更多的查询条件
  41. createConditionsDom(conditionData);
  42. });
  43. $(function(){
  44. /* 初始化页面布局 */
  45. var layout = $("#layout1").layout({
  46. leftWidth : 250,
  47. space : 10,
  48. onEndResize : function() {
  49. g.resetWidth();
  50. }
  51. });
  52. setting = {
  53. view : {
  54. selectedMulti : false
  55. },async : {
  56. enable : true,
  57. dataType : 'JSON',
  58. dataName : 'treeNodes',
  59. aysnc : false,
  60. //url : getAsyncUrl,
  61. url : getAsyncUrl1,
  62. autoParam : [ "id", "name", "orgLevel" ],
  63. otherParam : setloadtype_in
  64. },callback: {
  65. onClick:zTreeSelect,
  66. onAsyncSuccess:checkAndSetHeight,//changeFormat.js
  67. onExpand:checkAndSetHeight
  68. }
  69. };
  70. $.fn.zTree.init($("#treeDept-gzfw"), setting);
  71. });
  72. var isAdd = false;
  73. function getAsyncUrl(treeId, treeNode) {
  74. return isAdd ? $.pathname() + "/ws/OrganizationsService/OrganizationsService/addOrgInfoById?targetOrg=" + targetOrg
  75. : $.pathname() + "/ws/OrganizationsService/OrganizationsService/loadSysOrgInfo2";
  76. };
  77. function getAsyncUrl1(treeId, treeNode) {
  78. return $.pathname() + "/ws/OrganizationsService/OrganizationsService/getUnitTree";//包含上级单位
  79. };
  80. var zTree,node,tab;
  81. var zTreeCompId = "";
  82. var zTreeINS_UNITS = "";
  83. //点击树节点page/system/department/UserInfoEdit.jsp
  84. function zTreeSelect(event,treeId,treeNode) {
  85. //init(treeNode.id);
  86. zTreeCompId = treeNode.id;
  87. zTreeINS_UNITS=treeNode.orgLevel;
  88. var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
  89. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  90. var personId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  91. var condition = "";
  92. //if(treeNode.orgLevel=="null"){
  93. if(true){
  94. //condition = "IS_DEL='0' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and INS_UNITS='"+treeNode.id+"'";
  95. //只需要显示某单位下的通知单即可
  96. condition = " is_del=0 and WRITE_UNIT='"+treeNode.id+"'";
  97. }else{
  98. //condition = "IS_DEL='0' and (PLAN_STAT='1' or PLAN_STAT1='1' or REMARK1='"+ getUser_id +"') and UNITS='"+treeNode.id+"'";
  99. }
  100. g.setOptions({//重置加载列表的参数
  101. params : {
  102. "listId" : "370",
  103. "condition" : condition,
  104. direction : "DESC",
  105. sort: "UPDATEDATE"
  106. }
  107. });
  108. g.rend();
  109. }
  110. </script>
  111. </head>
  112. <body >
  113. <div id="layout1">
  114. <!-- 左边的单位树end -->
  115. <div position="left" id="hztitle" style="margin-right:10px;">
  116. <div class="layout_content">
  117. <ul id="treeDept-gzfw" class="ztree"></ul>
  118. </div>
  119. </div>
  120. <!-- 左边的单位树end -->
  121. <div class="plan_detail" id="plan_detail" position="center">
  122. <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
  123. <fieldset>
  124. <form id="queryForm" method="post">
  125. <input type="text" style="display: none"/>
  126. <table style="width:100%;">
  127. <tr>
  128. <td width="80%"><input type="text" id="RELEASE_UNIT_370" name="RELEASE_UNIT_370" maxlength="15" watermark=" 发 布 单 位">&nbsp;&nbsp;&nbsp;&nbsp;
  129. <!-- <button id='searchButt' type="button"><span class="icon_find">查询</span></button> -->
  130. <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  131. </td>
  132. <td width="20%" align="right"><a href="javascript:;"><span id="more" class="more_hide">综合查询</span></a></td>
  133. </tr>
  134. </table>
  135. <div id="moreTable">
  136. <!-- 可选条件,改div作为容器,需保留 -->
  137. <div class="conditions" id="conditions">
  138. <!-- <ul>
  139. <li class="condiTitle">发布时间:</li>
  140. <li><input readonly="readonly" type="text" class="date" name="RELEASE_DATE" id="beginTime"/>&nbsp; ~ &nbsp;
  141. <input readonly="readonly" type="text" class="date" name="RELEASE_DATE" id="endTime"/></li>
  142. </ul> -->
  143. <!-- <tr>
  144. <td align="right">响应类别:</td>
  145. <td><select prompt="请选择" name="RESPONSE_NAME_370" id="RESPONSE_NAME_370"></select></td>
  146. </tr>
  147. <tr>
  148. <td align="right">响应级别:</td>
  149. <td><select prompt="请选择" name="RESPONSE_LEVEL_370" id="RESPONSE_LEVEL_370"></select></td>
  150. </tr>
  151. <tr>
  152. <td align="right">发布时间:</td>
  153. <td><input readonly="readonly" name="RELEASE_DATE" id="START_RELEASE_DATE_370" style="width:194px" type="text" maxlength="26" class="date" />&nbsp;到&nbsp;
  154. <input name="RELEASE_DATE" id="END_RELEASE_DATE_370" readonly="readonly" style="width:194px" type="text" maxlength="26" class="date" /></td>
  155. </tr> -->
  156. </div>
  157. </div>
  158. </form>
  159. </fieldset>
  160. </div>
  161. <div class="adding_right5">
  162. <div id="dataGrid"></div>
  163. </div>
  164. </div>
  165. </div>
  166. </body>
  167. </html>