Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //声明bll对象
     EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
     //声明散拼计划对象
     EyouSoft.Model.TourStructure.TourBaseInfo tModel = bll.GetTourInfo(Utils.GetQueryStringValue("tourId"));
     if (tModel != null)
     {
         if (tModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
         {
             EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)tModel;
             Bind(model);
         }
         else
         {
             EyouSoft.Model.TourStructure.TourInfo model = (EyouSoft.Model.TourStructure.TourInfo)tModel;
             Bind(model);
         }
     }
     else
     {
         Response.Clear();
         Response.Write("未找到信息!");
         Response.End();
     }
 }
Beispiel #2
0
        /// <summary>
        /// 绑定列表
        /// </summary>
        void Bind()
        {
            txt_teamName.Value    = "";
            txt_teamNum.Value     = "";
            txt_teamStatus.Value  = "";
            txt_teamTraffic.Value = "";
            txt_PaidMoney.Value   = "";
            string tourId = Utils.GetQueryStringValue("tourId");

            EyouSoft.BLL.PlanStruture.TravelAgency    bll  = new EyouSoft.BLL.PlanStruture.TravelAgency();
            EyouSoft.BLL.TourStructure.Tour           tour = new EyouSoft.BLL.TourStructure.Tour();
            EyouSoft.Model.TourStructure.TourBaseInfo info = tour.GetTourInfo(tourId);
            txt_teamNum.Value     = info.TourCode;
            txt_teamName.Value    = info.RouteName;
            txt_teamStatus.Value  = info.Status.ToString();
            txt_teamTraffic.Value = Utils.FilterEndOfTheZeroDecimal(info.TotalExpenses);
            //txt_PaidMoney .Value=Utils.FilterEndOfTheZeroDecimal(info.
            //lt_seller.Text = info.SellerName;
            //lt_actor.Text = info.OperatorId.ToString();

            EyouSoft.BLL.TourStructure.TourOrder   orderbll   = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo);
            EyouSoft.Model.TourStructure.TourOrder ordermodel = new EyouSoft.Model.TourStructure.TourOrder();

            IList <EyouSoft.Model.StatisticStructure.StatisticOperator> listSeller = orderbll.GetSalerInfo(tourId);
            IList <string> listOprator = tour.GetTourCoordinators(tourId);

            string sellers = "";
            string oprator = "";

            foreach (var v in listSeller)
            {
                sellers += v.OperatorName + ",";
            }
            if (sellers.Length > 0)
            {
                sellers = sellers.TrimEnd(',');
            }
            foreach (var v in listOprator)
            {
                oprator += v + ",";
            }
            if (oprator.Length > 0)
            {
                oprator = oprator.TrimEnd(',');
            }
            lt_seller.Text = sellers;
            lt_actor.Text  = oprator;


            IList <EyouSoft.Model.PlanStructure.PaymentList> list       = bll.GetSettleList(tourId);
            IList <EyouSoft.Model.PlanStructure.PaymentList> listPiaowu = list.Where(x => x.SupplierType == EyouSoft.Model.EnumType.CompanyStructure.SupplierType.票务).ToList();
            IList <EyouSoft.Model.PlanStructure.PaymentList> listDiJie  = list.Where(x => x.SupplierType == EyouSoft.Model.EnumType.CompanyStructure.SupplierType.地接).ToList();

            rpt_dijie.DataSource  = listDiJie;
            rpt_piaowu.DataSource = listPiaowu;
            rpt_dijie.DataBind();
            rpt_piaowu.DataBind();
        }
Beispiel #3
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour tourBll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo tourModel = tourBll.GetTourInfo(tourId);
            //声明bll对象
            EyouSoft.BLL.CompanyStructure.CompanySetting bll = new EyouSoft.BLL.CompanyStructure.CompanySetting();
            //声明保存打印URL 的集合
            IList <PrintUrlModel> list = new List <PrintUrlModel>();
            //声明临时对象 用来保存url 和显示文字
            PrintUrlModel model = null;

            //判断该计划是散拼计划
            if (tourModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                //团队计划打印名单
                model          = new PrintUrlModel();
                model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.组团线路打印名单);
                model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.组团线路打印名单.ToString();
                list.Add(model);
                //行程单
                if (tourModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Quick)
                {
                    //散拼计划快速发布行程单
                    model          = new PrintUrlModel();
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.组团线路快速发布行程单);
                    model.ShowText = "组团线路行程单";
                    list.Add(model);
                }
                else
                {
                    //散拼计划标准版发布行程单
                    model          = new PrintUrlModel();
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.组团线路标准发布行程单);
                    model.ShowText = "组团线路行程单";
                    list.Add(model);
                }
            }

            if (list != null && list.Count > 0)
            {
                this.rptUPrintUrl.DataSource = list;
                this.rptUPrintUrl.DataBind();
            }
        }
Beispiel #4
0
        protected string GetPrintUrl(string tourId)
        {
            string Url = string.Empty;

            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour tourBll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo tourModel = tourBll.GetTourInfo(tourId);
            //声明bll对象
            EyouSoft.BLL.CompanyStructure.CompanySetting bll = new EyouSoft.BLL.CompanyStructure.CompanySetting();

            //判断该计划是团队计划
            if (tourModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
            {
                EyouSoft.Model.TourStructure.TourTeamInfo teamModel = (EyouSoft.Model.TourStructure.TourTeamInfo)tourModel;
                //行程单
                if (teamModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Quick)
                {
                    //团队计划快速发布行程单
                    Url = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划快速发布行程单);
                }
                else
                {
                    //团队计划标准版发布行程单
                    Url = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划标准发布行程单);
                }
            }

            //判断该计划是散拼计划
            if (tourModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                EyouSoft.Model.TourStructure.TourInfo teamModel = (EyouSoft.Model.TourStructure.TourInfo)tourModel;
                if (teamModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    //散拼计划快速发布行程单
                    Url = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划标准发布行程单);
                }
                if (teamModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Quick)
                {
                    //散拼计划标准发布行程单
                    Url = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划快速发布行程单);
                }
            }
            return(Url);
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string tourId = Utils.GetQueryStringValue("tourId");
                if (tourId != "")
                {
                    DataInit(tourId);
                }
            }

            string type = Utils.GetQueryStringValue("type");

            if (type == "save")
            {
                EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
                string tourId = Utils.GetFormValue(this.hideTourID.UniqueID);
                EyouSoft.Model.TourStructure.TourBaseInfo model = bll.GetTourInfo(tourId);
                if (model != null)
                {
                    string txtNumFrist   = Utils.GetFormValue(txtNum1.UniqueID);
                    string txtNumSecound = Utils.GetFormValue(txtNum2.UniqueID);
                    string txtNumThird   = Utils.GetFormValue(txtNum3.UniqueID);
                    string txtNumFourth  = Utils.GetFormValue(txtNum4.UniqueID);

                    IList <string> list = new List <string>();
                    list.Add(txtNumFrist);
                    list.Add(txtNumSecound);
                    list.Add(txtNumThird);
                    bool result = bll.SetTourGuides(tourId, list, txtNumFourth);

                    Response.Clear();
                    if (result)
                    {
                        Response.Write("Ok");
                    }
                    else
                    {
                        Response.Write("Nk");
                    }
                    Response.End();
                }
            }
        }
