|
|
@ -102,11 +102,13 @@ public class ThirdLocationRequestAppService : SfsStoreRequestAppServiceBase<Thir |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
input.AutoSubmit = true; |
|
|
|
input.AutoAgree = true; |
|
|
|
input.AutoHandle = true; |
|
|
|
input.AutoCompleteJob = false; |
|
|
|
input.DirectCreateNote = false; |
|
|
|
//input.AutoSubmit = true;
|
|
|
|
//input.AutoAgree = true;
|
|
|
|
//input.AutoHandle = true;
|
|
|
|
//input.AutoCompleteJob = false;
|
|
|
|
//input.DirectCreateNote = false;
|
|
|
|
|
|
|
|
await SetRequestAutoPropertiesAsync(input).ConfigureAwait(false); |
|
|
|
|
|
|
|
var entity = ObjectMapper.Map<ThirdLocationRequestEditInput, ThirdLocationRequest>(input); |
|
|
|
|
|
|
@ -139,14 +141,15 @@ public class ThirdLocationRequestAppService : SfsStoreRequestAppServiceBase<Thir |
|
|
|
/// <returns></returns>
|
|
|
|
private async Task SetRequestAutoPropertiesAsync(ThirdLocationRequestEditInput entity) |
|
|
|
{ |
|
|
|
var tranType = await _transactionTypeAppService.GetByTransTypeAsync(EnumTransType.PurchaseReturn, EnumTransSubType.None).ConfigureAwait(false); |
|
|
|
var tranType = await _transactionTypeAppService.GetByTransTypeAsync(EnumTransType.Issue, EnumTransSubType.None).ConfigureAwait(false); |
|
|
|
|
|
|
|
Check.NotNull(tranType, "事务类型", "事务类型不存在"); |
|
|
|
|
|
|
|
entity.AutoCompleteJob = tranType.AutoCompleteJob; |
|
|
|
|
|
|
|
entity.AutoSubmit = tranType.AutoSubmitRequest; |
|
|
|
entity.AutoAgree = tranType.AutoAgreeRequest; |
|
|
|
entity.AutoHandle = tranType.AutoHandleRequest; |
|
|
|
entity.AutoCompleteJob = tranType.AutoCompleteJob; |
|
|
|
entity.DirectCreateNote = tranType.DirectCreateNote; |
|
|
|
} |
|
|
|
|
|
|
|