803201977ff515a7512bb87318de9dd8f729379c.svn-base 6.4 KB

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