Beispiel #6
0
        protected int CompanyID = 1; //当前登录公司编号
        protected void Page_Load(object sender, EventArgs e)
        {
            EyouSoft.Model.TourStructure.LBZTTours           model    = new EyouSoft.Model.TourStructure.LBZTTours();
            EyouSoft.BLL.TourStructure.Tour                  tour     = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            EyouSoft.Model.TourStructure.TourCoordinatorInfo con      = new EyouSoft.Model.TourStructure.TourCoordinatorInfo();
            EyouSoft.Model.TourStructure.TourBaseInfo        baseInfo = new EyouSoft.Model.TourStructure.TourBaseInfo();

            if (!this.Page.IsPostBack)
            {
                string TourID = EyouSoft.Common.Utils.GetQueryStringValue("TourID");
                if (!string.IsNullOrEmpty(TourID))
                {
                    //tour.
                    // Model_ContactPersonInfo = Bll_CompanyUser.GetUserBasicInfo(SiteUserInfo.CompanyID);
                    //if (Model_ContactPersonInfo != null)
                    //{
                    //    //this.Lab_Auothor.Text = Model_ContactPersonInfo.ContactName;
                    //   // this.Lab_Phone.Text = Model_ContactPersonInfo.ContactTel;
                    //    //this.Lab_QQ.Text = Model_ContactPersonInfo.QQ;
                    //}
                }
            }
        }
Beispiel #7
0
        /// <summary>
        /// 申请机票
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool addTicketOutListModel(TicketOutListInfo model)
        {
            if (string.IsNullOrEmpty(model.TourId))
            {
                return(false);
            }
            model.State       = EyouSoft.Model.EnumType.PlanStructure.TicketState.机票申请;
            model.TicketOutId = Guid.NewGuid().ToString();
            EyouSoft.BLL.TourStructure.Tour           bllTour   = new EyouSoft.BLL.TourStructure.Tour();
            EyouSoft.Model.TourStructure.TourBaseInfo modelTour = bllTour.GetTourInfo(model.TourId);
            if (modelTour != null)
            {
                model.Saler = modelTour.SellerName;
            }
            if (dal.addTicketOutListModel(model))
            {
                //重新计算团队支出
                EyouSoft.BLL.UtilityStructure.Utility u = new EyouSoft.BLL.UtilityStructure.Utility();
                IList <EyouSoft.Model.StatisticStructure.ItemIdAndType> iList = new List <EyouSoft.Model.StatisticStructure.ItemIdAndType>();
                iList.Add(new EyouSoft.Model.StatisticStructure.ItemIdAndType()
                {
                    ItemId = model.TicketOutId, ItemType = EyouSoft.Model.EnumType.StatisticStructure.PaidType.机票支出
                });
                //价格维护
                u.CalculationTourOut(model.TourId, iList);
                u.CalculationTourSettleStatus(model.TourId);

                //加日志
                AddSysLog("新增");
                //维护团队状态
                EyouSoft.BLL.TourStructure.Tour tourDal = new EyouSoft.BLL.TourStructure.Tour();
                tourDal.SetTourTicketStatus(model.TourId, model.State);
                return(true);
            }
            return(false);
        }
