|
|
@ -74,18 +74,12 @@ namespace Win.Sfs.SettleAccount.Entities.MaterialRelationships |
|
|
|
[DisableRequestSizeLimit] |
|
|
|
public async Task<string> MaterialRelationshipUploadExcelImportMap([FromForm] IFormFileCollection files) |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
|
var mapList=_mapRepository.Where(p => p.ProjectName == SettleAccountModuleName.MaterialRelationship).ToList(); |
|
|
|
var result = await _exportImporter.ExtendExcelImport<MaterialRelationshipImportDto>(files, _excelImportService,mapList); |
|
|
|
var _ls = ObjectMapper.Map<List<MaterialRelationshipImportDto>, List<MaterialRelationship>>(result); |
|
|
|
|
|
|
|
List<string> _errorList = new List<string>(); |
|
|
|
|
|
|
|
|
|
|
|
var checkList = new List<ErrorExportDto>(); |
|
|
|
|
|
|
|
if (_ls.Count > 0) |
|
|
|
{ |
|
|
|
var query = from arc in _ls |
|
|
@ -143,10 +137,7 @@ namespace Win.Sfs.SettleAccount.Entities.MaterialRelationships |
|
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
|
var result = await _exportImporter.UploadExcelImport<MaterialRelationshipImportDto>(files, _excelImportService); |
|
|
|
var _ls = ObjectMapper.Map<List<MaterialRelationshipImportDto>, List<MaterialRelationship>>(result); |
|
|
|
|
|
|
|
List<string> _errorList = new List<string>(); |
|
|
|
|
|
|
|
|
|
|
|
var checkList = new List<ErrorExportDto>(); |
|
|
|
|
|
|
|
if (_ls.Count > 0) |
|
|
|