2fee0e31fe24e24c1e2e8215f4ae33beb483edc5.svn-base 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. //返回主页面
  10. function goBack() {
  11. //获取iframe中的元素值
  12. var iframe =parent.document.getElementsByName("frmright")[0];
  13. iframe.src = "/nwyj/page/business/em/response/report/reportInput/ReportInput.jsp";
  14. }
  15. //保存应急预警报告
  16. function updateAlertReport(){
  17. var params = {classid : "321"};
  18. //操作状态为4 代表回退
  19. $("#OPR_STATE_321").val("4");
  20. $("#IS_RELEASE_321").val("0");
  21. var formValue = $('#myFormId').serialize();
  22. $.ajax({
  23. url : $.pathname() + '/ws/crud/CRUDService/update/',
  24. type : 'post',
  25. timeout : 15000,
  26. data : formValue,
  27. dataType : 'json',
  28. success : function(data){
  29. goBack();
  30. },
  31. error : function(e){
  32. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  33. }
  34. });
  35. }
  36. var fd_objectid="<%=request.getParameter("fd_id")%>";
  37. $(function(){
  38. $("#titleShow").text("回退应急工作专报");
  39. $("#goback").hover(function(){
  40. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  41. },function(){
  42. $(this).attr("src","/nwyj/images/temp/back.png");
  43. });
  44. $("#goback").bind("click",goBack);
  45. //预警类别
  46. //$('#REPORT_TYPE_321').initCanstSelect('BM_ReportInputState');
  47. $("#fileDiv").newAsyncFileUpload("",fd_objectid,0);//附件
  48. if(fd_objectid.length>0){
  49. var params = {classid : "321",objectID : "<%=request.getParameter("fd_id")%>"};
  50. $.ajax({
  51. url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
  52. type : 'post',
  53. timeout : 15000,
  54. data : params,
  55. dataType : 'json',
  56. success : function(data){
  57. $('#myFormId').ajaxWrite({data:data});
  58. $("#myFormId input[name='classid']").val("321");
  59. },
  60. error : function(e){
  61. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  62. }
  63. });
  64. }
  65. });
  66. </script>
  67. </head>
  68. <body class="bd" align="center" >
  69. <div id="formContent" class="d_ground">
  70. <div class="title" align="center"><a href="javascript:;"><img class="back" id='goback' title="返回" align="left" alt="返回" src="/nwyj/images/temp/back.png" ></img></a><font class="title_font" id="titleShow"></font></div>
  71. <form id="myFormId" >
  72. <input name="classid" value="321" type="hidden"/>
  73. <input id="FD_OBJECTID321" name="FD_OBJECTID321" type="hidden"/>
  74. <input id="OPR_STATE_321" name="OPR_STATE_321" type="hidden"/>
  75. <input id="IS_RELEASE_321" name="IS_RELEASE_321" type="hidden"/>
  76. <div class="button_jl">
  77. <input value="回退" type="button" onclick="updateAlertReport()"/>&nbsp;&nbsp;
  78. </div><br />
  79. <fieldset class="fieldset">
  80. <legend class="legend">基本信息:</legend>
  81. <table class="add_table_style" >
  82. <tr>
  83. <td width="20%" align="right">应急预警名称:</td>
  84. <td width="80%" ><input disabled="disabled" name="EARLY_ID_321" id="EARLY_WARNING_ID_321" type="text" value="" maxlength="" style="width:90%"></td>
  85. </tr>
  86. <tr>
  87. <td align="right">报告名称:</td>
  88. <td ><input disabled="disabled" name="REPORT_NAME_321" id="REPORT_NAME_321" type="text" value="" maxlength="" style="width:90%"></td>
  89. </tr>
  90. <tr>
  91. <td align="right">回退说明:</td>
  92. <td ><textarea rows="2" name="RETURN_EXPLAIN_321" maxNum="100" style="width: 90%"></textarea></td>
  93. </tr>
  94. </table>
  95. </fieldset>
  96. </form>
  97. <fieldset class="fieldset">
  98. <legend class="legend">附件信息:</legend>
  99. <table class="add_table_style file_table" >
  100. <tr>
  101. <td width="120px" id="maingrid" align="right">附件:</td>
  102. <td width= "680px" colspan="3"><div style="width:100%" id="fileDiv" name="fileDiv" ></div></td>
  103. </tr>
  104. </table>
  105. </fieldset>
  106. </div>
  107. </body>