123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <%@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" %>
- <!--引用资源文件,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 language="javascript" src="/nwyj/scripts/jquery/jqprint/jquery.jqprint-0.3.js"></script>
- <%-- <script type="text/javascript" src="<%=path%>/scripts/business/em/alert/warning/WarningView.js"></script> --%>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- $(function(){
- //页面初始化
- $(function(){
- $('#fileDiv').newAsyncFileUpload("",fd_id,0);//附件
- //查看表单
- if(fd_id.length>0){
- $(".titleShow").text("预警发布通知单");
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '365',
- objectID : fd_id
- };
- getFileList(fd_id,0);
- $.request.query(url,params,function(data){
- // 加载数据,(div显示)
- $("#CURRENT_EW_LEVEL_365").html(data.CURRENT_EW_LEVEL_365_SHOW);//显示本次预警级别
- $("#PREV_EW_LEVEL_365").html(data.PREV_EW_LEVEL_365_SHOW);//显示上次预警级别
- $("#EARLY_WARNING_NAME_365").html(data.EARLY_WARNING_NAME_365);//预警名称
- $("#RELEASE_RELIEVE_DATE_365").html(data.RELEASE_RELIEVE_DATE_365);//发布时间
- $("#EARLY_WARNING_ID_365").html(data.EARLY_WARNING_ID_365);//预警编号
- $("#EARLY_WARNING_AREA_NAME_365").html(data.EARLY_WARNING_AREA_NAME_365);//预警范围
- $("#MEET_EMERGENCIES_PLAN_365_SHOW").html(data.MEET_EMERGENCIES_PLAN_365_SHOW);//应急预案
- $("#EW_SUMMARY_365").html(data.EW_SUMMARY_365);//预警概要
- $("#MEASURE_AND_REQUEST_365").html(data.MEASURE_AND_REQUEST_365);//预防措施及工作要求
- $("#REMARK_365").html(data.REMARK_365);//备注
- $("#RELEASE_UNIT_365").text(data.RELEASE_UNIT_365_SHOW);//发布单位
- $("#WRITER_365").text(data.WRITER_365);//填报人
- $("#PREV_EW_ID").text(data.PREV_EW_ID_365);//上次预警单号
- if(data.WETHER_EW_ADJUST_365 == 1){//是否预警调整 0非预警调整1、是预警(预警性质)
- $("#WETHER_EW_ADJUST").attr("checked","checked");
- }
- if(data.EARLY_WARNING_PROPERTY_365 == 49){//如果预警性质 == 49(49为初次发布,50为非初次发布,51为调账)
- $("#WARNING_PROPERTY").attr("checked","checked");
- };
- $('#showForm1').ajaxWrite({data:data});
- $("#showForm2").ajaxWrite({data:data});
-
-
- if(data.EARLY_WARNING_PROPERTY_365 == 51){//如果预警性质 == 51(49为初次发布,50为非初次发布,51为调账)
- $(".titleShow").text("预警解除通知单");
- $("#showForm2").show();
- $('#showForm1').hide();
- $("#EARLY_WARNING_NAME").html(data.EARLY_WARNING_NAME_365);//预警名称
- $("#EARLY_WARNING_ID").html(data.EARLY_WARNING_ID_365);//预警编号
- $("#RELEASE_RELIEVE_DATE").html(data.RELEASE_RELIEVE_DATE_365);//解除时间
- $("#EARLY_WARNING_AREA_NAME").html(data.EARLY_WARNING_AREA_NAME_365);//解除范围
- $("#EW_SUMMARY").html(data.EW_SUMMARY_365);//预警概要
- $("#MEASURE_AND_REQUEST").html(data.MEASURE_AND_REQUEST_365);//预防措施及工作要求
- $("#REMARK").html(data.REMARK_365);//备注
- };
- });
- }
- });
- });
- //加载表单1(非解除的)数据
- function showForm1(){};
- //加载表单2(解除的)数据
- function showForm2(){};
- function viewPrint(){
- $(".box1").jqprint();
- };
- function is_send(){
- //alert(fd_id);
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/alert/warning/SendWarning.jsp?fd_id="+ fd_id);
- };
- function goback(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/monitor/anticipation/AnticipationManager.jsp");
- }
- </script>
- </head>
- <body style="height: 545px;">
- <div class="box1" id="formContent" style="overflow:auto;height:545px;border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;" onclick="goback();"><img class="backYupan" 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>
- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="" class="titleShow"></font></div>
- <!-- 打印按钮 -->
- <div style="float:right"><input type="button" onclick="viewPrint()" value="打印"/> </div>
- <!-- <div style="float:right"><input type="button" onclick="is_send()" value="发送"/> </div> --><br />
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>基本信息:</legend>
- <table style="width: 85%;padding-left: 10px;padding-right: 10px;">
- <tr>
- <td align="left"><div style="float:left"> 发布单位:</div><div style="float:left" id="RELEASE_UNIT_365"></div><!-- <label id="unitId"></label> --></td>
- <td align="right">签发人:<label id="WRITER_365"> </label> </td>
- </tr>
- </table>
- <!-- 非解除的详细信息 -->
- <form id="showForm1">
- <table class="tableStyle" style="width: 85%;" align="center">
- <tr>
- <td width="25%" align="right">预警名称:</td>
- <td width="85%" colspan="2"><div style="width: 97%" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365"></div></td>
- <!-- <td width="85%" colspan="2"><input type="text" readonly="readonly" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" style="width: 97%;"/></td>文本框形式,但是是只读 -->
- <!-- <td width="85%" colspan="2"><input type="text" disabled="disabled" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" style="width: 97%;"/></td> -->
- </tr>
- <tr>
- <td width="15%" align="right">发布时间:</td>
- <td width="85%" colspan="2"><div style="width: 97%" id="RELEASE_RELIEVE_DATE_365" name="RELEASE_RELIEVE_DATE_365"></div></td>
- <!-- <td width="85%" colspan="2"><input style="width: 97%" disabled="disabled" type="text" id="RELEASE_RELIEVE_DATE_365"name="RELEASE_RELIEVE_DATE_365" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm:ss"/></td> -->
- </tr>
- <tr>
- <td width="15%" align="right">预警编号:</td>
- <td width="85%" colspan="2"><div style="width: 97%" name="EARLY_WARNING_ID_365" id="EARLY_WARNING_ID_365"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right">预警范围:</td>
- <td width="85%" colspan="2"><div style="width: 97%" id="EARLY_WARNING_AREA_NAME_365" name="EARLY_WARNING_AREA_NAME_365" readonly="readonly"></div></td>
- </tr>
- <!-- <tr>
- <td width="15%" align="right">预警范围:</td>
- <td width="85%" colspan="2"><div class="selectTree" disabled="disabled" id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" multiMode="true" noGroup="true" selWidth="720"></div></td>
- </tr> -->
- <tr>
- <td align="right">预警性质:</td>
- <td ><input type="checkbox" id="WARNING_PROPERTY" disabled="disabled"/>初次发布</td>
- <td>预警调整:<input type="checkbox" disabled="disabled" id="WETHER_EW_ADJUST"/>预警调整<br/>上次预警单号:(<label id="PREV_EW_ID"></label>)</td>
- </tr>
- <tr>
- <td align="right">预警级别:</td>
- <td><div style="float:left"><label> 本次:</label></div><div style="float:left"><div style="width: 100%" name="CURRENT_EW_LEVEL_365" id="CURRENT_EW_LEVEL_365"></div></div></td>
- <!-- <td><label> 本次:</label><select disabled="disabled" name="CURRENT_EW_LEVEL_365" id="CURRENT_EW_LEVEL_365" selAlign="right" prompt="请选择" selWidth="300"></select> </td> -->
- <td><div style="float:left"><label> 上次:</label></div><div style="float:left"><div style="width: 100%" id="PREV_EW_LEVEL_365" name="PREV_EW_LEVEL_365"></div></div></td>
- <!-- <td><div style="float:left"><label> 上次:</label></div><div style="float:left"><select disabled="disabled" id="PREV_EW_LEVEL_365" name="PREV_EW_LEVEL_365" selAlign="right" prompt="请选择" selWidth="300"></select></div></td> -->
- </tr>
- <tr>
- <td width="15%" align="right">应急预案:</td>
- <td width="85%" colspan="2"><div name="MEET_EMERGENCIES_PLAN_365_SHOW" id="MEET_EMERGENCIES_PLAN_365_SHOW" style="width: 97%"></div></td>
- <!-- <td width="85%" colspan="2"><select disabled="disabled" name="MEET_EMERGENCIES_PLAN_365" id="MEET_EMERGENCIES_PLAN_365" selAlign="" prompt="请选择" selWidth="720"></select></td> -->
- </tr>
- <tr>
- <td width="15%" align="right">预警概要:</td>
- <td width="85%" colspan="2"><div style="width: 97%" name="EW_SUMMARY_365" id="EW_SUMMARY_365"></div><br /></td>
- <!-- <td width="85%" colspan="2"><textarea disabled="disabled" style="width: 97%;height: 44px;" name="EW_SUMMARY_365" id="EW_SUMMARY_365"></textarea></td> -->
- </tr>
- <tr>
- <td width="15%" align="right">预防措施及<br>工作要求:</td>
- <td width="85%" colspan="2"><div style="width: 97%" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365"></div></td>
- <!-- <td width="85%" colspan="2"><textarea disabled="disabled" style="width: 97%;height: 44px;" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365"></textarea></td> -->
- </tr>
- <tr>
- <td width="15%" align="right">备注:</td>
- <td width="85%" colspan="2"><div name="REMARK_365" id="REMARK_365" style="width: 97%;"/></td>
- <!-- <td width="85%" colspan="2"><input type="text" disabled="disabled" name="REMARK_365" id="REMARK_365" style="width: 97%;"/></td> -->
- </tr>
- </table>
- </fieldset>
- </form>
- <!-- 解除的详细信息 -->
- <form id="showForm2" style="display: none;">
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>基本信息:</legend>
- <table class="tableStyle" width="85%" align="center">
- <tr>
- <td width="20%" align="right">预警名称:</td>
- <td width="80%"><div id="EARLY_WARNING_NAME" name="EARLY_WARNING_NAME_365" style="width:97%"></div></td>
- <!-- <td width="80%" colspan="2"><input type="text" disabled="disabled" name="EARLY_WARNING_NAME_365" style="width: 97%;"/></td> -->
- </tr>
- <tr>
- <td width="20%" align="right">预警编号:</td>
- <td width="80%"><div id="EARLY_WARNING_ID" name="EARLY_WARNING_ID_365" style="width:97%"></div></td>
- <!-- <td width="80%" colspan="2"><input type="text" disabled="disabled" name="EARLY_WARNING_ID_365" style="width: 97%;"/></td> -->
- </tr>
- <tr>
- <td width="20%" align="right">解除时间:</td>
- <td width="80%"><div id="RELEASE_RELIEVE_DATE" name="RELEASE_RELIEVE_DATE_365"style="width:97%"></div></td>
- <!-- <td width="80%"><input style="width: 97%" type="text" disabled="disabled" name="RELEASE_RELIEVE_DATE_365" dateFmt="yyyy-MM-dd HH:mm:ss"/></td> -->
- </tr>
- <tr>
- <td width="20%" align="right">解除范围:</td>
- <td width="80%"><div id="EARLY_WARNING_AREA_NAME" name="EARLY_WARNING_AREA_NAME_365"style="width:97%" readonly="readonly"></div></td>
- <!-- <td width="80%"><div class="selectTree" disabled="disabled" name="EARLY_WARNING_AREA_ID_365" multiMode="true" noGroup="true" selWidth="733"></div></td> -->
- </tr>
- <tr>
- <td width="20%" align="right">解除原因:</td>
- <td width="80%"><div id="EW_SUMMARY" name="EW_SUMMARY_365"style="width:97%"></div></td>
- <!-- <td width="80%"><textarea disabled="disabled" style="width: 97%;height: 44px;" name="EW_SUMMARY_365"></textarea></td> -->
- </tr>
- <tr>
- <td width="20%" align="right">工作要求:</td>
- <td width="80%"><div id="MEASURE_AND_REQUEST" name="MEASURE_AND_REQUEST_365"style="width:97%"></div></td>
- <!-- <td width="80%"><textarea disabled="disabled" style="width: 97%;height: 44px;" name="MEASURE_AND_REQUEST_365"></textarea></td> -->
- </tr>
- <tr>
- <td width="20%" align="right">备注:</td>
- <td width="80%"><div id="REMARK" name="REMARK_365"style="width:97%"></div></td>
- <!-- <td width="80%"><input type="text" disabled="disabled" name="REMARK_365" style="width: 97%;"/></td> -->
- </tr>
- </table>
- </fieldset>
- </form>
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>附件信息:</legend>
- <table style="width: 85%;" align="center" border="0">
- <!-- <tr><td colspan="3"><div id="maingrid"></div></td></tr> -->
- <tr><td colspan="3"><div id="fileDiv"></div></td></tr>
- </table>
- </fieldset>
- <!-- <div id="maingrid"></div> -->
- </div>
- </body>
- </html>
|