626ba1193a7066620ce54a665240538eee81beb7.svn-base 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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/alert/report/reportInputPlan/ReportInputPlan.jsp";
  14. }
  15. //获取url中的参数
  16. function getUrlParam(name) {
  17. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
  18. var r = window.location.search.substr(1).match(reg); //匹配目标参数
  19. if (r != null)
  20. return unescape(r[2]);
  21. return null; //返回参数值
  22. }
  23. var fd_objectid = getUrlParam('fd_id');
  24. function release(fd_id){
  25. var params = {classid : "320",FD_OBJECTID320:fd_id,IS_RELEASE_320:"1"};
  26. $.ajax({
  27. url : $.pathname() + '/ws/crud/CRUDService/update/',
  28. type : 'post',
  29. data : params,
  30. async:false,
  31. dataType : 'json',
  32. success : function(data){
  33. top.Dialog.alert("发布成功!");
  34. //获取iframe中的元素值
  35. var iframe = parent.document.getElementsByName("frmright")[0];
  36. iframe.src = "/nwyj/page/business/em/alert/report/reportInputPlan/ReportInputPlan.jsp";
  37. },
  38. error : function(e){
  39. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  40. }
  41. });
  42. }
  43. $(function() {
  44. $("#goback").hover(function(){
  45. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  46. },function(){
  47. $(this).attr("src","/nwyj/images/temp/back.png");
  48. });
  49. $("#goback").bind("click",goBack);
  50. //预警类别
  51. if (fd_objectid.length > 0) {
  52. $("#release").live("click",function(){
  53. release(fd_objectid);
  54. });
  55. var params = {
  56. classid : "320",
  57. objectID : fd_objectid
  58. };
  59. $.ajax({
  60. url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
  61. type : 'post',
  62. timeout : 15000,
  63. data : params,
  64. dataType : 'json',
  65. success : function(data) {
  66. if(data.IS_RELEASE_320 ==0 ){
  67. $("#release").parent().show();
  68. }
  69. /* $('#myFormId').ajaxWrite({
  70. data : data
  71. }); */
  72. for(var index in data){
  73. $("#"+index).html(data[index]);
  74. }
  75. var report_type = "";
  76. if(data.REPORT_TYPE_320=="1"){
  77. report_type = "预警行动信息报告"
  78. }else if(data.REPORT_TYPE_320=="2"){
  79. report_type = "预警总结报告"
  80. }else{
  81. report_type = "预警行动信息报告,预警总结报告"
  82. }
  83. $("#REPORT_TYPE_320_SHOW").html(report_type);
  84. var circletime = data.CIRCLE_TIME_320;
  85. var temporarytime = data.TEMPORARY_TIME_320;
  86. createTd(circletime,temporarytime);
  87. },
  88. error : function(e) {
  89. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  90. }
  91. });
  92. }
  93. });
  94. function createTd(circletime,temporarytime){
  95. //判断是周期性还是临时性
  96. var flag = $("#WRITE_DATE_TYPE_320").text();
  97. if(flag=="周期性"){
  98. $("#tbsjb").append('<td width="10%" align="right">每日:</td>'+
  99. '<td width="30%" ><div style="word-wrap:break-word; word-break:break-all;display:block;width:97%;" name="CIRCLE_TIME_320" id="CIRCLE_TIME_320">'+circletime+'</div></td>');
  100. }else{
  101. $("#tbsjb").append('<td width="10%" align="right">时间:</td>'+
  102. '<td width="30%" ><div style="word-wrap:break-word; word-break:break-all;display:block;width:97%;" name="TEMPORARY_TIME_320" id="TEMPORARY_TIME_320">'+temporarytime+'</div></td>');
  103. }
  104. setHight();
  105. }
  106. </script>
  107. <style type="text/css">
  108. input{
  109. height:30px;
  110. line-height: 30px;
  111. background: #eee none;
  112. border:1px solid #ccc;
  113. }
  114. </style>
  115. </head>
  116. <body class="bd" align="center" >
  117. <div id="formContent" class="d_ground">
  118. <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>
  119. <form id="myFormId">
  120. <input name="classid" value="320" type="hidden" />
  121. <!-- 保存和重置 -->
  122. <div class="button_jl" style="display: none;">
  123. <input value="发布" type="button"id="release" />&nbsp;&nbsp;
  124. </div><br />
  125. <fieldset class="fieldset">
  126. <legend class="legend">基本信息:</legend>
  127. <table class="add_table_style view_table" >
  128. <tr>
  129. <td width="20%" align="right">预警编号:</td>
  130. <td width="30%"><div style="width: 97%" name="EARLY_WARNING_ID_320" id="EARLY_WARNING_ID_320"></div></td>
  131. <td width="20%" align="right">填报要求名称:</td>
  132. <td width="30%"><div style="width: 97%" name="PROGRAMME_NAME_320" id="PROGRAMME_NAME_320"></div></td>
  133. </tr>
  134. <tr>
  135. <td width="20%" align="right">报告类型:</td>
  136. <td width="30%" colspan="3"><div style="width: 97%" name="REPORT_TYPE_320" id="REPORT_TYPE_320_SHOW"></div></td>
  137. </tr>
  138. <tr>
  139. <td width="20%" align="right">填报单位:</td>
  140. <td width="30%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' name="WRITE_DEPT_NAME_320" id="WRITE_DEPT_NAME_320"></div></td>
  141. </tr>
  142. <tr>
  143. <td width="20%" align="right">起始日期:</td>
  144. <td width="30%"><div style="width: 97%" name="START_TIME_320" id="START_TIME_320"></div></td>
  145. <td width="20%" align="right">截止日期:</td>
  146. <td width="30%"><div style="width: 97%" name="EXPIRATION_DATE_320" id="EXPIRATION_DATE_320"></div></td>
  147. </tr>
  148. <tr id="tbsjb">
  149. <td width="20%" align="right">填报时间表:</td>
  150. <td width="30%"><div style="width: 97%" name="WRITE_DATE_TYPE_320" id="WRITE_DATE_TYPE_320"></div></td>
  151. </tr>
  152. <tr>
  153. <td width="20%" align="right">状态:</td>
  154. <td width="30%" colspan="3"><div name="IS_RELEASE_320_SHOW" id="IS_RELEASE_320_SHOW"></div></td>
  155. </tr>
  156. </table>
  157. </fieldset>
  158. <fieldset class="fileTable_border" >
  159. <legend>填写人员信息:</legend>
  160. <table class="tableStyle" align="center" id="fillForm">
  161. <tr>
  162. <td width="114px" align="right" >单位:</td>
  163. <td width="35%"><div name="INPUT_DEPT_320_SHOW" id="INPUT_DEPT_320_SHOW" /></td>
  164. <td width="114px" align="right" >录入时间:</td>
  165. <td><div name="WRITE_TIME_320" id="WRITE_TIME_320" /></td>
  166. </tr>
  167. <tr>
  168. <td width="114px" align="right" >填写人员:</td>
  169. <td width="35%"><div name="WRITER_320" id="WRITER_320" /></td>
  170. <td></td><td></td>
  171. </tr>
  172. </table>
  173. </fieldset>
  174. </form>
  175. </div>
  176. </body>
  177. </html>