Beispiel #8
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.TourTeamInfo teamModel = null;
            if (model != null && model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
            {
                teamModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;
                if (teamModel != null)
                {
                    //组团社
                    this.txtGroups.Text = teamModel.BuyerCName;
                    //联系人
                    this.txtContact.Text = "";
                    //电话
                    this.txtPhone.Text = "";
                    //预计出团日期
                    this.txtOutDate.Text = teamModel.LDate.ToString("yyyy-MM-dd");
                    //人数
                    string number = string.Empty;
                    string money  = string.Empty;
                    getPepoleNum(SiteUserInfo.CompanyID, teamModel.PlanPeopleNumber, teamModel.TourTeamUnit, ref number, ref money);
                    this.txtCount.Text  = number;
                    this.txtBaoJia.Text = money;
                    //传真
                    this.txtFax.Text = "";
                    //线路名称
                    this.txtAreaName.Text = teamModel.RouteName;
                    //出团日期
                    this.LeaveTime = teamModel.LDate;
                    //地接总价
                    this.lblAllPrice.Text = teamModel.TotalAmount.ToString("0.00");
                    //判断时候有报价ID
                    if (teamModel.QuoteId > 0)
                    {
                        //获得报价model
                        EyouSoft.Model.RouteStructure.QuoteTeamInfo routeModel = new EyouSoft.BLL.RouteStructure.Quote().GetQuoteInfo(teamModel.QuoteId);
                        if (routeModel != null)
                        {
                            //获得客户要求列表
                            if (routeModel.Requirements != null && routeModel.Requirements.Count > 0)
                            {
                                //绑定具体要求列表
                                this.rptRequire.DataSource = routeModel.Requirements;
                                tdCount = routeModel.Requirements.Count;
                                this.rptRequire.DataBind();
                                this.RecordSum = routeModel.Requirements.Count;
                            }
                            else
                            {
                                this.pnlContent.Visible = false;
                                style = "padding: 0px; margin: 0px;border-bottom: none;";
                                this.pnlSpecific.Visible = false;
                            }
                        }
                    }
                    else
                    {
                        //如果不存在报价 那么隐藏具体要求
                        this.pnlContent.Visible = false;
                        style = "padding: 0px; margin: 0px;border-bottom: none;";
                        this.pnlSpecific.Visible = false;
                    }

                    //行程安排 数据绑定
                    if (teamModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                    {
                        if (teamModel.TourNormalInfo != null && teamModel.TourNormalInfo.Plans != null)
                        {
                            this.rptTravel.DataSource = teamModel.TourNormalInfo.Plans;
                            this.rptTravel.DataBind();
                            tdCount = teamModel.TourNormalInfo.Plans.Count;
                            this.pnlSecond.Visible = false;
                        }
                    }
                    else
                    {
                        if (teamModel.TourQuickInfo != null)
                        {
                            this.lblSecond.Text = teamModel.TourQuickInfo.QuickPlan;
                        }
                        this.pnlFrist.Visible = false;
                    }

                    //地接信息 数据绑定
                    if (teamModel.Services != null && teamModel.Services.Count > 0)
                    {
                        this.RecordSumS           = teamModel.Services.Count;
                        this.rptDjList.DataSource = teamModel.Services;
                        this.rptDjList.DataBind();
                    }
                }
            }
        }
Beispiel #9
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)
            {
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
                {
                    EyouSoft.Model.TourStructure.TourInfo tModel = (EyouSoft.Model.TourStructure.TourInfo)model;
                    if (tModel != null)
                    {
                        //线路名称
                        this.litRouteName.Text = tModel.RouteName;

                        EyouSoft.Model.TourStructure.TourOrder order = new EyouSoft.BLL.TourStructure.TourOrder().GetOrderModel(CurrentUserCompanyID, Utils.GetQueryStringValue("orderId"));
                        if (order != null)
                        {
                            //组团社
                            this.litBuyCompanyName.Text = order.BuyCompanyName;
                            //组团社联系人
                            this.litCustomName.Text = order.ContactName;
                            this.litTel.Text        = order.ContactTel;
                            this.litFax.Text        = order.ContactFax;
                            //游客信息
                            string strVistors = string.Empty;
                            if (order.CustomerList != null && order.CustomerList.Count > 0)
                            {
                                for (int i = 0; i < order.CustomerList.Count; i++)
                                {
                                    strVistors += order.CustomerList[i].VisitorName + ",";
                                }
                                this.litVisitorsList.Text = strVistors.TrimEnd(',');
                            }
                        }


                        //机场送团
                        if (tModel.SentPeoples != null && tModel.SentPeoples.Count > 0)
                        {
                            string strSongTuanName = string.Empty;
                            for (int i = 0; i < tModel.SentPeoples.Count; i++)
                            {
                                strSongTuanName += tModel.SentPeoples[i].OperatorName + ",";
                            }
                            this.litSongTuanName.Text = strSongTuanName.TrimEnd(',');

                            //手机
                            EyouSoft.Model.CompanyStructure.CompanyUser userModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserInfo(tModel.SentPeoples[0].OperatorId);
                            if (userModel != null)
                            {
                                this.litSongTuanPhone.Text = userModel.PersonInfo.ContactMobile;
                            }
                        }

                        //去程航班/时间
                        this.litLFilght.Text = tModel.LTraffic;

                        //返程航班/时间
                        this.litRFilght.Text = tModel.RTraffic;
                        //集合地点
                        this.litJihePlace.Text = tModel.GatheringPlace;
                        if (tModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                        {
                            this.litQplan.Visible = false;
                            this.pnequick.Visible = false;
                            if (tModel.TourNormalInfo != null)
                            {
                                //注意事项
                                this.litZhuYiShiXiang.Text = tModel.TourNormalInfo.ZhuYiShiXiang;
                                //温馨提醒
                                this.litWenXinTiXing.Text = tModel.TourNormalInfo.WenXinTiXing;
                                //行程安排
                                if (tModel.TourNormalInfo.Plans != null && tModel.TourNormalInfo.Plans.Count > 0)
                                {
                                    for (int i = 0; i < tModel.TourNormalInfo.Plans.Count; i++)
                                    {
                                        TravelplanStr += "<tr><td height=\"25\" align=\"center\" bgcolor=\"#FFFFFF\">" + tModel.LDate.AddDays(i).ToString("yyyy-MM-dd") + "</td><td align=\"left\" bgcolor=\"#FFFFFF\">" + tModel.TourNormalInfo.Plans[i].Plan + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + (tModel.TourNormalInfo.Plans[i].Dinner.Contains("2") ? "早," : "") + "" + (tModel.TourNormalInfo.Plans[i].Dinner.Contains("3") ? "中," : "") + "" + (tModel.TourNormalInfo.Plans[i].Dinner.Contains("4") ? "晚," : "") + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + tModel.TourNormalInfo.Plans[i].Hotel + "</td></tr>";
                                    }
                                }
                            }
                        }
                        else
                        {
                            this.pnetab.Visible = false;
                            this.tabView.Attributes.Add("style", "border: 1px #000000 solid");
                            this.pneStand.Visible = false;
                            if (tModel.TourQuickInfo != null)
                            {
                                this.litQplan.Text       = tModel.TourQuickInfo.QuickPlan;
                                this.litServerStand.Text = tModel.TourQuickInfo.Service;
                            }
                        }
                    }
                }
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
                {
                    EyouSoft.Model.TourStructure.TourTeamInfo ttModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;
                    if (ttModel != null)
                    {
                        //线路名称
                        this.litRouteName.Text = ttModel.RouteName;
                        //组团社
                        this.litBuyCompanyName.Text = ttModel.BuyerCName;
                        //组团社联系人
                        EyouSoft.Model.CompanyStructure.CustomerInfo CustomerInfo = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(ttModel.BuyerCId);
                        if (CustomerInfo != null)
                        {
                            this.litCustomName.Text = CustomerInfo.ContactName;
                            this.litTel.Text        = CustomerInfo.Phone;
                            this.litFax.Text        = CustomerInfo.Fax;
                        }

                        EyouSoft.Model.TourStructure.TourOrder order = new EyouSoft.BLL.TourStructure.TourOrder().GetOrderModel(CurrentUserCompanyID, Utils.GetQueryStringValue("orderId"));
                        if (order != null)
                        {
                            //组团社
                            this.litBuyCompanyName.Text = order.BuyCompanyName;
                            //组团社联系人
                            this.litCustomName.Text = order.ContactName;
                            this.litTel.Text        = order.ContactTel;
                            this.litFax.Text        = order.ContactFax;
                            //游客信息
                            string strVistors = string.Empty;
                            if (order.CustomerList != null && order.CustomerList.Count > 0)
                            {
                                for (int i = 0; i < order.CustomerList.Count; i++)
                                {
                                    strVistors += order.CustomerList[i].VisitorName + ",";
                                }
                                this.litVisitorsList.Text = strVistors.TrimEnd(',');
                            }
                        }

                        //机场送团
                        if (ttModel.SentPeoples != null && ttModel.SentPeoples.Count > 0)
                        {
                            string strSongTuanName = string.Empty;
                            for (int i = 0; i < ttModel.SentPeoples.Count; i++)
                            {
                                strSongTuanName += ttModel.SentPeoples[i].OperatorName + ",";
                            }
                            this.litSongTuanName.Text = strSongTuanName.TrimEnd(',');

                            //手机
                            EyouSoft.Model.CompanyStructure.CompanyUser userModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserInfo(ttModel.SentPeoples[0].OperatorId);
                            if (userModel != null)
                            {
                                this.litSongTuanPhone.Text = userModel.PersonInfo.ContactMobile;
                            }
                        }

                        //去程航班/时间
                        this.litLFilght.Text = ttModel.LTraffic;

                        //返程航班/时间
                        this.litRFilght.Text = ttModel.RTraffic;

                        //集合地点
                        this.litJihePlace.Text = ttModel.GatheringPlace;
                        if (ttModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                        {
                            this.litQplan.Visible = false;
                            this.pnequick.Visible = false;
                            if (ttModel.TourNormalInfo != null)
                            {
                                //注意事项
                                this.litZhuYiShiXiang.Text = ttModel.TourNormalInfo.ZhuYiShiXiang;
                                //温馨提醒
                                this.litWenXinTiXing.Text = ttModel.TourNormalInfo.WenXinTiXing;
                                //行程安排
                                if (ttModel.TourNormalInfo.Plans != null && ttModel.TourNormalInfo.Plans.Count > 0)
                                {
                                    for (int i = 0; i < ttModel.TourNormalInfo.Plans.Count; i++)
                                    {
                                        TravelplanStr += "<tr><td height=\"25\" align=\"center\" bgcolor=\"#FFFFFF\">" + ttModel.LDate.AddDays(i).ToString("yyyy-MM-dd") + "</td><td align=\"left\" bgcolor=\"#FFFFFF\">" + ttModel.TourNormalInfo.Plans[i].Plan + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + (ttModel.TourNormalInfo.Plans[i].Dinner.Contains("2") ? "早," : "") + "" + (ttModel.TourNormalInfo.Plans[i].Dinner.Contains("3") ? "中," : "") + "" + (ttModel.TourNormalInfo.Plans[i].Dinner.Contains("4") ? "晚," : "") + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + ttModel.TourNormalInfo.Plans[i].Hotel + "</td></tr>";
                                    }
                                }
                            }
                        }
                        else
                        {
                            this.pnetab.Visible   = false;
                            this.pneStand.Visible = false;
                            this.tabView.Attributes.Add("style", "border: 1px #000000 solid");
                            if (ttModel.TourQuickInfo != null)
                            {
                                this.litQplan.Text       = ttModel.TourQuickInfo.QuickPlan;
                                this.litServerStand.Text = ttModel.TourQuickInfo.Service;
                            }
                        }
                    }
                }
            }
        }
Beispiel #10
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];
                        }
                    }
                }
            }
        }
