49534a16a663c976a832b6503d61956cb6d65e05.svn-base 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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" >
  11. $(function(){
  12. //修改表单信息,获取记录
  13. if((window.location.href).indexOf('?')>-1){
  14. var fd_id = (window.location.href).split('?')[1];
  15. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  16. var params = {
  17. classid : '299',
  18. objectID : fd_id
  19. };
  20. $('#fileDiv').newAsyncFileUpload("",fd_id,0);
  21. $.ajax({
  22. url : url,
  23. type : 'post',
  24. timeout : 60000,
  25. data : params,
  26. dataType : 'json',
  27. success : function(data){
  28. //取完成情况的字段,控制计划提醒时间是否需要显示 IMPLEMENT_STAT
  29. var isComplete = data.IMPLEMENT_STAT_299;
  30. if(isComplete=="1"){
  31. $("#table").hide();
  32. }else{
  33. $("#table").show();
  34. }
  35. var userID = data.PLAN_MAKER_299;
  36. for(var i in data){
  37. $('#'+i).html(data[i]);
  38. }
  39. //录入人信息
  40. getUserInfo(userID)
  41. },
  42. error : function(e){
  43. top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
  44. }
  45. });
  46. }
  47. function getUserInfo(userID){
  48. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  49. var params = {
  50. classid : '880',
  51. objectID : userID
  52. };
  53. $.ajax({
  54. url : url,
  55. type : 'post',
  56. timeout : 60000,
  57. data : params,
  58. dataType : 'json',
  59. success : function(data){
  60. var DRILL_LINKMAN =data.REAL_NAME_880;
  61. var MOBILE = data.MOBILE_880; //手机
  62. var COMPANY_ID = data.COMPANY_ID_880_SHOW;//所属单位
  63. var ORG_ID = data.ORG_ID_880_SHOW;//所属部门
  64. var userName = data.REAL_NAME_880;
  65. $("#DRILL_LINKMAN").html(DRILL_LINKMAN);
  66. $("#MOBILE").html(MOBILE);
  67. $("#COMPANY_ID").html(COMPANY_ID);
  68. $("#ORG_ID").html(ORG_ID);
  69. },
  70. error : function(e){
  71. top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
  72. }
  73. });
  74. }
  75. });
  76. //修改计划提前提醒的时间
  77. function noticeTimeServer(){
  78. var fd_id = (window.location.href).split('?')[1];
  79. var noticeTime = $("#1111").val();
  80. top.Dialog.confirm("确定要提前"+noticeTime+"天提醒吗'?|确定", function() {
  81. // 确定
  82. $.post($.pathname() +"/ws/DrillCount/DrillCountService/noticeTimeServer/", {
  83. //当前单位id
  84. days : noticeTime,
  85. fd_id : fd_id,
  86. }, function(result) {
  87. if (result.Msg.sucsess == true) {
  88. top.Dialog.alert("演练计划提前提醒配置成功!");
  89. } else {
  90. top.Dialog.alert("上报失败!");
  91. }
  92. }, "json");
  93. });
  94. }
  95. </script>
  96. <style type="text/css">
  97. .title_class {
  98. font-size: 22px;
  99. color: blue;
  100. }
  101. .tool_class {
  102. display: inline-block;
  103. float: right;
  104. }
  105. .db_class {
  106. margin: 0 auto;
  107. }
  108. </style>
  109. </head>
  110. <body>
  111. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  112. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" title="返回" align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="window.history.back()"></img></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;">应急演练信息</font></div>
  113. <br />
  114. <!-- <div style="float:right">
  115. <table id="table" align="right">
  116. <tr>
  117. <td align="right"><span class="star" align="right"></span>计划提前提醒时间:</td>
  118. <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>
  119. <td><input value="确定" type="button" onclick="noticeTimeServer()"/></td>
  120. </tr>
  121. </table>
  122. </div> -->
  123. <br />
  124. <fieldset style="border-color:#999999;" >
  125. <legend>基本信息:</legend>
  126. <table class="tableStyle" width="100%">
  127. <tr>
  128. <td width="15%" align="right">名称:</td>
  129. <td width="35%"><div id="DRILL_NAME_299" name="DRILL_NAME_299" /></td>
  130. <td width="15%" align="right">是否计划:</td>
  131. <td width="35%"><div id="IS_PLAN_299_SHOW" name="IS_PLAN_299_SHOW" /></td>
  132. </tr>
  133. <tr>
  134. <td align="right">主办单位:</td>
  135. <td><div id="SPONSOR_COMP_299_SHOW" name="SPONSOR_COMP_299_SHOW" ></div></td>
  136. <td align="right">承办单位:</td>
  137. <td><div id="UPDERTAKE_COMP_299_SHOW" name="UPDERTAKE_COMP_299_SHOW" ></div></td>
  138. </tr>
  139. <tr>
  140. <td align="right">实施状态:</td>
  141. <td><div id="IMPLEMENT_STAT_299_SHOW" name="IMPLEMENT_STAT_299_SHOW" ></div></td>
  142. <td align="right">演练类别:</td>
  143. <td><div id="DRILL_TYPE_299_SHOW" name="DRILL_TYPE_299_SHOW" ></div></td>
  144. </tr>
  145. <tr>
  146. <td align="right">细化类别:</td>
  147. <td><div id="DRILL_REFINE_CATEGORY_299_SHOW" name="DRILL_REFINE_CATEGORY_299_SHOW" ></div></td>
  148. <td align="right">演练形式:</td>
  149. <td><div id="DRILL_FORM_299_SHOW" name="DRILL_FORM_299_SHOW" ></div></td>
  150. </tr>
  151. <tr>
  152. <td align="right">填报时间:</td>
  153. <td><div id="REPORT_DATE_299" name="REPORT_DATE_299"/></td>
  154. <td align="right">计划时间:</td>
  155. <td><div id="PLAN_TIME_299" name="PLAN_TIME_299"/></td>
  156. </tr>
  157. <tr>
  158. <td align="right">演练联系人:</td>
  159. <td><div id="DRILL_LINKMAN_299" name="DRILL_LINKMAN_299"/></td>
  160. <!-- <td align="right">计划提前提醒时间:</td>
  161. <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>&nbsp;&nbsp;<input value="确定" type="button" onclick="noticeTimeServer()"/></td> -->
  162. <td align="right">联系人手机:</td>
  163. <td><div id="LINKMENCALL_299" name="LINKMENCALL_299"/></td>
  164. </tr>
  165. </table>
  166. </fieldset>
  167. <fieldset style="border-color:#999999;" >
  168. <legend>完成情况:</legend>
  169. <table class="tableStyle" width="100%">
  170. <tr>
  171. <td width="15%" align="right">领导(人数):</td>
  172. <td width="35%"><div id="DRILL_LEADER_299" name="DRILL_LEADER_299"/></td>
  173. <td width="15%" align="right">安全监察人员(人数):</td>
  174. <td width="35%"><div id="DRILL_CONTROLER_299" name="DRILL_CONTROLER_299"/></td>
  175. </tr>
  176. <tr>
  177. <td align="right">生产管理人员(人数):</td>
  178. <td><div id="DRILL_PRODUCTION_MANAGEMENT_299" name="DRILL_PRODUCTION_MANAGEMENT_299"/></td>
  179. <td align="right">应急抢修人员(人数):</td>
  180. <td><div id="DRILL_EMERGENCY_REPAIR_299" name="DRILL_EMERGENCY_REPAIR_299"/></td>
  181. </tr>
  182. <tr>
  183. <td align="right">投入(万元):</td>
  184. <td><div id="DRILL_INPUT_299" name="DRILL_INPUT_299"/></td>
  185. <td align="right">完成时间:</td>
  186. <td><div id="DOWN_TIME_299" name="DOWN_TIME_299" /></td>
  187. </tr>
  188. <tr>
  189. <td align="right">演练简况:</td>
  190. <td colspan="3"><div id="DRILL_BRIEF_299" name="DRILL_BRIEF_299"></div></td>
  191. </tr>
  192. </table>
  193. </fieldset>
  194. <!-- <table style="width: 100%;" align="center" border="0">
  195. <tr><td colspan="3"><div id="maingrid"></div></td></tr>
  196. </table> -->
  197. <fieldset id="file" style="border-color:#999999;" >
  198. <legend>附件信息:</legend>
  199. <table class="tableStyle" width="100%">
  200. <tr>
  201. <td width="15%" align="right">相关资料:</td>
  202. <!-- <td colspan="3"><div id="fileDiv" /></td> -->
  203. <td width="85%"><div id="fileDiv" name="fileDiv"></div></td>
  204. </tr>
  205. </table>
  206. </fieldset>
  207. <fieldset id="manInfo" style="border-color:#999999;" >
  208. <legend>录入人信息:</legend>
  209. <table class="tableStyle" width="100%">
  210. <tr>
  211. <td align="right" width="15%">单位:</td>
  212. <td width="35%"><div id="COMPANY_ID" name="COMPANY_ID_880" readOnly="true"/></td>
  213. <td align="right" width="15%">部门:</td>
  214. <td width="35%"><div id="ORG_ID" name="ORG_ID_880" readOnly="true"/></td>
  215. </tr>
  216. <tr>
  217. <td align="right">录入人:</td>
  218. <td><div id="DRILL_LINKMAN" name="DRILL_LINKMAN_299_SHOW" readOnly="true"/></td>
  219. <td align="right">录入人联系方式:</td>
  220. <td><div id="MOBILE" name="MOBILE_880" readOnly="true"/></td>
  221. </tr>
  222. <tr>
  223. <td align="right">录入时间:</td>
  224. <td><div id="UPDATEDATE_299" name="UPDATEDATE_299" readOnly="true"/></td>
  225. <td align="right"></td>
  226. <td></td>
  227. </tr>
  228. </table>
  229. </fieldset>
  230. </div>
  231. </body>
  232. </html>