|
@ -496,6 +496,33 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
return ApplicationConsts.SuccessStr; |
|
|
return ApplicationConsts.SuccessStr; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public async Task<bool> CheckIsOutPut(List<WmsSharePart90OutPutDetial> p_list) |
|
|
|
|
|
{ |
|
|
|
|
|
if (p_list.Count() > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
var entity= p_list.FirstOrDefault(); |
|
|
|
|
|
var day = entity.OrderBillNum.Right(3); |
|
|
|
|
|
int _count = 0; |
|
|
|
|
|
if (day == "D60") |
|
|
|
|
|
{ |
|
|
|
|
|
_count= _wmsRepository.Count(p => p.Version == entity.Version && p.OrderBillNum.Contains("D30") && p.State!=2); |
|
|
|
|
|
} |
|
|
|
|
|
if (day == "D90") |
|
|
|
|
|
{ |
|
|
|
|
|
_count = _wmsRepository.Count(p => p.Version == entity.Version && p.State != 2 && (p.OrderBillNum.Contains("D60") || p.OrderBillNum.Contains("D30"))); |
|
|
|
|
|
} |
|
|
|
|
|
if (_count > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|