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