d4c71c0964ba75c1f5530e22b6b5770bb215025a.svn-base 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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. <%@include file="../../../../include.jsp" %>
  8. <!--引用资源文件,JS CSS-->
  9. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  10. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  11. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  16. <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
  17. <link href="<%=path%>/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css"/>
  18. <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
  19. <script type="text/javascript" src="<%=path%>/scripts/business/em/response/team/TeamDemandInfo.js"></script>
  20. <script type="text/javascript">
  21. var fd_id = "<%=request.getParameter("fd_id")%>";
  22. var rangeUnitsName = "<%=request.getParameter("rangeUnitsName")%>";
  23. var isWaitDo = "<%=request.getParameter("isWaitDo")%>"; //等于1说明是从代办页面进来的
  24. //取得用户真实名字
  25. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  26. //部门id
  27. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  28. //部门名称
  29. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  30. //父部门id
  31. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  32. //页面初始化
  33. $(function(){
  34. $("#TeamAllotInfo").hide();
  35. $("#back").hover(function(){
  36. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  37. },function(){
  38. $(this).attr("src","/nwyj/images/temp/back.png");
  39. });
  40. //查看详细信息
  41. if(fd_id.length>0){
  42. $("#titleShow").text("查看应急队伍需求");
  43. /***
  44. 单位部门树形结构
  45. */
  46. var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
  47. $.post(deptUrl,{id:parentId,name:''},function(data){
  48. $("#SUPPORT_UNIT_ID_391").data("data",data);
  49. $("#SUPPORT_UNIT_ID_391").render();
  50. }, "json");
  51. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  52. var params = {
  53. classid : '391',
  54. objectID : fd_id
  55. };
  56. $.request.query(url,params,function(data){
  57. $("#TASK_NAME_391").html(data.TASK_NAME_391);
  58. $("#SUPPORT_UNIT_ID_391_SHOW").html(data.SUPPORT_UNIT_ID_391_SHOW);//被支援单位
  59. $("#ARRIVE_TIME_391").html(data.ARRIVE_TIME_391);//到达时间
  60. $("#WEATHER_CASE_391").html(data.WEATHER_CASE_391);//气候状况
  61. $("#STAY_GEAR_391").html(data.STAY_GEAR_391);//住宿装备
  62. $("#EXECUTION_IMPLEMENT_391").html(data.EXECUTION_IMPLEMENT_391);//施工机具
  63. $("#CONDITION_391").html(data.CONDITION_391);//受灾情况
  64. $("#REPAIR_TASK_391").html(data.REPAIR_TASK_391);//抢修任务
  65. $("#GEOLOGY_PHYSIOGNOMY_391").html(data.GEOLOGY_PHYSIOGNOMY_391);//地质地貌
  66. var rangeUnitsNames = data.RANGE_UNITS_NAME_391;
  67. if(rangeUnitsNames == '' || rangeUnitsNames == null){
  68. $("#rangUnitdId").hide();
  69. }
  70. $("#RANGE_UNITS_ID_391").html(data.RANGE_UNITS_NAME_391);//调拨单位
  71. $("#REQUIREMENT_DESCRIPTION_391").html(data.REQUIREMENT_DESCRIPTION_391);//需求描述
  72. $.ajax({
  73. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPeopNameById',
  74. type : 'post',
  75. //async : false,
  76. timeout : 15000,
  77. data:{ USER_ID : data.ENTRY_UNIT_ATTN_391},
  78. dataType : 'text',
  79. success : function(result){
  80. $("#ENTRY_UNIT_ATTN_391").html(result);//申请单位联系人
  81. },
  82. error : function(e){
  83. top.Dialog.alert("系统错误");
  84. }
  85. });
  86. $("#ENTRY_UNIT_ATTN_TEL_391").html(data.ENTRY_UNIT_ATTN_TEL_391);//申请单位联系人电话
  87. if(data.ENTRY_ALTERNATIVE_391 == ""){
  88. $("#alternativeMan").hide();
  89. } else {
  90. $.ajax({
  91. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPeopNameById',
  92. type : 'post',
  93. //async : false,
  94. timeout : 15000,
  95. data:{ USER_ID : data.ENTRY_ALTERNATIVE_391},
  96. dataType : 'text',
  97. success : function(result){
  98. $("#ENTRY_ALTERNATIVE_391").html(result);//备选人
  99. },
  100. error : function(e){
  101. top.Dialog.alert("系统错误");
  102. }
  103. });
  104. }
  105. $("#ENTRY_ALTERNATIVE_TEL_391").html(data.ENTRY_ALTERNATIVE_TEL_391);//备选人联系电话
  106. /* for(var i in data){
  107. $('#'+i).html(data[i]);
  108. } */
  109. $.ajax({
  110. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getExplainFrom378',//从id为378的表中获取获取字段EXPLAIN的值
  111. type : 'post',
  112. //async : false,
  113. timeout : 15000,
  114. data:{ BUSINESS_ID : data.FD_OBJECTID391},
  115. dataType : 'text',
  116. success : function(result){
  117. //alert(result != '')
  118. if(result != ''){
  119. $("#EXPLAIN_378").html(result);//回退信息
  120. $("#EXPLAIN_378").attr("disabled",true);
  121. }else{
  122. $("#EXPLAIN").hide();
  123. }
  124. },
  125. error : function(e){
  126. top.Dialog.alert("系统错误");
  127. return;
  128. }
  129. });
  130. $("#USER_ID_391").val(data.USER_ID_391);//填报人ID
  131. var userId = $("#USER_ID_391").val();
  132. $.ajax({//通过填报人ID查询填报人NAME,填报人电话,填报部门ID,填报单位ID
  133. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
  134. data : {USER_ID : userId},
  135. type : 'post',
  136. async : false,
  137. timeout : 1500,
  138. dataType : 'json',
  139. success : function(data){
  140. $("#TYPEIN_PEOPLE").html(data.list[0].REAL_NAME);
  141. if(data.list[0].MOBILE == "null"){
  142. $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无联系方式");
  143. }else{
  144. $("#TYPEIN_PEOPLE_PHONE_NUM").html(data.list[0].MOBILE);
  145. }
  146. $("#bumen").val(data.list[0].ORG_ID);
  147. $("#danwei").val(data.list[0].COMPANY_ID);
  148. },error:function(e){
  149. top.Dialog.alert("系统错误");
  150. return;
  151. }
  152. });
  153. var buMen = $("#bumen").val();
  154. var danWei = $("#danwei").val();
  155. $.ajax({//通过填报部门ID,填报单位ID查询填报部门NAME,填报单位NAME
  156. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getDeptNameByDeptId',
  157. data : {DEPT_ID : buMen, CORP_ID : danWei},
  158. type : 'post',
  159. async : false,
  160. timeout : 1500,
  161. dataType : 'json',
  162. success : function(data){
  163. $("#DEPT").html(data.list[0].DEPT_NAME);//部门
  164. $("#UNITE").html(data.list[1].CORP_NAME);//单位
  165. },error:function(e){
  166. top.Dialog.alert("系统错误");
  167. return;
  168. }
  169. });
  170. var teamNeedState = data.STATE_391;
  171. //alert(teamNeedState)
  172. if(teamNeedState > 134){
  173. $("#TeamAllotInfo").show();
  174. }else{
  175. }
  176. if(teamNeedState == 135 || teamNeedState == 136 || teamNeedState == 137){//135-调拨中;136-已调拨;137-结束
  177. var allotUnitsId = data.RANGE_UNITS_ID_391;
  178. var allotUnitsName = data.RANGE_UNITS_NAME_391;
  179. var teamNumMsg = "";
  180. $.ajax({//查询每个调拨单位已调拨的队伍数量
  181. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getTeamNumEachUnit',
  182. data : {
  183. unitsId : allotUnitsId,
  184. unitsName : allotUnitsName
  185. },
  186. type : 'post',
  187. async : false,
  188. timeout : 666666,
  189. dataType : 'json',
  190. success : function(resData){
  191. //alert(resData.teamNumMsg)
  192. teamNumMsg = resData.teamNumMsg;
  193. },error:function(e){
  194. top.Dialog.alert("系统错误");
  195. return;
  196. }
  197. });
  198. for(var i=0;i<teamNumMsg.split(";").length;i++){
  199. var teamCollectStr="<tr>"+
  200. "<td width='33%' align='center'>"+teamNumMsg.split(";")[i].split(",")[1]+"</td>"+//单位名称
  201. "<td width='33%' align='center'>"+teamNumMsg.split(";")[i].split(",")[2]+"支</td>"+//队伍支数
  202. "<td width='33%' align='center'>"+teamNumMsg.split(";")[i].split(",")[3]+"人</td>"+//队伍总人数
  203. "</tr>";
  204. $("#teamCollect_tr").after(teamCollectStr);
  205. }
  206. }
  207. var user_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  208. var isSeen = data.IS_SEEN_391.split(",")[0];
  209. if(isSeen == user_ID){
  210. $.ajax({////修改装备需求表的IS_SEEN字段为【下一处理人ID,1,处理人】
  211. url : $.pathname() + '/ws/sendsms/SendSmsService/updateIs_Seen_1',
  212. data : { tableName : "ECM_EM_TEAM_WRR" ,
  213. fdId : fd_id ,
  214. nextPeopId : user_ID ,
  215. userId : data.IS_SEEN_391.split(",")[2]
  216. },
  217. type : 'post',
  218. dataType : 'json',
  219. //async:false,
  220. success : function (data){
  221. },error : function(e){
  222. top.Dialog.alert("系统提示信息!");
  223. }
  224. });
  225. }
  226. $(parent.document.body).find("iframe").height($(window.document.body).height());
  227. });
  228. }
  229. $("#teamAllotUnitInfo").bind("click",teamAllotUnitInfo_methed);
  230. });
  231. function teamAllotUnitInfo_methed(){
  232. window.location.href="TeamDemandInfo_page.jsp?fd_id="+fd_id;
  233. // $("#frmright",window.parent.document).attr("src",$.pathname()+"/page/business/em/response/equipment/EquipAllotInfo_page.jsp?fd_id="+fdid);
  234. }
  235. </script>
  236. <style type="text/css">
  237. body,div,ul,li,p{
  238. margin:0;
  239. padding:0;
  240. font-size: 14px;
  241. }
  242. .d_ground{
  243. border: 1px solid #cdcaca;
  244. background: white;
  245. width:1000px;
  246. }
  247. .fieldset{
  248. border-style:solid;
  249. border-width:1px;
  250. border-color:#cdcaca;
  251. margin:0px 20px 20px 20px;
  252. width: 935px
  253. }
  254. </style>
  255. </head>
  256. <body style="height:100%; width: 1000px; margin:0 auto; margin-top:15px" align="center">
  257. <div class="box1" id="formContent" >
  258. <div class="titlehead">
  259. <div class="go_img1" style="position: relative;" >
  260. <a href="javascript:;"><img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" /></a>
  261. <!-- <font style="font-weight: bold;font-size: 20px;line-height: 45px;" id="titleShow"></font> -->
  262. <font class="titleMsg">查看应急队伍需求</font>
  263. </div>
  264. </div>
  265. <!-- <br /> -->
  266. <!-- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="" id="titleShow" ></font></div> -->
  267. <!-- <br /> -->
  268. <form method="post" id="editForm">
  269. <input name="classid" value="391" type="hidden"/>
  270. <input type="hidden" name="FD_OBJECTID391" value=""/>
  271. <input id="FORM_SECTOR_391" name="FORM_SECTOR_391" type="hidden"/>
  272. <input id="FORM_NAME_391" name="FORM_NAME_391" type="hidden"/>
  273. <input id="FORM_TIME_391" name="FORM_TIME_391" type="hidden"/>
  274. <input id="REPORTED_STATE_391" name="REPORTED_STATE_391" value="0" type="hidden"/>
  275. <input id="AUDIT_STATE_391" name="AUDIT_STATE_391" value="0" type="hidden"/>
  276. <input id="TROOPS_391" name="TROOPS_391" type="hidden"/>
  277. <input id="USER_ID_391" name="" type="hidden"/><!-- 隐藏的填报人ID,只做临时保存 ,用于查询页面下方录入人信息 -->
  278. <input id="bumen" name="" type="hidden"/><!-- 隐藏的填报部门ID,只做临时保存 ,用于查询页面下方录入人信息中部门NAME -->
  279. <input id="danwei" name="" type="hidden"/><!-- 隐藏的填报单位ID,只做临时保存 ,用于查询页面下方录入人信息中单位NAME -->
  280. <fieldset class="basic_fieldset_border" id="fileTable" >
  281. <legend>基本信息:</legend>
  282. <table class="tableStyle" width="100%">
  283. <!-- <tr>
  284. <td colspan="4" align="right"><input value="关闭" type="button" id="close"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  285. </tr> -->
  286. <tr>
  287. <td width="15%" align="right" class="class_color">需求名称:</td>
  288. <td width="85%" colspan="3"><div id="TASK_NAME_391" selWidth="720"></div></td>
  289. </tr>
  290. <tr>
  291. <td width="15%" align="right" class="class_color">申请单位:</td>
  292. <td width="85%" colspan="3"><div id="SUPPORT_UNIT_ID_391_SHOW" selWidth="720"></div></td>
  293. </tr>
  294. <tr>
  295. <td width="15%" align="right" class="class_color">需要到达时间:</td>
  296. <td width="85%" colspan="3"><div style="width: 97%" type="text" id="ARRIVE_TIME_391" ></div></td>
  297. </tr>
  298. <tr>
  299. <td width="15%" align="right" class="class_color">申请单位联系人:</td>
  300. <td width="30%"><div style="width: 97%;" id="ENTRY_UNIT_ATTN_391"></div></td>
  301. <td width="20%" align="right" class="class_color">申请单位联系人电话:</td>
  302. <td width="35%"><div style="width: 97%;" id="ENTRY_UNIT_ATTN_TEL_391"></div></td>
  303. </tr>
  304. <tr id="alternativeMan">
  305. <td width="15%" align="right" class="class_color">备选人:</td>
  306. <td width="30%"><div style="width: 97%;" id="ENTRY_ALTERNATIVE_391"></div></td>
  307. <td width="20%" align="right" class="class_color">备选人电话:</td>
  308. <td width="35%"><div style="width: 97%;" id="ENTRY_ALTERNATIVE_TEL_391"></div></td>
  309. </tr>
  310. <tr>
  311. <td width="15%" align="right" class="class_color">受灾情况:</td>
  312. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="CONDITION_391"></div></td>
  313. </tr>
  314. <tr>
  315. <td width="15%" align="right" class="class_color">抢修任务:</td>
  316. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="REPAIR_TASK_391"></div></td>
  317. </tr>
  318. <tr>
  319. <td width="15%" align="right" class="class_color">地质地貌:</td>
  320. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="GEOLOGY_PHYSIOGNOMY_391"></div></td>
  321. </tr>
  322. <tr>
  323. <td width="15%" align="right" class="class_color">气候状况:</td>
  324. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="WEATHER_CASE_391"></div></td>
  325. </tr>
  326. <tr>
  327. <td width="15%" align="right" class="class_color">住宿装备:</td>
  328. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="STAY_GEAR_391"></div></td>
  329. </tr>
  330. <tr>
  331. <td width="15%" align="right" class="class_color">施工机具:</td>
  332. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="EXECUTION_IMPLEMENT_391"></div></td>
  333. </tr>
  334. <tr id="rangUnitdId">
  335. <td width="15%" align="right" class="class_color">调拨单位:</td>
  336. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="RANGE_UNITS_ID_391" readonly="readonly"></div></td>
  337. </tr>
  338. <tr>
  339. <td width="15%" align="right" class="class_color">需求描述:</td>
  340. <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="REQUIREMENT_DESCRIPTION_391" readonly="readonly"></div></td>
  341. </tr>
  342. <tr id="EXPLAIN">
  343. <td width="15%" align="right" class="class_color">回退信息:</td>
  344. <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>
  345. </tr>
  346. <tr id="TeamAllotInfo">
  347. <td width="15%" align="right" class="class_color">调拨详情:</td>
  348. <td width="85%" colspan="3"><font id="teamAllotUnitInfo" color="blue"><a href="javascript:;">点击查看各单位调拨详情</a></font></td>
  349. </tr>
  350. </table>
  351. </fieldset>
  352. </form>
  353. <fieldset class= "fileTable_border" id="teamCollect" >
  354. <legend>队伍汇总:</legend>
  355. <table class="tableStyle" width="100%" >
  356. <tr id="teamCollect_tr">
  357. <td width="33%" align="center">单位名称</td>
  358. <td width="33%" align="center">队伍支数</td>
  359. <td width="33%" align="center">队伍总人数</td>
  360. </tr>
  361. </table>
  362. </fieldset>
  363. <fieldset class= "fileTable_border" id="fileTable" >
  364. <legend>队伍信息:</legend>
  365. <div class="padding_right5"><div id="maingrid"></div></div>
  366. </fieldset>
  367. <fieldset class="fileTable_border" >
  368. <legend>录入人信息:</legend>
  369. <table width="960px" class="tableStyle" align="center" id="fillForm">
  370. <tr>
  371. <td width="114px" align="right" class="class_color">单位:</td>
  372. <td width="280px"><div style="width:97%" name="" id="UNITE" /></td>
  373. <td width="114px" align="right" class="class_color">部门:</td>
  374. <td width="280px"><div name="" id="DEPT" /></td>
  375. </tr>
  376. <tr>
  377. <td width="114px" align="right" class="class_color">录入人:</td>
  378. <td width="280px"><div name="" id="TYPEIN_PEOPLE" /></td>
  379. <td width="114px" align="right" class="class_color">录入人联系方式:</td>
  380. <td width="280px"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
  381. </tr>
  382. </table>
  383. </fieldset>
  384. </div>
  385. </body>