Пример #1
0
        /// <summary>
        /// 订单下面的游客信息汇总
        /// </summary>
        /// <param name="orderId">订单编号</param>
        /// <param name="tourId">团队编号</param>
        protected void InitPageForOrder(string orderId)
        {
            EyouSoft.BLL.TourStructure.BTourOrder BLL = new EyouSoft.BLL.TourStructure.BTourOrder();
            IList <EyouSoft.Model.TourStructure.BuyCompanyTraveller> list = BLL.GetTourOrderBuyCompanyTravellerByOrderId(orderId);

            if (list != null && list.Count > 0)
            {
                this.rpt_CustomerList.DataSource = list.Where(p => p.TravellerStatus == TravellerStatus.在团);
                this.rpt_CustomerList.DataBind();
            }

            EyouSoft.Model.TourStructure.MTourOrderExpand model = BLL.GetTourOrderExpandByOrderId(orderId);
            EyouSoft.BLL.TourStructure.BTour BTour = new EyouSoft.BLL.TourStructure.BTour();

            if (model != null)
            {
                EyouSoft.Model.TourStructure.MTourBaseInfo tourModel = BTour.GetBasicTourInfo(model.TourId);
                if (tourModel != null)
                {
                    this.lbRouteName.Text = tourModel.RouteName;
                    this.lbTourCode.Text  = tourModel.TourCode;
                    this.lbName.Text      = tourModel.OperatorInfo.Name + (string.IsNullOrEmpty(tourModel.OperatorInfo.Mobile) ? "" : "/" + tourModel.OperatorInfo.Mobile);
                    if (tourModel.GuideList != null && tourModel.GuideList.Count > 0)
                    {
                        this.lbGuid.Text = tourModel.GuideList.First().Name + (string.IsNullOrEmpty(tourModel.GuideList.First().Phone) ? "" : "/" + tourModel.GuideList.First().Phone);
                    }
                    if (tourModel.TourPlaner != null && tourModel.TourPlaner.Count > 0)
                    {
                        this.lbTourPlaner.Text = tourModel.TourPlaner.First().Planer + (string.IsNullOrEmpty(tourModel.TourPlaner.First().Phone) ? "" : "/" + tourModel.TourPlaner.First().Phone);
                    }
                }
            }
        }
Пример #2
0
        /// <summary>
        /// 初始化界面
        /// </summary>
        /// <param name="orderId"></param>
        private void PageInit(string orderId)
        {
            EyouSoft.BLL.TourStructure.BTourOrder         bOrder = new EyouSoft.BLL.TourStructure.BTourOrder();
            EyouSoft.Model.TourStructure.MTourOrderExpand order  = bOrder.GetTourOrderExpandByOrderId(orderId);
            if (order != null)
            {
                this.LtOrderCode.Text            = order.OrderCode;
                this.LtSellerName.Text           = order.SellerName;
                this.LtOperator.Text             = order.Operator;
                this.LtAdults.Text               = order.Adults.ToString();
                this.LtChilds.Text               = order.Childs.ToString();
                this.LtAdultPrice.Text           = EyouSoft.Common.UtilsCommons.GetMoneyString(order.AdultPrice, this.ProviderToMoney);
                this.LtChildPrice.Text           = EyouSoft.Common.UtilsCommons.GetMoneyString(order.ChildPrice, this.ProviderToMoney);
                this.LtSaleAddCost.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SaleAddCost, this.ProviderToMoney);
                this.LtSaleAddCostRemark.Text    = order.SaleAddCostRemark;
                this.LtSaleReduceCost.Text       = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SaleReduceCost, this.ProviderToMoney);
                this.LtSaleReduceCostRemark.Text = order.SaleReduceCostRemark;
                this.LtSumPrice.Text             = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SumPrice, this.ProviderToMoney);
                this.LtGuideIncome.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.GuideIncome, this.ProviderToMoney);
                this.LtSalerIncome.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SalerIncome, this.ProviderToMoney);
                this.txtSaveSeatDate.Text        = order.SaveSeatDate.HasValue ? order.SaveSeatDate.Value.ToString() : string.Empty;
                this.LtOrderRemark.Text          = order.OrderRemark;

                if (order.MTourOrderTravellerList != null && order.MTourOrderTravellerList.Count != 0)
                {
                    this.RpTravller.DataSource = order.MTourOrderTravellerList;
                    this.RpTravller.DataBind();
                }
                else
                {
                    this.phTraveller.Visible = false;
                }



                switch (order.OrderStatus)
                {
                case EyouSoft.Model.EnumType.TourStructure.OrderStatus.未处理:
                case EyouSoft.Model.EnumType.TourStructure.OrderStatus.已留位:
                    this.PhDo.Visible = true;
                    break;

                default:
                    this.PhDo.Visible = false;
                    break;
                }


                //写入计调信息的TourId
                this.hfTourId.Value = order.TourId;
                this.hfAdults.Value = order.Adults.ToString();
                this.hfChilds.Value = order.Childs.ToString();
                this.hfConfirmSettlementMoney.Value = order.ConfirmSettlementMoney.ToString();
            }
        }
