123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <%@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" %>
- <script type="text/javascript">
- var pageType="<%=request.getParameter("pageType")%>";
- // 对Date的扩展,将 Date 转化为指定格式的String
- // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
- // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
- // 例子:
- // (allGetServerTime()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
- // (allGetServerTime()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
- Date.prototype.Format = function(fmt)
- { //author: meizz
- var o = {
- "M+" : this.getMonth()+1, //月份
- "d+" : this.getDate(), //日
- "h+" : this.getHours(), //小时
- "m+" : this.getMinutes(), //分
- "s+" : this.getSeconds(), //秒
- "q+" : Math.floor((this.getMonth()+3)/3), //季度
- "S" : this.getMilliseconds() //毫秒
- };
- if(/(y+)/.test(fmt))
- fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
- for(var k in o)
- if(new RegExp("("+ k +")").test(fmt))
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
- return fmt;
- }
- //返回主页面
- function goBack() {
- //获取iframe中的元素值
- var iframe =parent.document.getElementsByName("frmright")[0];
- iframe.src = "/nwyj/page/business/em/alert/report/reportInput/ReportInput.jsp";
- if(pageType=="44"){//从进度监控页面跳转过来时,返回到进度监控页面
- iframe.src = "/nwyj/page/business/em/alert/report/reportScheduleControl/reportScheduleControl.html";
- }else{
- iframe.src = "/nwyj/page/business/em/alert/report/reportInput/ReportInput.jsp";
- }
- }
- var fd_objectid="<%=request.getParameter("fd_id")%>";
- $(function(){
- $("#titleShow").text("查看预警行动信息报告");
-
- if(pageType=="44"){
- $("#goback").parent().hide();
- $("html").css("overflow","auto");
- }
- $("#goback").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- $("#goback").bind("click",goBack);
- //预警类别
- //$('#REPORT_TYPE_321').initCanstSelect('BM_AlertRespReportInputState');
- $("#fileDiv").newAsyncFileUpload("",fd_objectid,0);//附件
- if(fd_objectid.length>0){
- var params = {classid : "321",objectID : "<%=request.getParameter("fd_id")%>"};
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- async:false,
- success : function(data){
- //当操作状态为4的时候,显示回退内容
- if(data.OPR_STATE_321 == "4"){
- $("#RETURN_EXPLAIN").show();
- }else{
- $("#RETURN_EXPLAIN").hide();
- }
-
- /* $('#myFormId').ajaxWrite({data:data}); *//*
- $("#EARLY_ID_321").html(data.EARLY_ID_321);//预警编号
- $("#REPORT_NAME_321").html(data.REPORT_NAME_321);//报告名称
- $("#RETURN_EXPLAIN_321").html(data.RETURN_EXPLAIN_321);//回退说明
- //填报单位
- $("#INPUT_UNIT_321").html(data.INPUT_UNIT_321_SHOW);//填报单位
- $("#INPUT_NAME_321").html(data.INPUT_NAME_321);//填报人
- $("#INPUT_DATE_321").html(data.INPUT_DATE_321);//填报日期
- $("#IS_RELEASE_321_SHOW").html(data.IS_RELEASE_321_SHOW);
- $("#OPR_STATE_321_SHOW").html(data.OPR_STATE_321_SHOW); */
- for(col in data){
- $("div#"+col).html(data[col]);
- }
- var url1 = $.pathname() + '/ws/qrps/QueryReportProgrammeService/queryReportSubByReportId';
- var params1 = {
- reportId : data.FD_OBJECTID_321
- };
- $.ajax({
- url : url1,
- type : 'post',
- timeout : 15000,
- data : params1,
- dataType : 'json',
- async:false,
- success : function(data1){
- $('#TQZW_323').text(data1[0].TQZW_323);
- $('#YJDT_323').text(data1[0].YJDT_323);
- }
- });
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- });
- </script>
- </head>
- <body class="bd" align="center" >
- <div id="formContent" class="d_ground">
- <div class="title" align="center"><a href="javascript:;"><img id='goback' class="back" title="返回" align="left" alt="返回" src="/nwyj/images/temp/back.png" ></img></a><font class="title_font" id="titleShow"></font></div>
- <form id="myFormId" >
- <input name="classid" value="321" type="hidden"/>
- <fieldset class="fieldset">
- <legend class="legend">基本信息:</legend>
- <table class="add_table_style view_table" >
- <tr>
- <td width="15%" align="right" >报告名称:</td>
- <td width="40%"><div name="REPORT_NAME_321" id="REPORT_NAME_321" style="width:90%"></div></td>
- <td width="15%" align="right" >应急预警编号:</td>
- <td width="30%"><div name="EARLY_ID_321" id="EARLY_ID_321" style="width:90%"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >要求填报时间:</td>
- <td width="35%" colspan="3"><div name="PLAN_TIME_321" id="PLAN_TIME_321" style="width:90%"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >上报状态:</td>
- <td width="40%"><div name="OPR_STATE_321" id="OPR_STATE_321_SHOW" style="width:90%"></div></td>
- <td width="15%" align="right" >发布状态:</td>
- <td width="30%"><div name="IS_RELEASE_321" id="IS_RELEASE_321_SHOW" style="width:90%"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >天气展望:</td>
- <td width="85%" colspan="3"><div name="TQZW_323" id="TQZW_323" style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' ></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >应急动态:</td>
- <td width="85%" colspan="3"><div name="YJDT_323" id="YJDT_323" style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' ></div></td>
- </tr>
- <tr id="RETURN_EXPLAIN">
- <td width="15%" align="right" >回退说明:</td>
- <td width="85%" colspan="3"><div name="RETURN_EXPLAIN_321" id="RETURN_EXPLAIN_321" style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' ></div></td>
- </tr>
- </table>
- </fieldset>
- <fieldset class="fileTable_border" >
- <legend>填写人员信息:</legend>
- <table class="tableStyle" align="center" id="fillForm">
- <tr>
- <td width="114px" align="right" >单位:</td>
- <td width="35%"><div name="INPUT_UNIT_321_SHOW" id="INPUT_UNIT_321_SHOW" /></td>
- <td width="114px" align="right" >填报角色:</td>
- <td><div name="INPUT_ROLE_ID_321_SHOW" id="INPUT_ROLE_ID_321_SHOW" /></td>
- </tr>
- <tr>
- <td width="114px" align="right" >填写人员:</td>
- <td width="35%"><div name="INPUT_NAME_321" id="INPUT_NAME_321" /></td>
- <td width="114px" align="right" >录入时间:</td>
- <td><div name="INPUT_DATE_321" id="INPUT_DATE_321" /></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <fieldset class="fieldset">
- <legend class="legend">附件信息:</legend>
- <table class="add_table_style file_table" >
- <tr>
- <td width="120px" id="maingrid" align="right">附件:</td>
- <td width= "680px" colspan="3"><div style="width:100%" id="fileDiv" name="fileDiv" ></div></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </body>
- </html>
|