Ejemplo n.º 1
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected void InitPage(string tourID, string orderStatus)
        {
            EyouSoft.Model.NewTourStructure.MPowderList PowderListModel =
                EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetModel(tourID);
            if (PowderListModel != null)
            {
                //线路名称
                this.RouteName.Text = PowderListModel.RouteName;
                this.LeaveDate.Text = PowderListModel.LeaveDate.ToString("yyyy-MM-dd");
                //出团时间
                this.GroupNo.Text = PowderListModel.TourNo;
                //线路名称
                this.RouteName1.Text = PowderListModel.RouteName;
                //出团时间
                this.LeaveTime.Text = PowderListModel.LeaveDate.ToString("yyyy-MM-dd");

                //备注
                this.Remark.Value = Utils.TextToHtml(PowderListModel.TourNotes);
            }
            IList <EyouSoft.Model.NewTourStructure.MTourOrderCustomer> list = null;

            PowderOrderStatus?[] arryOrderStatus = null;
            //游客信息绑定
            if (orderStatus == "lishi")
            {
                //历史团队名单
                arryOrderStatus    = new PowderOrderStatus?[2];
                arryOrderStatus[0] = PowderOrderStatus.结单;
                arryOrderStatus[1] = PowderOrderStatus.专线商已确定;
                list = EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance().GetOrderCustomerByTourId(tourID, this.SiteUserInfo.CompanyID, CompanyType.专线, arryOrderStatus);
            }
            else
            {
                //散拼计划人员名单
                arryOrderStatus    = new PowderOrderStatus?[1];
                arryOrderStatus[0] = PowderOrderStatus.专线商已确定;
                list = EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance().GetOrderCustomerByTourId(tourID, this.SiteUserInfo.CompanyID, CompanyType.专线, arryOrderStatus);
            }

            if (list != null && list.Count > 0)
            {
                //实际人数
                this.FactNo.Text = list.Count.ToString();
                isTrue           = true;
                this.TouristInfomation.DataSource = list;
                this.TouristInfomation.DataBind();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 日历子团信息
        /// 取有用到的数据,没登录时,过滤掉同行价
        /// </summary>
        protected IList <EyouSoft.Model.NewTourStructure.MPowderList> filterChildren(IList <EyouSoft.Model.NewTourStructure.MPowderList> OldChildrens)
        {
            IList <EyouSoft.Model.NewTourStructure.MPowderList> NewChildrens = new List <EyouSoft.Model.NewTourStructure.MPowderList>();

            foreach (EyouSoft.Model.NewTourStructure.MPowderList Model in OldChildrens)
            {
                EyouSoft.Model.NewTourStructure.MPowderList item = new EyouSoft.Model.NewTourStructure.MPowderList();
                item.TourNo           = Model.TourNo;
                item.TourId           = Model.TourId;
                item.LeaveDate        = Model.LeaveDate;
                item.RetailAdultPrice = Model.RetailAdultPrice;
                item.SaveNum          = Model.SaveNum;
                item.MoreThan         = Model.MoreThan;
                item.IsLimit          = Model.IsLimit;
                item.TourNum          = Model.TourNum;
                item.PowderTourStatus = Model.PowderTourStatus;
                NewChildrens.Add(item);
                item = null;
            }
            return(NewChildrens);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected void InitPage(string tourID)
        {
            EyouSoft.Model.NewTourStructure.MPowderList PowderListModel =
                EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetModel(tourID);

            if (PowderListModel != null)
            {
                //线路名称
                this.RouteName.Text = PowderListModel.RouteName;
                this.LeaveDate.Text = PowderListModel.LeaveDate.ToString("yyyy-MM-dd");
                //出团时间
                this.GroupNo.Text = PowderListModel.TourNo;
                //线路名称
                this.RouteName1.Text = PowderListModel.RouteName;
                //出团时间
                this.LeaveTime.Text = PowderListModel.LeaveDate.ToString("yyyy-MM-dd");
                //实际人数
                //this.FactNo.Text = PowderListModel.TourNum.ToString();
                //备注
                this.Remark.Value = PowderListModel.TourNotes;
            }

            IList <EyouSoft.Model.NewTourStructure.MTourOrderCustomer> list = null;

            //游客信息绑定
            list = EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance().GetOrderCustomerByTourId(tourID, PowderListModel.Publishers, CompanyType.专线);

            //arryOrderStatus = new PowderOrderStatus?[1];
            //arryOrderStatus[0] = PowderOrderStatus.专线商已确定;
            //list = EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance().GetOrderCustomerByTourId(tourID, this.SiteUserInfo.CompanyID, CompanyType.专线, arryOrderStatus);

            if (list != null && list.Count > 0)
            {
                //实际人数
                this.FactNo.Text = list.Count.ToString();
                isTrue           = true;
                this.TouristInfomation.DataSource = list;
                this.TouristInfomation.DataBind();
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 加载页面
        /// </summary>
        protected void InitPage()
        {
            #region 判断公司身份
            CompanyType[] companyType = this.SiteUserInfo.CompanyRole.RoleItems;
            foreach (var item in companyType)
            {
                switch (item)
                {
                case CompanyType.专线:
                    IsRouteAgency = true;
                    break;

                case CompanyType.地接:
                    break;

                case CompanyType.组团:
                    IsTourAgency = true;
                    break;

                default:
                    break;
                }
            }
            #endregion

            //根据团号获取团队实体信息
            EyouSoft.Model.NewTourStructure.MPowderList PowderModel =
                EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetModel(TeamId);
            if (PowderModel != null)
            {
                if (PowderModel.RouteType == AreaType.国际线)
                {
                    isInternational = true;
                }

                #region 判断散拼团队状态以及过期时间
                if (PowderModel.LeaveDate.Subtract(DateTime.Now.Date).Days <= 0 || PowderModel.PowderTourStatus == PowderTourStatus.客满 || PowderModel.PowderTourStatus == PowderTourStatus.停收)
                {
                    IsShow = false;
                }
                #endregion

                #region 普通信息
                //团号
                this.TourNo.Text = PowderModel.TourNo;
                //团队状态
                this.Statue.Text = PowderModel.PowderTourStatus.ToString();
                //出发时间
                this.BeginDate.Text = PowderModel.LeaveDate.ToString("yyyy-MM-dd");
                //报名截止时间
                this.EndDate.Text = PowderModel.RegistrationEndDate.ToString("yyyy-MM-dd");
                //成人市场价
                this.AdultPrice.Text = Utils.FilterEndOfTheZeroDecimal(PowderModel.RetailAdultPrice);
                //儿童市场价
                this.ChildPrice.Text = Utils.FilterEndOfTheZeroDecimal(PowderModel.RetailChildrenPrice);
                //成人结算价
                this.AdultSettlementPrice.Text = Utils.FilterEndOfTheZeroDecimal(PowderModel.SettlementAudltPrice);
                //儿童结算价
                this.ChildSettlementPrice.Text = Utils.FilterEndOfTheZeroDecimal(PowderModel.SettlementChildrenPrice);
                //单房差
                this.danfangcha.Text = Utils.FilterEndOfTheZeroDecimal(PowderModel.MarketPrice);
                //团队
                this.Team.Text = "计划收客人数 " + PowderModel.TourNum.ToString() +
                                 "余位 " + PowderModel.MoreThan.ToString() +
                                 "留位 " + PowderModel.SaveNum.ToString();
                //出发班次时间
                this.GoTime.Text = PowderModel.StartDate;
                //反悔航班时间
                this.BackTime.Text = PowderModel.EndDate;
                //集合说明
                this.CollectionDescription.Text = PowderModel.SetDec;
                //领队全陪说明
                this.DescriptionLeader.Text = PowderModel.TeamLeaderDec;
                //销售商须知
                this.SellerNotice.Text = PowderModel.VendorsNotes;
                //团队备注
                this.TeamRemark.Text = PowderModel.TourNotes;
                //线路名称
                this.RouteName.Text = PowderModel.RouteName;
                //公司名称
                this.CompanyName.Text = PowderModel.PublishersName;
                Mq = Utils.GetMQ(SiteUserInfo.ContactInfo.MQ);
                //专线名称
                this.RouteType.Text = PowderModel.AreaName;
                //出发交通和城市
                this.StartTraffic.Text = PowderModel.StartTraffic + " " + PowderModel.StartCityName;
                //返回交通和城市
                this.EndTraffic.Text = PowderModel.EndTraffic + " " + PowderModel.EndCityName;
                //主题
                this.RouteTheme.Text = GetThemeList(PowderModel.Themes);
                //天数
                this.Day.Text = PowderModel.Day.ToString();
                //晚
                this.Night.Text = PowderModel.Late.ToString();
                //主要游览地区
                this.MainTourArea.Text = GetMainTourArea(PowderModel.RouteType, PowderModel.BrowseCitys, PowderModel.BrowseCountrys);
                //签证地区
                this.VisaArea.Text = GetVisaArea(PowderModel.BrowseCountrys);
                //成人定金
                this.Adult.Text = PowderModel.AdultPrice == 0 ? "电询" : Utils.FilterEndOfTheZeroDecimal(PowderModel.AdultPrice);
                //儿童定金
                this.Child.Text = PowderModel.ChildrenPrice == 0 ? "电询" : Utils.FilterEndOfTheZeroDecimal(PowderModel.ChildrenPrice);
                //线路特色
                this.RouteFeatures.Text = Utils.TextToHtml(PowderModel.Characteristic);
                #endregion

                #region 团队参考价格&最小成团人数
                if (PowderModel.RouteId != "" && PowderModel.RouteId != null)
                {
                    MRoute routeModel = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetModel(PowderModel.RouteId);
                    //最小成团人数
                    this.Min.Text = routeModel.GroupNum.ToString();
                    //团队参考价格
                    if (routeModel.IndependentGroupPrice == 0)
                    {
                        this.TeamPrice.Text = "一团一议";
                    }
                    else
                    {
                        this.TeamPrice.Text = Utils.FilterEndOfTheZeroDecimal(routeModel.IndependentGroupPrice);
                    }
                }
                #endregion

                #region 日程信息
                if (PowderModel.StandardPlans != null && PowderModel.StandardPlans.Count > 0)
                {
                    isStandard = true;
                    //标准日程
                    BindStandardPlan(PowderModel.StandardPlans);
                }
                else
                {
                    //简易行程
                    this.FastStandard.Text = PowderModel.StandardStroke;
                }
                #endregion

                #region  务信息
                if (PowderModel.FitQuotation != "" && PowderModel.FitQuotation != null)
                {
                    this.Containers.Text = PowderModel.FitQuotation;
                }
                if (PowderModel.ServiceStandard != null)
                {
                    if (PowderModel.FitQuotation == "" || PowderModel.FitQuotation == null)
                    {
                        //报价包含
                        this.Containers.Text = Utils.TextToHtml(GetContainers(PowderModel.ServiceStandard));
                    }
                    //不含
                    this.NoContainers.Text = Utils.TextToHtml(PowderModel.ServiceStandard.NotContainService);
                    //儿童
                    this.Children.Text = Utils.TextToHtml(PowderModel.ServiceStandard.ChildrenInfo);
                    //赠送
                    this.Gift.Text = Utils.TextToHtml(PowderModel.ServiceStandard.GiftInfo);
                    //购物
                    this.Shopping.Text = Utils.TextToHtml(PowderModel.ServiceStandard.ShoppingInfo);
                    //自费
                    this.OwnExpense.Text = Utils.TextToHtml(PowderModel.ServiceStandard.ExpenseItem);
                    //备注
                    this.Remark.Text = Utils.TextToHtml(PowderModel.ServiceStandard.Notes);
                }
                #endregion
            }
        }