98bc43a63128c44faaeb7412c1682aa6e4d7e52d.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. <!-- 附件上传 -->
  9. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/webuploader.css" />
  10. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/webUploader/css/style.css" />
  11. <script type="text/javascript" src="<%=path%>/scripts/webUploader/webuploader.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/webUploader/upload.js"></script>
  13. <!-- 附件上传 -->
  14. <script type="text/javascript" src="<%=path%>/scripts/business/am/org/maintenance/orgSel.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/business/em/alert/warning/WarningRelieve.js"></script>
  16. <style type="text/css">
  17. .class_color{
  18. background-color: rgb(237, 239, 253);
  19. }
  20. </style>
  21. <script type="text/javascript">
  22. var fd_id = "<%=request.getParameter("fd_id")%>";
  23. var relieve = "<%=request.getParameter("relieve")%>";
  24. // alert(fd_id+"******"+relieve)
  25. var isUpdate = "<%=request.getParameter("isUpdate")%>";
  26. //取得用户真实名字
  27. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  28. var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  29. //部门id
  30. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  31. //部门名称
  32. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  33. //父部门id
  34. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  35. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  36. var Corp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  37. //页面初始化
  38. $(function(){
  39. $("#EVENT_ID_365").initYewuSelect("363","FD_OBJECTID","EVENT_NAME"," IS_DEL='0' order by updatedate desc"); //事件
  40. var defaultOpts={
  41. // 自动上传。
  42. auto : true,
  43. // swf文件路径
  44. swf : '/nwyj/scripts/webUploader/Uploader.swf',
  45. // 文件接收服务端。
  46. server : '/nwyj/Upload',
  47. // 选择文件的按钮。可选。
  48. pick : '#picker',
  49. fileNumLimit: 5,
  50. fileSizeLimit: 200 * 1024 * 1024, // 200 M
  51. fileSingleSizeLimit: 50 * 1024 * 1024, // 50 M
  52. chunked: false,
  53. chunkSize: 512 * 1024,
  54. fileTypeLimit :"exe,jsp,asp",
  55. accept: {
  56. extensions: 'jpg,png,doc,docx,pdf'
  57. },
  58. /*
  59. formData: {},
  60. runtimeOrder: 'flash',
  61. */
  62. //禁掉全局的拖拽功能。这样不会出现图片拖进页面的时候,把图片打开。
  63. disableGlobalDnd: true
  64. };
  65. $("#EARLY_WARNING_AREA_NAME_365").OrgSel({selectedMulti : true,loadId_in:CorpArea,loadCorp:"loadCorp",setMulti : {
  66. "Y" : "s",
  67. "N" : ""
  68. }});
  69. //修改表单
  70. if(fd_id.length>0){
  71. if(isUpdate != null && isUpdate == 1){
  72. $("#titleShow").text("新增预警解除通知单");
  73. $('#fileDiv').newAsyncFileUpload(defaultOpts,'',"1");
  74. }else{
  75. $("#titleShow").text("修改预警解除通知单");
  76. $('#fileDiv').newAsyncFileUpload(defaultOpts,fd_id,"1");
  77. }
  78. // ********** 下拉框 数据 初始化 **************
  79. //$("#unitId").initYewuSelect("800","Dept_Id","DEPT_NAME","IS_DEL=0 and DEPT_TYPE='CORP'"); //填报单位
  80. //$("#unitId").attr("selectedValue",deptId);
  81. //$("#CHECKCK").val(realName);
  82. //$("#unitId").attr("selectedValue",deptId);
  83. //$('#fileDiv').getUploadFileContent();
  84. // $("#PLAN_TYPE_ID_365").initCanstSelect('BM_BYSUNESS_TYPE'); //预案类型
  85. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  86. var params = {
  87. classid : '365',
  88. objectID : fd_id
  89. };
  90. $.request.query(url,params,function(data){
  91. $('#editForm').ajaxWrite({data:data});
  92. $("#PREV_EW_ID_365").val(data.PREV_EW_ID_365);
  93. if(isUpdate != null && isUpdate == 1){
  94. $("#EW_SUMMARY_365").val("");
  95. }
  96. $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);//预警范围显示
  97. $("#EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_ID_365);//预警范围ID
  98. $("#EARLY_WARNING_AREA_NAME_365_show").val(data.EARLY_WARNING_AREA_NAME_365);//预警范围NAME
  99. $("#show_EARLY_WARNING_AREA_NAME_365").val(data.EARLY_WARNING_AREA_NAME_365);
  100. $("#CURRENT_EW_LEVEL_365").val(data.CURRENT_EW_LEVEL_365);
  101. $('#WRITE_DEPT_365_SHOW').text(Corp_names);
  102. $("#WRITER_365_SHOW").text(realName);
  103. $("#WRITER_365").val(realName); //填报人
  104. $("#WRITER_ID_365").val(realName_ID);
  105. $('#WRITE_DEPT_365').val(CorpArea);
  106. $("#RELEASE_UNIT_365").val(CorpArea);
  107. if(data.IS_LAST_ID_365==null||""==data.IS_LAST_ID_365){//如果IS_LAST_ID_365为空即为初次发布的解除,把初次发布那条记录的ID赋值给当前解除通知单的IS_LAST_ID_365
  108. // alert("新增")
  109. $("#REMARK_365").val(""); //备注
  110. $("#MEASURE_AND_REQUEST_365").val(""); //工作要求
  111. $("#IS_LAST_ID_365").val(relieve);
  112. }else{//IS_LAST_ID_365的值不为空
  113. // alert("修改")
  114. $("#IS_LAST_ID_365").val(data.IS_LAST_ID_365);
  115. $("#REMARK_365").val(data.REMARK_365); //备注
  116. $("#MEASURE_AND_REQUEST_365").val(data.MEASURE_AND_REQUEST_365); //工作要求
  117. if(data.EARLY_WARNING_PROPERTY_365 == '50'){//如果IS_LAST_ID_365的值不为空,并且预警性质为调整,那么需要重新给IS_LAST_ID_365赋值
  118. $("#IS_LAST_ID_365").val(fd_id);
  119. $("#REMARK_365").val(""); //备注
  120. $("#MEASURE_AND_REQUEST_365").val(""); //工作要求
  121. }
  122. }
  123. $("#PLAN_TYPE_ID_365").val(data.PLAN_TYPE_ID_365);
  124. /* is_last_id=data.IS_LAST_ID_365; */
  125. });
  126. }
  127. });
  128. //获得当前系统时间
  129. function getDateTime(){
  130. var s="";
  131. var d = allGetServerTime();
  132. var vYear = d.getFullYear();
  133. var vMon = d.getMonth() + 1;
  134. var vDay = d.getDate();
  135. var h = d.getHours();
  136. var m = d.getMinutes();
  137. s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)+" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m);
  138. return s;
  139. }
  140. function formReset(){
  141. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/alert/warning/WarningRelieve.jsp?fd_id="+ fd_id);
  142. }
  143. </script>
  144. </head>
  145. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
  146. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8; " width="1000px" >
  147. <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>
  148. <br/>
  149. <div style="float:right">
  150. <input type="button" id="is_Send" value="发送"/>&nbsp;&nbsp;
  151. <input type="button" id="is_Issue" value="发布" title="上传盖章后的通知单附件,可以不经发送、审核直接发布"/>&nbsp;&nbsp;
  152. <input value="保存" type="button" id="save"/>&nbsp;&nbsp;
  153. <input id="chongzhi" value="重置" onclick="formReset();" type="button"/>&nbsp;<!-- 新增重置 -->
  154. </div><br />
  155. <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red">预警解除通知单</font></div>
  156. <table align="center" width="960px" style="padding-left: 10px;padding-right: 10px;margin:auto">
  157. <tr>
  158. <td align="left">
  159. <div style="float:left"><span id="shenwei">填报单位</span>:</div>
  160. <div style="float:left">
  161. <label id='WRITE_DEPT_365_SHOW'></label>
  162. <!-- <select editable=false id="unitId" name="unitId" prompt="请选择"></select> -->
  163. </div>
  164. </td>
  165. <td align="right" style="padding-right: 60px;"><span id="shenhe">填报人</span>:<label id='WRITER_365_SHOW'></label>&nbsp;</td>
  166. </tr>
  167. </table>
  168. <form id="editForm" method="post">
  169. <input type="hidden" name="FD_OBJECTID365" id="FD_OBJECTID365" value=""/>
  170. <input name="classid" id="classid" value="365" type="hidden"/>
  171. <input name="PREV_EW_ID_365" id="PREV_EW_ID_365" value="" type="hidden"/>
  172. <input name="CHECK_STATUS_365" id="CHECK_STATUS_365" type="hidden"/>
  173. <input name="IS_SEND_365" id="IS_SEND_365" type="hidden"/>
  174. <input name="IS_LAST_ID_365" id="IS_LAST_ID_365" type="hidden"/>
  175. <input id="EARLY_WARNING_PROPERTY_365" name="EARLY_WARNING_PROPERTY_365" type="hidden"/>
  176. <input name="RELEASE_UNIT_365" id="RELEASE_UNIT_365" type="hidden"/>
  177. <input id="WRITER_365" name="WRITER_365" type="hidden"/>
  178. <input id="WRITER_ID_365" name="WRITER_ID_365" type="hidden"/>
  179. <input id="WRITE_DEPT_365" name="WRITE_DEPT_365" type="hidden"/>
  180. <input id="WRITE_TIME_365" name="WRITE_TIME_365" type="hidden"/>
  181. <input type="hidden" name="IS_ALERT_365" id="IS_ALERT_365" value="0"/>
  182. <input id="EARLY_WARNING_AREA_ID_365" name="EARLY_WARNING_AREA_ID_365" type="hidden"/>
  183. <input id="CURRENT_EW_LEVEL_365" name="CURRENT_EW_LEVEL_365" type="hidden"/>
  184. <input id="PLAN_TYPE_ID_365" name="PLAN_TYPE_ID_365" type="hidden">
  185. <table width="960px" class="tableStyle" align="center">
  186. <tr>
  187. <td align="right" width="120px" class="class_color"><span class="star">*</span>事件名称:</td>
  188. <td><select editable=false name="EVENT_ID_365" class="validate[required]" id="EVENT_ID_365" selAlign="" prompt="请选择" selWidth="756"></select></td>
  189. </tr>
  190. <tr>
  191. <td align="right" width="120px" class="class_color"><span class="star">*</span>预警名称:</td>
  192. <td colspan="2"><input type="text" class="validate[required,length[0,50],custom[illegalLetter]]" name="EARLY_WARNING_NAME_365" id="EARLY_WARNING_NAME_365" style="width: 750px;"/></td>
  193. </tr>
  194. <tr>
  195. <td align="right" width="120px" class="class_color"><span class="star">*</span>预警编号:</td>
  196. <td colspan="2"><input type="text" class="validate[required]" name="EARLY_WARNING_ID_365" id="EARLY_WARNING_ID_365" style="width: 750px;"/></td>
  197. </tr>
  198. <tr style="display: none;">
  199. <td align="right" width="120px" class="class_color"><span class="star">*</span>发布时间:</td>
  200. <td colspan="2"><input style="width: 750px" type="text" id="RELEASE_RELIEVE_DATE_365"name="RELEASE_RELIEVE_DATE_365" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm"/></td>
  201. </tr>
  202. <tr>
  203. <td align="right" width="120px" class="class_color"><span class="star">*</span>解除时间:</td>
  204. <td><input style="width: 750px" type="text" id="RELIEVE_DATE_365"name="RELIEVE_DATE_365" class="date validate[required]" dateFmt="yyyy-MM-dd HH:mm"/></td>
  205. </tr>
  206. <tr>
  207. <td align="right" width="120px" class="class_color"><span class="star">*</span>解除范围:</td>
  208. <td colspan="2"><div style="width: 826px;" class="validate[required]" allclickset="1" id="EARLY_WARNING_AREA_NAME_365" name="EARLY_WARNING_AREA_NAME_365" readonly="readonly"></div>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td align="right" width="120px" class="class_color"><span class="star">*</span>解除原因:</td>
  213. <td colspan="2"><textarea style="width: 750px;height: 270px;" name="EW_SUMMARY_365" id="EW_SUMMARY_365" maxNum="2000" class="validate[required]"></textarea></td>
  214. </tr>
  215. <tr>
  216. <td align="right" width="120px" class="class_color">工作要求:</td>
  217. <td colspan="2"><textarea style="width: 750px;height: 270px;" name="MEASURE_AND_REQUEST_365" id="MEASURE_AND_REQUEST_365" maxNum="2000"></textarea></td>
  218. </tr>
  219. <tr>
  220. <td align="right" width="120px" class="class_color">备注:</td>
  221. <td colspan="2"><textarea name="REMARK_365" id="REMARK_365" style="width: 750px;height: 270px;" maxNum="2000"></textarea></td>
  222. </tr>
  223. </table>
  224. <fieldset style=" border-color:#999999; border-top-color: rgb(200,200,200); border-right-color: rgb(200,200,200); border-bottom-color: rgb(200,200,200); border-left-color: rgb(200,200,200); width: 960px" align="center" >
  225. <legend width="960px" >附件信息:</legend>
  226. <table width="960px" class="tableStyle" align="center">
  227. <tr>
  228. <td width="110px" class="class_color" align="right"><span>纸质扫描件:</span></td>
  229. <td colspan="2"><font color=red>只有领导审核、签发的word、pdf、图片(png/jpg)附件才可以上传直接发布</font></td>
  230. </tr>
  231. <tr>
  232. <td width="110px" class="class_color" align="right"><span align="right" class="star">*</span>上传附件:</td>
  233. <td width= "750px" colspan="3"><div style="width:750px" id="fileDiv" name="fileDiv" ></div></td>
  234. </tr>
  235. </table>
  236. </fieldset>
  237. </form>
  238. </div>
  239. </body>
  240. </html>