/// <summary> /// 初始化 /// </summary> private void DataInit() { //获取分页参数并强转 pageIndex = UtilsCommons.GetPadingIndex(); EyouSoft.Model.YlStructure.MGongSiChaXunInfo searchModel = new EyouSoft.Model.YlStructure.MGongSiChaXunInfo(); searchModel.GongSiLeiXing = (EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing)Utils.GetInt(Utils.GetQueryStringValue("t")); if (Utils.GetInt(Utils.GetQueryStringValue("t")) == 255) { searchModel.GongSiLeiXing = null; } searchModel.GongSiMingCheng = Utils.GetQueryStringValue("comName"); IList <EyouSoft.Model.YlStructure.MGongSiInfo> comps = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetGongSis(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, searchModel); if (comps != null && comps.Count > 0) { listCount = comps.Count; this.rptList.DataSource = comps; this.rptList.DataBind(); BindPage(); } else { this.lblMsg.Text = "没有相关数据!"; this.ExporPageInfoSelect1.Visible = false; } //绑定分页 BindPage(); }
void InitGS() { int recordCount = 0; var chaXun = new EyouSoft.Model.YlStructure.MGongSiChaXunInfo(); chaXun.GongSiLeiXing = LeiXing; var items = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetGongSis(YuMingInfo.CompanyId, 1000, 1, ref recordCount, chaXun); rptGS.DataSource = items; rptGS.DataBind(); }
void InitRpt() { int pageSize = 12; int pageIndex = UtilsCommons.GetPadingIndex(); int recordCount = 0; var chaXun = new EyouSoft.Model.YlStructure.MGongSiChaXunInfo(); chaXun.GongSiLeiXing = LeiXing; var items = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetGongSis(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun); if (items != null && items.Count > 0) { rpt.DataSource = items; rpt.DataBind(); RegisterScript(string.Format("pConfig.pageSize={0};pConfig.pageIndex={1};pConfig.recordCount={2};", pageSize, pageIndex, recordCount)); } }
/// <summary> /// 初始化邮轮公司列表 /// </summary> protected void PageInit() { EyouSoft.Model.YlStructure.MGongSiChaXunInfo searCh = new EyouSoft.Model.YlStructure.MGongSiChaXunInfo(); searCh.GongSiMingCheng = Utils.GetQueryStringValue("name"); string leixing = Utils.GetQueryStringValue("leixing"); searCh.GongSiLeiXing = (EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing), leixing); pageIndex = UtilsCommons.GetPadingIndex(); IList <EyouSoft.Model.YlStructure.MGongSiInfo> list = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetGongSis(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, searCh);; if (list != null && list.Count > 0) { this.repList.DataSource = list; this.repList.DataBind(); BindPage(); } else { this.repList.EmptyText = "<tr><td align=\"center\" colspan=\"6\">暂无数据!</td></tr>"; this.ExporPageInfoSelect1.Visible = false; } }
/// <summary> /// 获取游轮公司信息集合 /// </summary> /// <param name="companyId">公司编号</param> /// <param name="chaXun">查询</param> /// <returns></returns> public IList <EyouSoft.Model.YlStructure.MGongSiInfo> GetGongSis(string companyId, EyouSoft.Model.YlStructure.MGongSiChaXunInfo chaXun) { if (string.IsNullOrEmpty(companyId)) { return(null); } return(dal.GetGongSis(companyId, chaXun)); }
/// <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.YlStructure.MGongSiInfo> GetGongSis(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.YlStructure.MGongSiChaXunInfo chaXun) { if (string.IsNullOrEmpty(companyId)) { return(null); } return(dal.GetGongSis(companyId, pageSize, pageIndex, ref recordCount, chaXun)); }