123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=9" />
- <title>应急响应值班安排表填报</title>
- <!--引入QUI框架js -->
- <%@include file="../../../../include.jsp" %>
- <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>
- var isWaitDo = "<%=request.getParameter("isWaitDo")%>"; //等于1说明是从代办页面进来的
-
- var g;
- var dutyData={"list":[{"value":"0","key":"发电车"},{"value":"1","key":"发电机"},{"value":"2","key":"移动餐车"},{"value":"3","key":"指挥(通信)车"}]};
- var departNode;
- var demandid;
- var newrowid=200;
- var fdid = "";
- var user_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- function initComplete(){
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
-
- if((window.location.href).indexOf('?')>-1){
- demandid = (window.location.href).split('?')[1];//获取记录id
- var idLen = demandid.length;
- if(idLen>30){
- demandid = demandid.split("=")[1];
- }
- var url = $.pathname() + "/ws/crud/CRUDService/getDataById/";
- var params = {
- classid : '382',
- objectID : demandid
- };
- $.request.query(url,params,function(data){
- // alert(JSON.stringify(data));
- fdid = data.FD_OBJECTID_382;
- $("#equipAllotInfo_tr").hide();
- if(data.AUDIT_STATE_382 == 55){//调拨中
- $("#equipAllotInfo_tr").show();
- }
- for(var i in data){
- $('#'+i).html(data[i]);
- }
- var resqDesc = data.REQUIREMENT_DESCRIPTION_382;
- if(resqDesc == "null"){
- resqDesc = "";
- }
- $("#REQUIREMENT_DESCRIPTION_382").html(resqDesc);//需求描述
-
- $("#TYPEIN_PEOPLE").html(data.INFORMANT_382);//录入人
- var informantId = data.INFORMANT_ID_382;//录入人ID
- // alert(informantId);
- // var url = $.pathname() + '/ws/updateEquipState/EquipAllotUpdateEquipState/getInformantMsgByInformantId/';
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
- data : {USER_ID : informantId},
- type : 'post',
- dataType : 'json',
- async : false,
- timeout : 1500,
- success : function(result){
- if(result.list[0].MOBILE == "null"){
- $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无联系方式");//录入人电话
- }else{
- $("#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(data1){
- $("#DEPT").html(data1.list[0].DEPT_NAME);//部门
- $("#UNITE").html(data1.list[1].CORP_NAME);//单位
- },error:function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
-
- $.ajax({//回退信息
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getExplainFrom378_equip',//从id为378的表中获取获取字段EXPLAIN的值
- type : 'post',
- //async : false,
- timeout : 15000,
- data:{ BUSINESS_ID : data.FD_OBJECTID_382},
- 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;
- }
- });
-
- var isSeen = data.IS_SEEN_382.split(",")[0];
- if(isSeen == user_ID){
-
- $.ajax({////修改装备需求表的IS_SEEN字段为【下一处理人ID,1】
- url : $.pathname() + '/ws/sendsms/SendSmsService/updateIs_Seen_1',
- data : { tableName : "ECM_EM_EQUIPMENT_DEMAND" , fdId : demandid , nextPeopId : user_ID , userId : data.IS_SEEN_382.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());//高度
- });
- initGrid(demandid);
- }
- $("#equipAllotInfo").bind("click",equipAllotInfo_methed);
-
- }
- function initGrid(demandid){
- g = $("#maingrid").quiGrid({
- columns: [
- {name:'fd_objectid',hide:true},
- {name:'demand_id',hide:true},
- { display: '装备名称', name: 'equipment_name', align: 'center', width: 200,editor: { type: 'select',data:dutyData,selWidth:155 },render:function (item){
- for (var i = 0; i < dutyData["list"].length; i++)
- {
- if (dutyData["list"][i]['value'] == item.equipment_name)
- return dutyData["list"][i]['key'];
- }
-
- }},
- { display: '装备容量(kVA)', name: 'equipment_model', align: 'center', width: 200,editor: { type: 'text' }},
- { display: '装备数量', name: 'equipment_number', align: 'center', width: 200,editor: { type: 'text' }}
- ],
- url: $.pathname() + '/ws/equip/RespEquipmentService/getDetailById/',
- params :{"demandid":demandid},
- rownumbers:true,
- pageSize:10,
- dataAction:"server",
- usePager: false,
- percentWidthMode : true,
- height: '280px', width:'100%',enabledEdit: false,clickToEdit: false
-
- });
- }
- function goback(){
- if(isWaitDo == 1){
- $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/waitdo/waitDo.html");
- }else{
- $('#frmright',window.parent.document).attr('src',$.pathname()+"/page/business/em/response/equipment/Eqallocateallot.jsp");
- }
- //window.location.href="Eqallocateallot.jsp?pagenumber=";
- }
- function equipAllotInfo_methed(){
- window.location.href="EquipAllotInfo_page.jsp?fd_id="+fdid;
- // $("#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="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="返回" src="/nwyj/images/temp/back.png" title="返回" onclick="javascript:goback();"></img></a>
- <!-- <font 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="editForm">
-
- <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 style="width:100%" class="tableStyle">
- <tr>
- <td width="15%" align="right" >需求名称:</td>
- <td width="85%" align="left" colspan="7"><div id="TASK_NAME_382" ></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >申请单位:</td>
- <td width="35%" align="left"><div id="RECIPIENT_DEPARTMENT_382_SHOW" ></div></td>
- <td width="15%" align="right" >申请使用时间:</td>
- <td width="35%" align="left"><div id="APPLY_TO_USE_TIME_382" ></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >申请单位联系人:</td>
- <td width="35%" align="left"><div id="RECIPIENT_NAME_382"></div></td>
- <td width="15%" align="right" >申请联系人电话:</td>
- <td width="35%" align="left"><div id="RECIPIENT_PHONE_382" ></div></td>
- </tr>
- <tr>
- <td width="15%" align="right" >申请事由:</td>
- <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>
- </tr>
- <tr>
- <td width="15%" align="right" >需求描述:</td>
- <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>
- </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="equipAllotInfo_tr">
- <td width="15%" align="right" class="class_color">调拨详情:</td>
- <td width="85%" colspan="3"><div readonly="readonly"><font id="equipAllotInfo" color="blue"><a href='javascript:;'>点击这里查看详情</a></font></div></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <fieldset id="fileTable" class="fileTable_border">
- <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" >单位:</td>
- <td width="280px"><div style="width:97%" name="" id="UNITE" /></td>
- <td width="114px" align="right" >部门:</td>
- <td width="280px"><div name="" id="DEPT" /></td>
- </tr>
- <tr>
- <td width="114px" align="right" >录入人:</td>
- <td width="280px"><div name="" id="TYPEIN_PEOPLE" /></td>
- <td width="114px" align="right" >录入人联系方式:</td>
- <td width="280px"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </body>
- </html>
|