e56d1c5fa726653c309da6df3a5855442ee84746.svn-base 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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="../../../../include1.jsp" %>
  8. <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
  9. <!-- 附件上传 -->
  10. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
  11. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/style.css" />
  12. <script type="text/javascript" src="<%=path%>/scripts/webUploader/webuploader.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/webUploader/upload.js"></script>
  14. <!-- 附件上传 -->
  15. <script type="text/javascript" src="<%=path%>/scripts/business/em/response/emergencyResponse/RelieveFlow.js "></script>
  16. <script type="text/javascript">
  17. var fd_id = "<%=request.getParameter("fd_id")%>";
  18. var is_edit = "<%=request.getParameter("is_edit")%>";
  19. //取得用户真实名字
  20. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  21. //部门id
  22. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  23. //部门名称
  24. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  25. //父部门id
  26. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  27. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  28. $(function(){
  29. $('#fileDiv').newAsyncFileUpload("",fd_id,"1");
  30. $("#EARLY_WARNING_AREA_NAME_365").OrgSel({is_alert:"is_alert",selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
  31. "Y" : "s",
  32. "N" : ""
  33. }});
  34. if(fd_id.length>0){
  35. $("#titleShow").text("修改响应解除通知单");
  36. // ********** 下拉框 数据 初始化 **************
  37. $("#WRITE_DEPT_365").initYewuSelect("800","Dept_Id","DEPT_NAME","IS_DEL=0 and DEPT_TYPE='CORP',orgWidth:'95%'"); //填报单位
  38. $('#CURRENT_ER_LEVEL_365').initCanstSelect('BM_REPONSELEVEL'); //本次响应级别
  39. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  40. var params = {
  41. classid : '365',
  42. objectID : fd_id
  43. };
  44. $.request.query(url,params,function(data){
  45. $('#editForm').ajaxWrite({data:data});
  46. $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);
  47. $("#EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_ID_365);
  48. $("#EARLY_WARNING_AREA_NAME_365_show").val(data.EARLY_WARNING_AREA_NAME_365);
  49. });
  50. }
  51. });
  52. //获得当前系统时间
  53. function getDateTime(){
  54. var s="";
  55. var d = allGetServerTime();
  56. var vYear = d.getFullYear();
  57. var vMon = d.getMonth() + 1;
  58. var vDay = d.getDate();
  59. var h = d.getHours();
  60. var m = d.getMinutes();
  61. s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m);
  62. return s;
  63. }
  64. function formReset(){
  65. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/response/emergencyResponse/RelieveFlow.jsp?fd_id="+ fd_id+"&is_edit=0");
  66. }
  67. function but() {
  68. //top.Dialog.open({URL:"/nwyj/page/business/em/alert/warning/Warningunit.jsp",Title:"选择部门",Width:400,Height:550});
  69. var ifmHeight = $(parent.document.body).find("#frmright").height();
  70. firstdiag = new top.Dialog();
  71. firstdiag.Title = "选择部门";
  72. firstdiag.Width=400;
  73. firstdiag.Height=550;
  74. firstdiag.URL = "/nwyj/page/business/em/alert/warning/Warningunit.jsp?ifmHeight="+ifmHeight;
  75. firstdiag.ShowButtonRow=false;
  76. firstdiag.show();
  77. }
  78. //响应编号--鼠标事件
  79. function mouse(){
  80. //部门id
  81. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  82. //获取响应名称的方法
  83. var thing = $("#EARLY_WARNING_NAME_365").val();
  84. //获取系统年份
  85. var year = allGetServerTime().getFullYear();
  86. var params = {
  87. deptId : deptId,
  88. is_alert : 1,
  89. wether_ew_adjust : 0,
  90. };
  91. var url = $.pathname()+ '/ws/response/responseService/getCount';
  92. $.ajax({
  93. url : url,
  94. type : 'post',
  95. timeout : 60000,
  96. dataType : 'json',
  97. data : params,
  98. success : function(data) {
  99. alertNum = thing + "-" + "F" + "-" + year + "-" + (data+1);
  100. $("#EARLY_WARNING_ID_365").val(alertNum);//<input>显示
  101. }
  102. });
  103. }
  104. </script>
  105. </head>
  106. <body>
  107. <div class="box1" id="formContent" style="overflow:false;height:100%;border: 1px solid #E4E4E4;background: #F8F8F8;">
  108. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" id="titleShow"></font></div>
  109. <!-- 保存和重置 -->
  110. <br/>
  111. <div style="float:right">
  112. <input type="button" id="is_Send" value="发送"/>&nbsp;&nbsp;
  113. <input type="button" id="is_Issue" value="发布"/>&nbsp;&nbsp;
  114. <input value="保存" type="button" id="save"/>&nbsp;&nbsp;
  115. <input id="chongzhi" value="重置" onclick="formReset();" type="button"/>&nbsp;&nbsp;<!-- 新增重置 -->
  116. </div><br />
  117. <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red">响应解除通知单</font></div>
  118. <form id="editForm" method="post" enctype="multipart/form-data">
  119. <input type="hidden" name="FD_OBJECTID365" id="FD_OBJECTID365" />
  120. <input id="classid" name="classid" value="365" type="hidden"/>
  121. <input name="CHECK_STATUS_365" id="CHECK_STATUS_365" type="hidden"/>
  122. <input name="IS_SEND_365" id="IS_SEND_365" type="hidden"/>
  123. <input name="IS_LAST_ID_365" id="IS_LAST_ID_365" type="hidden"/>
  124. <input id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365" type="hidden"/>
  125. <input name="RELEASE_UNIT_365" id="RELEASE_UNIT_365" type="hidden"/>
  126. <input id="WRITE_TIME_365" name="WRITE_TIME_365" type="hidden"/>
  127. <input type="hidden" name="IS_ALERT_365" id="IS_ALERT_365" value="1"/>
  128. <input id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" type="hidden"/>
  129. <!-- 填报单位和填报人 -->
  130. <table width="85%" style="padding-left: 10px;padding-right: 10px;">
  131. <tr>
  132. <td align="left">
  133. <div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;填报单位:</div>
  134. <div style="float:left">
  135. <!-- <label id="RELEASE_UNIT_365"></label> -->
  136. <select editable=false id="WRITE_DEPT_365" name="WRITE_DEPT_365" prompt="请选择"></select>
  137. </div><!-- <label id="unitId"></label> -->
  138. </td>
  139. <td align="right">填报人:<input id="WRITER_365" name="WRITER_365" type="text"/>&nbsp;</td>
  140. </tr>
  141. </table>
  142. <table class="tableStyle" style="width: 85%;" align="center">
  143. <tr>
  144. <td width="20%" align="right"><span class="star">*</span>响应名称:</td>
  145. <td width="80%" colspan="2"><input onblur="mouse()" type="text" class="validate[required,length[0,33],custom[illegalLetter]]" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" style="width: 97%;"/></td>
  146. </tr>
  147. <tr>
  148. <td width="20%" align="right"><span class="star">*</span>发布时间:</td>
  149. <td width="80%" colspan="2"><input style="width: 97%" type="text" id="RELEASE_RELIEVE_DATE_365"name="RELEASE_RELIEVE_DATE_365" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm"/></td>
  150. </tr>
  151. <tr>
  152. <td width="20%" align="right"><span class="star">*</span>响应编号:</td>
  153. <td width="80%" colspan="2"><input type="text" class="validate[required]" name="EARLY_WARNING_ID_365" id="EARLY_WARNING_ID_365" style="width: 97%;"/></td>
  154. </tr>
  155. <tr>
  156. <td width="20%" align="right"><span class="star">*</span>解除时间:</td>
  157. <td width="80%"><input style="width: 97%" type="text" id="RELIEVE_DATE_365"name="RELIEVE_DATE_365" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm"/></td>
  158. </tr>
  159. <tr>
  160. <td width="20%" align="right"><span class="star">*</span>解除范围:</td>
  161. <td width="80%" colspan="2"><div allclickset="1" id="EARLY_WARNING_AREA_NAME_365"></div></td>
  162. </tr>
  163. <tr>
  164. <td width="20%" align="right"><span class="star">*</span>响应级别:</td>
  165. <td width="80%" colspan="2"><div style="float:left"><select name="CURRENT_ER_LEVEL_365" class="validate[required]" id="CURRENT_ER_LEVEL_365" selAlign="right" prompt="请选择" selWidth="97%"></select></div></td>
  166. </tr>
  167. <tr>
  168. <td width="20%" align="right"><span class="star">*</span>解除原因:</td>
  169. <td width="80%"><textarea style="width: 97%;height: 270px;" maxNum="800" name="EW_SUMMARY_365" id="EW_SUMMARY_365" class="validate[required,length[0,800]]"></textarea></td>
  170. </tr>
  171. <tr>
  172. <td width="20%" align="right">工作要求:</td>
  173. <td width="80%"><textarea style="width: 97%;height: 270px;" maxNum="800" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365" class="validate[length[0,800]]"></textarea></td>
  174. </tr>
  175. <tr>
  176. <td width="20%" align="right">备注:</td>
  177. <td width="80%"><textarea name="REMARK_365" maxNum="800" id="REMARK_365" style="width: 97%;height: 270px;" class="validate[length[0,800]]"></textarea></td>
  178. </tr>
  179. </table>
  180. <fieldset style="border-color:#999999;" id="fileTable" >
  181. <legend>附件信息:</legend>
  182. <table style="width: 85%;" align="center" border="0">
  183. <tr><td colspan="3"><div id="fileDiv"></div> </td></tr>
  184. </table>
  185. </fieldset>
  186. </form>
  187. </div>
  188. </body>
  189. </html>