|
|
@ -213,6 +213,15 @@ public abstract class SfsBaseDataAppServiceBase<TEntity, TEntityDto, TRequestInp |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected async Task CheckLocationAsync(string partCode, string location, List<ValidationResult> validationRresult) |
|
|
|
{ |
|
|
|
var item = await LocationAppService.GetByCodeAsync(location).ConfigureAwait(false); |
|
|
|
if (item == null) |
|
|
|
{ |
|
|
|
validationRresult.Add(new ValidationResult($"物品代码{partCode} 库位{location}不存在", new string[] { "库位" })); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected async Task CheckProductLocationAsync(string productLocation, List<ValidationResult> validationRresult) |
|
|
|
{ |
|
|
|
var item = await LocationAppService.GetByCodeAsync(productLocation).ConfigureAwait(false); |
|
|
|