2c46360e90e18529bee872f4114eb48768b703bf.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <%@page language="java" 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. <!--框架必需start-->
  8. <%@include file="../../../include.jsp" %>
  9. <!--框架必需end-->
  10. <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
  11. <link href="/nwyj/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css" />
  12. <style type="text/css">
  13. body,div,ul,li,p{
  14. margin:0;
  15. padding:0;
  16. font-size: 14px;
  17. }
  18. .d_ground{
  19. border: 1px solid #cdcaca;
  20. background: white;
  21. width:1000px;
  22. }
  23. </style>
  24. <script type="text/javascript" >
  25. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  26. //问题记录
  27. var is_edit = false;
  28. var dutyData={"list" : [{"value" : "0","key" : "是"},
  29. {"value" : "1","key" : "否"}]};
  30. var g;
  31. $(function(){
  32. //修改表单信息,获取记录
  33. if((window.location.href).indexOf('?')>-1){
  34. var fd_id = (window.location.href).split('?')[1];
  35. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  36. var params = {
  37. classid : '299',
  38. objectID : fd_id
  39. };
  40. $('#fileDiv').newAsyncFileUpload("",fd_id,0);
  41. $.ajax({
  42. url : url,
  43. type : 'post',
  44. timeout : 60000,
  45. data : params,
  46. dataType : 'json',
  47. success : function(data){
  48. if(data.IMPLEMENT_STAT_299=="0"&&data.UNITS_299==deptId){
  49. $("#daiwancheng").show();
  50. }
  51. var category = data.DRILL_REFINE_CATEGORY_299.split(",");
  52. var drillcategory = "";
  53. for(var n=0;n<category.length;n++){
  54. if(category[n]=="10"){
  55. drillcategory += "突发事件总体预案,";
  56. }
  57. if(category[n]=="11"){
  58. drillcategory += "人生事故应急预案,";
  59. }
  60. if(category[n]=="12"){
  61. drillcategory += "突发性群体事件应急预案,";
  62. }
  63. if(category[n]=="13"){
  64. drillcategory += "新闻危机公关处理,";
  65. }
  66. if(category[n]=="14"){
  67. drillcategory += "突发公共卫生事件,";
  68. }
  69. if(category[n]=="15"){
  70. drillcategory += "生产场所防恐怖袭击,";
  71. }
  72. if(category[n]=="16"){
  73. drillcategory += "本部办公大楼消防,";
  74. }
  75. if(category[n]=="17"){
  76. drillcategory += "涉外突发事件,";
  77. }
  78. if(category[n]=="18"){
  79. drillcategory += "设备事故应急预案,";
  80. }
  81. if(category[n]=="19"){
  82. drillcategory += "防风防汛应急预案,";
  83. }
  84. if(category[n]=="20"){
  85. drillcategory += "电网防地震,";
  86. }
  87. if(category[n]=="21"){
  88. drillcategory += "重大环境污染事故,";
  89. }
  90. if(category[n]=="22"){
  91. drillcategory += "雨雪冰冻灾害,";
  92. }
  93. if(category[n]=="23"){
  94. drillcategory += "网络与信息安全,";
  95. }
  96. if(category[n]=="24"){
  97. drillcategory += "电网事故,";
  98. }
  99. if(category[n]=="25"){
  100. drillcategory += "电力供应,";
  101. }
  102. if(category[n]=="26"){
  103. drillcategory += "客户服务事件,";
  104. }
  105. if(category[n]=="27"){
  106. drillcategory += "其他,";
  107. }
  108. }
  109. drillcategory = drillcategory.substring(0, drillcategory.length-1)
  110. $("#DRILL_REFINE_CATEGORY_299_SHOW1").html(drillcategory);
  111. //取完成情况的字段,控制计划提醒时间是否需要显示 IMPLEMENT_STAT
  112. var isComplete = data.IMPLEMENT_STAT_299;
  113. if(isComplete=="1"){
  114. $("#table").hide();
  115. }else{
  116. $("#table").show();
  117. }
  118. var userID = data.PLAN_MAKER_299;
  119. for(var i in data){
  120. $('#'+i).html(data[i]);
  121. }
  122. var noticetime = data.NOTICE_TIME_299;
  123. $("#1111").attr("selectedValue",noticetime);
  124. $("#1111").render();
  125. //录入人信息
  126. getUserInfo(userID);
  127. initGrid(data.FD_OBJECTID299);
  128. },
  129. error : function(e){
  130. top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
  131. }
  132. });
  133. }
  134. function getUserInfo(userID){
  135. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  136. var params = {
  137. classid : '880',
  138. objectID : userID
  139. };
  140. $.ajax({
  141. url : url,
  142. type : 'post',
  143. timeout : 60000,
  144. data : params,
  145. dataType : 'json',
  146. success : function(data){
  147. var DRILL_LINKMAN =data.REAL_NAME_880;
  148. var MOBILE = data.MOBILE_880; //手机
  149. var COMPANY_ID = data.COMPANY_ID_880_SHOW;//所属单位
  150. var ORG_ID = data.ORG_ID_880_SHOW;//所属部门
  151. getDeptName(data.ORG_ID_880);
  152. $("#DRILL_LINKMAN").html(DRILL_LINKMAN);
  153. $("#MOBILE").html(MOBILE);
  154. $("#COMPANY_ID").html(COMPANY_ID);
  155. $("#ORG_ID").html(ORG_ID);
  156. },
  157. error : function(e){
  158. top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
  159. }
  160. });
  161. }
  162. function getDeptName(id){
  163. $.ajax({
  164. url : $.pathname()+ "/ws/DrillCount/DrillCountService/getDeptNameInfo",
  165. type : 'post',
  166. timeout : 60000,
  167. data : {id:id},
  168. dataType : 'text',
  169. success : function(data){
  170. $("#COMPANY_ID").html(data);
  171. }
  172. });
  173. }
  174. $("#goback a img").hover(function(){
  175. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  176. },function(){
  177. $(this).attr("src","/nwyj/images/temp/back.png");
  178. });
  179. });
  180. //修改计划提前提醒的时间
  181. function noticeTimeServer(){
  182. var fd_id = (window.location.href).split('?')[1];
  183. var noticeTime = $("#1111").val();
  184. top.Dialog.confirm("确定要提前"+noticeTime+"天提醒吗'?|确定", function() {
  185. // 确定
  186. $.post($.pathname() +"/ws/DrillCount/DrillCountService/noticeTimeServer/", {
  187. //当前单位id
  188. days : noticeTime,
  189. fd_id : fd_id,
  190. }, function(result) {
  191. if (result.Msg.sucsess == true) {
  192. top.Dialog.alert("演练计划提前提醒配置成功!");
  193. } else {
  194. top.Dialog.alert("上报失败!");
  195. }
  196. }, "json");
  197. });
  198. }
  199. function jumpUpdate(){
  200. var fd_id = (window.location.href).split('?')[1];
  201. window.location.href="emc-drill-update.jsp?"+fd_id+"?1";
  202. }
  203. function goBack() {
  204. window.location.href="emc-drill.jsp";
  205. }
  206. function initGrid(dutyid1){
  207. var hurl= $.pathname() + '/ws/DrillCount/DrillCountService/queryDrillRelevanceId';
  208. var loadParms={taskid:dutyid1};
  209. g = $("#maingrid").quiGrid({
  210. columns: [
  211. { display: '发现问题', name: 'DISCOVER_PROBLEMS',showTitle:true,isSort : false,align: 'center', width: "16%"},
  212. { display: '整改措施', name: 'RECTIFICATION_MEASURES',showTitle:true,isSort : false,align: 'center', width: "16%"},
  213. { display: '责任单位和</br>部门(负责人)', name: 'CHARGE_MAN',showTitle:true,isSort : false,align: 'center', width: "12%"},
  214. { display: '监督单位和</br>部门(跟踪人)', name: 'TRACKING_MAN',showTitle:true,isSort : false,align: 'center', width: "12%"},
  215. { display: '计划完成时间', name: 'PLAN_TIME',isSort : false,showTitle:true,align: 'center', width: "12%"},
  216. { display: '完成情况', name: 'COMPLETE_STATUS',showTitle:true,isSort : false,align: 'center', width: "12%"},
  217. { display: '实际完成时间', name: 'DOWN_TIME',showTitle:true,isSort : false,align: 'center', width: "12%"} ,
  218. { display: '是否完结', name: 'IS_END',showTitle:true,isSort : false,align: 'center', width: "8%" ,render:function (item){
  219. for (var i = 0; i < dutyData["list"].length; i++){
  220. if (dutyData["list"][i]['value'] == item.IS_END){
  221. return dutyData["list"][i]['key'];
  222. }
  223. }
  224. return item.IS_END;
  225. }
  226. }
  227. ],
  228. url:hurl,
  229. rownumbers : false,
  230. params:loadParms,
  231. usePager : false,
  232. fixedCellHeight : false,
  233. onAfterShowData:function(rowdata){
  234. setHight();
  235. }
  236. });
  237. }
  238. </script>
  239. </head>
  240. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center" >
  241. <div class="d_ground">
  242. <div style="position: relative;" class="titlehead">
  243. <div class="go_img" id="goback">
  244. <a href="javascript:;">
  245. <!-- <img id="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="goBack()"></img> --><!--window.history.back() -->
  246. </a>
  247. </div>
  248. <font class="titleMsg">应急演练信息</font>
  249. </div>
  250. <!-- <br /> -->
  251. <!-- <div style="float:right">
  252. <table id="table" align="right">
  253. <tr>
  254. <td align="right"><span class="star" align="right"></span>计划提前提醒时间:</td>
  255. <td><select id="1111" name="1111" selWidth="250" onchange="getSelectValue()" data='{"list":[{"value":"30","key":"提前一个月提醒"},{"value":"15","key":"提前半个月提醒"},{"value":"7","key":"提前一周提醒"},{"value":"3","key":"提前三天提醒"}]}'></select></td>
  256. <td><input value="确定" type="button" onclick="noticeTimeServer()"/></td>
  257. </tr>
  258. </table>
  259. </div> -->
  260. <div class="button_jl">
  261. <input type="button" value="待完成" id="daiwancheng" onclick="jumpUpdate()" style="display: none; "/>
  262. </div>
  263. <br />
  264. <fieldset class="fieldset" >
  265. <legend>基本信息:</legend>
  266. <table class="tableStyle" align="center">
  267. <tr>
  268. <td width="150px" align="right">名称:</td>
  269. <td width="250px"><div id="DRILL_NAME_299" name="DRILL_NAME_299" /></td>
  270. <td width="150px" align="right">是否计划:</td>
  271. <td width="250px"><div id="IS_PLAN_299_SHOW" name="IS_PLAN_299_SHOW" /></td>
  272. </tr>
  273. <tr>
  274. <td align="right">主办单位:</td>
  275. <td><div id="SPONSOR_COMP_299_SHOW" name="SPONSOR_COMP_299_SHOW" ></div></td>
  276. <td align="right">承办单位:</td>
  277. <td><div id="UPDERTAKE_COMP_299_SHOW" name="UPDERTAKE_COMP_299_SHOW" ></div></td>
  278. </tr>
  279. <tr>
  280. <td align="right">实施状态:</td>
  281. <td><div id="IMPLEMENT_STAT_299_SHOW" name="IMPLEMENT_STAT_299_SHOW" ></div></td>
  282. <td align="right">演练类别:</td>
  283. <td><div id="DRILL_TYPE_299_SHOW" name="DRILL_TYPE_299_SHOW" ></div></td>
  284. </tr>
  285. <tr>
  286. <td align="right">细化类别:</td>
  287. <td><div id="DRILL_REFINE_CATEGORY_299_SHOW1" name="DRILL_REFINE_CATEGORY_299_SHOW" ></div></td>
  288. <td align="right">演练形式:</td>
  289. <td><div id="DRILL_FORM_299_SHOW" name="DRILL_FORM_299_SHOW" ></div></td>
  290. </tr>
  291. <tr>
  292. <td align="right">填报时间:</td>
  293. <td><div id="REPORT_DATE_299" name="REPORT_DATE_299"/></td>
  294. <td align="right">计划时间:</td>
  295. <td><div id="PLAN_TIME_299" name="PLAN_TIME_299"/></td>
  296. </tr>
  297. <tr>
  298. <td align="right">演练联系人:</td>
  299. <td><div id="DRILL_LINKMAN_299" name="DRILL_LINKMAN_299"/></td>
  300. <td align="right">计划提前提醒时间:</td>
  301. <td><select id="1111" name="1111" selWidth="150" onchange="getSelectValue()" data='{"list":[{"value":"30","key":"提前一个月提醒"},{"value":"15","key":"提前半个月提醒"},{"value":"7","key":"提前一周提醒"},{"value":"3","key":"提前三天提醒"}]}'></select>&nbsp;<input value="确定" type="button" onclick="noticeTimeServer()"/></td>
  302. </tr>
  303. <tr>
  304. <td align="right">联系人手机:</td>
  305. <td colspan="3"><div id="LINKMENCALL_299" name="LINKMENCALL_299"/></td>
  306. </tr>
  307. </table>
  308. </fieldset>
  309. <fieldset class="fieldset" >
  310. <legend>完成情况:</legend>
  311. <table class="tableStyle" align="center">
  312. <tr>
  313. <td width="150px" align="right">领导(人数):</td>
  314. <td width="250px"><div id="DRILL_LEADER_299" name="DRILL_LEADER_299"/></td>
  315. <td width="150px" align="right">安全监察人员(人数):</td>
  316. <td width="250px"><div id="DRILL_CONTROLER_299" name="DRILL_CONTROLER_299"/></td>
  317. </tr>
  318. <tr>
  319. <td align="right">生产管理人员(人数):</td>
  320. <td><div id="DRILL_PRODUCTION_MANAGEMENT_299" name="DRILL_PRODUCTION_MANAGEMENT_299"/></td>
  321. <td align="right">应急抢修人员(人数):</td>
  322. <td><div id="DRILL_EMERGENCY_REPAIR_299" name="DRILL_EMERGENCY_REPAIR_299"/></td>
  323. </tr>
  324. <tr>
  325. <td align="right">投入(万元):</td>
  326. <td><div id="DRILL_INPUT_299" name="DRILL_INPUT_299"/></td>
  327. <td align="right">完成时间:</td>
  328. <td><div id="DOWN_TIME_299" name="DOWN_TIME_299" /></td>
  329. </tr>
  330. <tr>
  331. <td align="right">演练简况:</td>
  332. <td colspan="3"><div id="DRILL_BRIEF_299" name="DRILL_BRIEF_299"></div></td>
  333. </tr>
  334. </table>
  335. </fieldset>
  336. <!-- <table style="width: 100%;" align="center" border="0">
  337. <tr><td colspan="3"><div id="maingrid"></div></td></tr>
  338. </table> -->
  339. <fieldset class="fieldset">
  340. <legend >问题记录:</legend>
  341. <div class="padding_right5">
  342. <div id="maingrid"></div>
  343. </div>
  344. </fieldset>
  345. <fieldset id="file" class="fieldset">
  346. <legend>附件信息:</legend>
  347. <table class="tableStyle" align="center">
  348. <tr>
  349. <td width="150px" align="right">相关资料:</td>
  350. <!-- <td colspan="3"><div id="fileDiv" /></td> -->
  351. <td width="650px"><div id="fileDiv" name="fileDiv"></div></td>
  352. </tr>
  353. </table>
  354. </fieldset>
  355. <fieldset id="manInfo" class="fieldset">
  356. <legend>填写人员信息:</legend>
  357. <table class="tableStyle" align="center">
  358. <tr>
  359. <td align="right" width="150px">单位:</td>
  360. <td width="250px"><div id="COMPANY_ID" name="COMPANY_ID_880" readOnly="true"/></td>
  361. <td align="right" width="150px">部门:</td>
  362. <td width="250px"><div id="ORG_ID" name="ORG_ID_880" readOnly="true"/></td>
  363. </tr>
  364. <tr>
  365. <td align="right">填写人员:</td>
  366. <td><div id="DRILL_LINKMAN" name="DRILL_LINKMAN_299_SHOW" readOnly="true"/></td>
  367. <td align="right">填写人员联系方式:</td>
  368. <td><div id="MOBILE" name="MOBILE_880" readOnly="true"/></td>
  369. </tr>
  370. <tr>
  371. <td align="right">录入时间:</td>
  372. <td colspan="3"><div id="UPDATEDATE_299" name="UPDATEDATE_299" readOnly="true"/></td>
  373. </tr>
  374. </table>
  375. </fieldset>
  376. </div>
  377. </body>
  378. </html>