Esempio n. 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            int intRecordCount = 0;

            #region 初始化查询条件
            intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            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.InputText(Request.QueryString["TourNumber"]);
            RouteName  = Utils.InputText(Request.QueryString["RouteName"]);
            RouteName  = Server.UrlDecode(RouteName).Trim();
            Days       = Utils.GetIntNull(Request.QueryString["Days"]);
            #endregion
            IList <EyouSoft.Model.TourStructure.TourBasicInfo> TourList = new List <EyouSoft.Model.TourStructure.TourBasicInfo>();
            EyouSoft.IBLL.TourStructure.ITour Ibll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            TourList = Ibll.GetStartingTours(intPageSize, intPageIndex, ref intRecordCount, CompanyID, TourNumber, RouteName, Days, BeginDate, EndDate);
            rpt_AlreadyStartingTeams.DataSource = TourList;
            rpt_AlreadyStartingTeams.DataBind();
            Ibll     = null;
            TourList = null;
            //是否有出发团队信息信息
            if (rpt_AlreadyStartingTeams.Items.Count <= 0)
            {
                this.NoData.Visible = true;
            }
            this.ExportPageInfo1.intRecordCount = intRecordCount;
            this.ExportPageInfo1.intPageSize    = intPageSize;
            this.ExportPageInfo1.CurrencyPage   = intPageIndex;
            this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
        }