/// <summary> /// 初始化线路列表 /// </summary> private void InitRouteList() { //记录条数 int intRecordCount = 0; //页码 CurrencyPage = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1); //查询实体 MRouteSearch queryModel = new MRouteSearch(); #region 查询参数赋值 //线路来源,专线,地接 routeSource = (RouteSource)Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1); queryModel.RouteSource = routeSource; //专线Id queryModel.AreaId = Utils.GetInt(Utils.GetQueryStringValue("lineId"), 0); ILine1.CheckedId = queryModel.AreaId.ToString(); ddl_ZX.SelectedValue = queryModel.AreaId.ToString(); //专线类型 queryModel.RouteType = null; if (Utils.GetIntSign(Utils.GetQueryStringValue("lineType"), -1) >= 0) { queryModel.RouteType = (AreaType)Utils.GetInt(Utils.GetQueryStringValue("lineType")); } //出发城市 queryModel.StartCity = Utils.GetInt(Utils.GetQueryStringValue("goCity"), 0); ddl_goCity.SelectedValue = queryModel.StartCity.ToString(); //关键字 queryModel.RouteKey = Utils.GetQueryStringValue("keyWord") == "线路名称" ? string.Empty : Utils.GetQueryStringValue("keyWord"); txt_keyWord.Value = queryModel.RouteKey.Length > 0 ? queryModel.RouteKey : "线路名称"; #endregion IRoute bll = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance(); //线路库列表 IList <MRoute> list = bll.GetBackCenterList(intPageSize, CurrencyPage, ref intRecordCount, SiteUserInfo.CompanyID, queryModel); if (list != null && list.Count > 0) { //存在列表数据 rpt_List.DataSource = list; rpt_List.DataBind(); ExportPageInfo1.Visible = true; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.CurrencyPage = CurrencyPage; this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; this.ExportPageInfo1.UrlParams.Add("lineId", queryModel.AreaId.ToString()); this.ExportPageInfo1.UrlParams.Add("lineType", Utils.GetQueryStringValue("lineType")); this.ExportPageInfo1.UrlParams.Add("goCity", queryModel.StartCity.ToString()); this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.RouteKey); this.ExportPageInfo1.UrlParams.Add("routeSource", Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1).ToString()); } else { //不存在列表数据 pnlNodata.Visible = true; } }
/// <summary> /// 初始化线路列表 /// </summary> private void InitRouteList() { //记录条数 int intRecordCount = 0; //页码 int CurrencyPage = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1); int intPageSize = 15; IRoute bll = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance(); //查询实体 MRouteSearch queryModel = new MRouteSearch(); #region 查询参数赋值 routeSource = (RouteSource)Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1); //线路来源,专线,地接 queryModel.RouteSource = routeSource; //专线Id queryModel.AreaId = Utils.GetInt(Utils.GetQueryStringValue("lineId"), 0); if (Utils.GetIntSign(Utils.GetQueryStringValue("lineType"), -1) >= 0) { queryModel.RouteType = (AreaType)Utils.GetInt(Utils.GetQueryStringValue("lineType")); } //出发城市 queryModel.StartCity = Utils.GetInt(Utils.GetQueryStringValue("goCity"), 0); //关键字 queryModel.RouteKey = Utils.GetQueryStringValue("keyWord") == "线路名称" ? string.Empty : Utils.GetQueryStringValue("keyWord"); #endregion //线路库列表 IList <MRoute> list = bll.GetBackCenterList(intPageSize, CurrencyPage, ref intRecordCount, Utils.GetQueryStringValue("companyID"), queryModel); if (list != null && list.Count > 0) { //存在列表数据 rpt_List.DataSource = list; rpt_List.DataBind(); ExportPageInfo1.Visible = true; this.ExportPageInfo1.intPageSize = intPageSize; this.ExportPageInfo1.intRecordCount = intRecordCount; this.ExportPageInfo1.CurrencyPage = CurrencyPage; this.ExportPageInfo1.PageLinkURL = "/routeagency/routemanage/RouteView.aspx?"; this.ExportPageInfo1.UrlParams.Add("lineId", queryModel.AreaId.ToString()); this.ExportPageInfo1.UrlParams.Add("lineType", Utils.GetQueryStringValue("lineType")); this.ExportPageInfo1.UrlParams.Add("goCity", queryModel.StartCity.ToString()); this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.RouteKey); this.ExportPageInfo1.UrlParams.Add("routeSource", Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1).ToString()); } else { //不存在列表数据 pnlNodata.Visible = true; } }