bddfa0cfeec1104f64ed9fdb67ae269513579d14.svn-base 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>预警通知单填报</title>
  6. <style type="text/css">
  7. .hlight{background-color:lightblue}
  8. .normal{backgroud-color:#E8F2FE}
  9. </style>
  10. <!--框架必需start 扁平风格-->
  11. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  12. <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue" positionTarget="positionContent" selInputHeight="32" selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60" defaultFileInputWidth="200" defaultGridHeaderHeight="34" defaultGridRowHeight="38" defaultFontSize="14" defaultPageSelWidth="55" defaultFilterItemHeight="32" dialogWidthFix="0" defaultSelItemHeight="32" defaultFontFamily="宋体"/>
  13. <link href="/nwyj/scripts/qui/system/layout_flat/skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="/scripts/qui/system/layout_flat/skin/"/>
  14. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  15. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  16. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  17. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  18. <!--框架必需end-->
  19. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/text/vticker.js"></script>
  20. <!--自动提示框start-->
  21. <script type='text/javascript' src='/nwyj/scripts/qui/libs/js/form/suggestion.js'></script>
  22. <!--自动提示框end-->
  23. <!--数据表格start-->
  24. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" ></script>
  25. <!--数据表格end-->
  26. <!--表单提交start-->
  27. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/form.js"></script>
  28. <!--表单提交end-->
  29. <!--表单验证start-->
  30. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/validation.js"></script>
  31. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/validationRule.js"></script>
  32. <!--表单提交end-->
  33. <!-- 数字步进器start -->
  34. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/stepper.js"></script>
  35. <!-- 数字步进器end -->
  36. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
  37. <!--数据表格end-->
  38. <script type="text/javascript" src="/nwyj/scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
  39. <!--弹窗组件start-->
  40. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/messager.js"></script>
  41. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/drag.js"></script>
  42. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/popup/dialog.js"></script>
  43. <!--弹窗组件end-->
  44. <!--布局组件start-->
  45. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/layout.js"></script>
  46. <!--布局组件start-->
  47. <!--基本选项卡start-->
  48. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/basicTab.js"></script>
  49. <!--基本选项卡end-->
  50. <!--动态选项卡start-->
  51. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/dynamicTab.js"></script>
  52. <!--动态选项卡end-->
  53. <!--树组件start-->
  54. <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.css" />
  55. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  56. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/selectTree.js"></script>
  57. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/listerTree.js"></script>
  58. <!--树组件end-->
  59. <!--纵向抽屉容器start-->
  60. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/accordion.js"></script>
  61. <!--纵向抽屉容器end-->
  62. <!-- 双向选择器start -->
  63. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/lister.js"></script>
  64. <!--双向选择器end-->
  65. <!--上传附件start-->
  66. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/upload/fileUpload.js"></script>
  67. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/upload/handlers.js"></script>
  68. <!-- 上传附件end -->
  69. <!--分隔条start-->
  70. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/spliter.js"></script>
  71. <!--分隔条end-->
  72. <!-- 扩展工具js -->
  73. <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
  74. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  75. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  76. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
  77. <script type="text/javascript" src="/nwyj/scripts/commom/common/common.js"></script>
  78. <!--浮动面板start-->
  79. <script type="text/javascript" src="../scripts/qui/libs/js/popup/floatPanel.js"></script>
  80. <!--浮动面板end-->
  81. <!-- 日期选择框start -->
  82. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
  83. <!-- 日期选择框end -->
  84. <!-- <script type="text/javascript" src="/nwyj/scripts/business/em/alert/notice/manage/manage_add&modify.js"></script> -->
  85. <script type="text/javascript">
  86. $(function(){
  87. //修改表单信息,获取记录
  88. if((window.location.href).indexOf('?')>-1){
  89. var fd_id = (window.location.href).split('?')[1];
  90. getFileList(fd_id);//加载附件调用的方法
  91. $('#fileListLegend').css("display","block");
  92. $('#fileList').css("display","block");
  93. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  94. var params = {
  95. classid : '331',
  96. objectID : fd_id
  97. };
  98. $.ajax({
  99. url : url,
  100. type : 'post',
  101. timeout : 60000,
  102. data : params,
  103. dataType : 'json',
  104. success : function(data){
  105. //alert(JSON.stringify(data));
  106. //判断是否初次发布选矿
  107. if(data.ANSWER_TYPE_331 == '初次发布'){
  108. $("#ANSWER_TYPE_331").attr("checked",true);
  109. }else{
  110. $("#ANSWER_TYPE_331").attr("checked",false);
  111. }
  112. $('#fillForm').ajaxWrite({data:data});
  113. //var name = data.list[0].value;
  114. //alert("name=" + name);
  115. $('#fillForm input[name="classid"]').val('331');
  116. //alert(data.EARLY_WARNING_PROPERTY_365);
  117. // $('#fillForm input[name="EARLY_WARNING_PROPERTY_365"]').val(data.EARLY_WARNING_PROPERTY_365);
  118. //alert(data.CURRENT_EW_LEVEL_365);//获取字段本次预警级别的值
  119. level();//复选框的方法
  120. },
  121. error : function(e){
  122. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  123. }
  124. });
  125. }
  126. });
  127. //返回主页面
  128. function goBack() {
  129. //获取iframe中的元素值
  130. var iframe =parent.document.getElementsByName("frmright")[0];
  131. iframe.src = "/nwyj/page/business/em/response/notice/eme_response.jsp";
  132. }
  133. //修改保存
  134. function saveAlertNotice(){
  135. /* //预警性质
  136. if($("#XY_NATURE_331").attr('checked') == 'checked'){
  137. $("#temp1").val("初次发布");
  138. }else{
  139. $("#temp1").val("非初次发布");
  140. }
  141. //是否预警调整
  142. if($("#XY_ADJUST_TYPE_331").attr('checked') == 'checked'){
  143. $("#temp2").val("是");
  144. }else{
  145. $("#temp2").val("否");
  146. }
  147. */
  148. var myDate=new Date() ;
  149. var formValue = $("#fillForm").serialize();
  150. /* var url = $.pathname() + '/ws/crud/CRUDService/create'; */
  151. var url = $.pathname() + '/ws/crud/CRUDService/update';
  152. $.ajax({
  153. url : url,
  154. type : 'post',
  155. data :formValue,
  156. dataType : 'text',
  157. timeout : 60000,
  158. success : function(data){
  159. goBack() ;
  160. g.loadData();//刷新列表
  161. },
  162. error : function(){
  163. $.messager.alert('操作失败');
  164. }
  165. });
  166. }
  167. $(function(){
  168. //部门id
  169. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  170. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  171. //初始化响应范围下拉框
  172. var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
  173. $.post(deptUrl,{id:parentId,name:''},function(data){
  174. $("#ANSWER_RANGE_331").data("data",data);
  175. $("#ANSWER_RANGE_331").render();
  176. }, "json");
  177. })
  178. </script>
  179. </head>
  180. <body style="height: 545px;">
  181. <div class="box1" id="formContent" style="overflow:auto;height:545px;border: 1px solid #E4E4E4;background: #F8F8F8;">
  182. <!-- 左上角的返回按钮 -->
  183. <div style="height: 50px;background: #F8F8F8;" align="center"><img align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" onclick="goBack();">
  184. <label style="font-size:25px;">响应通知单修改</label></div>
  185. <form id="fillForm" method="post">
  186. <div style="float:left ;color:#0099CC">&nbsp;&nbsp;&nbsp;&nbsp;响应通知单信息</div><div style="float:right"><input value="保存" type="button" onclick="saveAlertNotice()"/>&nbsp;&nbsp;<input value="取消" onclick="goBack()" type="reset" />&nbsp;&nbsp;&nbsp;&nbsp;</div><br/>
  187. <!-- 大红字 -->
  188. <div align="center" style="color:red;font-size:35px">应急响应通知单</div><br/>
  189. <!-- <div style="float:left;display:none;e">&nbsp;&nbsp;&nbsp;&nbsp;发布单位:<input id="PUBLISH_DEPARTMENT_331" name="PUBLISH_DEPARTMENT_331" type="text"/></div><div style="float:right;display: none">签发人:<input id="SIGNER_331" name="SIGNER_331" type="text"/>&nbsp;&nbsp;&nbsp;&nbsp;</div><br/> -->
  190. <input type="hidden" id="temp1" name="ANSWER_TYPE_331" />
  191. <input type="hidden" id="PUBLISH_DEPARTMENT_331" name="PUBLISH_DEPARTMENT_331" />
  192. <table class="tableStyle" >
  193. <tr style="display: none;">
  194. <td colspan="2">
  195. <input type="hidden" id="classid" name="classid" value="331" required="true"/>
  196. <input type="hidden" id="fd_id331" name="FD_OBJECTID331" required="true"/>
  197. </td></tr>
  198. <tr><td width="15%" align="center"><font id="ANSWER_NAME">响应名称</font></td>
  199. <td colspan="2" width="85%"><input id="ANSWER_NAME_331" name="ANSWER_NAME_331" type="text" style="width: 95%;background-color: #FFFFFF;"/></td></tr>
  200. <tr><td align="center"><font id="PUBLISH_TIME">发布时间</font></td>
  201. <td colspan="2"><input id="PUBLISH_TIME_331" name="PUBLISH_TIME_331" type="text" dateFmt="yyyy-MM-dd HH:mm:ss" class="date" style="width: 95%;background-color: #FFFFFF;"/></div></td></tr>
  202. <tr><td align="center"><font id="ANSWER_CODE" name="">响应编号</font></td>
  203. <td colspan="2"><input id="ANSWER_CODE_331" name="ANSWER_CODE_331" type="text" style="width: 95%;background-color: #FFFFFF;"/></td></tr>
  204. <tr><td align="center"><font id="ANSWER_RANGE">响应范围</font></td>
  205. <td colspan="2"><div class="selectTree validate[required]" id="ANSWER_RANGE_331" name="ANSWER_RANGE_331" multiMode="true" noGroup="true" selWidth="790" style="width:95%" class="validate[required,custom[noSpecialCaracters]]"><span class="star">*</span></div></td>
  206. <!-- <td colspan="2"><div class="selectTree" id="ANSWER_RANGE_331" name="ANSWER_RANGE_331" multiMode="true" noGroup="true" style="width:95%" selWidth="790"></div></td> -->
  207. <!-- <td colspan="2"><input id="ANSWER_RANGE_331" name="ANSWER_RANGE_331" type="text" style="width: 95%;background-color: #FFFFFF;"/></td> --></tr>
  208. <tr><td width="15%" align="center"><font>响应性质</font></td>
  209. <td width="40%"><input id="ANSWER_TYPE_331" type = "checkbox"/>初次发布</td>
  210. <td width="45%"><input id="WHETHER_ANSWER_ADJUST_331" name="WHETHER_ANSWER_ADJUST_331" type = "checkbox"/>响应调整<br/>上次响应单号(<input disabled="disabled" id="LAST_ANSWERN_CODE_331" name="LAST_ANSWERN_CODE_331" type="text"/>)</td></tr>
  211. <tr><td align="center" width="15%"><font id="THIS_ANSWER_GRADE">响应级别</font></td>
  212. <td width="40%"><div style="float: left;">本次:</div><div style="float:left;"><select id="THIS_ANSWER_GRADE_331" name="THIS_ANSWER_GRADE_331" data='{"list":[{"value":"红色","key":"红色"},{"value":"橙色","key":"橙色"},{"value":"黄色","key":"黄色"},{"value":"蓝色","key":"蓝色"}]}'/>
  213. </td>
  214. <td width="45%"><div style="float: left;">上次:</div><div style="float:left;"><select disabled="disabled" id="LAST_ANSWER_GRADE_331" name="LAST_ANSWER_GRADE_331" data='{"list":[{"value":"","key":""},{"value":"红色","key":"红色"},{"value":"橙色","key":"橙色"},{"value":"黄色","key":"黄色"},{"value":"蓝色","key":"蓝色"}]}'/>
  215. </div></td></tr>
  216. <tr height="60px"><td align="center"><font id="EVENTOVERVIEW">响应概要</font></td>
  217. <td colspan="2"><textarea id="EVENTOVERVIEW_331" name="EVENTOVERVIEW_331" type="text" resize="false" style="width: 95%;height:50px;background-color: #FFFFFF;"></textarea></td></tr>
  218. <tr height="80px"><td align="center"><font id="PRECAUTION_JOB_REQUIRE">处置措施<br/>工作要求</font></td>
  219. <td colspan="2"><textarea id="PRECAUTION_JOB_REQUIRE_331" name="PRECAUTION_JOB_REQUIRE_331" type="text" resize="false" style="width: 95%;height:70px;background-color: #FFFFFF;"></textarea></td></tr>
  220. <tr height="60px"><td align="center"><font id="REMARKS">备注</font></td>
  221. <td colspan="2"><textarea id="REMARKS_331" name="REMARKS_331" type="text" resize="false" style="width: 95%;height:50px;background-color: #FFFFFF;"></textarea></td></tr>
  222. <tr><td><div id="fileDiv"></div></td></tr>
  223. </table>
  224. </form>
  225. <div id="maingrid"></div>
  226. </div>
  227. </body>
  228. </html>