Esempio n. 1
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected void InitPage()
        {
            EyouSoft.Model.NewTourStructure.MPowderPrint PowderPrintModel =
                EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetModelPrint(TeamId);
            if (PowderPrintModel != null)
            {
                #region 普通信息

                #region 联系信息2012-04-20  周文超 替换成当前登录用户的

                plhContact.Visible = IsLogin;
                if (IsLogin && SiteUserInfo != null)
                {
                    EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyDetailInfo =
                        EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);

                    //公司名称
                    this.zutuan.Text = companyDetailInfo.CompanyName;
                    //公司地址
                    this.Address.Text = companyDetailInfo.CompanyAddress;
                    //联系人
                    this.Contact.Text = companyDetailInfo.ContactInfo.ContactName;
                    //传真
                    this.Fax.Text = companyDetailInfo.ContactInfo.Fax;
                    //电话
                    this.Tel.Text = companyDetailInfo.ContactInfo.Tel;
                }

                #endregion

                //获取打印时间
                this.LabGetTime.Text = GetTime();
                //团号
                this.GroupNo.Text = PowderPrintModel.TourNo;
                //线路名次
                this.RouteName.Text = PowderPrintModel.RouteName;
                //成人价
                this.AdultPrice.Value = Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.RetailAdultPrice);
                //儿童价
                this.ChildPrice.Value = Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.RetailChildrenPrice);
                //单房差
                this.danfangcha.Value = Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.MarketPrice);
                //出发交通
                this.LeaveTraffic.Text = PowderPrintModel.StartTraffic.ToString() ==
                                         "0" ? "" : PowderPrintModel.StartTraffic.ToString() + "  " + PowderPrintModel.StartDate;
                //返程交通
                this.BackTraffic.Text = PowderPrintModel.EndTraffic.ToString() ==
                                        "0" ? "" : PowderPrintModel.EndTraffic.ToString() + "  " + PowderPrintModel.EndDate;
                //出发日期
                this.LeaveDate.Text = PowderPrintModel.LeaveDate.ToString("yyyy-MM-dd");
                //集合地点
                this.CollectionAddress.Text = PowderPrintModel.SetDec;
                //返回日期
                this.BackDate.Text = (PowderPrintModel.LeaveDate + new TimeSpan(PowderPrintModel.Day + 1, 0, 0, 0, 0)).ToString("yyyy-MM-dd");
                //全陪领队
                this.DescriptionLeader.Text = Utils.TextToHtml(PowderPrintModel.TeamLeaderDec);
                #endregion

                #region 绑定日程
                if (PowderPrintModel.StandardPlan != null && PowderPrintModel.StandardPlan.Count > 0)
                {
                    isStandard = true;
                    //绑定日程
                    BindStandardPlan(PowderPrintModel.StandardPlan);
                }
                else
                {
                    //简易日程
                    this.FastisStandard.Text = PowderPrintModel.FastPlan;
                }
                #endregion

                #region  务信息
                if (PowderPrintModel.FitQuotation != null && PowderPrintModel.FitQuotation != "")
                {
                    this.Containers.Text = PowderPrintModel.FitQuotation;
                }
                if (PowderPrintModel.ServiceStandard != null)
                {
                    //报价包含

                    if (PowderPrintModel.FitQuotation == null || PowderPrintModel.FitQuotation == "")
                    {
                        this.Containers.Text = Utils.TextToHtml(GetContainers(PowderPrintModel.ServiceStandard));
                    }
                    //不含
                    this.NoContainers.Text = Utils.TextToHtml(PowderPrintModel.ServiceStandard.NotContainService);
                    //儿童
                    this.Children.Text = Utils.TextToHtml(PowderPrintModel.ServiceStandard.ChildrenInfo);
                    //赠送
                    this.Gift.Text = Utils.TextToHtml(PowderPrintModel.ServiceStandard.GiftInfo);
                    //购物
                    this.Shopping.Text = Utils.TextToHtml(PowderPrintModel.ServiceStandard.ShoppingInfo);
                    //自费
                    this.OwnExpense.Text = Utils.TextToHtml(PowderPrintModel.ServiceStandard.ExpenseItem);
                    //备注
                    this.Remark.Text = Utils.TextToHtml(PowderPrintModel.ServiceStandard.Notes);
                }
                #endregion
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected void InitPage()
        {
            //通过团队编号获取相关实体
            EyouSoft.Model.NewTourStructure.MPowderPrint PowderPrintModel =
                EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetModelPrint(TeamId);
            this.LabGetTime.Text = GetTime();
            if (PowderPrintModel != null)
            {
                if (PowderPrintModel.RouteType == EyouSoft.Model.SystemStructure.AreaType.国际线)
                {
                    isInternational = true;
                }
                #region 普通信息

                #region 联系信息2012-04-20  周文超 替换成当前登录用户的

                plhContact.Visible = IsLogin;
                if (IsLogin && SiteUserInfo != null)
                {
                    EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyDetailInfo =
                        EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
                    //公司logo
                    if (!string.IsNullOrEmpty(companyDetailInfo.AttachInfo.CompanyLogo.ImagePath))
                    {
                        this.TravelLogo = string.Format("<img src=\"{0}\" height=\"60\">", EyouSoft.Common.Domain.FileSystem + companyDetailInfo.AttachInfo.CompanyLogo.ImagePath);
                    }

                    //公司名称
                    this.TravelName.Text = companyDetailInfo.CompanyName;
                    //公司地址
                    this.TravelAddress.Text = companyDetailInfo.CompanyAddress;
                    //联系人
                    this.Contact.Text = companyDetailInfo.ContactInfo.ContactName;
                    //传真
                    this.Fax.Text = companyDetailInfo.ContactInfo.Fax;
                    //电话
                    this.Phone.Text = companyDetailInfo.ContactInfo.Tel;
                    //手机
                    this.Mobile.Text = companyDetailInfo.ContactInfo.Mobile;
                }

                #endregion

                //线路名称
                this.RouteName.Text = PowderPrintModel.RouteName;
                //线路名称
                this.RouteName1.Text = PowderPrintModel.RouteName;
                //团号
                this.TourNo.Text = PowderPrintModel.TourNo;
                //报名截止日期
                this.RegistrationEndDate.Text = PowderPrintModel.RegistrationEndDate.ToString("yyyy-MM-dd");
                //天数
                this.Dates.Text = PowderPrintModel.Day.ToString();
                //出发交通
                this.TrafficandCity.Text = PowderPrintModel.StartCityName + "  " +
                                           PowderPrintModel.StartTraffic + "  " + PowderPrintModel.StartDate;
                //出发时间
                this.LeaveDate.Text = PowderPrintModel.LeaveDate.ToString("yyyy-MM-dd");
                //返回交通
                this.TrafficandBackCity.Text = PowderPrintModel.EndCityName + "  " +
                                               PowderPrintModel.EndTraffic + "  " + PowderPrintModel.EndDate;
                //返抵达日
                this.ComeBackDate.Text = PowderPrintModel.ComeBackDate.ToString("yyyy-MM-dd");
                //成人市场价
                this.AdultPrice.Value = Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.RetailAdultPrice);
                //儿童市场价
                this.ChildPrice.Value = Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.RetailChildrenPrice);
                //单房差
                this.danfangcha.Value = Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.MarketPrice);
                //成人定金
                this.AdaultDeposit.Text = PowderPrintModel.AdultPrice == 0 ? "电询" : Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.AdultPrice);
                //儿童定金
                this.ChildDeposit.Text = PowderPrintModel.ChildrenPrice == 0 ? "电询" : Utils.FilterEndOfTheZeroDecimal(PowderPrintModel.ChildrenPrice);
                //主要游览地区
                this.MainArea.Text = PowderPrintModel.BrowseCity;
                //签证地区
                this.VisaArea.Text = PowderPrintModel.VisaCity;
                //线路特色
                this.RouteFeatures.Text = Utils.TextToHtml(PowderPrintModel.Characteristic);
                #endregion

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

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

                #region 银行信息
                this.CompanyAcount.Text = PowderPrintModel.CompanyAccount;
                if (PowderPrintModel.PersonalAccount != null && PowderPrintModel.PersonalAccount.Count > 0)
                {
                    this.PersonerAcount.Text = GetPersonAccount(PowderPrintModel.PersonalAccount);
                }
                this.Alipay.Text = PowderPrintModel.AlipayAccount;
                #endregion
            }
        }