Beispiel #11
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 />";
                }
            }
        }
Beispiel #12
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="travelId">行程单ID</param>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo model = bll.GetTourInfo(tourId);
            if (model != null && model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                this.Page.Title = "散拼结算明细单";
                EyouSoft.Model.TourStructure.TourInfo teamModel = (EyouSoft.Model.TourStructure.TourInfo)model;
                //收款单位
                this.txtBuyerCName.Text = teamModel.BuyerCName;

                EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(model.BuyerCId);
                if (cusModel != null)
                {
                    //收款人
                    txtContact.Text = cusModel.ContactName;
                    //电话
                    txtPbone.Text = cusModel.Phone;
                    //传真
                    txtFax.Text = cusModel.Fax;
                }
                //线路
                this.txtAreaName.Text = teamModel.RouteName;
                //人数
                this.txtCount.Text = teamModel.PlanPeopleNumber.ToString();
                //日期
                this.txtDataTime.Text = DateTime.Now.ToString("yyyy-MM-dd");

                //价格组成
                tbMoney.Visible   = false;
                tbMoneySP.Visible = true;

                EyouSoft.BLL.TourStructure.TourOrder           tobll  = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo);
                IList <EyouSoft.Model.TourStructure.TourOrder> lorder = new
                                                                        List <EyouSoft.Model.TourStructure.TourOrder>();
                EyouSoft.Model.TourStructure.TourOrder orderModel = tobll.GetOrderModel(SiteUserInfo.CompanyID, orderId);
                if (orderModel != null)
                {
                    lorder.Add(orderModel);

                    EyouSoft.BLL.CompanyStructure.Customer       cinfo = new EyouSoft.BLL.CompanyStructure.Customer();
                    EyouSoft.Model.CompanyStructure.CustomerInfo cm    = cinfo.GetCustomerModel(orderModel.BuyCompanyID);
                    if (cm != null)
                    {
                        txtBuyerCName.Text = cm.Name;
                    }
                    txtPbone.Text            = orderModel.ContactTel;
                    txtContact.Text          = orderModel.ContactName;
                    txtFax.Text              = orderModel.ContactFax;
                    rpt_orderList.DataSource = lorder;
                    rpt_orderList.DataBind();
                }
                //收入
                IList <EyouSoft.Model.TourStructure.OrderFinanceExpense> fristList = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderList(SiteUserInfo.CompanyID, tourId);
                if (fristList != null && fristList.Count > 0)
                {
                    allCount += fristList.Count;
                    this.rptFrist.DataSource = fristList;
                    this.rptFrist.DataBind();
                }

                //其它收入
                EyouSoft.Model.FinanceStructure.OtherCostQuery otherCostQueryModel = new EyouSoft.Model.FinanceStructure.OtherCostQuery();
                otherCostQueryModel.TourId = tourId;
                IList <EyouSoft.Model.FinanceStructure.OtherIncomeInfo> secoundList = new EyouSoft.BLL.FinanceStructure.OtherCost(SiteUserInfo).GetOtherIncomeList(otherCostQueryModel);
                if (secoundList != null && secoundList.Count > 0)
                {
                    allCount += secoundList.Count;
                    this.rptSecound.DataSource = secoundList;
                    this.rptSecound.DataBind();
                }

                //支出
                IList <EyouSoft.Model.PlanStructure.PaymentList> thirdList = new EyouSoft.BLL.PlanStruture.TravelAgency().GetSettleList(tourId);
                if (thirdList != null && thirdList.Count > 0)
                {
                    allCount += thirdList.Count;
                    this.rptThird.DataSource = thirdList;
                    this.rptThird.DataBind();
                }

                //其它支出
                IList <EyouSoft.Model.FinanceStructure.OtherOutInfo> forthList = new EyouSoft.BLL.FinanceStructure.OtherCost(SiteUserInfo).GetOtherOutList(otherCostQueryModel);
                if (forthList != null && forthList.Count > 0)
                {
                    allCount += forthList.Count;
                    this.rptForth.DataSource = forthList;
                    this.rptForth.DataBind();
                }
            }
        }