Пример #3
0
        /// <summary>
        /// 初始化界面
        /// </summary>
        /// <param name="orderId"></param>
        private void PageInit(string orderId, string type)
        {
            EyouSoft.BLL.TourStructure.BTourOrder         bOrder = new EyouSoft.BLL.TourStructure.BTourOrder();
            EyouSoft.Model.TourStructure.MTourOrderExpand order  = bOrder.GetTourOrderExpandByOrderId(orderId);
            if (order != null)
            {
                this.LtOrderCode.Text    = order.OrderCode;
                this.LtDCompanyName.Text = order.DCompanyName;
                this.LtDContactName.Text = order.DContactName;
                this.LtDContactTel.Text  = order.DContactTel;

                this.LtSellerName.Text           = order.SellerName;
                this.LtOperator.Text             = order.Operator;
                this.LtAdults.Text               = order.Adults.ToString();
                this.LtChilds.Text               = order.Childs.ToString();
                this.LtAdultPrice.Text           = EyouSoft.Common.UtilsCommons.GetMoneyString(order.AdultPrice, this.ProviderToMoney);
                this.LtChildPrice.Text           = EyouSoft.Common.UtilsCommons.GetMoneyString(order.ChildPrice, this.ProviderToMoney);
                this.LtSaleAddCost.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SaleAddCost, this.ProviderToMoney);
                this.LtSaleAddCostRemark.Text    = order.SaleAddCostRemark;
                this.LtSaleReduceCost.Text       = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SaleReduceCost, this.ProviderToMoney);
                this.LtSaleReduceCostRemark.Text = order.SaleReduceCostRemark;
                this.LtSumPrice.Text             = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SumPrice, this.ProviderToMoney);
                this.LtGuideIncome.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.GuideIncome, this.ProviderToMoney);
                this.LtSalerIncome.Text          = EyouSoft.Common.UtilsCommons.GetMoneyString(order.SalerIncome, this.ProviderToMoney);
                this.LtSaveSeatDate.Text         = order.SaveSeatDate.HasValue ? order.SaveSeatDate.Value.ToString() : string.Empty;
                this.LtOrderRemark.Text          = order.OrderRemark;

                EyouSoft.BLL.TourStructure.BTour           bll   = new EyouSoft.BLL.TourStructure.BTour();
                EyouSoft.Model.TourStructure.MTourBaseInfo model = bll.GetTourInfo(Convert.ToString(tourID));
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线)
                {
                    string CarLocation = string.Empty;
                    if (order.TourOrderCarLocation != null)
                    {
                        CarLocation = order.TourOrderCarLocation.Location;
                    }
                    if (!string.IsNullOrEmpty(CarLocation))
                    {
                        this.setCarLocation.Text = CarLocation;
                    }
                    else
                    {
                        this.setCarLocation.Text = "<font class='fontred'>未设置上车地点</font>";
                    }
                    string carInfo = string.Empty;
                    if (order.TourCarTypeList != null && order.TourCarTypeList.Count > 0)
                    {
                        for (int i = 0; i < order.TourCarTypeList.Count; i++)
                        {
                            if (i == order.TourCarTypeList.Count - 1)
                            {
                                carInfo += order.TourCarTypeList[i].CarTypeName;
                            }
                            else
                            {
                                carInfo += order.TourCarTypeList[i].CarTypeName + "、";
                            }
                        }
                    }
                    if (!string.IsNullOrEmpty(carInfo))
                    {
                        this.carInfo.Text = carInfo;
                    }
                    else
                    {
                        this.carInfo.Text = "<font class='fontred'>未设置车型</font>";
                    }
                }
                else
                {
                    this.PhCarLocation.Visible = false;
                }

                if (order.MTourOrderTravellerList != null && order.MTourOrderTravellerList.Count != 0)
                {
                    this.RpTravller.DataSource = order.MTourOrderTravellerList;
                    this.RpTravller.DataBind();
                }
                else
                {
                    this.phTraveller.Visible = false;
                }
            }
        }
