123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- <%@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>
- <script type="text/javascript" src = "/nwyj/scripts/business/am/org/maintenance/orgSel.js"></script>
-
- <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
-
- <script type="text/javascript" src="<%=path%>/scripts/business/em/response/team/TeamDemandAudit.js"></script>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var is_audit = "<%=request.getParameter("is_audit")%>"; // 0是审核 1是调拨
- var isWaitDo = "<%=request.getParameter("isWaitDo")%>"; //等于1说明是从代办页面进来的
-
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //部门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();
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //页面初始化
- $(function(){
- $("#BUSINESS_ID_378").val(fd_id);
- $("#is_audit").val(is_audit);
- //审核表单
- //$("#PERSON_ID_378").initDeptPersonSelect(parentId); //下一节点处理人
- /* $("#selectBtn").bind("click",function(){
- var ifmHeight = $(top.document.body).find("#frmright").height();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- top.Dialog.open({URL:'/nwyj/page/business/em/alert/warning/WarningaddUnit.jsp?ifmHeight='+ifmHeight+'&parentId='+parentId,Title:'组织人员',Width:400,Height:300});
- }) */
-
- if(fd_id != null && fd_id != ''){
-
- if(is_audit == 0){//审核页面
-
- }else{//制定调拨令--------is_audit=1
- $("#titleShow").text("调拨应急队伍需求");
-
- $("#RANGE_UNITS_ID_391").bind('itemClick',function(){
- var companyName = $(this).attr("relText");
- var companyId = $(this).attr("relValue");
- companyNameNum = companyName.split(',');
- companyIdNum = companyId.split(',');
- $("#companyNum").html("");
- for(var i =0;i < companyNameNum.length;i++){
- if(companyNameNum[i] != ""){
- $("#companyNum").append("<tr>"+
- "<td style='display: none;' class='companyId'>"+companyIdNum[i]+"</td>"+
- "<td width='30%' align='right' class='companyName'><span class='star'>*</span>"+companyNameNum[i]+"调拨描述:</td>"+
- "<td width='70%'><textarea style='width: 100%;height: 100px;' class='companyContent validate[required]' watermark='请分配队伍详情'></textarea></td>"+
- "</tr>");
- $(".companyContent").attr("maxNum",1000);
- $(".companyContent").render();
- }
- }
- setHight();
- });
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '391',
- objectID : fd_id
- };
-
- $.request.query(url,params,function(data){
- // alert(JSON.stringify(data))
- $("#FD_OBJECTID391").val(data.FD_OBJECTID391);
- $('#editForm input[name="classid"]').val('391');
- $("#TASK_NAME_391").html(data.TASK_NAME_391);
- $("#SUPPORT_UNIT_ID_391").html(data.SUPPORT_UNIT_ID_391_SHOW);
- $("#SUPPORT_UNIT_ID").val(data.SUPPORT_UNIT_ID_391);
- $("#ARRIVE_TIME_391").html(data.ARRIVE_TIME_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);
- $("#CONDITION_391").html(data.CONDITION_391);
- $("#REPAIR_TASK_391").html(data.REPAIR_TASK_391);
- $("#GEOLOGY_PHYSIOGNOMY_391").html(data.GEOLOGY_PHYSIOGNOMY_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);
- $("#FORM_NAME_391").val(data.FORM_NAME_391);
- $("#USER_ID_391").val(data.USER_ID_391);
- $("#REQUIREMENT_DESCRIPTION_391").html(data.REQUIREMENT_DESCRIPTION_391);//需求描述
-
- var buMen = '';
- var danWei = '';
- var userId = data.USER_ID_391;//录入人ID
- $.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 = data.list[0].ORG_ID;
- danWei = 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 recipDept = $("#SUPPORT_UNIT_ID").val();
- var deptUrl = $.pathname() + '/ws/dept/DeptService/getCompanyTreeTeamAndEquip';
- $.post(deptUrl,{id : CorpArea , name : '' , deptId_self : recipDept},function(data){
- //调拨单位
- $("#RANGE_UNITS_ID_391").data("data",data);//调拨单位
- $("#RANGE_UNITS_ID_391").render();
- }, "json");
-
- var isSeen = data.IS_SEEN_391.split(",")[0];
- if(isSeen == realName_ID){
-
- $.ajax({////修改装备需求表的IS_SEEN字段为【下一处理人ID,1,处理人】
- url : $.pathname() + '/ws/sendsms/SendSmsService/updateIs_Seen_1',
- data : { tableName : "ECM_EM_TEAM_WRR" ,
- fdId : fd_id ,
- nextPeopId : realName_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());
- });
-
- }
-
- }
- setHight();
- });
-
- </script>
- <style type="text/css">
- .class_color{
- background-color: rgb(237, 239, 253);
- }
- </style>
- </head>
- <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center">
- <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" align="left" title="返回" alt="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" id=""></font></div>
- <br />
- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="titleShow" ></font></div>
- <br />
- <div style="float:right">
- <!-- <input type="button" id="save" value="提交"/> -->
- <input type="button" id="pass" value="调拨" onclick="script:top.window.scrollTo(0,2000);"/>
- <input type="button" id="rock" value="退回"/>
- </div>
- <br />
- <form method="post" id="editForm">
- <input type="hidden" id="is_audit"/>
- <input name="classid" value="391" type="hidden"/>
- <input type="hidden" name="FD_OBJECTID391" id="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="USER_ID_391" name="USER_ID_391" type="hidden"/>
- <input id="FORM_TIME_391" name="FORM_TIME_391" type="hidden"/>
- <input id="REPORTED_STATE_391" name="REPORTED_STATE_391" value="135" 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="DB_TYPE" name="DB_TYPE" value="1" type="hidden"/>
- <input id="SUPPORT_UNIT_ID" type="hidden"/>
- <input id="ALLOT_UNITS_MSG_391" name="ALLOT_UNITS_MSG_391" type="hidden"/>
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>基本信息:</legend>
- <table class="tableStyle" width="100%">
- <tr><td width="20%" align="right" class="class_color">需求名称:</td>
- <td width="80%" colspan="3"><div id="TASK_NAME_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">申请单位:</td>
- <td width="80%" colspan="3"><div id="SUPPORT_UNIT_ID_391" selWidth="999" class=" validate[required]"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">需要到达时间:</td>
- <td width="80%" colspan="3"><div id="ARRIVE_TIME_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">申请单位联系人:</td>
- <td width="30%"><div id="ENTRY_UNIT_ATTN_391"></div></td>
- <td width="15%" align="right" class="class_color">申请单位联系人电话:</td>
- <td width="35%"><div id="ENTRY_UNIT_ATTN_TEL_391"></div></td></tr>
-
- <tr id="alternativeMan"><td width="20%" align="right" class="class_color">备选人:</td>
- <td width="30%"><div id="ENTRY_ALTERNATIVE_391"></div></td>
- <td width="15%" align="right" class="class_color">备选人电话:</td>
- <td width="35%"><div id="ENTRY_ALTERNATIVE_TEL_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">受灾情况:</td>
- <td width="80%" colspan="3"><div id="CONDITION_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">抢修任务:</td>
- <td width="80%" colspan="3"><div id="REPAIR_TASK_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">地质地貌:</td>
- <td width="80%" colspan="3"><div id="GEOLOGY_PHYSIOGNOMY_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">气候状况:</td>
- <td width="80%" colspan="3"><div id="WEATHER_CASE_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">住宿装备:</td>
- <td width="80%" colspan="3"><div id="STAY_GEAR_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">施工机具:</td>
- <td width="80%" colspan="3"><div id="EXECUTION_IMPLEMENT_391"></div></td></tr>
-
- <tr><td width="20%" align="right" class="class_color">需求描述:</td>
- <td width="80%" colspan="3"><div id="REQUIREMENT_DESCRIPTION_391"></div></td></tr>
- </table>
- </fieldset>
- </form>
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>队伍信息:</legend>
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
- </fieldset>
- <form id="editForm1">
- <input type="hidden" name="classid" value="378"/>
- <input type="hidden" id="is_pass" value="0"/>
- <input type="hidden" name="PERSON_ID_378" id="PERSON_ID_378"/>
- <input type="hidden" name="BUSINESS_ID_378" id="BUSINESS_ID_378" />
- <input type="hidden" name="STATUES_378" id="STATUES_378" value="2" />
- <input type="hidden" name="DISPOSE_378" id="DISPOSE_378" value="0" />
- <input type="hidden" name="RANGE_UNITS_NAME_391" id="RANGE_UNITS_NAME_391"/>
- <input type="hidden" name="COMPANY_ID_378" id="COMPANY_ID_378"/>
- <input type="hidden" name="ROLE_ID_378" id="ROLE_ID_378"/>
-
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>调拨令信息:</legend>
-
- <input id="STATE_391" name="STATE_391" type="hidden"/>
-
- <table class="tableStyle" width="85%" align="center">
- <!-- <tr> -->
- <!-- <td colspan="2" align="center"><input type="button" id="pass" value="同意"/> <input type="button" id="rock" value="退回"/></td> -->
- <!-- <td colspan="2" align="center"><input type="button" id="pass" value="调拨"/> <input type="button" id="rock" value="退回"/></td> -->
- <!-- </tr> -->
- <tr id="unitId" style="display: none;">
- <td align="right" width="30%"><label>调拨单位:</label></td>
- <td width="70%">
- <!-- <div class="selectTree" id="RANGE_UNITS_ID_391" name="RANGE_UNITS_ID_391" selWidth="745"> -->
- <div class="lister" id="RANGE_UNITS_ID_391" name="RANGE_UNITS_ID_391"></div>
- </td>
- </tr>
- <tr id="person" class="person" style="display: none;">
- <td width="35%" align="right"><span class="star">*</span>下一节点处理人:</td>
- <td width="65%"><span id="span1"><input type="text" editable=false name="PERSON_NAME_378" id="PERSON_NAME_378" /></span><!-- class="validate[required]" -->
- <input type="button" id="selectBtn" value="请选择"/></td>
- </tr>
- <tr id="remark" class="remark" style="display: none;">
- <td width="15%" align="right"><span class="star">*</span>退回说明:</td>
- <td width="85%"><textarea rows="" id="EXPLAIN_378" name="EXPLAIN_378" style="width: 97%;height: 44px;" maxNum="150"></textarea></td>
- </tr>
-
- </table>
-
- <table id="companyNum" class="tableStyle" width="85%" align="center">
- </table>
-
- <table class="tableStyle" width="85%" align="center">
- <tr class="person remark" id="sub" style="display: none;">
- <td align="center"><input value="提交" type="button" id="save"/></td>
- </tr>
- </table>
-
- </fieldset>
- </form>
- <fieldset style="border-color:#999999;" >
- <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>
|