123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <%@include file="../../../../include.jsp" %>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
- <link href="<%=path%>/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/business/em/response/team/TeamDemandInfo.js"></script>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var rangeUnitsName = "<%=request.getParameter("rangeUnitsName")%>";
- var isWaitDo = "<%=request.getParameter("isWaitDo")%>"; //等于1说明是从代办页面进来的
-
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- //页面初始化
- $(function(){
- $("#TeamAllotInfo").hide();
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
-
- //查看详细信息
- if(fd_id.length>0){
- $("#titleShow").text("查看应急队伍需求");
- /***
- 单位部门树形结构
- */
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- $.post(deptUrl,{id:parentId,name:''},function(data){
- $("#SUPPORT_UNIT_ID_391").data("data",data);
- $("#SUPPORT_UNIT_ID_391").render();
- }, "json");
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '391',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $("#TASK_NAME_391").html(data.TASK_NAME_391);
- $("#SUPPORT_UNIT_ID_391_SHOW").html(data.SUPPORT_UNIT_ID_391_SHOW);//被支援单位
- $("#ARRIVE_TIME_391").html(data.ARRIVE_TIME_391);//到达时间
- $("#WEATHER_CASE_391").html(data.WEATHER_CASE_391);//气候状况
- $("#STAY_GEAR_391").html(data.STAY_GEAR_391);//住宿装备
- $("#EXECUTION_IMPLEMENT_391").html(data.EXECUTION_IMPLEMENT_391);//施工机具
- $("#CONDITION_391").html(data.CONDITION_391);//受灾情况
- $("#REPAIR_TASK_391").html(data.REPAIR_TASK_391);//抢修任务
- $("#GEOLOGY_PHYSIOGNOMY_391").html(data.GEOLOGY_PHYSIOGNOMY_391);//地质地貌
- var rangeUnitsNames = data.RANGE_UNITS_NAME_391;
- if(rangeUnitsNames == '' || rangeUnitsNames == null){
- $("#rangUnitdId").hide();
- }
- $("#RANGE_UNITS_ID_391").html(data.RANGE_UNITS_NAME_391);//调拨单位
- $("#REQUIREMENT_DESCRIPTION_391").html(data.REQUIREMENT_DESCRIPTION_391);//需求描述
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPeopNameById',
- type : 'post',
- //async : false,
- timeout : 15000,
- data:{ USER_ID : data.ENTRY_UNIT_ATTN_391},
- dataType : 'text',
- success : function(result){
- $("#ENTRY_UNIT_ATTN_391").html(result);//申请单位联系人
- },
- error : function(e){
- top.Dialog.alert("系统错误");
- }
- });
- $("#ENTRY_UNIT_ATTN_TEL_391").html(data.ENTRY_UNIT_ATTN_TEL_391);//申请单位联系人电话
-
- if(data.ENTRY_ALTERNATIVE_391 == ""){
- $("#alternativeMan").hide();
- } else {
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPeopNameById',
- type : 'post',
- //async : false,
- timeout : 15000,
- data:{ USER_ID : data.ENTRY_ALTERNATIVE_391},
- dataType : 'text',
- success : function(result){
- $("#ENTRY_ALTERNATIVE_391").html(result);//备选人
- },
- error : function(e){
- top.Dialog.alert("系统错误");
- }
- });
- }
- $("#ENTRY_ALTERNATIVE_TEL_391").html(data.ENTRY_ALTERNATIVE_TEL_391);//备选人联系电话
- /* for(var i in data){
- $('#'+i).html(data[i]);
- } */
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getExplainFrom378',//从id为378的表中获取获取字段EXPLAIN的值
- type : 'post',
- //async : false,
- timeout : 15000,
- data:{ BUSINESS_ID : data.FD_OBJECTID391},
- dataType : 'text',
- success : function(result){
- //alert(result != '')
- if(result != ''){
- $("#EXPLAIN_378").html(result);//回退信息
- $("#EXPLAIN_378").attr("disabled",true);
- }else{
- $("#EXPLAIN").hide();
- }
- },
- error : function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
- $("#USER_ID_391").val(data.USER_ID_391);//填报人ID
- var userId = $("#USER_ID_391").val();
- $.ajax({//通过填报人ID查询填报人NAME,填报人电话,填报部门ID,填报单位ID
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
- data : {USER_ID : userId},
- type : 'post',
- async : false,
- timeout : 1500,
- dataType : 'json',
- success : function(data){
- $("#TYPEIN_PEOPLE").html(data.list[0].REAL_NAME);
- if(data.list[0].MOBILE == "null"){
- $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无联系方式");
- }else{
- $("#TYPEIN_PEOPLE_PHONE_NUM").html(data.list[0].MOBILE);
- }
- $("#bumen").val(data.list[0].ORG_ID);
- $("#danwei").val(data.list[0].COMPANY_ID);
- },error:function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
- var buMen = $("#bumen").val();
- var danWei = $("#danwei").val();
- $.ajax({//通过填报部门ID,填报单位ID查询填报部门NAME,填报单位NAME
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getDeptNameByDeptId',
- data : {DEPT_ID : buMen, CORP_ID : danWei},
- type : 'post',
- async : false,
- timeout : 1500,
- dataType : 'json',
- success : function(data){
- $("#DEPT").html(data.list[0].DEPT_NAME);//部门
- $("#UNITE").html(data.list[1].CORP_NAME);//单位
- },error:function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
- var teamNeedState = data.STATE_391;
- //alert(teamNeedState)
- if(teamNeedState > 134){
- $("#TeamAllotInfo").show();
- }else{
-
- }
-
- if(teamNeedState == 135 || teamNeedState == 136 || teamNeedState == 137){//135-调拨中;136-已调拨;137-结束
- var allotUnitsId = data.RANGE_UNITS_ID_391;
- var allotUnitsName = data.RANGE_UNITS_NAME_391;
- var teamNumMsg = "";
- $.ajax({//查询每个调拨单位已调拨的队伍数量
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getTeamNumEachUnit',
- data : {
- unitsId : allotUnitsId,
- unitsName : allotUnitsName
- },
- type : 'post',
- async : false,
- timeout : 666666,
- dataType : 'json',
- success : function(resData){
- //alert(resData.teamNumMsg)
- teamNumMsg = resData.teamNumMsg;
- },error:function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
-
- for(var i=0;i<teamNumMsg.split(";").length;i++){
-
- var teamCollectStr="<tr>"+
- "<td width='33%' align='center'>"+teamNumMsg.split(";")[i].split(",")[1]+"</td>"+//单位名称
- "<td width='33%' align='center'>"+teamNumMsg.split(";")[i].split(",")[2]+"支</td>"+//队伍支数
- "<td width='33%' align='center'>"+teamNumMsg.split(";")[i].split(",")[3]+"人</td>"+//队伍总人数
- "</tr>";
-
- $("#teamCollect_tr").after(teamCollectStr);
- }
-
- }
- var user_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- var isSeen = data.IS_SEEN_391.split(",")[0];
- if(isSeen == user_ID){
-
- $.ajax({////修改装备需求表的IS_SEEN字段为【下一处理人ID,1,处理人】
- url : $.pathname() + '/ws/sendsms/SendSmsService/updateIs_Seen_1',
- data : { tableName : "ECM_EM_TEAM_WRR" ,
- fdId : fd_id ,
- nextPeopId : user_ID ,
- userId : data.IS_SEEN_391.split(",")[2]
- },
- type : 'post',
- dataType : 'json',
- //async:false,
- success : function (data){
-
- },error : function(e){
- top.Dialog.alert("系统提示信息!");
- }
- });
-
- }
- $(parent.document.body).find("iframe").height($(window.document.body).height());
- });
- }
- $("#teamAllotUnitInfo").bind("click",teamAllotUnitInfo_methed);
- });
- function teamAllotUnitInfo_methed(){
- window.location.href="TeamDemandInfo_page.jsp?fd_id="+fd_id;
- // $("#frmright",window.parent.document).attr("src",$.pathname()+"/page/business/em/response/equipment/EquipAllotInfo_page.jsp?fd_id="+fdid);
- }
- </script>
- <style type="text/css">
- body,div,ul,li,p{
- margin:0;
- padding:0;
- font-size: 14px;
- }
- .d_ground{
- border: 1px solid #cdcaca;
- background: white;
- width:1000px;
- }
- .fieldset{
- border-style:solid;
- border-width:1px;
- border-color:#cdcaca;
- margin:0px 20px 20px 20px;
- width: 935px
- }
- </style>
- </head>
- <body style="height:100%; width: 1000px; margin:0 auto; margin-top:15px" align="center">
- <div class="box1" id="formContent" >
- <div class="titlehead">
- <div class="go_img1" style="position: relative;" >
- <a href="javascript:;"><img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" /></a>
- <!-- <font style="font-weight: bold;font-size: 20px;line-height: 45px;" id="titleShow"></font> -->
- <font class="titleMsg">查看应急队伍需求</font>
- </div>
- </div>
- <!-- <br /> -->
- <!-- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="" id="titleShow" ></font></div> -->
- <!-- <br /> -->
- <form method="post" id="editForm">
- <input name="classid" value="391" type="hidden"/>
- <input type="hidden" name="FD_OBJECTID391" value=""/>
- <input id="FORM_SECTOR_391" name="FORM_SECTOR_391" type="hidden"/>
- <input id="FORM_NAME_391" name="FORM_NAME_391" type="hidden"/>
- <input id="FORM_TIME_391" name="FORM_TIME_391" type="hidden"/>
- <input id="REPORTED_STATE_391" name="REPORTED_STATE_391" value="0" type="hidden"/>
- <input id="AUDIT_STATE_391" name="AUDIT_STATE_391" value="0" type="hidden"/>
- <input id="TROOPS_391" name="TROOPS_391" type="hidden"/>
- <input id="USER_ID_391" name="" type="hidden"/><!-- 隐藏的填报人ID,只做临时保存 ,用于查询页面下方录入人信息 -->
- <input id="bumen" name="" type="hidden"/><!-- 隐藏的填报部门ID,只做临时保存 ,用于查询页面下方录入人信息中部门NAME -->
- <input id="danwei" name="" type="hidden"/><!-- 隐藏的填报单位ID,只做临时保存 ,用于查询页面下方录入人信息中单位NAME -->
- <fieldset class="basic_fieldset_border" id="fileTable" >
- <legend>基本信息:</legend>
- <table class="tableStyle" width="100%">
- <!-- <tr>
- <td colspan="4" align="right"><input value="关闭" type="button" id="close"/> </td>
- </tr> -->
- <tr>
- <td width="15%" align="right" class="class_color">需求名称:</td>
- <td width="85%" colspan="3"><div id="TASK_NAME_391" selWidth="720"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">申请单位:</td>
- <td width="85%" colspan="3"><div id="SUPPORT_UNIT_ID_391_SHOW" selWidth="720"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">需要到达时间:</td>
- <td width="85%" colspan="3"><div style="width: 97%" type="text" id="ARRIVE_TIME_391" ></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">申请单位联系人:</td>
- <td width="30%"><div style="width: 97%;" id="ENTRY_UNIT_ATTN_391"></div></td>
- <td width="20%" align="right" class="class_color">申请单位联系人电话:</td>
- <td width="35%"><div style="width: 97%;" id="ENTRY_UNIT_ATTN_TEL_391"></div></td>
- </tr>
- <tr id="alternativeMan">
- <td width="15%" align="right" class="class_color">备选人:</td>
- <td width="30%"><div style="width: 97%;" id="ENTRY_ALTERNATIVE_391"></div></td>
- <td width="20%" align="right" class="class_color">备选人电话:</td>
- <td width="35%"><div style="width: 97%;" id="ENTRY_ALTERNATIVE_TEL_391"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">受灾情况:</td>
- <td width="85%" colspan="3"><div style='word-wrap:break-word; word-break:break-all;display:block;width:97%;' id="CONDITION_391"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">抢修任务:</td>
- <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>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">地质地貌:</td>
- <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>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">气候状况:</td>
- <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>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">住宿装备:</td>
- <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>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">施工机具:</td>
- <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>
- </tr>
- <tr id="rangUnitdId">
- <td width="15%" align="right" class="class_color">调拨单位:</td>
- <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>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">需求描述:</td>
- <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>
- </tr>
- <tr id="EXPLAIN">
- <td width="15%" align="right" class="class_color">回退信息:</td>
- <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>
- </tr>
- <tr id="TeamAllotInfo">
- <td width="15%" align="right" class="class_color">调拨详情:</td>
- <td width="85%" colspan="3"><font id="teamAllotUnitInfo" color="blue"><a href="javascript:;">点击查看各单位调拨详情</a></font></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <fieldset class= "fileTable_border" id="teamCollect" >
- <legend>队伍汇总:</legend>
- <table class="tableStyle" width="100%" >
- <tr id="teamCollect_tr">
- <td width="33%" align="center">单位名称</td>
- <td width="33%" align="center">队伍支数</td>
- <td width="33%" align="center">队伍总人数</td>
- </tr>
- </table>
- </fieldset>
- <fieldset class= "fileTable_border" id="fileTable" >
- <legend>队伍信息:</legend>
- <div class="padding_right5"><div id="maingrid"></div></div>
- </fieldset>
- <fieldset class="fileTable_border" >
- <legend>录入人信息:</legend>
- <table width="960px" class="tableStyle" align="center" id="fillForm">
- <tr>
- <td width="114px" align="right" class="class_color">单位:</td>
- <td width="280px"><div style="width:97%" name="" id="UNITE" /></td>
- <td width="114px" align="right" class="class_color">部门:</td>
- <td width="280px"><div name="" id="DEPT" /></td>
- </tr>
- <tr>
- <td width="114px" align="right" class="class_color">录入人:</td>
- <td width="280px"><div name="" id="TYPEIN_PEOPLE" /></td>
- <td width="114px" align="right" class="class_color">录入人联系方式:</td>
- <td width="280px"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </body>
|