コード例 #1
0
        private static StorageSpaceLevelPaged GetStorageSpaceLevelsPagedInternal(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
        {
            DataSet ds = DataProvider.GetStorageSpaceLevelsPaged(filterColumn, string.Format("%{0}%", filterValue), sortColumn, startRow, maximumRows);

            var result = new StorageSpaceLevelPaged
            {
                RecordsCount = (int)ds.Tables[0].Rows[0][0]
            };

            var tmpLevels = new List <StorageSpaceLevel>();

            ObjectUtils.FillCollectionFromDataView(tmpLevels, ds.Tables[1].DefaultView);

            result.Levels = tmpLevels.ToArray();

            return(result);
        }
コード例 #2
0
        private static StorageSpaceLevelPaged GetStorageSpaceLevelsPagedInternal(string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows)
        {
            DataSet ds = DataProvider.GetStorageSpaceLevelsPaged(filterColumn, string.Format("%{0}%", filterValue), sortColumn, startRow, maximumRows);

            var result = new StorageSpaceLevelPaged
            {
                RecordsCount = (int)ds.Tables[0].Rows[0][0]
            };

            var tmpLevels = new List<StorageSpaceLevel>();

            ObjectUtils.FillCollectionFromDataView(tmpLevels, ds.Tables[1].DefaultView);

            result.Levels = tmpLevels.ToArray();

            return result;
        }
コード例 #3
0
ファイル: SsHelper.cs プロジェクト: lwhitelock/Websitepanel
        public StorageSpaceLevel[] GetStorageSpaceLevelsPaged(int maximumRows, int startRowIndex, string sortColumn, string filterValue)
        {
            ssLevels = ES.Services.StorageSpaces.GetStorageSpaceLevelsPaged("Name", filterValue, sortColumn, startRowIndex, maximumRows);

            return ssLevels.Levels;
        }
コード例 #4
0
        public StorageSpaceLevel[] GetStorageSpaceLevelsPaged(int maximumRows, int startRowIndex, string sortColumn, string filterValue)
        {
            ssLevels = ES.Services.StorageSpaces.GetStorageSpaceLevelsPaged("Name", filterValue, sortColumn, startRowIndex, maximumRows);

            return(ssLevels.Levels);
        }