fc0dbe7f1c2994c25fd963349ac08715f36d0c7f.svn-base 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. <!--引入QUI框架js -->
  8. <%@include file="../../../../include.jsp" %>
  9. <script type="text/javascript" src="<%=path%>/scripts/setiframeheight.js" ></script>
  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. <%
  13. String objectId = request.getParameter("fd_id") == null ? "" : request.getParameter("fd_id");
  14. %>
  15. <script>
  16. var objectId = '<%=objectId%>';
  17. //父部门id
  18. $(function(){
  19. $("#back").hover(function(){
  20. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  21. },function(){
  22. $(this).attr("src","/nwyj/images/temp/back.png");
  23. });
  24. if(objectId!=''){
  25. var params = {classid : '385',objectID : objectId};
  26. $.ajax({
  27. url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
  28. type : 'post',
  29. timeout : 15000,
  30. data : params,
  31. dataType : 'json',
  32. success : function(data){
  33. for(var i in data){
  34. $('#'+i).html(data[i]);
  35. }
  36. //装备类型
  37. var equipType = data.EQUIPMENT_TYPE_385;
  38. if(equipType == 265){
  39. equipType="发电车";
  40. }else if(equipType == 266){
  41. equipType="发电机";
  42. }else if(equipType == 270){
  43. equipType="移动餐车";
  44. }else if(equipType == 269){
  45. equipType="指挥(通信)车";
  46. }
  47. $("#EQUIPMENT_TYPE_385").html(equipType);
  48. //装备名称
  49. var equipName = data.EQUIPMENT_NAME_385;
  50. var equipType1 = data.EQUIPMENT_TYPE_385;
  51. $.ajax({//改变需求状态为结束——57
  52. url : $.pathname() + '/ws/updateEquipState/EquipAllotUpdateEquipState/getEquipRealName',
  53. data :{ EQUIPMENT_NAME : equipName,EQUIPMENT_TYPE : equipType1},
  54. type : 'post',
  55. dataType : 'text',
  56. //timeout : 1500,
  57. //async : false,
  58. success : function(result){
  59. $("#EQUIPMENT_NAME_385").html(result);
  60. },
  61. error : function(e){
  62. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  63. }
  64. });
  65. //当前状态
  66. $("#STATUS_385").html(data.STATUS_385_SHOW);
  67. var writerId = data.WRITER_385;//填报人id
  68. $.ajax({
  69. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
  70. data : {USER_ID : writerId},
  71. type : 'post',
  72. dataType : 'json',
  73. async : false,
  74. timeout : 1500,
  75. success : function(result){
  76. $("#TYPEIN_PEOPLE").html(result.list[0].REAL_NAME);//录入人
  77. $("#TYPEIN_PEOPLE_PHONE_NUM").html(result.list[0].MOBILE);//录入人电话
  78. $("#bumen").val(result.list[0].ORG_ID);
  79. $("#danwei").val(result.list[0].COMPANY_ID);
  80. },error : function(e){
  81. }
  82. });
  83. var buMen = $("#bumen").val();
  84. var danWei = $("#danwei").val();
  85. $.ajax({//通过填报人ID查询填报人NAME,填报人电话,填报部门ID,填报单位ID
  86. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getDeptNameByDeptId',
  87. data : {DEPT_ID : buMen, CORP_ID : danWei},
  88. type : 'post',
  89. async : false,
  90. timeout : 1500,
  91. dataType : 'json',
  92. success : function(data){
  93. $("#DEPT").html(data.list[0].DEPT_NAME);//部门
  94. $("#UNITE").html(data.list[1].CORP_NAME);//单位
  95. },error:function(e){
  96. top.Dialog.alert("系统错误");
  97. return;
  98. }
  99. });
  100. },
  101. error : function(e){
  102. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  103. }
  104. });
  105. }
  106. });
  107. function goback(){
  108. window.location.href="Eqallocatedemand.jsp?pagenumber="+1;
  109. }
  110. </script>
  111. <style type="text/css">
  112. body,div,ul,li,p{
  113. margin:0;
  114. padding:0;
  115. font-size: 14px;
  116. }
  117. .d_ground{
  118. border: 1px solid #cdcaca;
  119. background: white;
  120. width:1000px;
  121. }
  122. .fieldset{
  123. border-style:solid;
  124. border-width:1px;
  125. border-color:#cdcaca;
  126. margin:0px 20px 20px 20px;
  127. width: 935px
  128. }
  129. </style>
  130. </head>
  131. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center">
  132. <div class="box1" id="formContent" >
  133. <div class="titlehead">
  134. <div class="go_img" style="position: relative;" style="left:1%">
  135. <a href="javascript:;"><img id="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" title="返回" onclick="javascript:goback();" /></a>
  136. <!-- <font id="title" style="font-weight: bold;font-size: 20px;line-height: 45px;" ></font> -->
  137. <font class="titleMsg">查看应急装备调拨</font>
  138. </div>
  139. </div>
  140. <!-- <br /> -->
  141. <!-- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="titleShow" >查看应急装备调拨</font></div> -->
  142. <!-- <br /> -->
  143. <form id="ALLOCATEForm">
  144. <input id="bumen" name="" type="hidden"/><!-- 隐藏的填报部门ID,只做临时保存 ,用于查询页面下方录入人信息中部门NAME -->
  145. <input id="danwei" name="" type="hidden"/><!-- 隐藏的填报单位ID,只做临时保存 ,用于查询页面下方录入人信息中单位NAME -->
  146. <input type="hidden" name="classid" value="385"/>
  147. <input type="hidden" name="FD_OBJECTID385" value=""/>
  148. <fieldset class="basic_fieldset_border" id="fileTable" >
  149. <legend><h4>出发</h4></legend>
  150. <table class="tableStyle" formMode="line">
  151. <tr>
  152. <td width="15%" align="right" >需求名称:</td>
  153. <td width="30%"><div id="TASK_NAME_385_SHOW"></div></td>
  154. <td width="15%" align="right" >单位:</td>
  155. <td width="35%" align="left"><div id="DEPT_385_SHOW" selWidth="488" class=" validate[required]"></div></td>
  156. </tr>
  157. <tr>
  158. <td width="15%" align="right" >装备类型:</td>
  159. <td width="35%" align="left"><div id="EQUIPMENT_TYPE_385"></div></td>
  160. <td width="15%" align="right" >出发时间:</td>
  161. <td width="35%" align="left"><div id="DEPARTURE_TIME_385"></div></td>
  162. </tr>
  163. <tr>
  164. <td width="15%" align="right" >装备名称:</td>
  165. <td width="35%" align="left"><div id="EQUIPMENT_NAME_385"></div></td>
  166. <td width="15%" align="right" >出发地点:</td>
  167. <td width="35%" align="left"><div id="DEPARTURE_LOCATION_385"></div></td>
  168. </tr>
  169. <tr>
  170. <td width="15%" align="right" >当前状态:</td>
  171. <td width="35%" align="left"><div id="STATUS_385"></div></td>
  172. <td width="15%" align="right" >目的地:</td>
  173. <td width="35%" align="left"><div id="DESTINATION_385"></div></td>
  174. </tr>
  175. <tr>
  176. <td width="15%" align="right" >预计到达时间:</td>
  177. <td width="35%" align="left"><div id="EXPECTED_ARRIVAL_TIME_385"></div></td>
  178. <td width="15%" align="right" >当前地点:</td>
  179. <td width="35%" align="left"><div id="CURRENT_LOCATION_385"></div></td>
  180. </tr>
  181. <tr>
  182. <td width="15%" align="right" >最后更新时间:</td>
  183. <td width="35%" align="left"><div id="LAST_UPDATEDATE_385"></div></td>
  184. <td width="15%" align="right" style="display:none">数量:</td>
  185. <td width="35%" align="left" style="display:none"><div id="EQUIPMENT_NUMBER_385"></div></td>
  186. </tr>
  187. </table>
  188. </fieldset>
  189. <fieldset class="basic_fieldset_border" id="fileTable" >
  190. <legend><h4>到达</h4></legend>
  191. <table class="tableStyle" formMode="line" id="arrivedMsg">
  192. <tr>
  193. <td width="15%" align="right" >到达时间:</td>
  194. <td width="35%" align="left"><div id="ARRIVAL_TIME_385"></div></td>
  195. <td width="15%" align="right" >接收时间:</td>
  196. <td width="35%" align="left"><div id="RECEIVING_TIME_385"></div></td>
  197. </tr>
  198. <tr>
  199. <td width="15%" align="right" >接收人:</td>
  200. <td width="35%" align="left"><div id="RECIPIENT_385"></div></td>
  201. <td width="15%" align="right" >接收人电话:</td>
  202. <td width="35%" align="left"><div id="RECEIVER_PHONE_385"></div></td>
  203. </tr>
  204. <tr>
  205. <td width="15%" align="right" >装备联系人:</td>
  206. <td width="35%" align="left"><div id="EQUIPMENT_CONTACT_385"></div></td>
  207. <td width="15%" align="right" >装备联系人电话:</td>
  208. <td width="35%" align="left"><div id="EQUIPMENT_CONTACT_PHONE_385"></div></td>
  209. </tr>
  210. </table>
  211. </fieldset>
  212. <fieldset class="basic_fieldset_border" id="fileTable" >
  213. <legend><h4>返回</h4></legend>
  214. <table class="tableStyle" formMode="line" id="getBackMsg">
  215. <tr>
  216. <td width="15%" align="right" >返回时出发时间:</td>
  217. <td width="35%" align="left"><div id="RETURN_DEPARTURE_TIME_385"></div></td>
  218. <td width="15%" align="right" >返回时到达时间:</td>
  219. <td width="35%" align="left"><div id="RETURN_ARRIVAL_TIME_385"></div></td>
  220. </tr>
  221. </table>
  222. </fieldset>
  223. </form>
  224. <!-- <fieldset style="border-color:#999999;" > -->
  225. <fieldset class="basic_fieldset_border" id="fileTable" >
  226. <legend>录入人信息:</legend>
  227. <!-- <table width="960px" class="tableStyle" align="center" id="fillForm"> -->
  228. <table class="tableStyle" formMode="line" id="getBackMsg">
  229. <tr>
  230. <td width="15%" align="right" >单位:</td>
  231. <td width="35%"><div style="width:97%" name="" id="UNITE" /></td>
  232. <td width="15%" align="right" >部门:</td>
  233. <td width="35%"><div name="" id="DEPT" /></td>
  234. </tr>
  235. <tr>
  236. <td width="15%" align="right" >录入人:</td>
  237. <td width="35%"><div name="" id="TYPEIN_PEOPLE" /></td>
  238. <td width="15%" align="right" >录入人联系方式:</td>
  239. <td width="35%"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
  240. </tr>
  241. </table>
  242. </fieldset>
  243. </div>
  244. </body>