Beispiel #13
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour tourBll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo tourModel = tourBll.GetTourInfo(tourId);
            //声明bll对象
            EyouSoft.BLL.CompanyStructure.CompanySetting bll = new EyouSoft.BLL.CompanyStructure.CompanySetting();
            //声明保存打印URL 的集合
            IList <PrintUrlModel> list = new List <PrintUrlModel>();
            //声明临时对象 用来保存url 和显示文字
            PrintUrlModel model = null;

            //判断该计划是团队计划
            if (tourModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
            {
                EyouSoft.Model.TourStructure.TourTeamInfo teamModel = (EyouSoft.Model.TourStructure.TourTeamInfo)tourModel;
                //团队计划打印名单
                model          = new PrintUrlModel();
                model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划打印名单);
                model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划打印名单.ToString();
                if (model.PrintUrl != "")
                {
                    list.Add(model);
                }
                //行程单
                if (teamModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Quick)
                {
                    //团队计划快速发布行程单
                    model          = new PrintUrlModel();
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划快速发布行程单);
                    model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划快速发布行程单.ToString();
                    if (model.PrintUrl != "")
                    {
                        list.Add(model);
                    }
                }
                else
                {
                    //团队计划标准版发布行程单
                    model          = new PrintUrlModel();
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划标准发布行程单);
                    model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队计划标准发布行程单.ToString();
                    if (model.PrintUrl != "")
                    {
                        list.Add(model);
                    }
                }

                //团队确认单
                model          = new PrintUrlModel();
                model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队确认单);
                model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.团队确认单.ToString();
                if (model.PrintUrl != "")
                {
                    list.Add(model);
                }

                //报价单
                model          = new PrintUrlModel();
                model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.报价单);
                model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.报价单.ToString();
                if (model.PrintUrl != "")
                {
                    list.Add(model);
                }

                //团队送团单
                model = new PrintUrlModel();
                if (teamModel.TicketStatus == EyouSoft.Model.EnumType.PlanStructure.TicketState.已出票)
                {
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团单);
                }
                else
                {
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团单);
                    TicketStatus   = true;
                }
                model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团单.ToString();
                if (model.PrintUrl != "")
                {
                    list.Add(model);
                }


                //原行程下载
                model = new PrintUrlModel();
                if (teamModel.Attachs != null && teamModel.Attachs.Count > 0)
                {
                    model.PrintUrl = teamModel.Attachs[0].FilePath.ToString().Trim();
                    model.ShowText = "原行程下载";
                }
                if (model.PrintUrl != null && model.PrintUrl != "")
                {
                    list.Add(model);
                }
            }
            if (tourModel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                EyouSoft.Model.TourStructure.TourInfo teamModel = (EyouSoft.Model.TourStructure.TourInfo)tourModel;

                model          = new PrintUrlModel();
                model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划打印名单);
                model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划打印名单.ToString();
                if (model.PrintUrl != "")
                {
                    list.Add(model);
                }
                if (teamModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    model          = new PrintUrlModel();
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划标准发布行程单);
                    model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划标准发布行程单.ToString();
                    if (model.PrintUrl != "")
                    {
                        list.Add(model);
                    }
                }
                if (teamModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Quick)
                {
                    model          = new PrintUrlModel();
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划快速发布行程单);
                    model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散拼计划快速发布行程单.ToString();
                    if (model.PrintUrl != "")
                    {
                        list.Add(model);
                    }
                }

                //model = new PrintUrlModel();
                //model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散客确认单);
                //model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.散客确认单.ToString();
                //if (model.PrintUrl != "")
                //    list.Add(model);


                //散拼送团单
                model = new PrintUrlModel();
                if (teamModel.TicketStatus == EyouSoft.Model.EnumType.PlanStructure.TicketState.已出票)
                {
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团单);
                    TicketStatus   = true;
                }
                else
                {
                    model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团单);
                    TicketStatus   = true;
                }

                model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团单.ToString();
                if (model.PrintUrl != "")
                {
                    list.Add(model);
                }


                //原行程下载
                model = new PrintUrlModel();
                if (teamModel.Attachs != null && teamModel.Attachs.Count > 0)
                {
                    model.PrintUrl = teamModel.Attachs[0].FilePath.ToString().Trim();
                    model.ShowText = "原行程下载";
                }
                if (model.PrintUrl != null && model.PrintUrl != "")
                {
                    list.Add(model);
                }
            }



            //结算通知单
            model          = new PrintUrlModel();
            model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.结算通知单);
            model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.结算通知单.ToString();
            if (model.PrintUrl != "")
            {
                list.Add(model);
            }
            //结算明细单
            //model = new PrintUrlModel();
            //model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.结算明细单);
            //model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.结算明细单.ToString();
            //if (model.PrintUrl != "")
            //{
            //    list.Add(model);
            //}

            //地接确认单
            model          = new PrintUrlModel();
            model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.地接确认单);
            model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.地接确认单.ToString();
            if (model.PrintUrl != "")
            {
                list.Add(model);
            }

            //送团任务单
            model          = new PrintUrlModel();
            model.PrintUrl = bll.GetPrintPath(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团任务单);
            model.ShowText = EyouSoft.Model.EnumType.CompanyStructure.PrintTemplateType.送团任务单.ToString();
            if (model.PrintUrl != "")
            {
                list.Add(model);
            }

            if (list != null && list.Count > 0)
            {
                this.rptUPrintUrl.DataSource = list;
                this.rptUPrintUrl.DataBind();
            }
        }
Beispiel #14
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="travelId">行程单ID</param>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo model = bll.GetTourInfo(tourId);
            if (model != null && model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
            {
                EyouSoft.Model.TourStructure.TourTeamInfo teamModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;
                //收款单位
                this.txtBuyerCName.Text = teamModel.BuyerCName;

                EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(model.BuyerCId);
                if (cusModel != null)
                {
                    //收款人
                    txtContact.Text = cusModel.ContactName;
                    //电话
                    txtPbone.Text = cusModel.Phone;
                    //传真
                    txtFax.Text = cusModel.Fax;
                }
                //线路
                this.txtAreaName.Text = teamModel.RouteName;
                //人数
                this.txtCount.Text = teamModel.PlanPeopleNumber.ToString();
                //日期
                this.txtDataTime.Text = DateTime.Now.ToString("yyyy-MM-dd");

                //价格组成
                if (teamModel.Services != null && teamModel.Services.Count > 0)
                {
                    this.servicesCount         = teamModel.Services.Count;
                    this.rptProject.DataSource = teamModel.Services;
                    this.rptProject.DataBind();
                }


                //收入
                IList <EyouSoft.Model.TourStructure.OrderFinanceExpense> fristList = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderList(SiteUserInfo.CompanyID, tourId);
                if (fristList != null && fristList.Count > 0)
                {
                    allCount += fristList.Count;
                    this.rptFrist.DataSource = fristList;
                    this.rptFrist.DataBind();
                }

                //其它收入
                EyouSoft.Model.FinanceStructure.OtherCostQuery otherCostQueryModel = new EyouSoft.Model.FinanceStructure.OtherCostQuery();
                otherCostQueryModel.TourId = tourId;
                IList <EyouSoft.Model.FinanceStructure.OtherIncomeInfo> secoundList = new EyouSoft.BLL.FinanceStructure.OtherCost(SiteUserInfo).GetOtherIncomeList(otherCostQueryModel);
                if (secoundList != null && secoundList.Count > 0)
                {
                    allCount += secoundList.Count;
                    this.rptSecound.DataSource = secoundList;
                    this.rptSecound.DataBind();
                }

                //支出
                IList <EyouSoft.Model.PlanStructure.PaymentList> thirdList = new EyouSoft.BLL.PlanStruture.TravelAgency().GetSettleList(tourId);
                if (thirdList != null && thirdList.Count > 0)
                {
                    allCount += thirdList.Count;
                    this.rptThird.DataSource = thirdList;
                    this.rptThird.DataBind();
                }

                //其它支出
                IList <EyouSoft.Model.FinanceStructure.OtherOutInfo> forthList = new EyouSoft.BLL.FinanceStructure.OtherCost(SiteUserInfo).GetOtherOutList(otherCostQueryModel);
                if (forthList != null && forthList.Count > 0)
                {
                    allCount += forthList.Count;
                    this.rptForth.DataSource = forthList;
                    this.rptForth.DataBind();
                }
            }
        }
