0a687e2a803c5b53bed2e53dba798ac6e627e8e1.svn-base 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <%@page contentType="text/html" 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="../../../../../include.jsp" %>
  8. <script type="text/javascript">
  9. var pageType="<%=request.getParameter("pageType")%>";
  10. // 对Date的扩展,将 Date 转化为指定格式的String
  11. // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
  12. // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
  13. // 例子:
  14. // (allGetServerTime()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
  15. // (allGetServerTime()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
  16. Date.prototype.Format = function(fmt)
  17. { //author: meizz
  18. var o = {
  19. "M+" : this.getMonth()+1, //月份
  20. "d+" : this.getDate(), //日
  21. "h+" : this.getHours(), //小时
  22. "m+" : this.getMinutes(), //分
  23. "s+" : this.getSeconds(), //秒
  24. "q+" : Math.floor((this.getMonth()+3)/3), //季度
  25. "S" : this.getMilliseconds() //毫秒
  26. };
  27. if(/(y+)/.test(fmt))
  28. fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
  29. for(var k in o)
  30. if(new RegExp("("+ k +")").test(fmt))
  31. fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
  32. return fmt;
  33. }
  34. //返回主页面
  35. function goBack() {
  36. //获取iframe中的元素值
  37. var iframe =parent.document.getElementsByName("frmright")[0];
  38. iframe.src = "/nwyj/page/business/em/alert/report/reportInput/ReportInput.jsp";
  39. if(pageType=="44"){//从进度监控页面跳转过来时,返回到进度监控页面
  40. iframe.src = "/nwyj/page/business/em/alert/report/reportScheduleControl/reportScheduleControl.html";
  41. }else{
  42. iframe.src = "/nwyj/page/business/em/alert/report/reportInput/ReportInput.jsp";
  43. }
  44. }
  45. var fd_objectid="<%=request.getParameter("fd_id")%>";
  46. $(function(){
  47. $("#titleShow").text("查看预警行动信息报告");
  48. if(pageType=="44"){
  49. $("#goback").parent().hide();
  50. $("html").css("overflow","auto");
  51. }
  52. $("#goback").hover(function(){
  53. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  54. },function(){
  55. $(this).attr("src","/nwyj/images/temp/back.png");
  56. });
  57. $("#goback").bind("click",goBack);
  58. //预警类别
  59. //$('#REPORT_TYPE_321').initCanstSelect('BM_AlertRespReportInputState');
  60. $("#fileDiv").newAsyncFileUpload("",fd_objectid,0);//附件
  61. if(fd_objectid.length>0){
  62. var params = {classid : "321",objectID : "<%=request.getParameter("fd_id")%>"};
  63. $.ajax({
  64. url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
  65. type : 'post',
  66. timeout : 15000,
  67. data : params,
  68. dataType : 'json',
  69. async:false,
  70. success : function(data){
  71. //当操作状态为4的时候,显示回退内容
  72. if(data.OPR_STATE_321 == "4"){
  73. $("#RETURN_EXPLAIN").show();
  74. }else{
  75. $("#RETURN_EXPLAIN").hide();
  76. }
  77. /* $('#myFormId').ajaxWrite({data:data}); *//*
  78. $("#EARLY_ID_321").html(data.EARLY_ID_321);//预警编号
  79. $("#REPORT_NAME_321").html(data.REPORT_NAME_321);//报告名称
  80. $("#RETURN_EXPLAIN_321").html(data.RETURN_EXPLAIN_321);//回退说明
  81. //填报单位
  82. $("#INPUT_UNIT_321").html(data.INPUT_UNIT_321_SHOW);//填报单位
  83. $("#INPUT_NAME_321").html(data.INPUT_NAME_321);//填报人
  84. $("#INPUT_DATE_321").html(data.INPUT_DATE_321);//填报日期
  85. $("#IS_RELEASE_321_SHOW").html(data.IS_RELEASE_321_SHOW);
  86. $("#OPR_STATE_321_SHOW").html(data.OPR_STATE_321_SHOW); */
  87. for(col in data){
  88. $("div#"+col).html(data[col]);
  89. }
  90. var url1 = $.pathname() + '/ws/qrps/QueryReportProgrammeService/queryReportSubByReportId';
  91. var params1 = {
  92. reportId : data.FD_OBJECTID_321
  93. };
  94. $.ajax({
  95. url : url1,
  96. type : 'post',
  97. timeout : 15000,
  98. data : params1,
  99. dataType : 'json',
  100. async:false,
  101. success : function(data1){
  102. $('#TQZW_323').text(data1[0].TQZW_323);
  103. $('#YJDT_323').text(data1[0].YJDT_323);
  104. }
  105. });
  106. },
  107. error : function(e){
  108. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  109. }
  110. });
  111. }
  112. });
  113. </script>
  114. </head>
  115. <body class="bd" align="center" >
  116. <div id="formContent" class="d_ground">
  117. <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>
  118. <form id="myFormId" >
  119. <input name="classid" value="321" type="hidden"/>
  120. <fieldset class="fieldset">
  121. <legend class="legend">基本信息:</legend>
  122. <table class="add_table_style view_table" >
  123. <tr>
  124. <td width="15%" align="right" >报告名称:</td>
  125. <td width="40%"><div name="REPORT_NAME_321" id="REPORT_NAME_321" style="width:90%"></div></td>
  126. <td width="15%" align="right" >应急预警编号:</td>
  127. <td width="30%"><div name="EARLY_ID_321" id="EARLY_ID_321" style="width:90%"></div></td>
  128. </tr>
  129. <tr>
  130. <td width="15%" align="right" >要求填报时间:</td>
  131. <td width="35%" colspan="3"><div name="PLAN_TIME_321" id="PLAN_TIME_321" style="width:90%"></div></td>
  132. </tr>
  133. <tr>
  134. <td width="15%" align="right" >上报状态:</td>
  135. <td width="40%"><div name="OPR_STATE_321" id="OPR_STATE_321_SHOW" style="width:90%"></div></td>
  136. <td width="15%" align="right" >发布状态:</td>
  137. <td width="30%"><div name="IS_RELEASE_321" id="IS_RELEASE_321_SHOW" style="width:90%"></div></td>
  138. </tr>
  139. <tr>
  140. <td width="15%" align="right" >天气展望:</td>
  141. <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>
  142. </tr>
  143. <tr>
  144. <td width="15%" align="right" >应急动态:</td>
  145. <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>
  146. </tr>
  147. <tr id="RETURN_EXPLAIN">
  148. <td width="15%" align="right" >回退说明:</td>
  149. <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>
  150. </tr>
  151. </table>
  152. </fieldset>
  153. <fieldset class="fileTable_border" >
  154. <legend>填写人员信息:</legend>
  155. <table class="tableStyle" align="center" id="fillForm">
  156. <tr>
  157. <td width="114px" align="right" >单位:</td>
  158. <td width="35%"><div name="INPUT_UNIT_321_SHOW" id="INPUT_UNIT_321_SHOW" /></td>
  159. <td width="114px" align="right" >填报角色:</td>
  160. <td><div name="INPUT_ROLE_ID_321_SHOW" id="INPUT_ROLE_ID_321_SHOW" /></td>
  161. </tr>
  162. <tr>
  163. <td width="114px" align="right" >填写人员:</td>
  164. <td width="35%"><div name="INPUT_NAME_321" id="INPUT_NAME_321" /></td>
  165. <td width="114px" align="right" >录入时间:</td>
  166. <td><div name="INPUT_DATE_321" id="INPUT_DATE_321" /></td>
  167. </tr>
  168. </table>
  169. </fieldset>
  170. </form>
  171. <fieldset class="fieldset">
  172. <legend class="legend">附件信息:</legend>
  173. <table class="add_table_style file_table" >
  174. <tr>
  175. <td width="120px" id="maingrid" align="right">附件:</td>
  176. <td width= "680px" colspan="3"><div style="width:100%" id="fileDiv" name="fileDiv" ></div></td>
  177. </tr>
  178. </table>
  179. </fieldset>
  180. </div>
  181. </body>
  182. </html>