a202ba639949511376b58a7704c38d6d12c0ed3b.svn-base 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <%@page language="java" 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="../../../../include1.jsp" %>
  8. <!-- <script type="text/javascript" src="/nwyj/page/cockpit/webgis/js/gis_index.js"></script> -->
  9. <!--数据表格end-->
  10. <style>
  11. .stepContainer{
  12. padding:5px 0 5px 0px;
  13. }
  14. .stepTable{
  15. border:0;
  16. margin:0 auto!important;
  17. }
  18. .stepTable td{
  19. border:0;
  20. }
  21. .setp_icon{
  22. width:100px;
  23. text-align:center;
  24. }
  25. .setp_arrow{
  26. width:100px;
  27. text-align:center;
  28. }
  29. .setp_text{
  30. text-align:center;
  31. font-size:14px;
  32. font-weight:bold;
  33. }
  34. .addFileStyle{
  35. cursor:pointer;
  36. color:blue;
  37. }
  38. .addFileStyle:HOVER{
  39. text-decoration: underline;
  40. }
  41. </style>
  42. <!--引用资源文件,JS CSS-->
  43. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  44. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  45. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  46. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  47. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  48. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  49. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  50. <script type="text/javascript" src="<%=path%>/scripts/business/em/response/emergencyResponse/Warning.js"></script>
  51. <!-- 模版js和css start -->
  52. <!-- 左侧组织机构树通用组件 start-->
  53. <script type="text/javascript" src="/nwyj/scripts/leftDepartment.js"></script>
  54. <link href="/nwyj/page/leftDepartment.css" rel="stylesheet" type="text/css"/>
  55. <!-- 左侧组织机构树通用组件 end-->
  56. <script type="text/javascript">
  57. var plan_id = "<%=request.getParameter("plan_id")%>";
  58. <%-- var fd_id = "<%=request.getParameter("fd_id")%>";
  59. alert(fd_id) --%>
  60. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();//取得用户真实名字
  61. var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  62. //部门id--响应范围用到
  63. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  64. //父部门id
  65. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  66. //预警范围下拉框的初始化
  67. var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
  68. var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
  69. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  70. var personId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  71. TreeId = "treeDept-gzfw";
  72. is_ChiShiHua = false;//判断左侧树是否是初始化
  73. var loadCorp = "";
  74. var g;
  75. var zTree,node,tab;
  76. var zTreeCompId = "";
  77. //获取页面查询条件,刷新表格
  78. function refreshAlertTable(thisSrc,zt){
  79. var condition = "";
  80. var con = "";
  81. var $searchCon = $("#conditions");
  82. var $cont = $("#selectConditions");
  83. if(zt=="dangqian"){//当前
  84. $searchCon.find(".EARLY_WARNING_PROPERTY").parent().show();
  85. $searchCon.find(".IS_SEND").parent().show();
  86. $("._ToolBar_id ").show();
  87. con = "("+
  88. " ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND=5 or "+//已发布
  89. " ("+
  90. " (ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 5 and ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 6) and "+//未发布且未结束
  91. " (ECM_EM_PUBLISH_ALERT_NOTICE.WRITER_ID='"+getUser_id+"' or ECM_EM_TREATED_HUMAN.PERSON_ID='"+getUser_id+"')"+//填报人是自己或自己待处理或已处理过得
  92. " )"+
  93. ")";
  94. }else if(zt=="jiechu"){//解除
  95. $cont.find(".EARLY_WARNING_PROPERTY").click();
  96. $searchCon.find(".EARLY_WARNING_PROPERTY").parent().hide();
  97. $cont.find(".IS_SEND").click();
  98. $searchCon.find(".IS_SEND").parent().hide();
  99. $("._ToolBar_id ").hide();
  100. con = "ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and ECM_EM_PUBLISH_ALERT_NOTICE.EARLY_WARNING_PROPERTY =51 and ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND =6 and "+
  101. "ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and ((ECM_EM_PUBLISH_ALERT_NOTICE.EARLY_WARNING_AREA_ID like '%"
  102. +CorpArea+"%' or ECM_EM_PUBLISH_ALERT_NOTICE.WRITE_DEPT ='"+CorpArea+"' ) "
  103. +" or ECM_EM_PUBLISH_ALERT_NOTICE.release_unit in(select dept_id from sys_department where parent_id='"+CorpArea+"'))";
  104. }else{//全部
  105. $searchCon.find(".EARLY_WARNING_PROPERTY").parent().show();
  106. $searchCon.find(".IS_SEND").parent().show();
  107. $("._ToolBar_id ").hide();
  108. con = "( ("+
  109. " ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND=5 or "+//已发布
  110. " ("+
  111. " (ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 5 and ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 6) and "+//未发布且未结束
  112. " (ECM_EM_PUBLISH_ALERT_NOTICE.WRITER_ID='"+getUser_id+"' or ECM_EM_TREATED_HUMAN.PERSON_ID='"+getUser_id+"')"+//填报人是自己或自己待处理或已处理过得
  113. " )"+
  114. ") or ( ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND =6 and "+
  115. "ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and ((ECM_EM_PUBLISH_ALERT_NOTICE.EARLY_WARNING_AREA_ID like '%"
  116. +CorpArea+"%' or ECM_EM_PUBLISH_ALERT_NOTICE.WRITE_DEPT ='"+CorpArea+"' ) "
  117. +" or ECM_EM_PUBLISH_ALERT_NOTICE.release_unit in(select dept_id from sys_department where parent_id='"+CorpArea+"')) ) )";
  118. }
  119. if(zTreeCompId!=""){//若点选了左侧单位树
  120. if(zTreeCompId.indexOf(CorpArea) > -1){//本单位
  121. //只显示本单位下已发布和跟自己相关的通知单
  122. condition = " ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and "+//未删除
  123. " ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and "+//预警
  124. " ECM_EM_PUBLISH_ALERT_NOTICE.RELEASE_UNIT in ("+zTreeCompId+") and "+//发布单位为treeNode.id--这里是本单位
  125. con;
  126. }else{//上级或下级单位
  127. //只需要显示上级或下级单位下已发布的通知单即可
  128. condition = " ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and "+//未删除
  129. " ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND=5 and "+//已发布
  130. " ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and "+//预警
  131. " ECM_EM_PUBLISH_ALERT_NOTICE.RELEASE_UNIT in("+zTreeCompId+")";//发布单位为treeNode.id
  132. }
  133. }else{
  134. //只显示本单位下已发布和跟自己相关的通知单
  135. condition = " ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and "+//未删除
  136. " ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and "+//预警
  137. " ECM_EM_PUBLISH_ALERT_NOTICE.RELEASE_UNIT in('"+CorpArea+"') and "+//发布单位为treeNode.id--这里是本单位
  138. con;
  139. }
  140. loadParams.condition = condition;
  141. //去掉水印
  142. if($("#EARLY_WARNING_NAME_365").val()==" 响 应 名 称"){
  143. $("#EARLY_WARNING_NAME_365").val("");
  144. }
  145. var $queryForm = $("#queryForm");
  146. $queryForm.serialize();
  147. //获取选中的值
  148. var searchCondition = getSelectCon(conditionData);
  149. var queryParams = getQueryFormParams($queryForm);
  150. var params=$.extend({},loadParams,queryParams);
  151. //与之前参数条件拼接
  152. params.condition = searchCondition.condition + params.condition;
  153. if(!listGrid){
  154. listGrid=gridAndSingleRecode=$("#dataGrid").quickgridAndSingleRecode(options1);
  155. }
  156. listGrid.setOptions({"params":params});
  157. //加载数据
  158. // listGrid.setNewPage(1);
  159. listGrid.rend();
  160. }
  161. //点击页签,重置表格表头按钮权限
  162. function chongZhiQuanXian(zt){
  163. if(zt=="dangqian"){//当前
  164. $("._ToolBar_id ").show();
  165. }else{
  166. $("._ToolBar_id ").hide();
  167. }
  168. }
  169. $(function(){
  170. //var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
  171. //响应级别--常量表获取
  172. $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL');
  173. //响应性质--常量表获取
  174. $('#EARLY_WARNING_PROPERTY_365').initCanstSelect('BM_PROPERTY');
  175. //响应范围,发布单位下拉框
  176. $.post(deptUrl,{id:parentId,name:''},function(data){
  177. $("#EARLY_WARNING_AREA_ID_365").data("data",data);
  178. $("#EARLY_WARNING_AREA_ID_365").render();
  179. $("#RELEASE_UNIT_365").data("data",data);
  180. $("#RELEASE_UNIT_365").render();
  181. }, "json");
  182. //发布状态复选框全选方法
  183. $("#checkAll").click(function(){
  184. $('input[name="CHECK_STATUS"]').attr("checked",this.checked);
  185. });
  186. var $CHECK_STATUS = $("input[name='CHECK_STATUS']");
  187. $CHECK_STATUS.click(function(){
  188. $("#checkAll").attr("checked",$CHECK_STATUS.length == $("input[name='CHECK_STATUS']:checked").length ? true : false);
  189. });
  190. });
  191. //获得当前系统时间
  192. function getDateTime() {
  193. var s = "";
  194. var d = allGetServerTime();
  195. var vYear = d.getFullYear();
  196. var vMon = d.getMonth() + 1;
  197. var vDay = d.getDate();
  198. var h = d.getHours();
  199. var m = d.getMinutes();
  200. s = vYear + "-" + (vMon < 10 ? "0" + vMon : vMon) + "-"
  201. + (vDay < 10 ? "0" + vDay : vDay) + " "
  202. + (h < 10 ? "0" + h : h) + ":" + (m < 10 ? "0" + m : m);
  203. return s;
  204. }
  205. var conditionData = {"list":[
  206. {"name":"状态","className":"IS_SEND","list":[
  207. {"key":"全部","value":"0000"},{"key":"待发送","value":"0"},{"key":"待审核","value":"1"},{"key":"待签发","value":"3"},{"key":"待分发","value":"4"},{"key":"已发布","value":"5"}
  208. ]},
  209. {"name":"响应级别","className":"CURRENT_ER_LEVEL","list":[
  210. {"key":"全部","value":"0000"},{"key":"I级","value":"29"},{"key":"II级","value":"30"},{"key":"III级","value":"31"},{"key":"IV级","value":"32"}
  211. ]},
  212. {"name":"响应性质","className":"EARLY_WARNING_PROPERTY","list":[
  213. {"key":"全部","value":"0000"},{"key":"初次发布","value":"49"},{"key":"调整","value":"50"},{"key":"解除","value":"51"}
  214. ]}
  215. //{"name":"响应范围","className":"","list":[]},
  216. //{"name":"发布单位","className":"","list":[]},
  217. ]};
  218. /******加载突发事件类型*********/
  219. function loadEventType(){
  220. var result = "";
  221. $.ajax({
  222. url : $.pathname() + '/ws/sys/constantService/getAllEventType/',
  223. type : 'post',
  224. timeout : 60000,
  225. dataType : 'json',
  226. async: false,
  227. success : function(data){
  228. result = data;
  229. }
  230. });
  231. return result;
  232. }
  233. $(function() {
  234. var dd = loadEventType();//突发事件类型
  235. conditionData.list.push({
  236. "name" : "突发事件类型",
  237. "className" : "PLAN_TYPE_ID",
  238. "equalType" : "equal",
  239. "list" :dd.list})
  240. //根据json生成综合查询筛选条件ul-li列表
  241. createConditionsDom(conditionData);
  242. /* 初始化页面布局 */
  243. var layout = $("#layout1").layout({
  244. leftWidth : 250,
  245. space : 10,
  246. onEndResize : function() {
  247. listGrid.resetWidth();
  248. }
  249. });
  250. $(".l-layout-left").css("top","10px");
  251. $(".l-layout-center").css("top","10px");
  252. selectCompResetGrid();
  253. });
  254. $(window).load(function(){
  255. setting = {
  256. view : {
  257. selectedMulti : false
  258. },
  259. check : {
  260. enable : true,
  261. chkboxType:{ "Y": "s", "N": "s" }
  262. },
  263. callback:{
  264. beforeCheck:checkIsExpand,//检查该节点是否父节点是否折叠状态 leftDepartment.js
  265. onNodeCreated : selectDeptId,// leftDepartment.js //checkAndSetHeight,//changeFormat.js
  266. onCheck : selectCompResetGrid //左侧树多选框勾选时触发事件
  267. }
  268. };
  269. //初始化左侧树组件
  270. initCheckZtree(TreeId,setting,CorpArea)
  271. })
  272. function selectCompResetGrid(event, treeId, treeNode,thisSrc,zt) {
  273. if(!is_ChiShiHua){return false;}
  274. thisSrc = !thisSrc?$(top.document.body).find(".positionTabCurrent").attr("data-src"):thisSrc;
  275. if(thisSrc && thisSrc.split("?")[1].indexOf("_")>-1){
  276. zt = !zt?thisSrc.split("?")[1].split("_")[1]:zt;
  277. }else{
  278. zt = !zt?"dangqian":zt;
  279. $(top.document.body).find("#xytzd_dq").addClass("positionTabCurrent");
  280. }
  281. isSelect();//用于判断网省地县是否被选中,同时更新四个按钮的状态
  282. zTreeCompId = getSelectValue();//获取选中的单位id数据:'id1','id2','id3'...
  283. refreshAlertTable(thisSrc, zt);
  284. }
  285. </script>
  286. </head>
  287. <body>
  288. <div id="layout1">
  289. <!-- 左边的单位树end -->
  290. <div position="left" id="hztitle" style="margin-right:10px;">
  291. <ul id="treeDept-gzfw" class="ztree"></ul>
  292. </div>
  293. <!-- 左边的单位树end -->
  294. <div class="plan_detail" id="plan_detail" position="center">
  295. <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
  296. <fieldset>
  297. <form id="queryForm" method="post">
  298. <table style="width:100%;">
  299. <tr>
  300. <td width="80%">
  301. <input type="text" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" watermark=" 响 应 名 称" clearable="true" width="300px"/>&nbsp;&nbsp;
  302. <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
  303. <!-- <button id='searchButt' type="button"><span class="icon_find">查询</span></button> -->
  304. </td>
  305. <td width="20%" align="right"><a href="javascript:;"><span class="more_hide" id="more" >综合查询&nbsp;</span></a></td><!-- <span id="more" class="icon_more">&nbsp;</span> -->
  306. </tr>
  307. </table>
  308. <div id="moreDiv" style="display: none;">
  309. <!-- 可选条件,改div作为容器,需保留 -->
  310. <div class="conditions" id="conditions">
  311. <ul>
  312. <li class="condiTitle">响应编号:</li>
  313. <li><input class="Textinput" id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID" style="width:194px" type="text"/></li>
  314. </ul>
  315. <!-- <ul>
  316. <li class="condiTitle">发布时间:</li>
  317. <li><input readonly="readonly" type="text" class="date" name="RELEASE_RELIEVE_DATE" id="startTime"/>&nbsp; ~ &nbsp;
  318. <input readonly="readonly" type="text" class="date" name="RELEASE_RELIEVE_DATE" id="endTime"/></li>
  319. </ul> -->
  320. <!-- <tr><td>状态:</td>
  321. <td><input name="IS_SEND_365" value="0" type="checkbox" >待发送</input>
  322. <input name="IS_SEND_365" value="1" type="checkbox" >待审核</input>
  323. <input name="IS_SEND_365" value="2" type="checkbox" >撤回</input>
  324. <input name="IS_SEND_365" value="3" type="checkbox" >待签发</input>
  325. <input name="IS_SEND_365" value="4" type="checkbox" >待发布</input>
  326. <input name="IS_SEND_365" value="5" type="checkbox" >已发布</input>
  327. <input id="checkAll" name="CHECK_STATUS" type="checkbox" >全部</input></td></tr>
  328. <tr><td>响应编号00:</td>
  329. <td><input id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID_365" style="width:194px" type="text" ></input></td></tr>
  330. <tr><td>响应级别00:</td>
  331. <td><select id="CURRENT_ER_LEVEL_365" name="CURRENT_ER_LEVEL_365" prompt="请选择"></select></td></tr>
  332. <tr><td>响应性质00:</td>
  333. <td><select id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365" prompt="请选择" ></select></td></tr>
  334. <tr><td>响应范围:</td>
  335. <td><div class="selectTree" id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" multiMode="true" noGroup="true" readonly="readonly"></div></td></tr>
  336. <tr><td>发布单位:</td>
  337. <td><div class="selectTree" id="RELEASE_UNIT_365" name="RELEASE_UNIT_365" multiMode="true" noGroup="true"></div></td></tr>
  338. <tr><td>发布时间00:</td>
  339. <td><input readonly="readonly" id="START_RELEASE_RELIEVE_DATE_365" name="RELEASE_RELIEVE_DATE_365" class="date" style="width:194px" type="text"></input>到
  340. <input readonly="readonly" id="END_RELEASE_RELIEVE_DATE_365" name="RELEASE_RELIEVE_DATE_365" class="date" style="width:194px" type="text"></input></td></tr> -->
  341. </div>
  342. </div>
  343. </form>
  344. </fieldset>
  345. </div>
  346. <div class="padding_right5">
  347. <div id="dataGrid"></div>
  348. </div>
  349. </div>
  350. </div>
  351. <form id="alertResponseNumForm" method="post" style="display: none;">
  352. <input name="classid" value="368" type="hidden"/>
  353. <input type="hidden" id="COMPANY_ID_368" name="COMPANY_ID_368"/>
  354. <input type="hidden" id="YEAR_368" name="YEAR_368"/>
  355. <input type="hidden" id="NUM_368" name="NUM_368"/>
  356. <input type="hidden" id="IS_ADJUST_368" name="IS_ADJUST_368" value="F"/>
  357. <input type="hidden" id="IS_ALERT_368" name="IS_ALERT_368" value="1"/>
  358. <input type="hidden" id="PLAN_TYPE_ID_368" name="PLAN_TYPE_ID_368" value="1"/>
  359. </form>
  360. </body>
  361. </html>