123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- <%@page language="java" 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" />
- <title>响应通知单管理</title>
-
- <%@include file="../../../../include1.jsp" %>
- <!-- <script type="text/javascript" src="/nwyj/page/cockpit/webgis/js/gis_index.js"></script> -->
- <!--数据表格end-->
- <style>
- .stepContainer{
- padding:5px 0 5px 0px;
- }
- .stepTable{
- border:0;
- margin:0 auto!important;
- }
- .stepTable td{
- border:0;
- }
- .setp_icon{
- width:100px;
- text-align:center;
- }
- .setp_arrow{
- width:100px;
- text-align:center;
- }
- .setp_text{
- text-align:center;
- font-size:14px;
- font-weight:bold;
- }
- .addFileStyle{
- cursor:pointer;
- color:blue;
- }
- .addFileStyle:HOVER{
- text-decoration: underline;
- }
- </style>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
- <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
-
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/business/em/response/emergencyResponse/Warning.js"></script>
- <!-- 模版js和css start -->
-
-
- <!-- 左侧组织机构树通用组件 start-->
- <script type="text/javascript" src="/nwyj/scripts/leftDepartment.js"></script>
- <link href="/nwyj/page/leftDepartment.css" rel="stylesheet" type="text/css"/>
- <!-- 左侧组织机构树通用组件 end-->
-
- <script type="text/javascript">
- var plan_id = "<%=request.getParameter("plan_id")%>";
- <%-- var fd_id = "<%=request.getParameter("fd_id")%>";
- alert(fd_id) --%>
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();//取得用户真实名字
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //部门id--响应范围用到
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- //预警范围下拉框的初始化
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+"";
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var personId = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- TreeId = "treeDept-gzfw";
- is_ChiShiHua = false;//判断左侧树是否是初始化
- var loadCorp = "";
- var g;
- var zTree,node,tab;
- var zTreeCompId = "";
-
- //获取页面查询条件,刷新表格
- function refreshAlertTable(thisSrc,zt){
- var condition = "";
- var con = "";
- var $searchCon = $("#conditions");
- var $cont = $("#selectConditions");
-
- if(zt=="dangqian"){//当前
- $searchCon.find(".EARLY_WARNING_PROPERTY").parent().show();
- $searchCon.find(".IS_SEND").parent().show();
- $("._ToolBar_id ").show();
- con = "("+
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND=5 or "+//已发布
- " ("+
- " (ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 5 and ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 6) and "+//未发布且未结束
- " (ECM_EM_PUBLISH_ALERT_NOTICE.WRITER_ID='"+getUser_id+"' or ECM_EM_TREATED_HUMAN.PERSON_ID='"+getUser_id+"')"+//填报人是自己或自己待处理或已处理过得
- " )"+
- ")";
- }else if(zt=="jiechu"){//解除
- $cont.find(".EARLY_WARNING_PROPERTY").click();
- $searchCon.find(".EARLY_WARNING_PROPERTY").parent().hide();
- $cont.find(".IS_SEND").click();
- $searchCon.find(".IS_SEND").parent().hide();
- $("._ToolBar_id ").hide();
- 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 "+
- "ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and ((ECM_EM_PUBLISH_ALERT_NOTICE.EARLY_WARNING_AREA_ID like '%"
- +CorpArea+"%' or ECM_EM_PUBLISH_ALERT_NOTICE.WRITE_DEPT ='"+CorpArea+"' ) "
- +" or ECM_EM_PUBLISH_ALERT_NOTICE.release_unit in(select dept_id from sys_department where parent_id='"+CorpArea+"'))";
- }else{//全部
- $searchCon.find(".EARLY_WARNING_PROPERTY").parent().show();
- $searchCon.find(".IS_SEND").parent().show();
- $("._ToolBar_id ").hide();
- con = "( ("+
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND=5 or "+//已发布
- " ("+
- " (ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 5 and ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND <> 6) and "+//未发布且未结束
- " (ECM_EM_PUBLISH_ALERT_NOTICE.WRITER_ID='"+getUser_id+"' or ECM_EM_TREATED_HUMAN.PERSON_ID='"+getUser_id+"')"+//填报人是自己或自己待处理或已处理过得
- " )"+
- ") or ( ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND =6 and "+
- "ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and ((ECM_EM_PUBLISH_ALERT_NOTICE.EARLY_WARNING_AREA_ID like '%"
- +CorpArea+"%' or ECM_EM_PUBLISH_ALERT_NOTICE.WRITE_DEPT ='"+CorpArea+"' ) "
- +" or ECM_EM_PUBLISH_ALERT_NOTICE.release_unit in(select dept_id from sys_department where parent_id='"+CorpArea+"')) ) )";
- }
- if(zTreeCompId!=""){//若点选了左侧单位树
- if(zTreeCompId.indexOf(CorpArea) > -1){//本单位
- //只显示本单位下已发布和跟自己相关的通知单
- condition = " ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and "+//未删除
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and "+//预警
- " ECM_EM_PUBLISH_ALERT_NOTICE.RELEASE_UNIT in ("+zTreeCompId+") and "+//发布单位为treeNode.id--这里是本单位
- con;
- }else{//上级或下级单位
- //只需要显示上级或下级单位下已发布的通知单即可
- condition = " ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and "+//未删除
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_SEND=5 and "+//已发布
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and "+//预警
- " ECM_EM_PUBLISH_ALERT_NOTICE.RELEASE_UNIT in("+zTreeCompId+")";//发布单位为treeNode.id
- }
- }else{
- //只显示本单位下已发布和跟自己相关的通知单
- condition = " ECM_EM_PUBLISH_ALERT_NOTICE.is_del=0 and "+//未删除
- " ECM_EM_PUBLISH_ALERT_NOTICE.IS_ALERT=1 and "+//预警
- " ECM_EM_PUBLISH_ALERT_NOTICE.RELEASE_UNIT in('"+CorpArea+"') and "+//发布单位为treeNode.id--这里是本单位
- con;
- }
-
- loadParams.condition = condition;
- //去掉水印
- if($("#EARLY_WARNING_NAME_365").val()==" 响 应 名 称"){
- $("#EARLY_WARNING_NAME_365").val("");
- }
- var $queryForm = $("#queryForm");
- $queryForm.serialize();
- //获取选中的值
- var searchCondition = getSelectCon(conditionData);
- var queryParams = getQueryFormParams($queryForm);
- var params=$.extend({},loadParams,queryParams);
- //与之前参数条件拼接
- params.condition = searchCondition.condition + params.condition;
- if(!listGrid){
- listGrid=gridAndSingleRecode=$("#dataGrid").quickgridAndSingleRecode(options1);
- }
- listGrid.setOptions({"params":params});
- //加载数据
- // listGrid.setNewPage(1);
- listGrid.rend();
- }
-
- //点击页签,重置表格表头按钮权限
- function chongZhiQuanXian(zt){
- if(zt=="dangqian"){//当前
- $("._ToolBar_id ").show();
- }else{
- $("._ToolBar_id ").hide();
- }
-
- }
-
- $(function(){
- //var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- //响应级别--常量表获取
- $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL');
- //响应性质--常量表获取
- $('#EARLY_WARNING_PROPERTY_365').initCanstSelect('BM_PROPERTY');
-
- //响应范围,发布单位下拉框
- $.post(deptUrl,{id:parentId,name:''},function(data){
- $("#EARLY_WARNING_AREA_ID_365").data("data",data);
- $("#EARLY_WARNING_AREA_ID_365").render();
- $("#RELEASE_UNIT_365").data("data",data);
- $("#RELEASE_UNIT_365").render();
- }, "json");
-
- //发布状态复选框全选方法
- $("#checkAll").click(function(){
- $('input[name="CHECK_STATUS"]').attr("checked",this.checked);
- });
- var $CHECK_STATUS = $("input[name='CHECK_STATUS']");
- $CHECK_STATUS.click(function(){
- $("#checkAll").attr("checked",$CHECK_STATUS.length == $("input[name='CHECK_STATUS']:checked").length ? true : false);
- });
- });
-
- //获得当前系统时间
- function getDateTime() {
- var s = "";
- var d = allGetServerTime();
- var vYear = d.getFullYear();
- var vMon = d.getMonth() + 1;
- var vDay = d.getDate();
- var h = d.getHours();
- var m = d.getMinutes();
- s = vYear + "-" + (vMon < 10 ? "0" + vMon : vMon) + "-"
- + (vDay < 10 ? "0" + vDay : vDay) + " "
- + (h < 10 ? "0" + h : h) + ":" + (m < 10 ? "0" + m : m);
- return s;
- }
- var conditionData = {"list":[
- {"name":"状态","className":"IS_SEND","list":[
- {"key":"全部","value":"0000"},{"key":"待发送","value":"0"},{"key":"待审核","value":"1"},{"key":"待签发","value":"3"},{"key":"待分发","value":"4"},{"key":"已发布","value":"5"}
- ]},
-
- {"name":"响应级别","className":"CURRENT_ER_LEVEL","list":[
- {"key":"全部","value":"0000"},{"key":"I级","value":"29"},{"key":"II级","value":"30"},{"key":"III级","value":"31"},{"key":"IV级","value":"32"}
- ]},
-
- {"name":"响应性质","className":"EARLY_WARNING_PROPERTY","list":[
- {"key":"全部","value":"0000"},{"key":"初次发布","value":"49"},{"key":"调整","value":"50"},{"key":"解除","value":"51"}
- ]}
- //{"name":"响应范围","className":"","list":[]},
- //{"name":"发布单位","className":"","list":[]},
- ]};
-
- /******加载突发事件类型*********/
- function loadEventType(){
- var result = "";
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/getAllEventType/',
- type : 'post',
- timeout : 60000,
- dataType : 'json',
- async: false,
- success : function(data){
- result = data;
- }
- });
- return result;
- }
- $(function() {
- var dd = loadEventType();//突发事件类型
- conditionData.list.push({
- "name" : "突发事件类型",
- "className" : "PLAN_TYPE_ID",
- "equalType" : "equal",
- "list" :dd.list})
- //根据json生成综合查询筛选条件ul-li列表
- createConditionsDom(conditionData);
-
- /* 初始化页面布局 */
- var layout = $("#layout1").layout({
- leftWidth : 250,
- space : 10,
- onEndResize : function() {
- listGrid.resetWidth();
- }
- });
-
- $(".l-layout-left").css("top","10px");
- $(".l-layout-center").css("top","10px");
-
- selectCompResetGrid();
- });
-
- $(window).load(function(){
- setting = {
- view : {
- selectedMulti : false
- },
- check : {
- enable : true,
- chkboxType:{ "Y": "s", "N": "s" }
- },
- callback:{
- beforeCheck:checkIsExpand,//检查该节点是否父节点是否折叠状态 leftDepartment.js
- onNodeCreated : selectDeptId,// leftDepartment.js //checkAndSetHeight,//changeFormat.js
- onCheck : selectCompResetGrid //左侧树多选框勾选时触发事件
- }
- };
-
- //初始化左侧树组件
- initCheckZtree(TreeId,setting,CorpArea)
- })
-
-
- function selectCompResetGrid(event, treeId, treeNode,thisSrc,zt) {
- if(!is_ChiShiHua){return false;}
- thisSrc = !thisSrc?$(top.document.body).find(".positionTabCurrent").attr("data-src"):thisSrc;
- if(thisSrc && thisSrc.split("?")[1].indexOf("_")>-1){
- zt = !zt?thisSrc.split("?")[1].split("_")[1]:zt;
- }else{
- zt = !zt?"dangqian":zt;
- $(top.document.body).find("#xytzd_dq").addClass("positionTabCurrent");
- }
- isSelect();//用于判断网省地县是否被选中,同时更新四个按钮的状态
- zTreeCompId = getSelectValue();//获取选中的单位id数据:'id1','id2','id3'...
- refreshAlertTable(thisSrc, zt);
- }
- </script>
- </head>
-
- <body>
- <div id="layout1">
-
- <!-- 左边的单位树end -->
- <div position="left" id="hztitle" style="margin-right:10px;">
- <ul id="treeDept-gzfw" class="ztree"></ul>
- </div>
- <!-- 左边的单位树end -->
-
- <div class="plan_detail" id="plan_detail" position="center">
-
- <div class="box2" panelTitle="" id="searchPanel" statusType="none" style="margin:10px 0">
- <fieldset>
- <form id="queryForm" method="post">
- <table style="width:100%;">
- <tr>
- <td width="80%">
- <input type="text" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" watermark=" 响 应 名 称" clearable="true" width="300px"/>
- <a id="searchButt"><img src="/nwyj/scripts/qui/libs/icons/toolbar_icons/search_tem.png" alt="" /></a>
- <!-- <button id='searchButt' type="button"><span class="icon_find">查询</span></button> -->
- </td>
- <td width="20%" align="right"><a href="javascript:;"><span class="more_hide" id="more" >综合查询 </span></a></td><!-- <span id="more" class="icon_more"> </span> -->
- </tr>
- </table>
- <div id="moreDiv" style="display: none;">
- <!-- 可选条件,改div作为容器,需保留 -->
- <div class="conditions" id="conditions">
- <ul>
- <li class="condiTitle">响应编号:</li>
- <li><input class="Textinput" id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID" style="width:194px" type="text"/></li>
- </ul>
- <!-- <ul>
- <li class="condiTitle">发布时间:</li>
- <li><input readonly="readonly" type="text" class="date" name="RELEASE_RELIEVE_DATE" id="startTime"/> ~
- <input readonly="readonly" type="text" class="date" name="RELEASE_RELIEVE_DATE" id="endTime"/></li>
- </ul> -->
- <!-- <tr><td>状态:</td>
- <td><input name="IS_SEND_365" value="0" type="checkbox" >待发送</input>
- <input name="IS_SEND_365" value="1" type="checkbox" >待审核</input>
- <input name="IS_SEND_365" value="2" type="checkbox" >撤回</input>
- <input name="IS_SEND_365" value="3" type="checkbox" >待签发</input>
- <input name="IS_SEND_365" value="4" type="checkbox" >待发布</input>
- <input name="IS_SEND_365" value="5" type="checkbox" >已发布</input>
- <input id="checkAll" name="CHECK_STATUS" type="checkbox" >全部</input></td></tr>
- <tr><td>响应编号00:</td>
- <td><input id="EARLY_WARNING_ID_365" name="EARLY_WARNING_ID_365" style="width:194px" type="text" ></input></td></tr>
- <tr><td>响应级别00:</td>
- <td><select id="CURRENT_ER_LEVEL_365" name="CURRENT_ER_LEVEL_365" prompt="请选择"></select></td></tr>
- <tr><td>响应性质00:</td>
- <td><select id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365" prompt="请选择" ></select></td></tr>
- <tr><td>响应范围:</td>
- <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>
- <tr><td>发布单位:</td>
- <td><div class="selectTree" id="RELEASE_UNIT_365" name="RELEASE_UNIT_365" multiMode="true" noGroup="true"></div></td></tr>
- <tr><td>发布时间00:</td>
- <td><input readonly="readonly" id="START_RELEASE_RELIEVE_DATE_365" name="RELEASE_RELIEVE_DATE_365" class="date" style="width:194px" type="text"></input>到
- <input readonly="readonly" id="END_RELEASE_RELIEVE_DATE_365" name="RELEASE_RELIEVE_DATE_365" class="date" style="width:194px" type="text"></input></td></tr> -->
- </div>
- </div>
- </form>
- </fieldset>
- </div>
-
-
- <div class="padding_right5">
- <div id="dataGrid"></div>
- </div>
-
- </div>
- </div>
- <form id="alertResponseNumForm" method="post" style="display: none;">
- <input name="classid" value="368" type="hidden"/>
- <input type="hidden" id="COMPANY_ID_368" name="COMPANY_ID_368"/>
- <input type="hidden" id="YEAR_368" name="YEAR_368"/>
- <input type="hidden" id="NUM_368" name="NUM_368"/>
- <input type="hidden" id="IS_ADJUST_368" name="IS_ADJUST_368" value="F"/>
- <input type="hidden" id="IS_ALERT_368" name="IS_ALERT_368" value="1"/>
- <input type="hidden" id="PLAN_TYPE_ID_368" name="PLAN_TYPE_ID_368" value="1"/>
- </form>
- </body>
- </html>
|