void Rpt_List() { pageIndex = UtilsCommons.GetPadingIndex(); var chaXun = new EyouSoft.Model.GysStructure.MXuanYongChaXunInfo(); chaXun.CountryId = Utils.GetIntNull(Utils.GetQueryStringValue("ddlCountry")); chaXun.ProvinceId = Utils.GetIntNull(Utils.GetQueryStringValue("ddlProvice")); chaXun.CityId = Utils.GetIntNull(Utils.GetQueryStringValue("ddlCity")); chaXun.DistrictId = Utils.GetIntNull(Utils.GetQueryStringValue("ddlArea")); chaXun.JingDianName = Utils.GetQueryStringValue("textfield"); var items = new EyouSoft.BLL.GysStructure.BGys().GetXuanYongJingDians(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun); if (items != null && items.Count > 0) { listCount = items.Count; rpt_ScenicList.DataSource = items; rpt_ScenicList.DataBind(); ExporPageInfoSelect1.PageLinkURL = ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; ExporPageInfoSelect1.UrlParams = Request.QueryString; ExporPageInfoSelect1.intPageSize = pageSize; ExporPageInfoSelect1.CurrencyPage = pageIndex; ExporPageInfoSelect1.intRecordCount = recordCount; } else { litMsg.Text = "<tr class='old'><td colspan='11' align='center'>没有相关数据</td></tr>"; ExporPageInfoSelect1.Visible = false; } }
/// <summary> /// init repeater /// </summary> void InitRpt() { int pageSize = 48; int pageIndex = UtilsCommons.GetPadingIndex(); int recordCount = 0; var chaXun = new EyouSoft.Model.GysStructure.MXuanYongChaXunInfo(); chaXun.GysName = Utils.GetQueryStringValue("txtName"); chaXun.GysLeiXing = (EyouSoft.Model.EnumType.SourceStructure.SourceType?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.SourceStructure.SourceType), Utils.GetQueryStringValue("txtLeiXing")); chaXun.ProvinceId = Utils.GetIntNull(Utils.GetQueryStringValue("txtProvinceId")); chaXun.CityId = Utils.GetIntNull(Utils.GetQueryStringValue("txtCityId")); var items = new EyouSoft.BLL.GysStructure.BGys().GetXuanYongs(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, chaXun); if (items != null && items.Count > 0) { rpt.DataSource = items; rpt.DataBind(); } else { } paging.UrlParams = Request.QueryString; paging.intPageSize = pageSize; paging.CurrencyPage = pageIndex; paging.intRecordCount = recordCount; paging.Visible = paging.intRecordCount > paging.intPageSize; //phEmpty.Visible = paging.intRecordCount == 0; }
/// <summary> /// get chaxun info /// </summary> /// <returns></returns> EyouSoft.Model.GysStructure.MXuanYongChaXunInfo GetChaXunInfo() { var info = new EyouSoft.Model.GysStructure.MXuanYongChaXunInfo(); info.ProvinceId = Utils.GetIntNull(Utils.GetQueryStringValue("provice")); info.CityId = Utils.GetIntNull(Utils.GetQueryStringValue("city")); info.DistrictId = Utils.GetIntNull(Utils.GetQueryStringValue("area")); info.GysName = Utils.GetQueryStringValue("name"); info.IsLxr = true; if (info.ProvinceId.HasValue && info.ProvinceId.Value < 1) { info.ProvinceId = null; } if (info.CityId.HasValue && info.CityId.Value < 1) { info.CityId = null; } if (info.DistrictId.HasValue && info.DistrictId.Value < 1) { info.DistrictId = null; } string gysLeiXing = Utils.GetQueryStringValue("type"); if (!string.IsNullOrEmpty(gysLeiXing)) { gysLeiXing = gysLeiXing.ToLower(); } switch (gysLeiXing) { case "car": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.车队; break; case "hotel": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.餐馆; break; case "wineshop": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.酒店; break; case "cruise": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.游轮; break; case "ground": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.地接社; break; case "shopping": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.购物; break; case "scenicspots": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.景点; break; case "ticket": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.票务; break; case "other": info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.其他; break; default: info.GysLeiXing = EyouSoft.Model.EnumType.SourceStructure.SourceType.其他; break; } return(info); }
/// <summary> /// 获取景点选用信息集合 /// </summary> /// <param name="companyId">公司编号</param> /// <param name="pageSize">页记录数</param> /// <param name="pageIndex">页索引</param> /// <param name="recordCount">总记录数</param> /// <param name="chaXun">查询实体</param> /// <returns></returns> public IList <EyouSoft.Model.GysStructure.MXuanYongJingDianInfo> GetXuanYongJingDians(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.GysStructure.MXuanYongChaXunInfo chaXun) { if (string.IsNullOrEmpty(companyId)) { return(null); } return(dal.GetXuanYongJingDians(companyId, pageSize, pageIndex, ref recordCount, chaXun)); }