private void BindCollection(Guid id) { ItemCollectionFacade facade = new ItemCollectionFacade(); int totalCount; IList<ItemDetailInfo> list = facade.GetChildrenItemList(id, gvList.PageIndex, gvList.PageSize, out totalCount, "LastUpdateDate", J.SLS.Database.ORM.SortDirection.Desc); gvList.DataSource = list; gvList.DataBind(); }
private void BindCollection(Guid id) { ItemCollectionFacade facade = new ItemCollectionFacade(); int totalCount; IList <ItemDetailInfo> list = facade.GetChildrenItemList(id, gvList.PageIndex, gvList.PageSize, out totalCount, "LastUpdateDate", J.SLS.Database.ORM.SortDirection.Desc); gvList.DataSource = list; gvList.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (BlockObject != null) { if (BlockObject is ItemCollectionInfo) { ItemCollectionFacade facade = new ItemCollectionFacade(); int totalCount; int pageIndex = 0; IList<ItemDetailInfo> itemList = facade.GetChildrenItemList(BlockObject.Id, pageIndex, DisplayCount, out totalCount, OrderBy, Direction); rptList.DataSource = itemList; rptList.DataBind(); } else { throw new ArgumentOutOfRangeException("类型\"" + BlockObject.GetType().FullName + "\"的内容不能在列表模块中展示。"); } } }
protected void Page_Load(object sender, EventArgs e) { if (BlockObject != null) { if (BlockObject is ItemCollectionInfo) { ItemCollectionFacade facade = new ItemCollectionFacade(); int totalCount; int pageIndex = 0; IList <ItemDetailInfo> itemList = facade.GetChildrenItemList(BlockObject.Id, pageIndex, DisplayCount, out totalCount, OrderBy, Direction); rptList.DataSource = itemList; rptList.DataBind(); } else { throw new ArgumentOutOfRangeException("类型\"" + BlockObject.GetType().FullName + "\"的内容不能在列表模块中展示。"); } } }