public IList <DMSDocumentNodeEntity> GetPagedData(Int32 startRowIndex, Int32 pageSize, String sortExpression) { IList <DMSDocumentNodeEntity> dMSDocumentNodeEntityList = new List <DMSDocumentNodeEntity>(); try { if (pageSize == -1) { pageSize = 1000000000; } if (String.IsNullOrEmpty(sortExpression)) { sortExpression = DMSDocumentNodeEntity.FLD_NAME_DocumentNodeID + " " + SQLConstants.SORT_ORDER_DESCENDING; } startRowIndex = Convert.ToInt32(startRowIndex / pageSize) + 1; dMSDocumentNodeEntityList = FCCDMSDocumentNode.GetFacadeCreate().GetIL(startRowIndex, pageSize, sortExpression, null, DatabaseOperationType.LoadPagedWithSortExpression); if (dMSDocumentNodeEntityList != null && dMSDocumentNodeEntityList.Count > 0) { totalRowCount = dMSDocumentNodeEntityList[0].TotalRowCount; } } catch (Exception ex) { } return(dMSDocumentNodeEntityList ?? new List <DMSDocumentNodeEntity>()); }
private void BuildTree() { this.Nodes.Clear(); nodeList = FCCDMSDocumentNode.GetFacadeCreate().GetIL(null, null, String.Empty, String.Empty, DatabaseOperationType.Load); TreeNode rootNode = new TreeNode(); rootNode.Text = "DMS TreeView"; rootNode.Value = "0"; rootNode.SelectAction = TreeNodeSelectAction.SelectExpand; rootNode.Expanded = true; LoadCategories(rootNode, null); this.Nodes.Add(rootNode); }
public IList <DMSDocumentNodeEntity> GetData() { IList <DMSDocumentNodeEntity> dMSDocumentNodeEntityList = new List <DMSDocumentNodeEntity>(); try { dMSDocumentNodeEntityList = FCCDMSDocumentNode.GetFacadeCreate().GetIL(null, null, null, null, DatabaseOperationType.Load); if (dMSDocumentNodeEntityList != null && dMSDocumentNodeEntityList.Count > 0) { totalRowCount = dMSDocumentNodeEntityList[0].TotalRowCount; } } catch (Exception ex) { } return(dMSDocumentNodeEntityList ?? new List <DMSDocumentNodeEntity>()); }