|
|
@ -188,7 +188,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
[Route("WmsSharePartOutPut")] |
|
|
|
public async Task<string> WmsSharePartOutPut(WmsJitRequestDto input) |
|
|
|
{ |
|
|
|
var _billNum = "BHQ" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
|
var _billNum = "BHQM" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
|
var _joblist = _job.Where(p => input.Guids.Contains(p.Id) && p.FileName == "已确认").ToList(); |
|
|
|
if (_joblist.Count() > 0) |
|
|
|
{ |
|
|
@ -433,7 +433,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
//[Authorize(SettleAccountPermissions.SettleAccounts.Default)]
|
|
|
|
public async Task<string> ExcelImport([FromForm] IFormFileCollection files, string version) |
|
|
|
{ |
|
|
|
var _billNum = "BHQ" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
|
var _billNum = "BHQM" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
|
var result = await _exportImporter.ExtendExcelImport<WmsHQMSharePartOutPutDetial>(files, _excelImportService); |
|
|
|
List<WmsHQMSharePartOutPutDetial> _lst = new List<WmsHQMSharePartOutPutDetial>(); |
|
|
@ -475,7 +475,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
equals |
|
|
|
new { itm2.MaterialCode } |
|
|
|
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>(); |
|
|
|
foreach (var itm in errList) |
|
|
|