Пример #4
0
        /// <summary>
        /// 页面初始化
        /// </summary>
        private void PageInit()
        {
            this.lblApplyMan.Text      = SiteUserInfo.Name;
            this.lblApplyDateTime.Text = UtilsCommons.GetDateString(DateTime.Now, this.ProviderToDate);

            EyouSoft.BLL.TourStructure.BQuote bll = new EyouSoft.BLL.TourStructure.BQuote();

            string tourId  = Utils.GetQueryStringValue("tourId");
            string orderId = Utils.GetQueryStringValue("orderId");
            string msg     = string.Empty;
            //询价单位编号
            string buyID = string.Empty;
            //销售员编号
            string sellsID = string.Empty;
            //合计金额
            decimal price      = 0;
            decimal settePrice = 0;

            if (tourId != "")
            {
                this.hideTourId.Value = tourId;
                EyouSoft.BLL.TourStructure.BTour tourBll = new EyouSoft.BLL.TourStructure.BTour();

                EyouSoft.Model.TourStructure.MTourTeamInfo model = (EyouSoft.Model.TourStructure.MTourTeamInfo)tourBll.GetTourInfo(tourId);
                if (model != null)
                {
                    if (model.SaleInfo != null)
                    {
                        sellsID = model.SaleInfo.SellerId;
                    }
                    if (model.CompanyInfo != null)
                    {
                        buyID = model.CompanyInfo.CompanyId;
                    }
                    settePrice = price = model.SumPrice;
                }
            }

            if (orderId != "")
            {
                this.hideOrderId.Value = orderId;
                EyouSoft.BLL.TourStructure.BTourOrder         orderBll   = new EyouSoft.BLL.TourStructure.BTourOrder();
                EyouSoft.Model.TourStructure.MTourOrderExpand orderModel = orderBll.GetTourOrderExpandByOrderId(orderId);
                if (orderModel != null)
                {
                    sellsID    = orderModel.SellerId;
                    buyID      = orderModel.BuyCompanyId;
                    price      = orderModel.SumPrice;
                    settePrice = orderModel.ConfirmSettlementMoney;
                }
            }

            if (buyID != "" && sellsID != "" && price > 0)
            {
                EyouSoft.Model.FinStructure.MCustomerWarning customerWarningModel = bll.GetCustomerOverrunDetail(buyID, price, SiteUserInfo.CompanyId);
                EyouSoft.Model.FinStructure.MSalesmanWarning salesmanWarningModel = bll.GetSaleOverrunDetail(sellsID, settePrice, SiteUserInfo.CompanyId);
                if (customerWarningModel != null)
                {
                    PageHtml[0] = "<tr><td height='28' bgcolor='#FFFFFF' align='center'>" + customerWarningModel.Customer + "</td><td bgcolor='#FFFFFF' align='center'><b class='fontbsize12'>" + UtilsCommons.GetMoneyString(customerWarningModel.AmountOwed, this.ProviderToMoney) + "</b></td><td bgcolor='#FFFFFF' align='center'><a class='link1'><strong>" + UtilsCommons.GetMoneyString(customerWarningModel.Arrear, this.ProviderToMoney) + "</strong></a></td><td bgcolor='#FFFFFF' align='center'><b class='fontgreen'>" + UtilsCommons.GetMoneyString(customerWarningModel.Transfinite, this.ProviderToMoney) + "</b></td><td bgcolor='#FFFFFF' align='center'>" + UtilsCommons.GetDateString(customerWarningModel.TransfiniteTime, this.ProviderToDate) + "</td><td bgcolor='#FFFFFF' align='center'>" + customerWarningModel.Deadline.ToString() + "</td><td bgcolor='#FFFFFF' align='center'>" + (customerWarningModel.DeadDay <= 0 ? 0 : customerWarningModel.DeadDay) + "</td></tr>";
                }
                else
                {
                    this.phdKehu.Visible = false;
                }

                if (salesmanWarningModel != null)
                {
                    PageHtml[1] = "<tr><td height='28' bgcolor='#FFFFFF' align='center'>" + salesmanWarningModel.SellerName + "</td><td bgcolor='#FFFFFF' align='center'><strong>" + UtilsCommons.GetMoneyString(salesmanWarningModel.AmountOwed, this.ProviderToMoney) + "</strong></td><td bgcolor='#FFFFFF' align='center'><strong>" + UtilsCommons.GetMoneyString(salesmanWarningModel.ConfirmAdvances, this.ProviderToMoney) + "</strong></td><td bgcolor='#FFFFFF' align='center'><strong>" + UtilsCommons.GetMoneyString(salesmanWarningModel.PreIncome, this.ProviderToMoney) + "</strong></td><td bgcolor='#FFFFFF' align='center'><b class='fontblue'>" + UtilsCommons.GetMoneyString(salesmanWarningModel.SumPay, this.ProviderToMoney) + "</b></td><td bgcolor='#FFFFFF' align='center'><b class='fontbsize12'>" + UtilsCommons.GetMoneyString(salesmanWarningModel.Arrear, this.ProviderToMoney) + "</b></td><td bgcolor='#FFFFFF' align='center'><b class='fontgreen'>" + UtilsCommons.GetMoneyString(salesmanWarningModel.Transfinite, this.ProviderToMoney) + "</b></td><td bgcolor='#FFFFFF' align='center'>" + UtilsCommons.GetDateString(salesmanWarningModel.TransfiniteTime, this.ProviderToDate) + "</td></tr>";
                }
                else
                {
                    this.phdXiaoshou.Visible = false;
                }
            }
            else
            {
                this.phdKehu.Visible     = false;
                this.phdXiaoshou.Visible = false;
            }
        }
