Esempio n. 1
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourID"></param>
        /// <param name="adultCount"></param>
        /// <param name="childCount"></param>
        /// <param name="contact"></param>
        /// <param name="tel"></param>
        private void PageInit(string tourID, string adultCount, string childCount, string contact, string tel)
        {
            EyouSoft.IBLL.NewTourStructure.IPowderList tourBll = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance();

            EyouSoft.Model.NewTourStructure.MPowderList model = tourBll.GetModel(tourID);

            if (model != null)
            {
                EyouSoft.IBLL.NewTourStructure.IRoute  routeBll   = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
                EyouSoft.Model.NewTourStructure.MRoute routeModel = routeBll.GetModel(model.RouteId);

                this.lblRouteName.Text = "<a href='/PrintPage/LineTourInfo.aspx?RouteID=" + model.RouteId + "' target='_blank'>" + model.RouteName + "</a>";
                this.lblLeaveDate.Text = model.LeaveDate.ToString("yyyy-MM-dd") + "(" + Utils.GetDayOfWeek((int)model.LeaveDate.DayOfWeek) + ") "; //出团日期
                this.lblCount.Text     = model.MoreThan.ToString();                                                                                //余位

                this.lblLeaveCityandTracffic.Text = model.StartTraffic + " " + model.StartCityName;                                                //出发交通和城市
                this.lbEndCityandTracffic.Text    = model.EndTraffic + " " + model.EndCityName;                                                    //返程交通和城市
                this.lblTourState.Text            = model.PowderTourStatus.ToString();                                                             //团队状态
                this.lbLeavedate.Text             = model.StartDate;                                                                               //航班出发时间
                this.lbEnddate.Text      = model.EndDate;                                                                                          //航班返程时间
                this.txtAdultCount.Value = adultCount;                                                                                             //成人数
                this.txtChildCount.Value = childCount;                                                                                             //儿童数
                this.txtContact.Value    = contact;                                                                                                //联系人
                this.txtConTactTel.Value = tel;                                                                                                    //联系电话
                if (model.RouteType == EyouSoft.Model.SystemStructure.AreaType.国际线)
                {
                    this.lbd_price.Text = model.AdultPrice.ToString("F0") + "元/人 ";
                }
                #region 团队 价格信息
                //市场价
                this.lblRetailAdultPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.RetailAdultPrice);
                this.lblRetailChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.RetailChildrenPrice);
                this.lblMarketPrice.Text         = Utils.FilterEndOfTheZeroDecimal(model.MarketPrice);

                //结算价
                this.lblSettlementAudltPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.SettlementAudltPrice);
                this.lblSettlementChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.SettlementChildrenPrice);
                #endregion

                //处理总金额
                //市场价总价
                this.lblReailPriceAll.Text = "0";
                //结算总价
                this.lblSettlePriceAll.Text = "0";
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourID"></param>
        /// <param name="adultCount"></param>
        /// <param name="childCount"></param>
        /// <param name="contact"></param>
        /// <param name="tel"></param>
        private void PageInit(string tourID, string adultCount, string childCount, string contact, string tel)
        {
            EyouSoft.IBLL.NewTourStructure.IPowderList tourBll = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance();

            EyouSoft.Model.NewTourStructure.MPowderList model = tourBll.GetModel(tourID);

            if (model != null)
            {
                EyouSoft.IBLL.NewTourStructure.IRoute  routeBll   = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
                EyouSoft.Model.NewTourStructure.MRoute routeModel = routeBll.GetModel(model.RouteId);

                this.lblRouteName.Text = "<a href='/PrintPage/LineTourInfo.aspx?routeID=" + model.RouteId + "' target='_blank'>" + model.RouteName + "</a>";
                this.lblLeaveDate.Text = model.LeaveDate.ToString("yyyy-MM-dd");
                this.lblCount.Text     = model.MoreThan.ToString();

                this.lblLeaveCity.Text = model.StartCityName;
                this.lblCar.Text       = model.StartTraffic + " &nbsp; " + model.EndTraffic;
                this.lblLeaveCon.Text  = model.StartDate;
                this.lblBackCon.Text   = model.EndDate;
                this.lblMsg.Text       = model.SetDec;
                this.lblAllMsg.Text    = model.TeamLeaderDec;


                #region 团队 价格信息
                //市场价
                this.lblRetailAdultPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.RetailAdultPrice);
                this.lblRetailChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.RetailChildrenPrice);
                this.lblMarketPrice.Text         = Utils.FilterEndOfTheZeroDecimal(model.MarketPrice);

                //结算价
                this.lblSettlementAudltPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.SettlementAudltPrice);
                this.lblSettlementChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.SettlementChildrenPrice);
                #endregion

                //处理总金额
                //市场价总价
                this.lblReailPriceAll.Text = "0";
                //结算总价
                this.lblSettlePriceAll.Text = "0";
            }
        }
