123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <%@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>
- <!--引入QUI框架js -->
- <%@include file="../../../../include.jsp" %>
- <script type="text/javascript" src="<%=path%>/scripts/setiframeheight.js" ></script>
- <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>
- <%
- String objectId = request.getParameter("fd_id") == null ? "" : request.getParameter("fd_id");
- %>
- <script>
- var objectId = '<%=objectId%>';
- //父部门id
- $(function(){
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
-
- if(objectId!=''){
- var params = {classid : '385',objectID : objectId};
- $.ajax({
- url : $.pathname() + '/ws/crud/CRUDService/getDataById/',
- type : 'post',
- timeout : 15000,
- data : params,
- dataType : 'json',
- success : function(data){
- for(var i in data){
- $('#'+i).html(data[i]);
- }
- //装备类型
- var equipType = data.EQUIPMENT_TYPE_385;
- if(equipType == 265){
- equipType="发电车";
- }else if(equipType == 266){
- equipType="发电机";
- }else if(equipType == 270){
- equipType="移动餐车";
- }else if(equipType == 269){
- equipType="指挥(通信)车";
- }
- $("#EQUIPMENT_TYPE_385").html(equipType);
- //装备名称
- var equipName = data.EQUIPMENT_NAME_385;
- var equipType1 = data.EQUIPMENT_TYPE_385;
- $.ajax({//改变需求状态为结束——57
- url : $.pathname() + '/ws/updateEquipState/EquipAllotUpdateEquipState/getEquipRealName',
- data :{ EQUIPMENT_NAME : equipName,EQUIPMENT_TYPE : equipType1},
- type : 'post',
- dataType : 'text',
- //timeout : 1500,
- //async : false,
- success : function(result){
- $("#EQUIPMENT_NAME_385").html(result);
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- //当前状态
- $("#STATUS_385").html(data.STATUS_385_SHOW);
-
- var writerId = data.WRITER_385;//填报人id
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
- data : {USER_ID : writerId},
- type : 'post',
- dataType : 'json',
- async : false,
- timeout : 1500,
- success : function(result){
- $("#TYPEIN_PEOPLE").html(result.list[0].REAL_NAME);//录入人
- $("#TYPEIN_PEOPLE_PHONE_NUM").html(result.list[0].MOBILE);//录入人电话
- $("#bumen").val(result.list[0].ORG_ID);
- $("#danwei").val(result.list[0].COMPANY_ID);
- },error : function(e){
-
- }
- });
- var buMen = $("#bumen").val();
- var danWei = $("#danwei").val();
- $.ajax({//通过填报人ID查询填报人NAME,填报人电话,填报部门ID,填报单位ID
- 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;
- }
- });
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- });
- function goback(){
- window.location.href="Eqallocatedemand.jsp?pagenumber="+1;
- }
- </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="width: 1000px; margin:0 auto; margin-top:15px" align="center">
- <div class="box1" id="formContent" >
- <div class="titlehead">
- <div class="go_img" style="position: relative;" style="left:1%">
- <a href="javascript:;"><img id="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" title="返回" onclick="javascript:goback();" /></a>
- <!-- <font id="title" style="font-weight: bold;font-size: 20px;line-height: 45px;" ></font> -->
- <font class="titleMsg">查看应急装备调拨</font>
- </div>
- </div>
- <!-- <br /> -->
- <!-- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="titleShow" >查看应急装备调拨</font></div> -->
- <!-- <br /> -->
- <form id="ALLOCATEForm">
- <input id="bumen" name="" type="hidden"/><!-- 隐藏的填报部门ID,只做临时保存 ,用于查询页面下方录入人信息中部门NAME -->
- <input id="danwei" name="" type="hidden"/><!-- 隐藏的填报单位ID,只做临时保存 ,用于查询页面下方录入人信息中单位NAME -->
- <input type="hidden" name="classid" value="385"/>
- <input type="hidden" name="FD_OBJECTID385" value=""/>
- <fieldset class="basic_fieldset_border" id="fileTable" >
- <legend><h4>出发</h4></legend>
- <table class="tableStyle" formMode="line">
- <tr>
- <td width="15%" align="right" >需求名称:</td>
- <td width="30%"><div id="TASK_NAME_385_SHOW"></div></td>
- <td width="15%" align="right" >单位:</td>
- <td width="35%" align="left"><div id="DEPT_385_SHOW" selWidth="488" class=" validate[required]"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >装备类型:</td>
- <td width="35%" align="left"><div id="EQUIPMENT_TYPE_385"></div></td>
- <td width="15%" align="right" >出发时间:</td>
- <td width="35%" align="left"><div id="DEPARTURE_TIME_385"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >装备名称:</td>
- <td width="35%" align="left"><div id="EQUIPMENT_NAME_385"></div></td>
- <td width="15%" align="right" >出发地点:</td>
- <td width="35%" align="left"><div id="DEPARTURE_LOCATION_385"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >当前状态:</td>
- <td width="35%" align="left"><div id="STATUS_385"></div></td>
- <td width="15%" align="right" >目的地:</td>
- <td width="35%" align="left"><div id="DESTINATION_385"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >预计到达时间:</td>
- <td width="35%" align="left"><div id="EXPECTED_ARRIVAL_TIME_385"></div></td>
- <td width="15%" align="right" >当前地点:</td>
- <td width="35%" align="left"><div id="CURRENT_LOCATION_385"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >最后更新时间:</td>
- <td width="35%" align="left"><div id="LAST_UPDATEDATE_385"></div></td>
- <td width="15%" align="right" style="display:none">数量:</td>
- <td width="35%" align="left" style="display:none"><div id="EQUIPMENT_NUMBER_385"></div></td>
- </tr>
- </table>
- </fieldset>
- <fieldset class="basic_fieldset_border" id="fileTable" >
- <legend><h4>到达</h4></legend>
- <table class="tableStyle" formMode="line" id="arrivedMsg">
- <tr>
- <td width="15%" align="right" >到达时间:</td>
- <td width="35%" align="left"><div id="ARRIVAL_TIME_385"></div></td>
- <td width="15%" align="right" >接收时间:</td>
- <td width="35%" align="left"><div id="RECEIVING_TIME_385"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >接收人:</td>
- <td width="35%" align="left"><div id="RECIPIENT_385"></div></td>
- <td width="15%" align="right" >接收人电话:</td>
- <td width="35%" align="left"><div id="RECEIVER_PHONE_385"></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >装备联系人:</td>
- <td width="35%" align="left"><div id="EQUIPMENT_CONTACT_385"></div></td>
- <td width="15%" align="right" >装备联系人电话:</td>
- <td width="35%" align="left"><div id="EQUIPMENT_CONTACT_PHONE_385"></div></td>
- </tr>
- </table>
- </fieldset>
- <fieldset class="basic_fieldset_border" id="fileTable" >
- <legend><h4>返回</h4></legend>
- <table class="tableStyle" formMode="line" id="getBackMsg">
- <tr>
- <td width="15%" align="right" >返回时出发时间:</td>
- <td width="35%" align="left"><div id="RETURN_DEPARTURE_TIME_385"></div></td>
- <td width="15%" align="right" >返回时到达时间:</td>
- <td width="35%" align="left"><div id="RETURN_ARRIVAL_TIME_385"></div></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <!-- <fieldset style="border-color:#999999;" > -->
- <fieldset class="basic_fieldset_border" id="fileTable" >
- <legend>录入人信息:</legend>
- <!-- <table width="960px" class="tableStyle" align="center" id="fillForm"> -->
- <table class="tableStyle" formMode="line" id="getBackMsg">
- <tr>
- <td width="15%" align="right" >单位:</td>
- <td width="35%"><div style="width:97%" name="" id="UNITE" /></td>
- <td width="15%" align="right" >部门:</td>
- <td width="35%"><div name="" id="DEPT" /></td>
- </tr>
- <tr>
- <td width="15%" align="right" >录入人:</td>
- <td width="35%"><div name="" id="TYPEIN_PEOPLE" /></td>
- <td width="15%" align="right" >录入人联系方式:</td>
- <td width="35%"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </body>
|