123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- <%@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" />
- <title></title>
- <%@include file="../../../../include.jsp" %>
- <!--树组件与弹窗组件(这里引入只为“非iframe弹窗(复杂内容)”示例需要) -->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/drag.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/dialog.js"></script>
- <!--树组件与弹窗组件(这里引入只为“非iframe弹窗(复杂内容)”示例需要) -->
- <!--引用资源文件,JS 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/business/he/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
- <!-- <script type="text/javascript" src="../../../../..//scripts/business/em/alert/warning/WarningReleaseMatter.js"></script> -->
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var dept_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //页面初始化
- $(function(){
- $("#BUSINESS_ID_378").val(fd_id);
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //查看表单
- if(fd_id.length>0){
- $(".titleShow").text("任务清单");
-
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '365',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
-
- for(var i in data){
- $('#'+i).html(data[i]);
- }
- //$("#faBu").html(data.WRITER_365);
- if(data.IS_SEND_365_SHOW=="已发布"){
- if(data.CURRENT_EW_LEVEL_365_SHOW=="红色预警" || data.CURRENT_EW_LEVEL_365_SHOW=="橙色预警"){
- $("#faBu").html(data.RELEASE_UNIT_365_SHOW+"应急指挥中心");
- $("#faBuDate").html(data.RELEASE_RELIEVE_DATE_365);
- }else{
- $("#faBu").html(data.RELEASE_UNIT_365_SHOW+"应急办");
- $("#faBuDate").html(data.RELEASE_RELIEVE_DATE_365);
- }
-
- }
- $("#faBuDate").html(data.UPDATEDATE_365);
- $("#earlyWarningId").val(data.EARLY_WARNING_ID_365);//、、、、、、、、、、、、、、、、
- person(fd_id,data.IS_SEND_365);
- sendPerson(data.EARLY_WARNING_AREA_ID_365,data.EARLY_WARNING_NAME_365);
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //报表
- reportTable();
- //报告
- getReport();
- });
- };
- });
-
- function changeSendState(Fd_Objectid){
- /* top.Dialog.confirm("是否要发布?|报表",function(){
- var url0 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/updateReportScheduleSendStat';
- var params0 = { FD_OBJECTID : Fd_Objectid };
- $.request.query(url0,params0,function(data){
- if(data==true){
- window.location.reload();
- }
- },"text");
- },function(){
- }); */
-
- }
- function changeIsRelease(Fd_Objectid){
- /* top.Dialog.confirm("是否要发布?|报告",function(){
- var url1 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/updateAlertReportPlanIsRelease';
- var params1 = { FD_OBJECTID : Fd_Objectid };
- $.request.query(url1,params1,function(data){
- if(data==true){
- window.location.reload();
- }
-
- },"text");
- },function(){
- }); */
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- function person(fd_id,is_send){
- var url1 = $.pathname() + '/ws/qdbbi/QueryDataByBusinessId/query/';
- var params1 = {
- 'businessId' :fd_id
- };
- $.ajax({
- url:url1,
- type:"post",
- data:params1,
- dataType : "json",
- success : function(data) {
- for (var i = 0; i < data.length; i++) {
- var personName = data[i].PERSON_NAME;
- var personDate = (data[i].UPDATEDATE).split(".")[0];
- if(is_send != '1' && data[i].STATUES=="1"){
- $("#shenHe").html(personName);
- $("#shenHeDate").html(personDate);
- }else if(is_send != '3' && data[i].STATUES=="3"){
- $("#qianFa").html(personName);
- $("#qianFaDate").html(personDate);
- }
- }
-
- },
- error:function(e){
- alert("访问服务失败! ")
- }
- });
- }
-
- //全部启动
- /* function startAll(){
- changeSendState();//发布报表
- changeIsRelease();//发布报告
- } */
-
- function sendPerson(rangeIds,reportName){
- var rangeIdsStr = "";
- if(rangeIds != null && rangeIds != ""){
- rangeIds = rangeIds.split(',');
- var len = rangeIds.length;
- for(var i =0;i<len;i++){
- if(i == (len-1)){
- rangeIdsStr += "'"+rangeIds[i]+"'";
- }else{
- rangeIdsStr += "'"+rangeIds[i]+"',";
- }
-
- }
- }
- //$.post($.pathname() + "/ws/human/TreateHumanService/queryEmergencyPersonPhone",{companyIds:rangeIdsStr},function(data){
- // $("#personPhone").text(data.split('$')[1]);
- //});
- $("#reportName").val(reportName);
- $.post($.pathname() + "/ws/human/TreateHumanService/queryEmergencyPersonName",{companyIds:rangeIdsStr},function(data){
- $("#person").text(data.split('$')[1]);
- $("#personPhone").text(data.split('$')[1]);
- });
- }
- function reportTable(){
- var url0 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/getReportScheduleProjectName';
- var params0 = { WARNING_NUMBER : $("#earlyWarningId").val(),isAlert:'0',dept_id:dept_id};
- /* $.post(url0,params0, function(data) {}); */
- $.request.query(url0,params0,function(data){
-
- var i;
-
- if(data.length>0){
- //alert(JSON.stringify(data));
- for(i=0;i<data.length;i++){
- var tempInput = data[i].FILL_IN_SCHEDULE;
- var strBG = "<tr>"+
- "<td width='35%'>已生成报表填报计划:"+data[i].NAME+"</td>"+
- "<td width='15%'>填报类型:"+tempInput+"</td>"+
- "<td width='15%'>开始时间:"+data[i].START_TIME+"</td>";
- if(tempInput == '周期性'){
- strBG += "<td width='15%'>填报时间:"+data[i].ROUND_TIME+"</td>";
- }else{
- strBG += "<td width='15%'>填报时间:"+data[i].TEMPORARY_TIME+"</td>";
- }
- if(data[i].SEND_STAT!=0){
- strBG += "<td width='20%'>发布状态:发布</td>";
- }else{
- strBG += "<td width='20%'>发布状态:未发布</td>";
- }
- strBG += "</tr>"
- //alert(data[i].FD_OBJECTID)
- $("#baoBiao").append(strBG);
- }
- }else{
- $("#baoBiao").append("<tr><td colspan='3'>没有生成报表</td></tr>");
- }
- },"text");
- }
- function getReport(){
- url0 = $.pathname()+ '/ws/xianlutingyun/XianlutingyunService/getReportPlanMSG';
- params0 = { EARLY_WARNING_ID : $("#earlyWarningId").val(),IS_ALERT:'0'};
- $.request.query(url0,params0,function(data){
- var i;
- //$("div[title='i']").html(data[i].PROGRAMME_NAME);
- if(data.length>0){
- //alert(JSON.stringify(data));
- for(i=0;i<data.length;i++){
-
- var tempInput = data[i].WRITE_DATE_TYPE;
- var strBG = "<tr>"+
- "<td class='BGid' style='display: none;'>"+data[i].FD_OBJECTID+"</td>"+
- "<td width='35%'>已生成报告填报计划:"+data[i].PROGRAMME_NAME+"</td>"+
- "<td width='15%'>填报类型:"+tempInput+"</td>"+
- "<td width='15%'>开始时间:"+data[i].START_TIME+"</td>";
- if(tempInput == '周期性'){
- strBG += "<td width='15%'>填报时间:"+data[i].CIRCLE_TIME+"</td>";
- }else{
- strBG += "<td width='15%'>填报时间:"+data[i].TEMPORARY_TIME+"</td>";
- }
- if(data[i].IS_RELEASE!=0){
- strBG += "<td width='20%'>发布状态:发布</td>";
- }else{
- strBG += "<td width='20%'>发布状态:未发布</td>";
- }
- strBG += "</tr>"
- //alert(data[i].FD_OBJECTID)
- $("#baoGao").append(strBG);
- }
- }else{
- $("#baoGao").append("<tr><td colspan='3'>没有生成报告</td></tr>");
- }
-
- },"text");
- }
-
- </script>
- </head>
- <body>
- <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div style="height: 50px;background: #F8F8F8;" align="center"><a href="Warning.jsp"><img class="back" title="返回" align="left" alt="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" class="titleShow"></font></div>
- <table class="tableStyle" style="width: 100%;">
- <tr><td colspan="4" style="font-weight: bold;" align="center">基本信息</td></tr>
- <tr>
- <td align="right" width="15%">预警名称:</td>
- <td width="35%"><div id="EARLY_WARNING_NAME_365"></div></td>
- <td align="right" width="15%">预警编号:</td>
- <td width="35%"><div id="EARLY_WARNING_ID_365"></div></td>
- </tr>
- <tr>
- <td align="right" width="15%">预警性质:</td>
- <td width="35%"><div id="EARLY_WARNING_PROPERTY_365_SHOW"></div> </td>
- <td align="right" width="15%">预警级别:</td>
- <td width="35%"><div id="CURRENT_EW_LEVEL_365_SHOW"></div></td>
- </tr>
- <tr>
- <td align="right" width="15%">预警范围:</td>
- <td width="35%" colspan="3"><div id="EARLY_WARNING_AREA_NAME_365"></div></td>
-
- </tr>
- <tr>
- <td align="right" width="15%">应急预案:</td>
- <td width="35%" colspan="3"><div id="MEET_EMERGENCIES_PLAN_365_SHOW"></div></td>
- </tr>
- <tr>
- <td align="right" width="15%">填报人:</td>
- <td width="35%"><div id="WRITER_365"></div></td>
- <td align="right" width="15%">填报时间:</td>
- <td width="35%"><div id="WRITE_TIME_365"></div></td>
- </tr>
- <tr>
- <td align="right" width="15%">审核人:</td>
- <td width="35%"><div id="shenHe"></div></td>
- <td align="right" width="15%">审核时间:</td>
- <td width="35%"><div id="shenHeDate"></div></td>
- </tr>
- <tr>
- <td align="right" width="15%">签发人:</td>
- <td width="35%"><div id="qianFa"></div></td>
- <td align="right" width="15%">签发时间:</td>
- <td width="35%"><div id="qianFaDate"></div></td>
- </tr>
- <tr>
- <td align="right" width="15%">发布单位:</td>
- <td width="35%"><div id="faBu"></div></td>
- <td align="right" width="15%">发布时间:</td>
- <td width="35%"><div id="faBuDate"></div></td>
- </tr>
- </table>
- <br/>
-
- <table class="tableStyle" style="width: 100%;">
- <tr><td colspan="3" style="font-weight: bold;" align="center">任务列表</td></tr>
- <tr><td colspan="3" style="font-weight: bold;">一、报表</td></tr>
- </table>
- <table class="tableStyle" id="baoBiao" style="width: 100%;">
-
- </table>
-
- <table class="tableStyle" style="width: 100%;">
- <tr id="MyTr"><td colspan="3" style="font-weight: bold;">二、报告</td></tr>
- </table>
-
- <table class="tableStyle" id="baoGao" style="width: 100%;">
-
- </table>
- <table class="tableStyle" style="width: 100%;">
- <tr><td colspan="3" style="font-weight: bold;">三、短信</td></tr>
- <tr>
- <td width="20%" align="right">接收人员:</td>
- <td width="80%" colspan="2" id="personPhone"></td>
- </tr>
- <tr>
- <td width="20%" align="right">短信内容:</td>
- <td width="60%"><textarea style="width: 100%" id="reportName"></textarea></td>
- <td width="20%"><!-- <input type="button" value="发送"/> --></td>
- </tr>
- <tr><td colspan="3" style="font-weight: bold;">四、站内消息</td></tr>
- <tr>
- <td width="20%" align="right">站内提醒人员:</td>
- <td width="60%" id="person"></td>
- <td width="20%"><!-- <input type="button" value="发送"/> --></td>
- </tr>
- <tr><td colspan="3" align="center"><!-- <input type="button" value="全部启动" onclick="startAll()"> --></td></tr>
- </table>
- <!-- ======================================================================================================================================================= -->
- <table id="hideTable" style="display:none;">
- <tr>
- <td>
- <input type="text" id="earlyWarningId"/>
- <input
- </td>
- </tr>
- </table>
- <!-- ======================================================================================================================================================= -->
- </div>
- </body>
- </html>
|