Example #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            Utils.GetCompanyChildAccount(dplUserList, CompanyId);
            int intRecordCount = 0;

            #region 查询条件
            intPageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            if (Request.QueryString["UserID"] != null && !string.IsNullOrEmpty(Request.QueryString["UserID"]))
            {
                UserId = Utils.GetQueryStringValue("UserID");// Request.QueryString["UserID"];
            }
            else
            {
                UserId = null;
            }
            dplUserList.SelectedValue = UserId;
            TourDays  = Utils.GetIntNull(Request.QueryString["TourDays"]);
            TourCode  = Utils.GetQueryStringValue("TourCode");
            RouteName = Utils.GetQueryStringValue("RouteName");
            RouteName = Server.UrlDecode(RouteName).Trim();
            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();
            }
            #endregion
            EyouSoft.IBLL.TourStructure.ITour Tourbll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            HavingOrderLists = new List <EyouSoft.Model.TourStructure.HavingOrderTourInfo>();
            //获取历史订单的团队信息集合
            HavingOrderLists = Tourbll.GetHistorOrderTours(intPageSize, intPageIndex, ref intRecordCount, CompanyId, UserId, TourCode, RouteName, TourDays, BeginDate, EndDate);
            this.rpt_OrderHistory.DataSource = HavingOrderLists;
            this.rpt_OrderHistory.DataBind();
            this.ExportPageInfo1.intPageSize    = intPageSize;
            this.ExportPageInfo1.CurrencyPage   = intPageIndex;
            this.ExportPageInfo1.intRecordCount = intRecordCount;
            Tourbll          = null;
            HavingOrderLists = null;
            if (rpt_OrderHistory.Items.Count <= 0)
            {
                this.NoData.Visible = true;
            }
            this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
        }