Exemplo n.º 1
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="travelId">行程单ID</param>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour();
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)bll.GetTourInfo(tourId);
            if (model != null)
            {
                //线路名称
                this.lblAreaName.Text = model.RouteName;
                //团号
                this.lblTeamNum.Text = model.TourCode;
                //天数
                this.lblDay.Text = model.TourDays.ToString();
                #region 人数And结算价
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
                {
                    TourQuotePrint priantTQP = new TourQuotePrint();
                    string         number    = string.Empty;
                    string         money     = string.Empty;
                    priantTQP.getPepoleNum(SiteUserInfo.CompanyID, model.PlanPeopleNumber, model.TourTeamUnit, ref number, ref money);
                    this.lblAdult.Text = number;
                }
                else
                {
                    this.lblAdult.Text = model.PlanPeopleNumber.ToString();
                }
                #endregion

                //出发交通
                this.lblBegin.Text = model.LTraffic;
                //返程交通
                this.lblEnd.Text = model.RTraffic;

                if (model.TourQuickInfo != null)
                {
                    //行程安排
                    this.litTravel.Text = model.TourQuickInfo.QuickPlan;
                    //服务标准
                    this.litService.Text = model.TourQuickInfo.Service;
                }
                //地接社信息
                this.rptDjInfo.DataSource = model.LocalAgencys;
                this.rptDjInfo.DataBind();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourId">行程单ID</param>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)bll.GetTourInfo(tourId);
            if (model != null)
            {
                #region 页面控件赋值
                //出团日期
                LeaveDate = model.LDate.ToString("yyyy-MM-dd");
                //出发交通
                lblBegin = model.LTraffic;
                //组团社
                this.txtZutuanName.Text = model.BuyerCName;
                //联系信息
                EyouSoft.BLL.CompanyStructure.CompanySupplier   supplierBll  = new EyouSoft.BLL.CompanyStructure.CompanySupplier();
                EyouSoft.Model.CompanyStructure.CompanySupplier companyModel = supplierBll.GetModel(model.BuyerCId, SiteUserInfo.CompanyID);
                if (companyModel != null)
                {
                    if (companyModel.SupplierContact != null && companyModel.SupplierContact.Count > 0)
                    {
                        this.txtIncomeMan.Text = companyModel.SupplierContact[0].ContactName;
                        this.txtFax.Text       = companyModel.SupplierContact[0].ContactFax;
                    }
                }
                //集合时间
                lblGatheredDate.Text = model.GatheringTime;
                //送团人
                if (model.SentPeoples != null && model.SentPeoples.Count > 0)
                {
                    this.txtOffName.Text = model.SentPeoples[0].OperatorName;
                }
                this.txtAddress.Text = model.GatheringPlace;


                //返程交通
                lblEnd = model.RTraffic;
                if (model.TourNormalInfo != null)
                {
                    //不含项目
                    this.lblNoProject.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                    //购物安排
                    this.lblBuy.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.GouWuAnPai);
                    //注意事项
                    this.lblNote.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                    //行程安排

                    if (model.TourNormalInfo.Plans != null)
                    {
                        this.listCount            = model.TourNormalInfo.Plans.Count;
                        tdCount                   = model.TourNormalInfo.Plans.Count;
                        this.rptTravel.DataSource = model.TourNormalInfo.Plans;

                        this.rptTravel.DataBind();
                    }
                }
                //人数
                #region 人数And结算价
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
                {
                    TourQuotePrint priantTQP = new TourQuotePrint();
                    string         number    = string.Empty;
                    string         money     = string.Empty;
                    priantTQP.getPepoleNum(SiteUserInfo.CompanyID, model.PlanPeopleNumber, model.TourTeamUnit, ref number, ref money);
                    this.lblAdult.Text = number;
                }
                else
                {
                    this.lblAdult.Text = model.PlanPeopleNumber.ToString();
                }
                #endregion
                //团队类型
                this.txtTourType.Text = model.TourType.ToString();


                //包含项目
                this.rptProject.DataSource = model.Services;
                this.rptProject.DataBind();

                #endregion
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourId"></param>
        protected void DataInit(string tourId)
        {
            EyouSoft.BLL.TourStructure.Tour           bll   = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            EyouSoft.Model.TourStructure.TourBaseInfo model = bll.GetTourInfo(tourId);
            if (model != null)
            {
                this.hideTourID.Value = tourId;

                //绑定地接社信息
                this.rptDjList.DataSource = bll.GetTourLocalAgencys(tourId);
                this.rptDjList.DataBind();
                //绑定旅客信息

                this.rptCustomer.DataSource = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetTravellers(tourId).Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();;
                this.rptCustomer.DataBind();

                //出团日期
                this.txtOutDate.Text = model.LDate.ToString("yyyy-MM-dd");
                //出发交通
                this.lblBenginDate.Text = model.LTraffic;
                //回程交通
                this.lblBackDate.Text = model.RTraffic;
                //线路名称
                this.lblAreaName.Text = model.RouteName;
                //人数
                this.lblCount.Text = model.PlanPeopleNumber.ToString();
                //计划类型
                this.lblTourType.Text = model.TourType.ToString();

                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.单项服务)
                {
                    EyouSoft.Model.TourStructure.TourSingleInfo tsModel = (EyouSoft.Model.TourStructure.TourSingleInfo)model;
                    //this.lblRemarks.Text =tsModel.
                }
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
                {
                    EyouSoft.Model.TourStructure.TourInfo tModel = (EyouSoft.Model.TourStructure.TourInfo)model;
                    if (tModel.TourNormalInfo != null)
                    {
                        //内部信息
                        this.lblRemarks.Text = tModel.TourNormalInfo.NeiBuXingXi;
                    }
                    //标志
                    this.txtNum4.Value = tModel.GatheringSign;
                    //string gather = Utils.GetDateTimeNullable(tModel.GatheringTime) == null ? string.Empty : Utils.GetDateTimeNullable(tModel.GatheringTime).ToString();
                    //this.txtGather.Text = gather == string.Empty ? "" : (Utils.GetDateTime(gather, DateTime.Now)).ToString("yyyy-MM-dd hh 点");
                    this.txtGather.Text = tModel.GatheringTime;
                    IList <string> txtList = bll.GetTourGuides(tourId);
                    if (txtList != null)
                    {
                        if (txtList.Count > 0)
                        {
                            this.txtNum1.Value = txtList[0];
                        }
                        if (txtList.Count > 1)
                        {
                            this.txtNum2.Value = txtList[1];
                        }
                        if (txtList.Count > 2)
                        {
                            this.txtNum3.Value = txtList[2];
                        }
                    }
                }
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
                {
                    EyouSoft.Model.TourStructure.TourTeamInfo ttModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;

                    #region 人数And结算价

                    TourQuotePrint priantTQP = new TourQuotePrint();
                    string         number    = string.Empty;
                    string         money     = string.Empty;
                    priantTQP.getPepoleNum(SiteUserInfo.CompanyID, model.PlanPeopleNumber, ttModel.TourTeamUnit, ref number, ref money);
                    this.lblCount.Text = number;

                    #endregion
                    //内部信息
                    if (ttModel.TourNormalInfo != null)
                    {
                        this.lblRemarks.Text = ttModel.TourNormalInfo.NeiBuXingXi;
                    }

                    //标志
                    this.txtNum4.Value = ttModel.GatheringSign;
                    //string gather = Utils.GetDateTimeNullable(ttModel.GatheringTime) == null ? string.Empty : Utils.GetDateTimeNullable(ttModel.GatheringTime).ToString();
                    //this.txtGather.Text = gather == string.Empty ? "" : (Utils.GetDateTime(gather, DateTime.Now)).ToString("yyyy-MM-dd hh 点");
                    this.txtGather.Text = ttModel.GatheringTime;
                    IList <string> txtList = bll.GetTourGuides(tourId);
                    if (txtList != null)
                    {
                        if (txtList.Count > 0)
                        {
                            this.txtNum1.Value = txtList[0];
                        }
                        if (txtList.Count > 1)
                        {
                            this.txtNum2.Value = txtList[1];
                        }
                        if (txtList.Count > 2)
                        {
                            this.txtNum3.Value = txtList[2];
                        }
                    }
                }
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourId">行程单ID</param>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)bll.GetTourInfo(tourId);
            if (model != null)
            {
                #region 页面控件赋值
                //线路名称
                this.lblAreaName.Text = model.RouteName;
                //团号
                this.lblTeamNum.Text = model.TourCode;
                //人数
                #region 人数And结算价
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
                {
                    TourQuotePrint priantTQP = new TourQuotePrint();
                    string         number    = string.Empty;
                    string         money     = string.Empty;
                    priantTQP.getPepoleNum(SiteUserInfo.CompanyID, model.PlanPeopleNumber, model.TourTeamUnit, ref number, ref money);
                    this.lblAdult.Text = number;
                }
                else
                {
                    this.lblAdult.Text = model.PlanPeopleNumber.ToString();
                }
                #endregion
                //出发交通
                this.lblBegin.Text = model.LTraffic;
                //返程交通
                this.lblEnd.Text = model.RTraffic;
                //不含项目
                this.lblNoProject.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                //购物安排
                this.lblBuy.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.GouWuAnPai);
                //儿童安排
                this.lblChildPlan.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ErTongAnPai);
                //自费项目
                this.lblSelfProject.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ZiFeiXIangMu);
                //注意事项
                this.lblNote.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                //温馨提示
                this.lblTips.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.WenXinTiXing);
                //出团日期
                LeaveDate = model.LDate;
                //行程安排
                if (model.TourNormalInfo.Plans != null && model.TourNormalInfo.Plans.Count > 0)
                {
                    rptTravelTDCount          = model.TourNormalInfo.Plans.Count * 4;
                    this.rptTravel.DataSource = model.TourNormalInfo.Plans;
                    this.rptTravel.DataBind();
                }

                //包含项目
                this.rptProject.DataSource = model.Services;
                this.rptProject.DataBind();
                //地接社信息
                if (model.LocalAgencys != null && model.LocalAgencys.Count > 0)
                {
                    rptDjInfoTDCount = model.LocalAgencys.Count;
                }
                this.rptDjInfo.DataSource = model.LocalAgencys;
                this.rptDjInfo.DataBind();

                #endregion
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourId"></param>
        private void DataInit(string tourId)
        {
            EyouSoft.BLL.TourStructure.Tour           bll   = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            EyouSoft.Model.TourStructure.TourBaseInfo model = bll.GetTourInfo(tourId);

            EyouSoft.Model.TourStructure.TourInfo     infoModel = null;
            EyouSoft.Model.TourStructure.TourTeamInfo teamModel = null;

            if (model != null && model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                infoModel = (EyouSoft.Model.TourStructure.TourInfo)model;
            }
            else
            {
                teamModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;
            }

            this.lblTourCode.Text   = model.TourCode;
            this.lblAreaName.Text   = model.RouteName;
            this.lblBenginDate.Text = model.LDate.ToString("yyyy-MM-dd");
            this.lblEndDate.Text    = model.RDate.ToString("yyyy-MM-dd");
            #region 结算价
            if (EyouSoft.Model.EnumType.TourStructure.TourType.团队计划 == model.TourType)
            {
                TourQuotePrint priantTQP = new TourQuotePrint();
                string         number    = string.Empty;
                string         money     = string.Empty;
                priantTQP.getPepoleNum(SiteUserInfo.CompanyID, model.PlanPeopleNumber, teamModel.TourTeamUnit, ref number, ref money);
                this.lblCount.Text = number;
            }
            #endregion
            //this.lblCount.Text = model.PlanPeopleNumber.ToString();
            this.lblTeamPrice.Text = Utils.FilterEndOfTheZeroString(model.TotalIncome.ToString("0.00"));

            this.lblMeter.Text = "";
            //票务
            this.lblTicket.Text = "";
            //团 利 润
            this.lblProfit.Text = Utils.FilterEndOfTheZeroString((model.TotalIncome + model.TotalOtherIncome - model.TotalExpenses - model.TotalOtherExpenses - model.DistributionAmount).ToString("0.00"));
            //备注
            this.lblRemarks.Text = "";

            //绑定旅客信息
            List <EyouSoft.Model.TourStructure.TourOrder> lorder       = new List <EyouSoft.Model.TourStructure.TourOrder>();
            EyouSoft.Model.TourStructure.TourOrder        customerList = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderModel
                                                                             (SiteUserInfo.CompanyID, orderId);
            if (customerList != null)
            {
                EyouSoft.BLL.CompanyStructure.Customer       cinfo = new EyouSoft.BLL.CompanyStructure.Customer();
                EyouSoft.Model.CompanyStructure.CustomerInfo cm    = cinfo.GetCustomerModel(customerList.BuyCompanyID);
                if (cm != null)
                {
                    customerList.BuyCompanyName = cm.Name;
                }
                lorder.Add(customerList);
            }
            this.rptCustomer.DataSource = lorder;
            this.rptCustomer.DataBind();
            //获得该计划下的所有地接的集合
            EyouSoft.BLL.PlanStruture.TravelAgency travelBll = new EyouSoft.BLL.PlanStruture.TravelAgency();
            IList <EyouSoft.Model.PlanStructure.LocalTravelAgencyInfo> travelList = travelBll.GetList(tourId);
            if (travelList != null && travelList.Count > 0)
            {
                rptDjPriceTDCount = travelList.Count * 2;
            }
            this.rptDjPrice.DataSource = travelList;
            this.rptDjPrice.DataBind();
            //添加地接备注
            if (travelList != null && travelList.Count > 0)
            {
                for (int i = 0; i < travelList.Count; i++)
                {
                    this.lblRemarks.Text += travelList[i].Remark + "<br />";
                }
            }
            //机票费列表
            EyouSoft.BLL.PlanStruture.PlaneTicket ticketBll = new EyouSoft.BLL.PlanStruture.PlaneTicket();
            IList <EyouSoft.Model.PlanStructure.MLBTicketApplyInfo> ticketList = ticketBll.GetTicketApplys(CurrentUserCompanyID, tourId);
            if (ticketList != null && ticketList.Count > 0)
            {
                rptTicketPriceTDCount = ticketList.Count * 3;
            }
            this.rptTicketPrice.DataSource = ticketList;
            this.rptTicketPrice.DataBind();
            //添加机票备注
            if (ticketList != null && ticketList.Count > 0)
            {
                for (int i = 0; i < ticketList.Count; i++)
                {
                    this.lblRemarks.Text += ticketList[i].Remark;
                }
            }
            //获得计调信息
            IList <string> coordList = new EyouSoft.BLL.TourStructure.Tour().GetTourCoordinators(tourId);
            if (coordList != null && coordList.Count > 0)
            {
                for (int i = 0; i < coordList.Count; i++)
                {
                    this.lblMeter.Text += coordList[i] + "<br />";
                }
            }
            //获得票务信息
            IList <string> operatorList = new EyouSoft.BLL.PlanStruture.PlaneTicket().CustomerOperatorList(tourId);
            if (operatorList != null && operatorList.Count > 0)
            {
                for (int i = 0; i < operatorList.Count; i++)
                {
                    this.lblTicket.Text += operatorList[i] + "<br />";
                }
            }
        }