|
|
@ -203,12 +203,12 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
|
|
|
|
// _lst.Add(_entity);
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// var outPutDetail = await _wmsRepository.Where(p => p.Version == input.Version && p.Kanban==string.Empty).ToListAsync();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// await _wmsRepository.GetDbContext().BulkInsertAsync(_lst, new BulkConfig() { BulkCopyTimeout = 0, BatchSize = 10000 });
|
|
|
|
// int _count = _wmsVersionRepository.Count(p => p.Version == input.Version && p.BillNum == _billNum);
|
|
|
|
// if (_count == 0)
|
|
|
@ -224,7 +224,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
// await _job.UpdateAsync(job);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// return ApplicationConsts.SuccessStr; ;
|
|
|
|
//}
|
|
|
|
|
|
|
@ -253,18 +253,18 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
var _list = _excelHelper.ExcelToList<WmsHQFKanbanOutPutDetial>(); |
|
|
|
foreach (var itm in _list) |
|
|
|
{ |
|
|
|
itm.SetData(GuidGenerator.Create(),string.Empty,!string.IsNullOrEmpty(itm.WmsBillNum)? itm.WmsBillNum:string.Empty,input.Version,GuidGenerator.Create()); |
|
|
|
itm.SetData(GuidGenerator.Create(), string.Empty, !string.IsNullOrEmpty(itm.WmsBillNum) ? itm.WmsBillNum : string.Empty, input.Version, GuidGenerator.Create()); |
|
|
|
} |
|
|
|
_lst.AddRange(_list.ToArray()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var outPutDetail = await _wmsRepository.Where(p => p.Version == input.Version).ToListAsync(); |
|
|
|
|
|
|
|
var error = from itm1 in outPutDetail |
|
|
|
join itm2 in _lst on |
|
|
|
new { itm1.MaterialCode, itm1.Kanban,itm1.PoLine } |
|
|
|
new { itm1.MaterialCode, itm1.Kanban, itm1.PoLine } |
|
|
|
equals |
|
|
|
new { itm2.MaterialCode, itm2.Kanban,itm2.PoLine } |
|
|
|
new { itm2.MaterialCode, itm2.Kanban, itm2.PoLine } |
|
|
|
select itm1; |
|
|
|
var errList = error.GroupBy(p => new { p.BillNum }).Select(p => new { BillNum = p.Key.BillNum, Number = p.Sum(itm => itm.Qty) }); |
|
|
|
if (errList.Count() == 0) |
|
|
@ -318,7 +318,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
{ |
|
|
|
_billNum = string.Empty; |
|
|
|
} |
|
|
|
return ApplicationConsts.SuccessStr; ; |
|
|
|
return ApplicationConsts.SuccessStr; ; |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 出库界面功能,核准出库功能
|
|
|
@ -379,7 +379,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
await _wmsRepository.GetDbContext().Database.ExecuteSqlRawAsync( |
|
|
|
sql |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|