|  |  |  | 
|---|
|  |  |  | using CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsStores; | 
|---|
|  |  |  | using CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsStore; | 
|---|
|  |  |  | using CMS.Plugin.HIAWms.Application.Contracts.Services; | 
|---|
|  |  |  | using CMS.Plugin.HIAWms.Domain.WmsStores; | 
|---|
|  |  |  | using CMS.Plugin.HIAWms.Domain.Shared; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <inheritdoc /> | 
|---|
|  |  |  | public virtual async Task<PagedResultDto<WmsStoreDto>> GetListAsync(GetWmsStoresInput input) | 
|---|
|  |  |  | public virtual async Task<PagedResultDto<WmsStoreDto>> GetListAsync(GetWmsStoreInput input) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Check.NotNull(input, nameof(input)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | var specification = new WmsStoreSpecification(input.Name); | 
|---|
|  |  |  | var store = ObjectMapper.Map<GetWmsStoresInput, WmsStore>(input); | 
|---|
|  |  |  | var store = ObjectMapper.Map<GetWmsStoreInput, WmsStore>(input); | 
|---|
|  |  |  | var count = await _wmsstoreRepository.GetCountAsync(store,input.Filter, specification); | 
|---|
|  |  |  | var list = await _wmsstoreRepository.GetListAsync(store,input.Sorting, input.MaxResultCount,  input.SkipCount, input.Filter, specification); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <inheritdoc /> | 
|---|
|  |  |  | public async Task<(Dictionary<string, object> Sheets, string FileName)> ExportAsync(GetWmsStoresInput input) | 
|---|
|  |  |  | public async Task<(Dictionary<string, object> Sheets, string FileName)> ExportAsync(GetWmsStoreInput input) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Check.NotNull(input, nameof(input)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | var specification = new WmsStoreSpecification(input.Name); | 
|---|
|  |  |  | var store = ObjectMapper.Map<GetWmsStoresInput, WmsStore>(input); | 
|---|
|  |  |  | var store = ObjectMapper.Map<GetWmsStoreInput, WmsStore>(input); | 
|---|
|  |  |  | var list = await _wmsstoreRepository.GetListAsync(store, input.Sorting, input.MaxResultCount, input.SkipCount, input.Filter, specification, includeDetails: true); | 
|---|
|  |  |  | var result = ObjectMapper.Map<List<WmsStore>, List<WmsStoreDto>>(list); | 
|---|
|  |  |  |  | 
|---|