Beispiel #15
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="travelId">行程单ID</param>
        protected void DataInit(string tourId)
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo baseinfo = bll.GetTourInfo(tourId);

            //地接的操作BLL
            EyouSoft.BLL.PlanStruture.TravelAgency travelbll = new EyouSoft.BLL.PlanStruture.TravelAgency();
            //获得该计划下的所有地接的集合
            IList <EyouSoft.Model.PlanStructure.LocalTravelAgencyInfo> listAgency = travelbll.GetList(tourId);

            rpt_area.DataSource = listAgency;
            rpt_area.DataBind();

            if (baseinfo != null)
            {
                this.lblTourCode.Text = baseinfo.TourCode;
                // this.lblContactName.Text = baseinfo.
                txtDate1.Text = baseinfo.PlanPeopleNumber.ToString();
                DateTime Ldate = baseinfo.LDate;
                DateTime Edate = Ldate.AddDays(baseinfo.TourDays);
                txtDate0.Text = Ldate.ToString("MM月dd日") + "-" + Edate.ToString("MM月dd日");
                if (baseinfo.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
                {
                    EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)baseinfo;
                    if (model != null && model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                    {
                        if (model.TourNormalInfo != null)
                        {
                            //行程安排
                            this.rptTravel.DataSource = model.TourNormalInfo.Plans;
                            this.rptTravel.DataBind();
                            //内部信息
                            this.txtRemarks.Text = model.TourNormalInfo.NeiBuXingXi;
                        }
                    }
                    else
                    {
                        this.tr_Treval.Visible = false;
                        trXc.Visible           = true;
                        if (model.TourQuickInfo != null)
                        {
                            lt_xc.Text = model.TourQuickInfo.QuickPlan;
                        }
                    }
                    #region 页面控件赋值
                    //包含项目
                    this.rptProject.DataSource = model.Services;
                    this.rptProject.DataBind();
                    if (model.Services != null && model.Services.Count > 0)
                    {
                        string  str = "";
                        decimal sum = 0;
                        for (int i = 0; i < model.Services.Count; i++)
                        {
                            if ((i + 1) % 2 == 0)
                            {
                                str += "<tr><td bgcolor=\"#ffffff\" align=\"left\">" + (i + 1) + "、" + model.Services[i].ServiceType.ToString() + ":" + Utils.FilterEndOfTheZeroString(model.Services[i].LocalPrice.ToString("0.00")) + "</td>";
                            }
                            else
                            {
                                str += "<td bgcolor=\"#ffffff\" align=\"left\">" + (i + 1) + "、" + model.Services[i].ServiceType.ToString() + ":" + Utils.FilterEndOfTheZeroString(model.Services[i].LocalPrice.ToString("0.00")) + "</td></tr>";
                                sum += model.Services[i].LocalPrice;
                            }
                        }
                        if (model.Services.Count % 2 != 0)
                        {
                            str += "<td bgcolor=\"#ffffff\" align=\"left\"></td></tr>";
                        }
                        this.litList.Text = str;
                        txt_priceSum.Text = sum.ToString("0.00");
                    }
                    //出团日期
                    LeaveDate = model.LDate;
                    #endregion
                }
                else
                {
                    //散拼计划
                    EyouSoft.Model.TourStructure.TourInfo model = (EyouSoft.Model.TourStructure.TourInfo)baseinfo;
                    //标准版
                    if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                    {
                        this.lblMoney.Text = "";
                        if (model.TourNormalInfo != null)
                        {
                            //行程安排
                            this.rptTravel.DataSource = model.TourNormalInfo.Plans;
                            this.rptTravel.DataBind();
                            //包含项目
                            this.rptProject.DataSource = model.TourNormalInfo.Services;
                            this.rptProject.DataBind();
                            //内部信息
                            this.txtRemarks.Text = model.TourNormalInfo.NeiBuXingXi;
                        }
                    }
                    else
                    {
                        //没有数据 不操作
                        this.lblMsg.Text       = "";
                        this.tr_Treval.Visible = false;
                        this.lblMoney.Text     = "";
                        trXc.Visible           = true;
                        if (model.TourQuickInfo != null)
                        {
                            lt_xc.Text = model.TourQuickInfo.QuickPlan;
                        }
                    }
                    LeaveDate = model.LDate;
                }
            }
        }
