|
@ -33,18 +33,22 @@ public class EquipmentLocAppService |
|
|
|
|
|
|
|
|
private readonly IEquipmentLocManager _manager; |
|
|
private readonly IEquipmentLocManager _manager; |
|
|
private new readonly IEquipmentLocRepository _repository; |
|
|
private new readonly IEquipmentLocRepository _repository; |
|
|
|
|
|
private new readonly ILocationAppService _locRepository; |
|
|
|
|
|
|
|
|
private readonly IExportImportService _importService; |
|
|
private readonly IExportImportService _importService; |
|
|
|
|
|
|
|
|
public EquipmentLocAppService( |
|
|
public EquipmentLocAppService( |
|
|
IEquipmentLocRepository repository, |
|
|
IEquipmentLocRepository repository, |
|
|
IDistributedCache<EquipmentLocDTO> cache, |
|
|
IDistributedCache<EquipmentLocDTO> cache, |
|
|
IExportImportService importService, |
|
|
IExportImportService importService, |
|
|
|
|
|
ILocationAppService locRepository, |
|
|
IEquipmentLocManager manager) |
|
|
IEquipmentLocManager manager) |
|
|
: base(repository, cache) |
|
|
: base(repository, cache) |
|
|
{ |
|
|
{ |
|
|
_importService=importService; |
|
|
_importService=importService; |
|
|
_repository = repository; |
|
|
_repository = repository; |
|
|
_manager = manager; |
|
|
_manager = manager; |
|
|
|
|
|
_locRepository= locRepository; |
|
|
base.CreatePolicyName = EquipmentPermissions.Create; |
|
|
base.CreatePolicyName = EquipmentPermissions.Create; |
|
|
base.UpdatePolicyName = EquipmentPermissions.Update; |
|
|
base.UpdatePolicyName = EquipmentPermissions.Update; |
|
|
base.DeletePolicyName = EquipmentPermissions.Delete; |
|
|
base.DeletePolicyName = EquipmentPermissions.Delete; |
|
@ -99,7 +103,12 @@ public class EquipmentLocAppService |
|
|
return list; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override async Task ValidateImportModelAsync(EquipmentLocImportInput importInput, List<ValidationResult> validationRresult) |
|
|
|
|
|
{ |
|
|
|
|
|
await base.CheckItemBasicItemCodeAsync(importInput.Code, validationRresult).ConfigureAwait(false); |
|
|
|
|
|
await base.CheckRawLocationAsync(importInput.LocCode, validationRresult).ConfigureAwait(false); |
|
|
|
|
|
//await base.CheckComponentAndComponentQtyAsync(importInput.Component, importInput.ComponentQty, validationRresult).ConfigureAwait(false);
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|