|
@ -155,7 +155,7 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="impRecLst">导入Excel内容</param>
|
|
|
/// <param name="impRecLst">导入Excel内容</param>
|
|
|
/// <param name="forceExecute">校验不通过时,是否强制执行通过</param>
|
|
|
/// <param name="forceExecute">校验不通过时,是否强制执行通过</param>
|
|
|
public async Task<ObjectResultDto> ParseEdi(List<ImportRecord> input, bool forceExecute = false) |
|
|
public virtual async Task<ObjectResultDto> ParseEdi(List<ImportRecord> input, bool forceExecute = false) |
|
|
{ |
|
|
{ |
|
|
ObjectResultDto ret = new ObjectResultDto(); |
|
|
ObjectResultDto ret = new ObjectResultDto(); |
|
|
|
|
|
|
|
@ -256,7 +256,7 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
var succObj1 = await _hqM100DomainServie.InsertM100(m100Obj, true); |
|
|
var succObj1 = await _hqM100DomainServie.InsertM100(m100Obj, true); |
|
|
|
|
|
|
|
|
//不匹配时,插入未知总成
|
|
|
//不匹配时,插入未知总成
|
|
|
var succObj2 = await InsertUnknownAssembly(m100Obj); |
|
|
var succObj2 = await InsertUnknownAssembly(m100Obj, true); |
|
|
_logger.LogDebug(_errorMessagePrefix + $"未匹配总成,插入未知总成完成:{orderItem.HostSN}"); |
|
|
_logger.LogDebug(_errorMessagePrefix + $"未匹配总成,插入未知总成完成:{orderItem.HostSN}"); |
|
|
ret.Status = (succObj1 != null && succObj2 != null); |
|
|
ret.Status = (succObj1 != null && succObj2 != null); |
|
|
} |
|
|
} |
|
@ -287,7 +287,7 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
/// <param name="specExplain"></param>
|
|
|
/// <param name="specExplain"></param>
|
|
|
/// <param name="colorExplain"></param>
|
|
|
/// <param name="colorExplain"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public async Task<ObjectResultDto<bool>> ReParsing(BillM100 m100Obj, string specExplain, string colorExplain) |
|
|
public virtual async Task<ObjectResultDto<bool>> ReParsing(BillM100 m100Obj, string specExplain, string colorExplain) |
|
|
{ |
|
|
{ |
|
|
ObjectResultDto<bool> ret = new ObjectResultDto<bool>(); |
|
|
ObjectResultDto<bool> ret = new ObjectResultDto<bool>(); |
|
|
Group_Assembly groupAssemblyObj = HQ_CacheManagerDomainService._groupAssemblyList.FirstOrDefault(itm => itm.SpecExplain == specExplain && itm.ColorExplain == colorExplain); |
|
|
Group_Assembly groupAssemblyObj = HQ_CacheManagerDomainService._groupAssemblyList.FirstOrDefault(itm => itm.SpecExplain == specExplain && itm.ColorExplain == colorExplain); |
|
@ -514,7 +514,7 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
/// 不匹配时,插入未知总成,写提醒日志
|
|
|
/// 不匹配时,插入未知总成,写提醒日志
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="bill"></param>
|
|
|
/// <param name="bill"></param>
|
|
|
private async Task<UnknownAssembly> InsertUnknownAssembly(BillM100 bill) |
|
|
private async Task<UnknownAssembly> InsertUnknownAssembly(BillM100 bill, bool autoSave = false) |
|
|
{ |
|
|
{ |
|
|
UnknownAssembly ret = null; |
|
|
UnknownAssembly ret = null; |
|
|
try |
|
|
try |
|
@ -530,7 +530,7 @@ namespace WY.NewJit.EdiReceive.Services |
|
|
//}
|
|
|
//}
|
|
|
//var partNumSum = unknownAssemblyObj.UnknownAssemblyParts.Sum(itm => (int)itm.PartNum);
|
|
|
//var partNumSum = unknownAssemblyObj.UnknownAssemblyParts.Sum(itm => (int)itm.PartNum);
|
|
|
//unknownAssemblyObj.SetPartNum(partNumSum);
|
|
|
//unknownAssemblyObj.SetPartNum(partNumSum);
|
|
|
ret = await _unknownAssemblyRepository.InsertAsync(unknownAssemblyObj); |
|
|
ret = await _unknownAssemblyRepository.InsertAsync(unknownAssemblyObj, autoSave); |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|