|
@ -420,7 +420,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)]
|
|
|
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)]
|
|
|
public async Task<string> ExcelImport([FromForm] IFormFileCollection files, string version) |
|
|
public async Task<string> ExcelImport([FromForm] IFormFileCollection files, string version) |
|
|
{ |
|
|
{ |
|
|
var _billNum = "HQKB" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
var _billNum = "HQFKB" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
var result = await _exportImporter.ExtendExcelImport<WmsHQFKanbanOutPutDetial>(files, _excelImportService); |
|
|
var result = await _exportImporter.ExtendExcelImport<WmsHQFKanbanOutPutDetial>(files, _excelImportService); |
|
|
List<WmsHQFKanbanOutPutDetial> _lst = new List<WmsHQFKanbanOutPutDetial>(); |
|
|
List<WmsHQFKanbanOutPutDetial> _lst = new List<WmsHQFKanbanOutPutDetial>(); |
|
@ -461,7 +461,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
equals |
|
|
equals |
|
|
new { itm2.MaterialCode, itm2.Kanban,itm2.PoLine } |
|
|
new { itm2.MaterialCode, itm2.Kanban,itm2.PoLine } |
|
|
select itm1; |
|
|
select itm1; |
|
|
var errList = error.GroupBy(p => new { p.BillNum }).Select(p => new { BillNum = p.Key.BillNum, Number = p.Sum(itm => itm.Qty) }); |
|
|
var errList = error.GroupBy(p => new { p.BillNum }).Select(p => new { BillNum = p.Key.BillNum, Number = p.Count() }); |
|
|
|
|
|
|
|
|
var checkList = new List<ErrorExportDto>(); |
|
|
var checkList = new List<ErrorExportDto>(); |
|
|
foreach (var itm in errList) |
|
|
foreach (var itm in errList) |
|
|