Beispiel #16
0
        void Bind()
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            string tourId = Utils.GetQueryStringValue("tourId");

            if (tourId == "")
            {
                Response.Write("未找到信息!");
                return;
            }


            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo basemodel = bll.GetTourInfo(tourId);
            LeaveDate        = basemodel.LDate;
            lt_LDate.Text    = basemodel.LDate.Month.ToString() + "月" + basemodel.LDate.Day.ToString() + "日" + basemodel.TourType.ToString();
            lt_TourName.Text = basemodel.RouteName;
            #region 组团端
            EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(basemodel.BuyerCId);
            if (cusModel != null)
            {
                txt_to_fax.Text  = cusModel.Fax;
                txt_to_name.Text = cusModel.Name;
                txt_to_tel.Text  = cusModel.Phone;
                txt_to_user.Text = cusModel.ContactName;
            }
            #endregion
            #region 专线
            EyouSoft.Model.CompanyStructure.ContactPersonInfo userInfoModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserBasicInfo(basemodel.OperatorId);
            if (userInfoModel != null)
            {
                //主要联系人电话
                this.txt_fr_tel.Text = userInfoModel.ContactTel;
                //专线FAX
                this.txt_fr_fax.Text = userInfoModel.ContactFax;

                EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = new EyouSoft.BLL.CompanyStructure.CompanyInfo().GetModel(basemodel.CompanyId, SiteUserInfo.SysId);
                if (companyModel != null)
                {
                    this.txt_fr_user.Text = companyModel.ContactName;
                    txt_fr_name.Text      = companyModel.CompanyName;
                    txt_fr_tel.Text       = companyModel.ContactTel;
                    txt_fr_tel.Text       = companyModel.ContactFax;
                }
            }
            #endregion
            if (basemodel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                EyouSoft.Model.TourStructure.TourInfo model = (EyouSoft.Model.TourStructure.TourInfo)basemodel;
                if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    tb_normal.Visible    = true;
                    rptTravel.DataSource = model.TourNormalInfo.Plans;
                    rptTravel.DataBind();
                    rptProject.DataSource = model.TourNormalInfo.Services;
                    rptProject.DataBind();
                    div_noproject.Visible = true;
                    lblNoProject.Text     = TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                    div_notice.Visible    = true;
                    lt_notice.Text        = TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                }
                else
                {
                    tb_normal.Visible       = false;
                    tb_quick.Visible        = true;
                    tb_quickService.Visible = true;
                    lb_Quick.Text           = model.TourQuickInfo.QuickPlan;
                    lt_service.Text         = model.TourQuickInfo.Service;
                }
            }
            else
            if (basemodel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
            {
                EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)basemodel;
                if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    tb_normal.Visible = true;
                    if (model.TourNormalInfo != null)
                    {
                        rptTravel.DataSource = model.TourNormalInfo.Plans;
                        rptTravel.DataBind();
                        rptProject.DataSource = model.Services;
                        rptProject.DataBind();
                        div_noproject.Visible = true;
                        lblNoProject.Text     = TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                        div_notice.Visible    = true;
                        lt_notice.Text        = TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                    }
                }
                else
                {
                    if (model.TourQuickInfo != null)
                    {
                        tb_normal.Visible       = false;
                        tb_quick.Visible        = true;
                        tb_quickService.Visible = true;
                        lb_Quick.Text           = model.TourQuickInfo.QuickPlan;
                        lt_service.Text         = model.TourQuickInfo.Service;
                    }
                }

                /*#region 结算价
                 * 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.txt_Money.Text = money;
                 #endregion*/
            }
            else if (basemodel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.单项服务)
            {
                p_title.Visible   = false;
                d_title.Visible   = false;
                Title             = "单项服务确认单";
                tb_single.Visible = true;
                tb_normal.Visible = false;
                EyouSoft.Model.TourStructure.TourSingleInfo model = (EyouSoft.Model.TourStructure.TourSingleInfo)basemodel;
                rpt_single.DataSource = model.Plans;
                rpt_single.DataBind();
                txt_Money.Text = model.TotalAmount.ToString("#,##0.00");
            }


            if (basemodel.TourType != EyouSoft.Model.EnumType.TourStructure.TourType.单项服务)
            {
                phJieSuanJiaGe.Visible = true;
                EyouSoft.BLL.PlanStruture.TravelAgency planbll = new EyouSoft.BLL.PlanStruture.TravelAgency();
                IList <EyouSoft.Model.PlanStructure.LocalTravelAgencyInfo> agencys = planbll.GetList(tourId);
                planbll = null;

                if (agencys != null && agencys.Count > 0)
                {
                    System.Text.StringBuilder s = new System.Text.StringBuilder();

                    foreach (var agency in agencys)
                    {
                        s.AppendFormat("单位名称:{0} 结算费用:{1}    ", agency.LocalTravelAgency, Utils.FilterEndOfTheZeroDecimal(agency.Settlement));
                    }

                    txt_Money.Text = s.ToString();
                }
            }
        }
Beispiel #17
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);

            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;
                if (infoModel != null)
                {
                    //线路名称
                    this.litRouteName.Text = infoModel.RouteName;
                    this.litLdate.Text     = infoModel.LDate.ToString("yyyy-MM-dd");
                    //专线主要联系人
                    this.litContectName.Value = this.SiteUserInfo.ContactInfo.ContactName;
                    this.litQuerenDate.Value  = DateTime.Now.ToString("yyyy-MM-dd");
                }

                EyouSoft.Model.TourStructure.TourOrder customerList = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderModel(SiteUserInfo.CompanyID, EyouSoft.Common.Utils.GetQueryStringValue("orderId"));
                if (customerList != null)
                {
                    //组团社
                    buyCompanyName = customerList.BuyCompanyName;
                    //组团社联系人
                    buyCompanyContentName       = customerList.BuyerContactName;
                    this.litbuyCompanyName.Text = customerList.BuyCompanyName;

                    this.litPeopleCount.Text = customerList.PeopleNumber.ToString();
                    this.litCostDetail.Text  = (customerList.AdultNumber) + "*" + (customerList.PersonalPrice.ToString("0.00")) + " + " + (customerList.ChildNumber) + " * " + (customerList.ChildPrice.ToString("0.00"));
                    this.litCostSum.Text     = customerList.SumPrice.ToString("0.00");
                    string vistors = string.Empty;
                    if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                    {
                        customerList.CustomerList = customerList.CustomerList.Where(p => p.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();
                        if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                        {
                            for (int i = 0; i < customerList.CustomerList.Count; i++)
                            {
                                vistors += customerList.CustomerList[i].VisitorName + ",";
                            }
                        }
                    }
                    this.litVistors.Text = vistors.TrimEnd(',');
                    //备注
                    if (customerList.AmountPlus != null)
                    {
                        this.litremark.Text = customerList.AmountPlus.Remark;
                    }
                }
            }
            else
            {
                teamModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;
                if (teamModel != null)
                {
                    //组团社
                    buyCompanyName = teamModel.BuyerCName;

                    this.litbuyCompanyName.Text = teamModel.BuyerCName;

                    //组团社联系人
                    EyouSoft.Model.CompanyStructure.CustomerInfo CustomerInfo = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(teamModel.BuyerCId);
                    if (CustomerInfo != null)
                    {
                        if (CustomerInfo.CustomerContactList != null && CustomerInfo.CustomerContactList.Count > 0)
                        {
                            buyCompanyContentName = CustomerInfo.CustomerContactList[0].Name;
                        }
                    }
                    this.litRouteName.Text = teamModel.RouteName;
                    this.litLdate.Text     = teamModel.LDate.ToString("yyyy-MM-dd");
                    //专线主要联系人
                    this.litContectName.Value = this.SiteUserInfo.ContactInfo.ContactName;
                    this.litQuerenDate.Value  = DateTime.Now.ToString("yyyy-MM-dd");
                }

                EyouSoft.Model.TourStructure.TourOrder customerList = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderModel
                                                                          (SiteUserInfo.CompanyID, EyouSoft.Common.Utils.GetQueryStringValue("orderId"));
                if (customerList != null)
                {
                    this.litPeopleCount.Text = customerList.PeopleNumber.ToString();

                    if (customerList.TourTeamUnit != null)
                    {
                        this.litCostDetail.Text = customerList.TourTeamUnit.UnitAmountCr.ToString("0.00") + "+" + customerList.TourTeamUnit.UnitAmountEt.ToString("0.00") + "+" + customerList.TourTeamUnit.UnitAmountQp.ToString("0.00");
                    }
                    this.litCostSum.Text = customerList.SumPrice.ToString("0.00");

                    string vistors = string.Empty;
                    if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                    {
                        customerList.CustomerList = customerList.CustomerList.Where(p => p.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();
                        if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                        {
                            for (int i = 0; i < customerList.CustomerList.Count; i++)
                            {
                                vistors += customerList.CustomerList[i].VisitorName + ",";
                            }
                        }
                    }
                    this.litVistors.Text = vistors.TrimEnd(',');
                    //备注
                    if (customerList.AmountPlus != null)
                    {
                        this.litremark.Text = customerList.AmountPlus.Remark;
                    }
                }
            }


            //公司账户信息
            EyouSoft.Model.CompanyStructure.CompanyInfo info = new EyouSoft.BLL.CompanyStructure.CompanyInfo().GetModel(CurrentUserCompanyID, CurrentUserCompanyID);
            if (info != null)
            {
                if (info.CompanyAccountList != null && info.CompanyAccountList.Count > 0)
                {
                    if (string.IsNullOrEmpty(info.CompanyAccountList[0].AccountName))
                    {
                        this.trAccountNameView.Visible = false;
                    }
                    else
                    {
                        this.lithuming.Text = info.CompanyAccountList[0].AccountName;
                    }
                    if (string.IsNullOrEmpty(info.CompanyAccountList[0].BankName) && string.IsNullOrEmpty(info.CompanyAccountList[0].BankNo))
                    {
                        this.trBankView.Visible = false;
                    }
                    else
                    {
                        this.litkaihuhang.Text = info.CompanyAccountList[0].BankName;
                        this.litzhanghao.Text  = info.CompanyAccountList[0].BankNo;
                    }
                }
                else
                {
                    this.trBankView.Visible        = false;
                    this.trAccountNameView.Visible = false;
                }
            }
        }
