31f60bd6b859b456f8a9370e667409a7c016ebe9.svn-base 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. iframe.src = "/nwyj/page/business/em/response/report/reportInput/ReportInput.jsp";
  38. }
  39. var fd_objectid="<%=request.getParameter("fd_id")%>";
  40. $(function(){
  41. //预警类别
  42. $("#fileDiv").newAsyncFileUpload("",fd_objectid,0);//附件
  43. if(fd_objectid.length>0){
  44. var params = {classid : "321",objectID : "<%=request.getParameter("fd_id")%>"};
  45. $.ajax({
  46. url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
  47. type : 'post',
  48. timeout : 15000,
  49. data : params,
  50. dataType : 'json',
  51. success : function(data){
  52. //当操作状态为4的时候,显示回退内容
  53. if(data.OPR_STATE_321 == "4"){
  54. $("#RETURN_EXPLAIN").show();
  55. }else{
  56. $("#RETURN_EXPLAIN").hide();
  57. }
  58. /* $('#myFormId').ajaxWrite({data:data}); */
  59. $("#myFormId input[name='classid']").val("321");
  60. $("#EARLY_WARNING_ID_321").html(data.EARLY_ID_321);//预警编号
  61. $("#REPORT_NAME_321").html(data.REPORT_NAME_321);//报告名称
  62. $("#RETURN_EXPLAIN_321").html(data.RETURN_EXPLAIN_321);//回退说明
  63. $("#INPUT_UNIT_321").html(data.INPUT_UNIT_321_SHOW);//填报部门
  64. $("#INPUT_NAME_321").html(data.INPUT_NAME_321);//填报人
  65. $("#INPUT_DATE_321").html(data.INPUT_DATE_321);//填报日期
  66. $("#IS_RELEASE_321_SHOW").html(data.IS_RELEASE_321_SHOW);
  67. $("#OPR_STATE_321_SHOW").html(data.OPR_STATE_321_SHOW);
  68. },
  69. error : function(e){
  70. $.messager.alert('查询应急工作专报失败');
  71. }
  72. });
  73. }
  74. });
  75. </script>
  76. </head>
  77. <body>
  78. <div class="box1" id="formContent" >
  79. <div style="height: 50px;background: #F8F8F8;" align="center"><font style="font-weight: bold;font-size: 20px;line-height: 45px;">查看应急工作专报</font></div>
  80. <form id="myFormId" >
  81. <input name="classid" value="321" type="hidden"/>
  82. <input id="FD_OBJECTID321" name="FD_OBJECTID321" type="hidden"/>
  83. <fieldset style="border-color:#999999;" id="fileTable" >
  84. <legend>基本信息:</legend>
  85. <table class="tableStyle">
  86. <tr>
  87. <td width="10%" align="right">报告名称:</td>
  88. <td width="50%"><div name="REPORT_NAME_321" id="REPORT_NAME_321" style="width:90%"></div></td>
  89. <td width="10%" align="right">应急响应编号:</td>
  90. <td width="30%"><div name="EARLY_ID_321" id="EARLY_WARNING_ID_321" style="width:90%"></div></td>
  91. </tr>
  92. <tr>
  93. <td width="10%" align="right">填报部门:</td>
  94. <td width="90%" colspan="3"><div name="INPUT_UNIT_321" id="INPUT_UNIT_321" style="width:90%"></div></td>
  95. </tr>
  96. <tr>
  97. <td width="10%" align="right">填报人:</td>
  98. <td width="50%"><div name="INPUT_NAME_321" id="INPUT_NAME_321" style="width:90%"></div></td>
  99. <td width="10%" align="right">填报时间:</td>
  100. <td width="30%"><div name="INPUT_DATE_321" id="INPUT_DATE_321" style="width:90%"></div></td>
  101. </tr>
  102. <tr>
  103. <td width="10%" align="right">上报状态:</td>
  104. <td width="50%"><div name="OPR_STATE_321" id="OPR_STATE_321_SHOW" style="width:90%"></div></td>
  105. <td width="10%" align="right">发布状态:</td>
  106. <td width="30%"><div name="IS_RELEASE_321" id="IS_RELEASE_321_SHOW" style="width:90%"></div></td>
  107. </tr>
  108. <tr id="RETURN_EXPLAIN">
  109. <td width="10%" align="right" colspan="2">回退说明:</td>
  110. <td width="90%" colspan="2"><div name="RETURN_EXPLAIN_321" id="RETURN_EXPLAIN_321" style="width:90%"></div></td>
  111. </tr>
  112. </table>
  113. </fieldset>
  114. </form>
  115. <fieldset style="border-color:#999999;" id="fileTable" >
  116. <legend>附件信息:</legend>
  117. <div id="fileDiv"></div>
  118. </fieldset>
  119. </div>
  120. </body>