/// <summary> /// 获取档案列表 /// </summary> /// <param name="model">查询实体</param> /// <param name="CompanyId">公司编号</param> /// <param name="PageSize">每页记录数</param> /// <param name="PageIndex">当前页数</param> /// <param name="RecordCount">总记记录数</param> /// <returns></returns> public IList <EyouSoft.Model.GovStructure.MGovFile> GetSearchArchivesList(EyouSoft.Model.GovStructure.MSearchGovFile model, string CompanyId, int PageSize, int PageIndex, ref int RecordCount) { IList <EyouSoft.Model.GovStructure.MGovFile> list = null; if (!string.IsNullOrEmpty(CompanyId)) { list = new List <EyouSoft.Model.GovStructure.MGovFile>(); list = dal.GetSearchArchivesList(model, CompanyId, PageSize, PageIndex, ref RecordCount); } return(list); }
/// <summary> /// 初始化 /// </summary> private void DataInit() { string name = Utils.GetQueryStringValue("userName"); bool isshow = Utils.GetQueryStringValue("isShow").ToLower() == "true"; pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1); string sModel = Utils.GetQueryStringValue("sModel"); EyouSoft.BLL.GovStructure.BArchives BLL = new EyouSoft.BLL.GovStructure.BArchives(); EyouSoft.Model.GovStructure.MSearchGovFile model = new EyouSoft.Model.GovStructure.MSearchGovFile(); model.Name = name; if (!isshow) { model.IsAccount = isshow; } if (sModel != "2") { this.ph_checkbox.Visible = false; } model.NoLeft = true; IList <EyouSoft.Model.GovStructure.MGovFile> lst = BLL.GetSearchArchivesList(model, this.SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount); if (null != lst && lst.Count > 0) { this.RepList.DataSource = lst; this.RepList.DataBind(); listCount = lst.Count; BindPage(); } else { this.RepList.Controls.Add(new Label() { Text = "<li style='text-align:center;'>对不起,没有相关数据!</li>" }); this.ExporPageInfoSelect1.Visible = false; } }