コード例 #1
0
        protected void BindTour()
        {
            if (!CheckGrant(TravelPermission.组团_线路散客订单管理))
            {
                Utils.ResponseNoPermit();
                return;
            }
            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);  //获取当前页
            string companyId = Utils.GetQueryStringValue("companyid"); //专线商ID

            EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(companyId);
            //获取公司名,许可证,负责人
            if (companyModel != null)
            {
                companyName = companyModel.CompanyName;
                cer         = companyModel.License;
                admin       = companyModel.ContactInfo.ContactName;
            }
            //获取产品列表
            EyouSoft.IBLL.TourStructure.ITour tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            IList <EyouSoft.Model.TourStructure.TourBasicInfo> tourInfoList = tourBll.GetNotStartingTours(pageSize, pageIndex, ref recordCount, companyId, null);

            if (tourInfoList != null && tourInfoList.Count > 0)
            {
                rl_rpt_TourList.DataSource = tourInfoList;
                rl_rpt_TourList.DataBind();
                BindPage();//设置分页
            }
            else
            {
                rl_rpt_TourList.EmptyText    = "暂无团队信息";
                this.ExportPageInfo1.Visible = false;
            }
            tourInfoList = null;
        }
コード例 #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            int intRecordCount = 0;

            EyouSoft.Model.TourStructure.SearchTourState SearchState = new EyouSoft.Model.TourStructure.SearchTourState();
            dplSearchTourState.DataSource = Enum.GetNames(typeof(EyouSoft.Model.TourStructure.SearchTourState));
            dplSearchTourState.DataBind();
            #region 初始化查询条件
            BeginDate = Utils.GetDateTimeNullable(Request.QueryString["BeginDate"]);
            if (!string.IsNullOrEmpty(Request.QueryString["BeginDate"]))
            {
                ShowBeginDate = Utils.GetDateTime(Request.QueryString["BeginDate"]).ToShortDateString();
            }
            EndDate = Utils.GetDateTimeNullable(Request.QueryString["EndDate"]);
            if (!string.IsNullOrEmpty(Request.QueryString["EndDate"]))
            {
                ShowEndDate = Utils.GetDateTime(Request.QueryString["EndDate"]).ToShortDateString();
            }
            TourNumber = Utils.GetQueryStringValue("TourNumber");
            string TourSate = Utils.GetQueryStringValue("TourState");
            if (!string.IsNullOrEmpty(TourSate))
            {
                SearchState = (EyouSoft.Model.TourStructure.SearchTourState)Enum.Parse(typeof(EyouSoft.Model.TourStructure.SearchTourState), TourSate);
                dplSearchTourState.Items.FindByText(TourSate).Selected = true;
            }
            else
            {
                dplSearchTourState.Items.FindByText(EyouSoft.Model.TourStructure.SearchTourState.全部.ToString()).Selected = true;
                SearchState = EyouSoft.Model.TourStructure.SearchTourState.全部;
            }
            #endregion
            EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            IList <EyouSoft.Model.TourStructure.TourBasicInfo> TourList = new List <EyouSoft.Model.TourStructure.TourBasicInfo>();
            TourList = Ibll.GetNotStartingTours(intPageSize, intPageIndex, ref intRecordCount, TemplateTourID, TourNumber, SearchState, BeginDate, EndDate);

            this.rpt_NotStartingTeamsDetail.DataSource = TourList;
            this.rpt_NotStartingTeamsDetail.DataBind();
            //是否有订单信息
            if (rpt_NotStartingTeamsDetail.Items.Count <= 0)
            {
                this.NoData.Visible = true;
            }
            Ibll     = null;
            TourList = null;
            this.ExportPageInfo1.intRecordCount = intRecordCount;
            this.ExportPageInfo1.CurrencyPage   = intPageIndex;
            this.ExportPageInfo1.intPageSize    = intPageSize;
            this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsLogin)//是否登录
            {
                EyouSoft.Security.Membership.UserProvider.RedirectLoginOpenTopPage("/Default.aspx");
                return;
            }
            //if (!CheckGrant(TravelPermission.客户管理_管理栏目))
            //{
            //    Utils.ResponseNoPermit();
            //    return;
            //}
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel1 = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            //是否开通收费MQ
            //if (!companyModel1.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ))
            //{
            //    Server.Transfer("/SystemSet/ApplyMQ.aspx?iscustomer=yes&urltype=tab", false);
            //    return;
            //}
            companyId = Utils.GetQueryStringValue("companyid");//专线商
            EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(companyId);
            companyName = companyModel.CompanyName;
            cer         = companyModel.License;
            admin       = companyModel.ContactInfo.ContactName;
            //获取当前页
            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            EyouSoft.IBLL.TourStructure.ITour tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            areaBll = EyouSoft.BLL.SystemStructure.SysArea.CreateInstance();
            //绑定产品列表
            IList <EyouSoft.Model.TourStructure.TourBasicInfo> tourInfoList = tourBll.GetNotStartingTours(pageSize, pageIndex, ref recordCount, companyId, null);

            if (tourInfoList != null && tourInfoList.Count > 0)
            {
                tl_rpt_TourList.DataSource = tourInfoList;
                tl_rpt_TourList.DataBind();
                BindPage();
            }
            else
            {
                tl_rpt_TourList.EmptyText    = "暂无团队信息";
                this.ExportPageInfo1.Visible = false;
            }
            tourInfoList = null;
        }