d7d85a1f0d33fafaac19b66eb39ab6bfcf206af7.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE HTML>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=9" />
  7. <title>应急响应值班安排表填报</title>
  8. <!--引入QUI框架js -->
  9. <%@include file="../../../../include.jsp" %>
  10. <link href="<%=path%>/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css"/>
  11. <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
  12. <script>
  13. var isWaitDo = "<%=request.getParameter("isWaitDo")%>"; //等于1说明是从代办页面进来的
  14. var g;
  15. var dutyData={"list":[{"value":"0","key":"发电车"},{"value":"1","key":"发电机"},{"value":"2","key":"移动餐车"},{"value":"3","key":"指挥(通信)车"}]};
  16. var departNode;
  17. var demandid;
  18. var newrowid=200;
  19. var fdid = "";
  20. var user_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  21. function initComplete(){
  22. $("#back").hover(function(){
  23. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  24. },function(){
  25. $(this).attr("src","/nwyj/images/temp/back.png");
  26. });
  27. if((window.location.href).indexOf('?')>-1){
  28. demandid = (window.location.href).split('?')[1];//获取记录id
  29. var idLen = demandid.length;
  30. if(idLen>30){
  31. demandid = demandid.split("=")[1];
  32. }
  33. var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
  34. var params = {
  35. classid : '382',
  36. objectID : demandid
  37. };
  38. $.request.query(url,params,function(data){
  39. // alert(JSON.stringify(data));
  40. fdid = data.FD_OBJECTID_382;
  41. $("#equipAllotInfo_tr").hide();
  42. if(data.AUDIT_STATE_382 == 55){//调拨中
  43. $("#equipAllotInfo_tr").show();
  44. }
  45. for(var i in data){
  46. $('#'+i).html(data[i]);
  47. }
  48. var resqDesc = data.REQUIREMENT_DESCRIPTION_382;
  49. if(resqDesc == "null"){
  50. resqDesc = "";
  51. }
  52. $("#REQUIREMENT_DESCRIPTION_382").html(resqDesc);//需求描述
  53. $("#TYPEIN_PEOPLE").html(data.INFORMANT_382);//录入人
  54. var informantId = data.INFORMANT_ID_382;//录入人ID
  55. // alert(informantId);
  56. // var url = $.pathname() + '/ws/updateEquipState/EquipAllotUpdateEquipState/getInformantMsgByInformantId/';
  57. $.ajax({
  58. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
  59. data : {USER_ID : informantId},
  60. type : 'post',
  61. dataType : 'json',
  62. async : false,
  63. timeout : 1500,
  64. success : function(result){
  65. if(result.list[0].MOBILE == "null"){
  66. $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无联系方式");//录入人电话
  67. }else{
  68. $("#TYPEIN_PEOPLE_PHONE_NUM").html(result.list[0].MOBILE);//录入人电话
  69. }
  70. $("#bumen").val(result.list[0].ORG_ID);
  71. $("#danwei").val(result.list[0].COMPANY_ID);
  72. },error : function(e){
  73. }
  74. });
  75. var buMen = $("#bumen").val();
  76. var danWei = $("#danwei").val();
  77. $.ajax({//通过填报人ID查询填报人NAME,填报人电话,填报部门ID,填报单位ID
  78. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getDeptNameByDeptId',
  79. data : {DEPT_ID : buMen, CORP_ID : danWei},
  80. type : 'post',
  81. async : false,
  82. timeout : 1500,
  83. dataType : 'json',
  84. success : function(data1){
  85. $("#DEPT").html(data1.list[0].DEPT_NAME);//部门
  86. $("#UNITE").html(data1.list[1].CORP_NAME);//单位
  87. },error:function(e){
  88. top.Dialog.alert("系统错误");
  89. return;
  90. }
  91. });
  92. $.ajax({//回退信息
  93. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getExplainFrom378_equip',//从id为378的表中获取获取字段EXPLAIN的值
  94. type : 'post',
  95. //async : false,
  96. timeout : 15000,
  97. data:{ BUSINESS_ID : data.FD_OBJECTID_382},
  98. dataType : 'text',
  99. success : function(result){
  100. // alert(result)
  101. if(result != ''){
  102. $("#EXPLAIN_378").html(result);//回退信息
  103. $("#EXPLAIN_378").attr("disabled",true);
  104. }else{
  105. $("#EXPLAIN").hide();
  106. }
  107. },
  108. error : function(e){
  109. top.Dialog.alert("系统错误");
  110. return;
  111. }
  112. });
  113. var isSeen = data.IS_SEEN_382.split(",")[0];
  114. if(isSeen == user_ID){
  115. $.ajax({////修改装备需求表的IS_SEEN字段为【下一处理人ID,1】
  116. url : $.pathname() + '/ws/sendsms/SendSmsService/updateIs_Seen_1',
  117. data : { tableName : "ECM_EM_EQUIPMENT_DEMAND" , fdId : demandid , nextPeopId : user_ID , userId : data.IS_SEEN_382.split(",")[2]},
  118. type : 'post',
  119. dataType : 'json',
  120. //async:false,
  121. success : function (data){
  122. },error : function(e){
  123. top.Dialog.alert("系统提示信息!");
  124. }
  125. });
  126. }
  127. $(parent.document.body).find("iframe").height($(window.document.body).height());//高度
  128. });
  129. initGrid(demandid);
  130. }
  131. $("#equipAllotInfo").bind("click",equipAllotInfo_methed);
  132. }
  133. function initGrid(demandid){
  134. g = $("#maingrid").quiGrid({
  135. columns: [
  136. {name:'fd_objectid',hide:true},
  137. {name:'demand_id',hide:true},
  138. { display: '装备名称', name: 'equipment_name', align: 'center', width: 200,editor: { type: 'select',data:dutyData,selWidth:155 },render:function (item){
  139. for (var i = 0; i < dutyData["list"].length; i++)
  140. {
  141. if (dutyData["list"][i]['value'] == item.equipment_name)
  142. return dutyData["list"][i]['key'];
  143. }
  144. }},
  145. { display: '装备容量(kVA)', name: 'equipment_model', align: 'center', width: 200,editor: { type: 'text' }},
  146. { display: '装备数量', name: 'equipment_number', align: 'center', width: 200,editor: { type: 'text' }}
  147. ],
  148. url: $.pathname() + '/ws/equip/RespEquipmentService/getDetailById/',
  149. params :{"demandid":demandid},
  150. rownumbers:true,
  151. pageSize:10,
  152. dataAction:"server",
  153. usePager: false,
  154. percentWidthMode : true,
  155. height: '280px', width:'100%',enabledEdit: false,clickToEdit: false
  156. });
  157. }
  158. function goback(){
  159. if(isWaitDo == 1){
  160. $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/waitdo/waitDo.html");
  161. }else{
  162. $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/response/equipment/Eqallocateallot.jsp");
  163. }
  164. //window.location.href="Eqallocateallot.jsp?pagenumber=";
  165. }
  166. function equipAllotInfo_methed(){
  167. window.location.href="EquipAllotInfo_page.jsp?fd_id="+fdid;
  168. // $("#frmright",window.parent.document).attr("src",$.pathname()+"/page/business/em/response/equipment/EquipAllotInfo_page.jsp?fd_id="+fdid);
  169. }
  170. </script>
  171. <style type="text/css">
  172. body,div,ul,li,p{
  173. margin:0;
  174. padding:0;
  175. font-size: 14px;
  176. }
  177. .d_ground{
  178. border: 1px solid #cdcaca;
  179. background: white;
  180. width:1000px;
  181. }
  182. .fieldset{
  183. border-style:solid;
  184. border-width:1px;
  185. border-color:#cdcaca;
  186. margin:0px 20px 20px 20px;
  187. width: 935px
  188. }
  189. </style>
  190. </head>
  191. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center">
  192. <div class="box1" id="formContent" >
  193. <div class="titlehead">
  194. <div class="go_img1" style="position: relative;">
  195. <a href="javascript:;"><img id="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" title="返回" onclick="javascript:goback();"></img></a>
  196. <!-- <font style="font-weight: bold;font-size: 20px;line-height: 45px;"></font> -->
  197. <font class="titleMsg">查看应急装备需求</font>
  198. </div>
  199. </div>
  200. <!-- <br /> -->
  201. <!-- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="titleShow" >查看应急装备需求</font></div> -->
  202. <!-- <br /> -->
  203. <form id="editForm">
  204. <input id="bumen" name="" type="hidden"/><!-- 隐藏的填报部门ID,只做临时保存 ,用于查询页面下方录入人信息中部门NAME -->
  205. <input id="danwei" name="" type="hidden"/><!-- 隐藏的填报单位ID,只做临时保存 ,用于查询页面下方录入人信息中单位NAME -->
  206. <fieldset class="basic_fieldset_border" id="fileTable" >
  207. <legend>基本信息:</legend>
  208. <table style="width:100%" class="tableStyle">
  209. <tr>
  210. <td width="15%" align="right" >需求名称:</td>
  211. <td width="85%" align="left" colspan="7"><div id="TASK_NAME_382" ></div></td>
  212. </tr>
  213. <tr>
  214. <td width="15%" align="right" >申请单位:</td>
  215. <td width="35%" align="left"><div id="RECIPIENT_DEPARTMENT_382_SHOW" ></div></td>
  216. <td width="15%" align="right" >申请使用时间:</td>
  217. <td width="35%" align="left"><div id="APPLY_TO_USE_TIME_382" ></div></td>
  218. </tr>
  219. <tr>
  220. <td width="15%" align="right" >申请单位联系人:</td>
  221. <td width="35%" align="left"><div id="RECIPIENT_NAME_382"></div></td>
  222. <td width="15%" align="right" >申请联系人电话:</td>
  223. <td width="35%" align="left"><div id="RECIPIENT_PHONE_382" ></div></td>
  224. </tr>
  225. <tr>
  226. <td width="15%" align="right" >申请事由:</td>
  227. <td width="85%" colspan="5" ><div id="USE_REASON_382" style='word-wrap:break-word; word-break:break-all;display:block;width:97%;'></div></td>
  228. </tr>
  229. <tr>
  230. <td width="15%" align="right" >需求描述:</td>
  231. <td width="85%" colspan="5" ><div id="REQUIREMENT_DESCRIPTION_382" style='word-wrap:break-word; word-break:break-all;display:block;width:97%;'></div></td>
  232. </tr>
  233. <tr id="EXPLAIN">
  234. <td width="15%" align="right" class="class_color">回退信息:</td>
  235. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="EXPLAIN_378" readonly="readonly"></div></td>
  236. </tr>
  237. <tr id="equipAllotInfo_tr">
  238. <td width="15%" align="right" class="class_color">调拨详情:</td>
  239. <td width="85%" colspan="3"><div readonly="readonly"><font id="equipAllotInfo" color="blue"><a href='javascript:;'>点击这里查看详情</a></font></div></td>
  240. </tr>
  241. </table>
  242. </fieldset>
  243. </form>
  244. <fieldset id="fileTable" class="fileTable_border">
  245. <legend>装备信息:</legend>
  246. <div class="padding_right5"><div id="maingrid"></div></div>
  247. </fieldset>
  248. <fieldset class="fileTable_border" >
  249. <legend>录入人信息:</legend>
  250. <table width="960px" class="tableStyle" align="center" id="fillForm">
  251. <tr>
  252. <td width="114px" align="right" >单位:</td>
  253. <td width="280px"><div style="width:97%" name="" id="UNITE" /></td>
  254. <td width="114px" align="right" >部门:</td>
  255. <td width="280px"><div name="" id="DEPT" /></td>
  256. </tr>
  257. <tr>
  258. <td width="114px" align="right" >录入人:</td>
  259. <td width="280px"><div name="" id="TYPEIN_PEOPLE" /></td>
  260. <td width="114px" align="right" >录入人联系方式:</td>
  261. <td width="280px"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
  262. </tr>
  263. </table>
  264. </fieldset>
  265. </div>
  266. </body>
  267. </html>