Пример #5
0
        protected void PageInitForOrder(string orderID)
        {
            EyouSoft.BLL.TourStructure.BTourOrder         bll        = new EyouSoft.BLL.TourStructure.BTourOrder();
            EyouSoft.Model.TourStructure.MTourOrderExpand orderModel = bll.GetTourOrderExpandByOrderId(orderID);
            if (orderModel != null)
            {
                if (orderModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼短线)
                {
                    Utils.ResponseGoBack();
                    return;
                }

                this.lblOrderNum.Text       = orderModel.OrderCode;
                this.SellsSelect1.SellsID   = orderModel.SellerId;
                this.SellsSelect1.SellsName = orderModel.SellerName;
                this.hideDeptID.Value       = orderModel.DeptId.ToString();
                this.CountryID  = orderModel.BuyCountryId.ToString();
                this.ProvinceID = orderModel.BuyProvincesId.ToString();
                this.CustomerUnitSelect1.CustomerUnitId   = orderModel.BuyCompanyId;
                this.CustomerUnitSelect1.CustomerUnitName = orderModel.BuyCompanyName;
                this.txtContact.Text         = orderModel.ContactName;
                this.txtContactTel.Text      = orderModel.ContactTel;
                this.hideContactDeptId.Value = orderModel.ContactDepartId;
                this.lblOrderMan.Text        = orderModel.Operator;
                this.txtAdultCount.Text      = orderModel.Adults.ToString();
                this.txtChildCount.Text      = orderModel.Childs.ToString();
                this.hideTourId.Value        = orderModel.TourId;
                this.hideOldAdultCount.Value = orderModel.Adults.ToString() + "|" + orderModel.Childs.ToString();
                txtHeTongHao.HeTongId        = orderModel.ContractId;
                txtHeTongHao.HeTongCode      = orderModel.ContractCode;
                this.hideSourceID.Value      = orderModel.SourceId;

                if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单)
                {
                    phKeHuKeYuanDanWei.Visible           = true;
                    ltrKeHuKeYuanDanWeiName.Text         = orderModel.DCompanyName;
                    ltrKeHuKeYuanDanWeiLxrName.Text      = orderModel.DContactName;
                    ltrKeHuKeYuanDanWeiLxrTelephone.Text = orderModel.DContactTel;
                }
                txtNeiBuXinXi.Text = orderModel.NeiBuXinXi;

                #region 销售价与报价等级
                this.hideLevelID.Value      = orderModel.LevId.ToString();
                this.hidePriceStandID.Value = orderModel.PriceStandId.ToString();
                this.hideAdultPrice.Value   = Utils.FilterEndOfTheZeroDecimal(orderModel.AdultPrice);
                this.hideChildPrcie.Value   = Utils.FilterEndOfTheZeroDecimal(orderModel.ChildPrice);
                #endregion

                #region 结算价与报价等级
                this.hideSettAdultPrice.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.PeerAdultPrice);
                this.hideSettChildPrice.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.PeerChildPrice);
                #endregion


                EyouSoft.Model.TourStructure.MTourSanPinInfo tourModel = (EyouSoft.Model.TourStructure.MTourSanPinInfo) new EyouSoft.BLL.TourStructure.BTour().GetTourInfo(orderModel.TourId);
                if (tourModel != null)
                {
                    //权限控制
                    PowerControl(tourModel.TourType);

                    this.hideTourType.Value           = ((int)tourModel.TourType).ToString();
                    this.PriceStand1.SetPriceStandard = tourModel.MTourPriceStandard;
                    if (orderModel.MTourOrderTravellerList != null)
                    {
                        switch (tourModel.TourType)
                        {
                        case EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼:
                        case EyouSoft.Model.EnumType.TourStructure.TourType.出境团队:
                            this.pnlTravelFrist.Visible        = false;
                            this.TravelControlS1.SetTravelList = orderModel.MTourOrderTravellerList.Where(p => p.TravellerStatus == EyouSoft.Model.EnumType.TourStructure.TravellerStatus.在团).ToList();

                            break;

                        default:
                            this.pnlTravelSecond.Visible      = false;
                            this.TravelControl1.SetTravelList = orderModel.MTourOrderTravellerList.Where(p => p.TravellerStatus == EyouSoft.Model.EnumType.TourStructure.TravellerStatus.在团).ToList();
                            break;
                        }

                        IList <EyouSoft.Model.TourStructure.MTourOrderTraveller> outTraveller = orderModel.MTourOrderTravellerList.Where(p => p.TravellerStatus == EyouSoft.Model.EnumType.TourStructure.TravellerStatus.退团).ToList();
                        if (outTraveller != null && outTraveller.Count > 0)
                        {
                            this.rptOutTraveller.DataSource = outTraveller;
                            this.rptOutTraveller.DataBind();
                        }
                    }
                }
                this.txtAddPrice.Text      = Utils.FilterEndOfTheZeroDecimal(orderModel.SaleAddCost);
                this.txtRemarksFrist.Text  = orderModel.SaleAddCostRemark;
                this.txtReducePrice.Text   = Utils.FilterEndOfTheZeroDecimal(orderModel.SaleReduceCost);
                this.txtRemarksSecond.Text = orderModel.SaleReduceCostRemark;
                this.txtTotalPrice.Text    = Utils.FilterEndOfTheZeroDecimal(orderModel.SumPrice);
                this.hideOldSumMoney.Value = Utils.FilterEndOfTheZeroDecimal(orderModel.SumPrice);
                this.txtGuidePrice.Text    = Utils.FilterEndOfTheZeroDecimal(orderModel.GuideIncome);
                this.lblSellPrice.Text     = Utils.FilterEndOfTheZeroDecimal(orderModel.SalerIncome);
                this.txtSaveSeatDate.Text  = orderModel.SaveSeatDate.HasValue ? orderModel.SaveSeatDate.Value.ToString("yyyy-MM-dd HH:mm") : "";
                this.txtRemarksOrder.Text  = orderModel.OrderRemark;
                this.hideOrderFrom.Value   = ((int)orderModel.OrderType).ToString();


                this.pdhJiXuLiuWei.Visible      = false;
                this.phdQueRenYuLiu.Visible     = false;
                this.pdhBaoCun.Visible          = false;
                this.phdQuXiao.Visible          = false;
                this.phdBuShouLi.Visible        = false;
                this.phsQueRenChengJiao.Visible = false;

                #region 获得该订单的计划状态
                EyouSoft.BLL.TourStructure.BTour btour = new EyouSoft.BLL.TourStructure.BTour();
                EyouSoft.Model.EnumType.TourStructure.TourStatus tourStatus = btour.GetTourStatus(SiteUserInfo.CompanyId, orderModel.TourId);
                if (tourStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划)
                {
                    //该团已派计调
                    this.hideOrderBianGeng.Value = "true";
                }
                else
                {
                    this.hideOrderBianGeng.Value = "false";
                }
                #endregion

                //必须是下单人或者是销售员才可以修改订单 或者拥有修改所有数据的权限

                bool isUpdate = false;
                if (!SiteUserInfo.IsHandleElse)
                {
                    if (orderModel.SellerId == SiteUserInfo.UserId || orderModel.OperatorId == SiteUserInfo.UserId || orderModel.TourSellerId == SiteUserInfo.UserId)
                    {
                        isUpdate = true;
                    }
                    if (isUpdate == false)
                    {
                        if (orderModel.TourPlanerList != null && orderModel.TourPlanerList.Count > 0)
                        {
                            for (int i = 0; i < orderModel.TourPlanerList.Count; i++)
                            {
                                if (orderModel.TourPlanerList[i].PlanerId == SiteUserInfo.UserId)
                                {
                                    isUpdate = true;
                                }
                            }
                        }
                    }
                }

                if (isUpdate)
                {
                    this.hideOrderState.Value = ((int)orderModel.OrderStatus).ToString();

                    if (!string.IsNullOrEmpty(orderModel.SourceId) && orderModel.SourceId.Trim() != "")
                    {
                        if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单)
                        {
                            if (orderModel.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.未处理)
                            {
                                this.pdhBaoCun.Visible = true;
                            }
                            else
                            {
                                this.pdhAllBtns.Visible = false;
                            }
                        }
                        else
                        {
                            if ((orderModel.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.未处理 || orderModel.OrderStatus == EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核成功) && orderModel.TourStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.封团 && orderModel.TourStatus != EyouSoft.Model.EnumType.TourStructure.TourStatus.已取消)
                            {
                                this.pdhBaoCun.Visible = true;
                                this.phdQuXiao.Visible = true;
                            }
                            else
                            {
                                this.pdhAllBtns.Visible = false;
                            }
                        }
                    }
                    else
                    {
                        var _tourStatus = new EyouSoft.Model.EnumType.TourStructure.TourStatus[] {
                            EyouSoft.Model.EnumType.TourStructure.TourStatus.销售未派计划
                            , EyouSoft.Model.EnumType.TourStructure.TourStatus.计调未接收
                            , EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置
                            , EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕
                            , EyouSoft.Model.EnumType.TourStructure.TourStatus.导游带团
                            , EyouSoft.Model.EnumType.TourStructure.TourStatus.导游报帐
                        };

                        switch (orderModel.OrderStatus)
                        {
                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.受理:
                            this.litOrderMsg.Text = "<div class='tishi_info'>该订单不受理,无法操作!</div>";
                            break;

                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.已取消:
                            this.litOrderMsg.Text = "<div class='tishi_info'>该订单已取消,无法操作!</div>";
                            break;

                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核:
                            this.litOrderMsg.Text = "<div class='tishi_info'>该订单正在垫付申请审核中,无法操作!</div>";
                            break;

                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核失败:
                            if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单)
                            {
                                this.phdBuShouLi.Visible = true;
                            }
                            else
                            {
                                this.phdQuXiao.Visible = true;
                            }
                            break;

                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.垫付申请审核成功:
                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.未处理:
                            if (_tourStatus.Contains(orderModel.TourStatus))
                            {
                                this.pdhBaoCun.Visible          = true;
                                this.phdQueRenYuLiu.Visible     = true;
                                this.phsQueRenChengJiao.Visible = true;

                                if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单)
                                {
                                    this.phdBuShouLi.Visible = true;
                                }
                                else
                                {
                                    this.phdQuXiao.Visible = true;
                                }
                            }
                            break;

                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.留位过期:
                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.已留位:
                            if (_tourStatus.Contains(orderModel.TourStatus))
                            {
                                if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单)
                                {
                                    this.phdBuShouLi.Visible = true;
                                }
                                else
                                {
                                    this.phdQuXiao.Visible = true;
                                }
                                this.pdhJiXuLiuWei.Visible      = true;
                                this.phsQueRenChengJiao.Visible = true;
                            }
                            break;

                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.已成交:
                            if (_tourStatus.Contains(orderModel.TourStatus))
                            {
                                this.pdhBaoCun.Visible = true;
                                this.phdQuXiao.Visible = true;
                            }
                            break;

                        case EyouSoft.Model.EnumType.TourStructure.OrderStatus.资金超限:
                            if (orderModel.OrderType == EyouSoft.Model.EnumType.TourStructure.OrderType.分销商下单)
                            {
                                this.phdBuShouLi.Visible = true;
                            }
                            else
                            {
                                this.phdQuXiao.Visible = true;
                            }
                            break;
                        }
                    }
                }
            }
            else
            {
                Utils.ResponseGoBack();
            }
        }