Esempio n. 3
0
        /// <summary>
        /// 初始化团队信息
        /// </summary>
        /// <param name="TourId">团队ID</param>
        protected void GetTourInfo(string RouteID)
        {
            EyouSoft.Model.NewTourStructure.MRoute RouteM = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetModel(RouteID);
            if (RouteM != null)
            {
                this.labRouteName.Text       = RouteM.RouteName;
                this.labTourSpreadState.Text = GetRecommendType(((int)RouteM.RecommendType).ToString());
                this.LitRetailPrices.Text    = RouteM.PublicAuditPrice.ToString("F0");
                MQUrlHtml = EyouSoft.Common.Utils.GetMQ(this.Master.CompanyId);
                if (RouteM.RouteImg != null && !string.IsNullOrEmpty(RouteM.RouteImg))
                {
                    this.RouteImgUrl.ImageUrl = EyouSoft.Common.Domain.FileSystem + RouteM.RouteImg;
                }
                else
                {
                    this.RouteImgUrl.ImageUrl = Domain.ServerComponents + "/images/NoPicture.jpg";
                }

                if (RouteM.Themes != null && RouteM.Themes.Count > 0)
                {
                    for (int i = 0; i < RouteM.Themes.Count; i++)
                    {
                        themeList.Append("<span class=\"haohuayl\">" + RouteM.Themes[i].ThemeName + "</span>");
                    }
                }
                this.LitDays.Text         = RouteM.Day.ToString();
                this.Litlateness.Text     = RouteM.Late.ToString();
                this.litSigleUp.Text      = RouteM.AdvanceDayRegistration.ToString();
                this.litStartTriffic.Text = "去程--交通:" + RouteM.StartTraffic.ToString() + ",出发地:" + RouteM.StartCityName + "<br/>";
                this.litEndTriffic.Text   = "返程--交通:" + RouteM.EndTraffic.ToString() + ",目的地:" + RouteM.EndCityName;

                if (RouteM.RouteType == EyouSoft.Model.SystemStructure.AreaType.国际线)
                {
                    this.liDjShowOrHiden.Visible = true;
                    this.LitAdultPriceDj.Text    = RouteM.AdultPrice.ToString("F0");
                    this.litChildrenPriceDj.Text = RouteM.ChildrenPrice.ToString("F0");

                    if (RouteM.BrowseCountrys != null && RouteM.BrowseCountrys.Count > 0)
                    {
                        BrowSeAreaHtml.Append("<li>游览区域:");
                        qianzhengHtml.Append("<li class=\"qianzheng\">签证:");
                        for (int i = 0; i < RouteM.BrowseCountrys.Count; i++)
                        {
                            BrowSeAreaHtml.Append("" + RouteM.BrowseCountrys[i].CountryName + "&nbsp");
                            if (RouteM.BrowseCountrys[i].IsVisa == true)
                            {
                                qianzhengHtml.Append("" + RouteM.BrowseCountrys[i].CountryName + "签证&nbsp");
                            }
                        }
                        BrowSeAreaHtml.Append("</li>");
                        qianzhengHtml.Append("</li>");
                    }
                }
                else
                {
                    this.liDjShowOrHiden.Visible = false;
                    BrowSeAreaHtml.Append("<li>游览区域:");
                    if (RouteM.BrowseCitys != null && RouteM.BrowseCitys.Count > 0)
                    {
                        for (int i = 0; i < RouteM.BrowseCitys.Count; i++)
                        {
                            if (RouteM.BrowseCitys[i].CountyId == 0)
                            {
                                BrowSeAreaHtml.Append("" + RouteM.BrowseCitys[i].CityName + "&nbsp");
                            }
                            else
                            {
                                BrowSeAreaHtml.Append("" + RouteM.BrowseCitys[i].CountyName + "&nbsp");
                            }
                        }
                    }
                    BrowSeAreaHtml.Append("</li>");
                }

                if (RouteM.IsCertain == true)
                {
                    IsCerTainHtml = "无需成团,铁定发团";
                }

                //特色线路
                this.litHotRoute.Text = RouteM.Characteristic;

                //子团选项
                IList <EyouSoft.Model.NewTourStructure.MPowderList> Powderlist = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetList(RouteM.RouteId);
                if (Powderlist != null && Powderlist.Count > 0)
                {
                    //给日历赋子团信息
                    IList <EyouSoft.Model.NewTourStructure.MPowderList> CalendarChild = this.filterChildren(Powderlist);
                    IsoDateTimeConverter isoDate = new IsoDateTimeConverter();
                    isoDate.DateTimeFormat = "yyyy-MM-dd";
                    string scripts = string.Format("QGD.config.Childrens={0};", JsonConvert.SerializeObject(CalendarChild, isoDate));
                    EyouSoft.Common.Function.MessageBox.ResponseScript(this.Page, scripts);
                }

                //行程安排
                if (RouteM.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)
                {
                    if (RouteM.StandardPlans != null && RouteM.StandardPlans.Count > 0)
                    {
                        IList <EyouSoft.Model.NewTourStructure.MStandardPlan> PlanInfo = RouteM.StandardPlans.OrderBy(p => p.PlanDay).ToList();

                        StringBuilder strAllDateInfo = new StringBuilder();
                        for (int i = 0; i < PlanInfo.Count; i++)
                        {
                            string Dinner = string.Empty;
                            if (PlanInfo[i].Early == true)
                            {
                                Dinner += "早,";
                            }
                            ;
                            if (PlanInfo[i].Center == true)
                            {
                                Dinner += "中,";
                            }
                            ;
                            if (PlanInfo[i].Late == true)
                            {
                                Dinner += "晚";
                            }
                            ;
                            strAllDateInfo.Append("<div class=\"m10\">");
                            strAllDateInfo.Append("<div class=\"trl_d_detail\"> <div class=\"trl_d_anpaiday\">第" +
                                                  (PlanInfo[i].PlanDay) + "天</div><div class=\"xing\"><span>行:</span>" +
                                                  (Convert.ToInt32(PlanInfo[i].Vehicle) <= 0
                                                       ? string.Empty
                                                       : PlanInfo[i].Vehicle.ToString()) +
                                                  "</div><div class=\"zhu\"><span>住:</span>" + PlanInfo[i].House +
                                                  "</div><div class=\"can\"><span>餐:</span>" + Dinner.TrimEnd(',') +
                                                  "</div></div>");
                            strAllDateInfo.Append("<div class=\"trl_d_detail1\"> <div class=\"trl_xcleft\">" +
                                                  Utils.TextToHtml(PlanInfo[i].PlanContent) + "</div></div>");
                            strAllDateInfo.Append("</div>");
                        }
                        this.LiteralTourPlan.Text = strAllDateInfo.ToString();
                    }
                }
                else
                {
                    if (!string.IsNullOrEmpty(RouteM.FastPlan))
                    {
                        this.LiteralTourPlan.Text = RouteM.FastPlan;
                    }
                }

                //服务项目
                if (RouteM.ServiceStandard != null)
                {
                    System.Text.StringBuilder ServiceHtml = new StringBuilder();
                    if (string.IsNullOrEmpty(RouteM.FitQuotation))
                    {
                        int index = 1;
                        if (!string.IsNullOrEmpty(RouteM.ServiceStandard.ResideContent))
                        {
                            ServiceHtml.AppendFormat("{0}.住宿:{1}<br/>", (index++),
                                                     Utils.TextToHtml(RouteM.ServiceStandard.ResideContent));
                        }
                        if (!string.IsNullOrEmpty(RouteM.ServiceStandard.DinnerContent))
                        {
                            ServiceHtml.AppendFormat("{0}.用餐:{1}<br/>", (index++),
                                                     Utils.TextToHtml(RouteM.ServiceStandard.DinnerContent));
                        }
                        if (!string.IsNullOrEmpty(RouteM.ServiceStandard.SightContent))
                        {
                            ServiceHtml.AppendFormat("{0}.景点:{1}<br/>", (index++),
                                                     Utils.TextToHtml(RouteM.ServiceStandard.SightContent));
                        }
                        if (!string.IsNullOrEmpty(RouteM.ServiceStandard.CarContent))
                        {
                            ServiceHtml.AppendFormat("{0}.用车:{1}<br/>", (index++),
                                                     Utils.TextToHtml(RouteM.ServiceStandard.CarContent));
                        }
                        if (!string.IsNullOrEmpty(RouteM.ServiceStandard.GuideContent))
                        {
                            ServiceHtml.AppendFormat("{0}.导游:{1}<br/>", (index++),
                                                     Utils.TextToHtml(RouteM.ServiceStandard.GuideContent));
                        }
                        if (!string.IsNullOrEmpty(RouteM.ServiceStandard.TrafficContent))
                        {
                            ServiceHtml.AppendFormat("{0}.往返交通:{1}<br/>", (index++),
                                                     Utils.TextToHtml(RouteM.ServiceStandard.TrafficContent));
                        }
                        if (!string.IsNullOrEmpty(RouteM.ServiceStandard.IncludeOtherContent))
                        {
                            ServiceHtml.AppendFormat("{0}.其它包含:{1}<br/>", (index++),
                                                     Utils.TextToHtml(RouteM.ServiceStandard.IncludeOtherContent));
                        }

                        lblServiceStandard.Text = ServiceHtml.ToString();
                    }
                    else
                    {
                        this.lblServiceStandard.Text = Utils.TextToHtml(RouteM.FitQuotation);
                    }
                    //报价不含
                    this.lblServiceStandardNo.Text = Utils.TextToHtml(RouteM.ServiceStandard.NotContainService);
                    //儿童及其他安排
                    this.lblAdultAndOtherPlan.Text = Utils.TextToHtml(RouteM.ServiceStandard.ChildrenInfo);
                    //赠送项目
                    this.LitPresentedProject.Text = Utils.TextToHtml(RouteM.ServiceStandard.GiftInfo);
                    //自费项目
                    this.LitCopaymentsProject.Text = Utils.TextToHtml(RouteM.ServiceStandard.ExpenseItem);
                    //购物点
                    this.LitShoppingPlace.Text = Utils.TextToHtml(RouteM.ServiceStandard.ShoppingInfo);
                    //备注信息
                    this.LitRemarkInfo.Text = Utils.TextToHtml(RouteM.ServiceStandard.Notes);
                }
                //同业销售需知
                this.litSalesNotice.Text = Utils.TextToHtml(RouteM.VendorsNotes);
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourID"></param>
        /// <param name="adultCount"></param>
        /// <param name="childCount"></param>
        /// <param name="contact"></param>
        /// <param name="tel"></param>
        private void PageInit(string tourID, string adultCount, string childCount, string contact, string tel)
        {
            EyouSoft.IBLL.NewTourStructure.IPowderList tourBll = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance();

            EyouSoft.Model.NewTourStructure.MPowderList model = tourBll.GetModel(tourID);

            if (model != null)
            {
                EyouSoft.IBLL.NewTourStructure.IRoute  routeBll   = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
                EyouSoft.Model.NewTourStructure.MRoute routeModel = routeBll.GetModel(model.RouteId);

                this.lblRouteName.Text = "<a href='/PrintPage/LineTourInfo.aspx?RouteID=" + model.RouteId + "' target='_blank'>" + model.RouteName + "</a>";
                this.lblLeaveDate.Text = model.LeaveDate.ToString("yyyy-MM-dd") + "(" + Utils.GetDayOfWeek((int)model.LeaveDate.DayOfWeek) + ")";
                this.lblCount.Text     = model.MoreThan.ToString();
                if (model.RouteType == EyouSoft.Model.SystemStructure.AreaType.国际线)
                {
                    this.lbPrice_d.Text = model.AdultPrice.ToString("F0");
                }
                this.lblTourState.Text   = model.PowderTourStatus.ToString();
                this.lblCompanyName.Text = " <a  target=\"_blank\" href=\"" + Utils.GetShopUrl(model.Publishers) + "\">" + model.PublishersName + "</a>";


                #region 获得专线公司信息
                EyouSoft.Model.CompanyStructure.CompanyInfo comModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(model.Publishers);
                if (comModel != null && comModel.ContactInfo != null)
                {
                    this.lblMq.Text = Utils.GetMQ(comModel.ContactInfo.MQ);
                    this.lblQQ.Text = Utils.GetQQ(comModel.ContactInfo.QQ);
                }

                #endregion

                this.lblLeaveCityandTraffic.Text = model.StartTraffic + " " + model.StartCityName + " ";
                this.lblEndCityandTraffic.Text   = model.EndTraffic + " " + model.EndCityName + " ";
                this.lbLeavedate.Text            = model.StartDate;
                this.lbEnddate.Text = model.EndDate;
                this.lblMsg.Text    = model.SetDec;
                this.lblAllMsg.Text = model.TeamLeaderDec;


                if (contact != "")
                {
                    this.txtFzr.Value = contact;
                }
                else
                {
                    this.txtFzr.Value = SiteUserInfo.ContactInfo.ContactName;
                }

                if (tel != "")
                {
                    this.txtFzrTel.Value = tel;
                }
                else
                {
                    this.txtFzrTel.Value = SiteUserInfo.ContactInfo.Tel;
                }

                if (adultCount != "")
                {
                    this.txtAdultCount.Value = adultCount;
                }
                if (childCount != "")
                {
                    this.txtChildCount.Value = childCount;
                }

                #region 团队 价格信息
                //市场价
                this.lblRetailAdultPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.RetailAdultPrice);
                this.lblRetailChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.RetailChildrenPrice);
                this.lblMarketPrice.Text         = Utils.FilterEndOfTheZeroDecimal(model.MarketPrice);

                //结算价
                this.lblSettlementAudltPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.SettlementAudltPrice);
                this.lblSettlementChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.SettlementChildrenPrice);
                #endregion

                //处理总金额
                //市场价总价
                this.lblReailPriceAll.Text = Utils.FilterEndOfTheZeroDecimal(Utils.GetInt(adultCount) * model.RetailAdultPrice + Utils.GetInt(childCount) * model.RetailChildrenPrice);
                //结算总价
                this.lblSettlePriceAll.Text = Utils.FilterEndOfTheZeroDecimal(Utils.GetInt(adultCount) * model.SettlementAudltPrice + Utils.GetInt(childCount) * model.SettlementChildrenPrice);
            }
        }
