Beispiel #1
0
        public IList <ACTemporaryJournalMasterEntity> GetPagedData(Int32 startRowIndex, Int32 pageSize, String sortExpression)
        {
            IList <ACTemporaryJournalMasterEntity> aCTemporaryJournalMasterEntityList = new List <ACTemporaryJournalMasterEntity>();

            try
            {
                if (pageSize == -1)
                {
                    pageSize = 1000000000;
                }

                if (String.IsNullOrEmpty(sortExpression))
                {
                    sortExpression = ACTemporaryJournalMasterEntity.FLD_NAME_TemporaryJournalMasterID + " " + SQLConstants.SORT_ORDER_DESCENDING;
                }

                startRowIndex = Convert.ToInt32(startRowIndex / pageSize) + 1;

                aCTemporaryJournalMasterEntityList = FCCACTemporaryJournalMaster.GetFacadeCreate().GetIL(startRowIndex, pageSize, sortExpression, null, DatabaseOperationType.LoadPagedWithSortExpression);

                if (aCTemporaryJournalMasterEntityList != null && aCTemporaryJournalMasterEntityList.Count > 0)
                {
                    totalRowCount = aCTemporaryJournalMasterEntityList[0].TotalRowCount;
                }
            }
            catch (Exception ex)
            {
            }

            return(aCTemporaryJournalMasterEntityList ?? new List <ACTemporaryJournalMasterEntity>());
        }
Beispiel #2
0
        public IList <ACTemporaryJournalMasterEntity> GetData()
        {
            IList <ACTemporaryJournalMasterEntity> aCTemporaryJournalMasterEntityList = new List <ACTemporaryJournalMasterEntity>();

            try
            {
                aCTemporaryJournalMasterEntityList = FCCACTemporaryJournalMaster.GetFacadeCreate().GetIL(null, null, null, null, DatabaseOperationType.Load);

                if (aCTemporaryJournalMasterEntityList != null && aCTemporaryJournalMasterEntityList.Count > 0)
                {
                    totalRowCount = aCTemporaryJournalMasterEntityList[0].TotalRowCount;
                }
            }
            catch (Exception ex)
            {
            }

            return(aCTemporaryJournalMasterEntityList ?? new List <ACTemporaryJournalMasterEntity>());
        }