Exemplo n.º 1
0
        private void InitRouteList()
        {
            int intRecordCount = 0;

            CurrencyPage = Utils.GetInt(Utils.InputText(Request.QueryString["Page"]), 1);
            EyouSoft.IBLL.TourStructure.IRouteBasicInfo         bll  = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance();
            IList <EyouSoft.Model.TourStructure.RouteBasicInfo> list = bll.GetLocaRoutes(intPageSize, CurrencyPage, ref intRecordCount, CompanyID, string.Empty, string.Empty, 0, string.Empty, null, null);

            if (intRecordCount > 0)
            {
                this.rptRouteList.DataSource = list;
                this.rptRouteList.DataBind();
                this.ExporPageInfoSelect1.intPageSize    = intPageSize;
                this.ExporPageInfoSelect1.CurrencyPage   = CurrencyPage;
                this.ExporPageInfoSelect1.intRecordCount = intRecordCount;
                this.ExporPageInfoSelect1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect1.UrlParams      = Request.QueryString;
            }
            else
            {
                this.ExporPageInfoSelect1.Visible = false;
                this.pnlNoData.Visible            = true;
            }
            list = null;
            bll  = null;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 初始化线路列表
        /// </summary>
        private void InitRouteList()
        {
            int intRecordCount = 0;
            int RouteDays      = 0;

            int[]  AreaId = UserInfoModel.AreaId;
            string RouteName = string.Empty, ContactName = string.Empty;

            RouteName    = Server.UrlDecode(Utils.InputText(Request.QueryString["RouteName"]));
            RouteDays    = Utils.GetInt(Utils.InputText(Request.QueryString["TourDays"]), 0);
            ContactName  = Server.UrlDecode(Utils.InputText(Request.QueryString["ContactName"]));
            CurrencyPage = Utils.GetInt(Request.QueryString["Page"], 1);
            EyouSoft.IBLL.TourStructure.IRouteBasicInfo         bll = EyouSoft.BLL.TourStructure.RouteBasicInfo.CreateInstance();
            IList <EyouSoft.Model.TourStructure.RouteBasicInfo> list = null;

            // 所有的线路列表
            list = bll.GetLocaRoutes(intPageSize, CurrencyPage, ref intRecordCount, UserInfoModel.CompanyID, UserInfoModel.ID, RouteName, RouteDays, ContactName, null, null);
            if (list != null && list.Count > 0)
            {
                this.rptLocalRouteView.DataSource = list;
                this.rptLocalRouteView.DataBind();
            }
            else
            {
                this.pnlNodata.Visible = true;
            }
            this.ExportPageInfo1.intPageSize    = intPageSize;
            this.ExportPageInfo1.intRecordCount = intRecordCount;
            this.ExportPageInfo1.CurrencyPage   = CurrencyPage;
            this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";

            this.LocalRouteView_RouteName.Value = RouteName;
            if (RouteDays != 0)
            {
                this.LocalRouteView_TourDays.Value = RouteDays.ToString();
            }
            this.LocalRouteView_ContactName.Value = ContactName;

            list = null;
            bll  = null;
        }