Esempio n. 5
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourID"></param>
        /// <param name="adultCount"></param>
        /// <param name="childCount"></param>
        /// <param name="contact"></param>
        /// <param name="tel"></param>
        private void PageInit(string orderID)
        {
            EyouSoft.IBLL.NewTourStructure.ITourOrder orderBll = EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance();

            EyouSoft.Model.NewTourStructure.MTourOrder model = orderBll.GetModel(orderID);

            if (model != null)
            {
                EyouSoft.IBLL.NewTourStructure.IPowderList  tourBll   = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance();
                EyouSoft.Model.NewTourStructure.MPowderList tourModel = tourBll.GetModel(model.TourId);
                if (tourModel == null)
                {
                    Utils.Show("error");
                    return;
                }
                this.lblRouteName.Text   = "<a href='/PrintPage/LineTourInfo.aspx?RouteID=" + model.RouteId + "' target='_blank'>" + model.RouteName + "</a>";
                this.lblCompanyName.Text = " <a  target=\"_blank\" href=\"" + Utils.GetShopUrl(model.Travel) + "\">" + model.TravelName + "</a>";

                #region 获得组团公司信息
                EyouSoft.Model.CompanyStructure.CompanyInfo comModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(model.Travel);
                if (comModel != null && comModel.ContactInfo != null)
                {
                    this.lblMq.Text = Utils.GetMQ(comModel.ContactInfo.MQ);
                    this.lblQQ.Text = Utils.GetQQ(comModel.ContactInfo.QQ);
                }

                #endregion
                this.txtAddPrice.Value            = model.Reduction.ToString("0.00");
                this.lblTourState.Text            = tourModel.PowderTourStatus.ToString();
                this.lblCount.Text                = tourModel.MoreThan.ToString();
                this.txtRouteRemarks.Value        = model.BusinessNotes;
                this.lblRemarks.Text              = model.TravelNotes;
                this.lblLeaveDate.Text            = model.LeaveDate.ToString("yyyy-MM-dd") + "(" + Utils.GetDayOfWeek((int)model.LeaveDate.DayOfWeek) + ") "; //出团日期(周几)
                this.lblLeaveCityandTracffic.Text = tourModel.StartTraffic + " " + tourModel.StartCityName;                                                   //出发交通和城市
                this.lbEndCityandTracffic.Text    = tourModel.EndTraffic + " " + tourModel.EndCityName;                                                       //返程交通和城市
                this.lbLeavedate.Text             = tourModel.StartDate;
                this.lbEnddate.Text               = tourModel.EndDate;
                this.lblMsg.Text         = tourModel.SetDec;
                this.lblAllMsg.Text      = tourModel.TeamLeaderDec;
                this.lblContact.Text     = model.VisitorContact;
                this.lblConTactTel.Text  = model.VisitorTel;
                this.lblFzr.Text         = model.TravelContact;
                this.lblFzrTel.Text      = model.TravelTel;
                this.txtAdultCount.Value = model.AdultNum.ToString();
                this.txtChildCount.Value = model.ChildrenNum.ToString();
                this.txtOtherCount.Value = model.SingleRoomNum.ToString();
                this.lblAddDate.Text     = model.IssueTime.ToString("yyyy-MM-dd") + "&nbsp" + model.OperatorName;
                this.lblCusRemark.Text   = model.VisitorNotes;
                this.lblOrder.Text       = model.OrderNo;
                #region 团队 价格信息
                //市场价
                this.lblRetailAdultPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.PersonalPrice);
                this.lblRetailChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.ChildPrice);
                this.lblMarketPrice.Text         = Utils.FilterEndOfTheZeroDecimal(model.MarketPrice);

                //结算价
                this.lblSettlementAudltPrice.Text    = Utils.FilterEndOfTheZeroDecimal(model.SettlementAudltPrice);
                this.lblSettlementChildrenPrice.Text = Utils.FilterEndOfTheZeroDecimal(model.SettlementChildrenPrice);
                #endregion

                //处理总金额
                //结算总价
                this.lblSettlePriceAll.Text = Utils.FilterEndOfTheZeroDecimal(model.TotalSettlementPrice);

                this.OrderCustomer1.TourOrderCustomer = model.Customers;

                #region 处理订单状态和支付状态
                this.pnlSave.Visible    = false;
                this.pnlYuLiu.Visible   = false;
                this.pnlQueDing.Visible = false;
                this.pnlJieDan.Visible  = false;
                switch (model.OrderStatus)
                {
                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.组团社待处理:
                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.组团社已阅:
                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商待处理:
                    this.lblOrderState.Text = "未处理";
                    this.pnlSave.Visible    = true;
                    this.pnlYuLiu.Visible   = true;
                    this.pnlQueDing.Visible = true;

                    break;

                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商预留:
                    this.lblOrderState.Text = "专线预留,留位日期:" + Convert.ToDateTime(model.SaveDate).ToString("yyyy-MM-dd");
                    this.pnlSave.Visible    = true;
                    this.pnlQueDing.Visible = true;

                    break;

                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.预留过期:
                    this.lblOrderState.Text = "留位过期";
                    this.pnlSave.Visible    = true;
                    this.pnlQueDing.Visible = true;
                    break;

                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.结单:
                    this.lblOrderState.Text = "已结单";
                    break;

                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.取消:
                    this.lblOrderState.Text = "已取消";
                    break;

                case EyouSoft.Model.NewTourStructure.PowderOrderStatus.专线商已确定:
                    this.lblOrderState.Text = "专线已确定";
                    this.pnlJieDan.Visible  = true;
                    break;
                }


                this.pnlLitPay.Visible = false;
                this.pnlAllPay.Visible = false;
                switch (model.PaymentStatus)
                {
                case EyouSoft.Model.NewTourStructure.PaymentStatus.游客待支付:
                case EyouSoft.Model.NewTourStructure.PaymentStatus.游客未支付:
                    this.lblPayState.Text  = "游客未付款";
                    this.pnlLitPay.Visible = true;
                    this.pnlAllPay.Visible = true;
                    break;

                case EyouSoft.Model.NewTourStructure.PaymentStatus.游客已支付定金:
                    this.lblPayState.Text  = "游客已支付定金";
                    this.pnlLitPay.Visible = true;
                    this.pnlAllPay.Visible = true;
                    break;

                case EyouSoft.Model.NewTourStructure.PaymentStatus.游客已支付全款:
                    this.lblPayState.Text  = "游客已支付全款";
                    this.pnlLitPay.Visible = true;
                    this.pnlAllPay.Visible = true;
                    break;

                case EyouSoft.Model.NewTourStructure.PaymentStatus.组团社已付定金:
                    this.lblPayState.Text  = "已收定金";
                    this.pnlAllPay.Visible = true;
                    this.pnlSave.Visible   = false;
                    break;

                case EyouSoft.Model.NewTourStructure.PaymentStatus.组团社已付全款:
                    this.lblPayState.Text = "已收全款";
                    this.pnlSave.Visible  = false;
                    break;

                case EyouSoft.Model.NewTourStructure.PaymentStatus.结账:
                    this.lblPayState.Text = "该单已结账";
                    this.pnlSave.Visible  = false;
                    break;

                case EyouSoft.Model.NewTourStructure.PaymentStatus.申请退款:
                    this.lblPayState.Text = "申请退款";
                    break;

                case EyouSoft.Model.NewTourStructure.PaymentStatus.已退款:
                    this.lblPayState.Text = "已退款";
                    break;
                }
                #endregion


                EyouSoft.Model.NewTourStructure.MRoute routeModel = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetModel(model.RouteId);
                if (routeModel != null)
                {
                    //如果线路是铁定发团则不显示预留
                    if (routeModel.IsCertain)
                    {
                        this.pnlYuLiu.Visible = false;
                    }
                    //如果国际线预定金额小于0,那么隐藏收取定金
                    if (routeModel.RouteType == EyouSoft.Model.SystemStructure.AreaType.国际线)
                    {
                        if (routeModel.AdultPrice <= 0 && routeModel.ChildrenPrice <= 0)
                        {
                            this.pnlLitPay.Visible = false;
                        }
                    }
                    else
                    {
                        this.pnlLitPay.Visible = false;
                    }
                }
            }
        }