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); }
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; }
public StorageSpaceLevel[] GetStorageSpaceLevelsPaged(int maximumRows, int startRowIndex, string sortColumn, string filterValue) { ssLevels = ES.Services.StorageSpaces.GetStorageSpaceLevelsPaged("Name", filterValue, sortColumn, startRowIndex, maximumRows); return ssLevels.Levels; }
public StorageSpaceLevel[] GetStorageSpaceLevelsPaged(int maximumRows, int startRowIndex, string sortColumn, string filterValue) { ssLevels = ES.Services.StorageSpaces.GetStorageSpaceLevelsPaged("Name", filterValue, sortColumn, startRowIndex, maximumRows); return(ssLevels.Levels); }