Beispiel #18
0
        /// <summary>
        /// 页面初始化
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 审批、取消审批、支付、取消支付
            if (Utils.GetFormValue("requestType") == "ajax_cancel")
            {
                Response.Clear();
                if (SetRegisterStatus())
                {
                    Response.Write("0");
                }
                else
                {
                    Response.Write("-1");
                }
                Response.End();
            }
            #endregion

            if (!IsPostBack)
            {
                //权限判断
                if (!CheckGrant(global::Common.Enum.TravelPermission.财务管理_团款支出_栏目))
                {
                    Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.财务管理_团款支出_栏目, false);
                }
                EyouSoft.Model.TourStructure.TourBaseInfo tourInfo = new EyouSoft.Model.TourStructure.TourBaseInfo();
                EyouSoft.BLL.TourStructure.Tour           bllTour  = new EyouSoft.BLL.TourStructure.Tour();
                tourInfo = bllTour.GetTourInfo(Utils.GetQueryStringValue("tourid"));
                if (tourInfo != null)
                {
                    lt_teamNum.Text    = tourInfo.TourCode;
                    lt_xianluName.Text = tourInfo.RouteName;
                    lt_days.Text       = tourInfo.TourDays.ToString();
                    lt_pepoleNum.Text  = tourInfo.PeopleNumberShiShou.ToString();
                    lt_LevelDate.Text  = tourInfo.LDate.ToString("yyyy-MM-dd");
                    //lt_seller.Text = tourInfo.SellerName;
                    //lt_oprator.Text=tourInfo.OperatorId
                    //EyouSoft.Model.CompanyStructure.ContactPersonInfo modelUser = new EyouSoft.BLL.CompanyStructure.CompanyUser(SiteUserInfo).GetUserBasicInfo(tourInfo.OperatorId);
                    //if (modelUser != null)
                    //{
                    //    lt_oprator.Text = modelUser.ContactName;
                    //}

                    EyouSoft.BLL.TourStructure.TourOrder   orderbll   = new EyouSoft.BLL.TourStructure.TourOrder();
                    EyouSoft.Model.TourStructure.TourOrder ordermodel = new EyouSoft.Model.TourStructure.TourOrder();

                    IList <EyouSoft.Model.StatisticStructure.StatisticOperator> listSeller = orderbll.GetSalerInfo(tourInfo.TourId);
                    IList <string> listOprator = bllTour.GetTourCoordinators(tourInfo.TourId);

                    string sellers = "";
                    string oprator = "";
                    foreach (var v in listSeller)
                    {
                        sellers += v.OperatorName + ",";
                    }
                    if (sellers.Length > 0)
                    {
                        sellers = sellers.TrimEnd(',');
                    }
                    foreach (var v in listOprator)
                    {
                        oprator += v + ",";
                    }
                    if (oprator.Length > 0)
                    {
                        oprator = oprator.TrimEnd(',');
                    }
                    lt_seller.Text  = sellers;
                    lt_oprator.Text = oprator;
                }
                string planId = Utils.GetQueryStringValue("tourid");
                #region 列表绑定
                //收入
                this.rpt_list1.DataSource = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderList(SiteUserInfo.CompanyID, planId);
                this.rpt_list1.DataBind();

                //其它收入
                EyouSoft.Model.FinanceStructure.OtherCostQuery otherCostQueryModel = new EyouSoft.Model.FinanceStructure.OtherCostQuery();
                otherCostQueryModel.TourId = planId;
                this.rpt_list2.DataSource  = new EyouSoft.BLL.FinanceStructure.OtherCost(SiteUserInfo).GetOtherIncomeList(otherCostQueryModel);
                this.rpt_list2.DataBind();

                //其它支出
                this.rpt_list3.DataSource = new EyouSoft.BLL.FinanceStructure.OtherCost(SiteUserInfo).GetOtherOutList(otherCostQueryModel);
                this.rpt_list3.DataBind();

                //利润分配
                this.rpt_list4.DataSource = new EyouSoft.BLL.FinanceStructure.TourProfitSharer(SiteUserInfo).GetTourShareList(planId);
                this.rpt_list4.DataBind();

                //
                rpt_list5.DataSource = new EyouSoft.BLL.FinanceStructure.OutRegister(SiteUserInfo).GetOutRegisterList(new EyouSoft.Model.FinanceStructure.QueryOutRegisterInfo {
                    ReceiveId = Utils.GetQueryStringValue("ReceiveId"), ItemId = planId
                });
                rpt_list5.DataBind();

                rpt_list1.EmptyText = "<tr><td id=\"EmptyData\" colspan='7' bgcolor='#e3f1fc' height='50px' align='center'>暂时没有数据!</td></tr>";
                rpt_list2.EmptyText = "<tr><td id=\"EmptyData\" colspan='6' bgcolor='#e3f1fc' height='50px' align='center'>暂时没有数据!</td></tr>";
                rpt_list3.EmptyText = "<tr><td id=\"EmptyData\" colspan='6' bgcolor='#e3f1fc' height='50px' align='center'>暂时没有数据!</td></tr>";
                rpt_list4.EmptyText = "<tr><td id=\"EmptyData\" colspan='5' bgcolor='#e3f1fc' height='50px' align='center'>暂时没有数据!</td></tr>";

                #endregion
            }
        }