public IList <PRMBOQDetailHistoryEntity> GetPagedData(Int32 startRowIndex, Int32 pageSize, String sortExpression) { IList <PRMBOQDetailHistoryEntity> pRMBOQDetailHistoryEntityList = new List <PRMBOQDetailHistoryEntity>(); try { if (pageSize == -1) { pageSize = 1000000000; } if (String.IsNullOrEmpty(sortExpression)) { sortExpression = PRMBOQDetailHistoryEntity.FLD_NAME_BOQDetailHistoryID + " " + SQLConstants.SORT_ORDER_DESCENDING; } startRowIndex = Convert.ToInt32(startRowIndex / pageSize) + 1; pRMBOQDetailHistoryEntityList = FCCPRMBOQDetailHistory.GetFacadeCreate().GetIL(startRowIndex, pageSize, sortExpression, null, DatabaseOperationType.LoadPagedWithSortExpression); if (pRMBOQDetailHistoryEntityList != null && pRMBOQDetailHistoryEntityList.Count > 0) { totalRowCount = pRMBOQDetailHistoryEntityList[0].TotalRowCount; } } catch (Exception ex) { } return(pRMBOQDetailHistoryEntityList ?? new List <PRMBOQDetailHistoryEntity>()); }
public IList <PRMBOQDetailHistoryEntity> GetData() { IList <PRMBOQDetailHistoryEntity> pRMBOQDetailHistoryEntityList = new List <PRMBOQDetailHistoryEntity>(); try { pRMBOQDetailHistoryEntityList = FCCPRMBOQDetailHistory.GetFacadeCreate().GetIL(null, null, null, null, DatabaseOperationType.Load); if (pRMBOQDetailHistoryEntityList != null && pRMBOQDetailHistoryEntityList.Count > 0) { totalRowCount = pRMBOQDetailHistoryEntityList[0].TotalRowCount; } } catch (Exception ex) { } return(pRMBOQDetailHistoryEntityList ?? new List <PRMBOQDetailHistoryEntity>()); }