/// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
            EyouSoft.Model.TourStructure.MPlanListSearch Search = new EyouSoft.Model.TourStructure.MPlanListSearch();
            Search.CompanyInfo             = new EyouSoft.Model.TourStructure.MCompanyInfo();
            Search.CompanyInfo.CompanyId   = this.Customer1.CustomerUnitId;
            Search.CompanyInfo.CompanyName = this.Customer1.CustomerUnitName;
            Search.SaleInfo          = new EyouSoft.Model.TourStructure.MSaleInfo();
            Search.SaleInfo.SellerId = this.Seller1.SellsID;
            Search.SaleInfo.Name     = this.Seller1.SellsName;
            Search.SLDate            = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("TxtmeetTeamTime"));
            Search.TourCode          = Utils.GetQueryStringValue("txtTourCode");
            IList <EyouSoft.Model.TourStructure.MPlanList> Agencylist = new EyouSoft.BLL.TourStructure.BTour().GetDJPlanList(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, Search);

            if (Agencylist != null && Agencylist.Count > 0)
            {
                this.AgOperaterList.DataSource = Agencylist;
                this.AgOperaterList.DataBind();
                //绑定分页
                BindPage();
            }
            else
            {
                this.lab_text.Text = "对不起,没有相关数据!";
                this.ExporPageInfoSelect1.Visible = false;
                this.ExporPageInfoSelect2.Visible = false;
            }
        }
示例#2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            PageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
            EyouSoft.Model.TourStructure.MPlanListSearch Search = new EyouSoft.Model.TourStructure.MPlanListSearch();
            //团号
            Search.TourCode = Utils.GetQueryStringValue("txtTourCode");
            //客源单位
            Search.CompanyInfo             = new EyouSoft.Model.TourStructure.MCompanyInfo();
            Search.CompanyInfo.CompanyId   = Utils.GetQueryStringValue(this.Customer1.ClientNameKHBH);
            Search.CompanyInfo.CompanyName = Utils.GetQueryStringValue(this.Customer1.ClientNameKHMC);
            //出团时间
            DateTime?startTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStartTime"));
            DateTime?endTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime"));

            Search.SLDate = startTime;
            Search.LLDate = endTime;
            //销售员
            Search.SaleInfo          = new EyouSoft.Model.TourStructure.MSaleInfo();
            Search.SaleInfo.SellerId = Utils.GetQueryStringValue(this.Seller1.SellsIDClient);
            Search.SaleInfo.Name     = Utils.GetQueryStringValue(this.Seller1.SellsNameClient);
            //计调员
            Search.PlanerId = Utils.GetQueryStringValue(this.seller2.SellsIDClient);
            Search.Planer   = Utils.GetQueryStringValue(this.seller2.SellsNameClient);
            //团队状态
            string tourState = Utils.GetQueryStringValue("tourState");

            if (!string.IsNullOrEmpty(tourState) && tourState != "-1")
            {
                Search.TourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)Utils.GetInt(tourState);
            }

            //组团计调列表
            if (Utils.GetQueryStringValue("sl") == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_组团计调).ToString())
            {
                IList <EyouSoft.Model.TourStructure.MPlanList> TeamOplist = new EyouSoft.BLL.TourStructure.BTour().GetZTPlanList(SiteUserInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search);
                GetListSource(TeamOplist);
                Search = null;
            }
            //地接计调列表
            if (Utils.GetQueryStringValue("sl") == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_地接计调).ToString())
            {
                IList <EyouSoft.Model.TourStructure.MPlanList> TeamOplist = new EyouSoft.BLL.TourStructure.BTour().GetDJPlanList(SiteUserInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search);
                GetListSource(TeamOplist);
                Search = null;
            }
            //出境计调列表
            if (Utils.GetQueryStringValue("sl") == ((int)EyouSoft.Model.EnumType.PrivsStructure.Menu2.计调中心_出境计调).ToString())
            {
                IList <EyouSoft.Model.TourStructure.MPlanList> TeamOplist = new EyouSoft.BLL.TourStructure.BTour().GetCJPlanList(SiteUserInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search);
                GetListSource(TeamOplist);
                Search = null;
            }
        }