From 06f251259e3e62d45ed374039de9eb2aff39cc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=8D=A3=E5=9B=BDHome?= Date: Mon, 11 Apr 2022 10:05:19 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E4=BD=BF=E7=94=A8=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=BF=9B=E8=A1=8CSite=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Parts/PartAppService.cs | 33 ++++++----- .../PurchaseOrders/PurchaseOrderAppService.cs | 59 +++++++++++-------- .../Receipts/ReceiptAppService.cs | 47 +++++++-------- .../Suppliers/SuppliersAppService.cs | 39 ++++++------ .../UnplannedReceiptAppService.cs | 40 ++++++------- .../Validator.cs | 29 ++++++--- .../Win_in.Sfs.Scp.v1.Domain/Parts/TA_PART.cs | 2 +- .../PurchaseOrders/TB_PO.cs | 2 +- .../PurchaseOrders/TB_PO_DETAIL.cs | 2 +- .../Receipts/TB_RECEIVE_DETAIL_QAD.cs | 2 +- .../Receipts/TB_RECEIVE_QAD.cs | 2 +- .../Suppliers/TA_VENDER.cs | 2 +- 12 files changed, 140 insertions(+), 119 deletions(-) diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Parts/PartAppService.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Parts/PartAppService.cs index c28de78..462dd0d 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Parts/PartAppService.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Parts/PartAppService.cs @@ -35,19 +35,19 @@ namespace Win_in.Sfs.Scp.WebApi private readonly IPartRepository _partRepository; private readonly ITaPartRepository _taPartRepository; private readonly ITenantStore _tenantStore; - private readonly string _validSites = Validator.VALID_SITES; - + private readonly ITenantRepository _tenantRepository; + public PartAppService( IPartRepository repository , ITaPartRepository taPartRepository , ITenantStore tenantStore - , IConfiguration configuration + , ITenantRepository tenantRepository ) : base(repository) { _partRepository = repository; _taPartRepository = taPartRepository; _tenantStore = tenantStore; - _validSites = configuration["ValidSites"]; + _tenantRepository = tenantRepository; } /// @@ -89,10 +89,14 @@ namespace Win_in.Sfs.Scp.WebApi try { - Validator.CheckSite(_validSites, entity.Site); - Validator.CheckSite(_validSites, entity.Company); - await UpsertTaPartAsync(entity); - await CurrentUnitOfWork.SaveChangesAsync(); + Validator.CheckSite(_tenantRepository, entity.Site); + Validator.CheckSite(_tenantRepository, entity.Company); + var tenant = await _tenantStore.FindAsync(entity.Site); + using (CurrentTenant.Change(tenant.Id, tenant.Name)) + { + await UpsertTaPartAsync(entity, tenant.Id); + await CurrentUnitOfWork.SaveChangesAsync(); + } } catch (Exception ex) { @@ -118,17 +122,14 @@ namespace Win_in.Sfs.Scp.WebApi } } - private async Task UpsertTaPartAsync(Part entity) + private async Task UpsertTaPartAsync(Part entity, Guid tenantId) { //使用AutoMapper执行类型转换 var taPart = ObjectMapper.Map(entity); - var tenant =await _tenantStore.FindAsync(taPart.Site); - using (CurrentTenant.Change(tenant.Id,tenant.Name)) - { - //根据传入数据新增或修改SCP数据 - await _taPartRepository.UpsertAsync(taPart); - } + taPart.TenantId = tenantId; + //根据传入数据新增或修改SCP数据 + await _taPartRepository.UpsertAsync(taPart); } } -} \ No newline at end of file +} diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/PurchaseOrders/PurchaseOrderAppService.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/PurchaseOrders/PurchaseOrderAppService.cs index 900c94f..c000f2b 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/PurchaseOrders/PurchaseOrderAppService.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/PurchaseOrders/PurchaseOrderAppService.cs @@ -11,6 +11,7 @@ using Volo.Abp.MultiTenancy; using Volo.Abp.TenantManagement; using Volo.Abp.Validation; using Win_in.Sfs.Scp.v1.Domain; +using System.Security.Policy; namespace Win_in.Sfs.Scp.WebApi { @@ -27,7 +28,7 @@ namespace Win_in.Sfs.Scp.WebApi private readonly ITbPoDetailRepository _tbPoDetailRepository; private readonly ITaVenderRepository _taVenderRepository; private readonly ITenantStore _tenantStore; - private readonly string _validSites = Validator.VALID_SITES; + private readonly ITenantRepository _tenantRepository; public PurchaseOrderAppService( IPurchaseOrderRepository repository @@ -35,7 +36,7 @@ namespace Win_in.Sfs.Scp.WebApi , ITbPoDetailRepository tbPoDetailRepository , ITaVenderRepository taVenderRepository , ITenantStore tenantStore - , IConfiguration configuration + , ITenantRepository tenantRepository ) : base(repository) { _purchaseOrderRepository = repository; @@ -43,7 +44,7 @@ namespace Win_in.Sfs.Scp.WebApi _tbPoDetailRepository = tbPoDetailRepository; _taVenderRepository = taVenderRepository; _tenantStore = tenantStore; - _validSites = configuration["ValidSites"]; + _tenantRepository = tenantRepository; } @@ -95,12 +96,18 @@ namespace Win_in.Sfs.Scp.WebApi try { - Validator.CheckSite(_validSites,entity.Site); - Validator.CheckSite(_validSites,entity.Company); - Validator.CheckSupplierCode(_taVenderRepository,entity.Site, entity.SupplierCode); - await UpsertTbPoAndTbPoDetailAsync(entity); - await CurrentUnitOfWork.SaveChangesAsync(); + Validator.CheckSite(_tenantRepository, entity.Site); + Validator.CheckSite(_tenantRepository, entity.Company); + var tenant = await _tenantStore.FindAsync(entity.Site); + using (CurrentTenant.Change(tenant.Id, tenant.Name)) + { + Validator.CheckSupplierCode(_taVenderRepository, entity.Site, entity.SupplierCode); + + + await UpsertTbPoAndTbPoDetailAsync(entity, tenant.Id); + await CurrentUnitOfWork.SaveChangesAsync(); + } } catch (Exception ex) { @@ -124,30 +131,30 @@ namespace Win_in.Sfs.Scp.WebApi } } - private async Task UpsertTbPoAndTbPoDetailAsync(PurchaseOrder entity) + private async Task UpsertTbPoAndTbPoDetailAsync(PurchaseOrder entity, Guid tenantId) { //使用AutoMapper执行类型转换 var tbPo = ObjectMapper.Map(entity); - var tenant =await _tenantStore.FindAsync(tbPo.Site); - using (CurrentTenant.Change(tenant.Id, tenant.Name)) + tbPo.TenantId = tenantId; + + //根据传入数据新增或修改SCP数据 + await _tbPoRepository.UpsertAsync(tbPo); + + var poDetails = entity.Details; + + foreach (var poDetail in poDetails) { + //使用AutoMapper执行类型转换 + var tbPoDetail = ObjectMapper.Map(poDetail); + //接口数据中没有Site,从主表中获取 + tbPoDetail.Site = tbPo.Site; + tbPoDetail.BeginTime = tbPo.BeginTime; + tbPoDetail.EndTime = tbPo.EndTime; + tbPoDetail.TenantId = tenantId; //根据传入数据新增或修改SCP数据 - await _tbPoRepository.UpsertAsync(tbPo); - - var poDetails = entity.Details; - - foreach (var poDetail in poDetails) - { - //使用AutoMapper执行类型转换 - var tbPoDetail = ObjectMapper.Map(poDetail); - //接口数据中没有Site,从主表中获取 - tbPoDetail.Site = tbPo.Site; - tbPoDetail.BeginTime = tbPo.BeginTime; - tbPoDetail.EndTime = tbPo.EndTime; - //根据传入数据新增或修改SCP数据 - await _tbPoDetailRepository.UpsertAsync(tbPoDetail); - } + await _tbPoDetailRepository.UpsertAsync(tbPoDetail); } + } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Receipts/ReceiptAppService.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Receipts/ReceiptAppService.cs index d2a46b1..79708b4 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Receipts/ReceiptAppService.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Receipts/ReceiptAppService.cs @@ -11,6 +11,7 @@ using Volo.Abp.MultiTenancy; using Volo.Abp.Uow; using Volo.Abp.Validation; using Win_in.Sfs.Scp.v1.Domain; +using Volo.Abp.TenantManagement; namespace Win_in.Sfs.Scp.WebApi { @@ -20,22 +21,22 @@ namespace Win_in.Sfs.Scp.WebApi [Authorize] [Route(RouteConsts.Receipt)] [ApiExplorerSettings(GroupName = SwaggerGroupConsts.ScpWebApi)] - public class ReceiptAppService : ReadOnlyAppService, IReceiptAppService + public class ReceiptAppService : ReadOnlyAppService, IReceiptAppService { private readonly IReceiptRepository _receiptRepository; private readonly ITbReceiptRepository _tbReceiptRepository; private readonly ITbReceiptDetailRepository _tbReceiptDetailRepository; private readonly ITaVenderRepository _taVenderRepository; private readonly ITenantStore _tenantStore; - private readonly string _validSites = Validator.VALID_SITES; + private readonly ITenantRepository _tenantRepository; public ReceiptAppService( IReceiptRepository repository - ,ITbReceiptRepository tbReceiptRepository - ,ITbReceiptDetailRepository tbReceiptDetailRepository - ,ITaVenderRepository taVenderRepository + , ITbReceiptRepository tbReceiptRepository + , ITbReceiptDetailRepository tbReceiptDetailRepository + , ITaVenderRepository taVenderRepository , ITenantStore tenantStore - , IConfiguration configuration + , ITenantRepository tenantRepository ) : base(repository) { _receiptRepository = repository; @@ -43,8 +44,7 @@ namespace Win_in.Sfs.Scp.WebApi _tbReceiptDetailRepository = tbReceiptDetailRepository; _taVenderRepository = taVenderRepository; _tenantStore = tenantStore; - _validSites = configuration["ValidSites"]; - + _tenantRepository = tenantRepository; } @@ -88,12 +88,16 @@ namespace Win_in.Sfs.Scp.WebApi try { - Validator.CheckSite(_validSites,entity.Site); - Validator.CheckSite(_validSites,entity.Company); - Validator.CheckSupplierCode(_taVenderRepository,entity.Site, entity.SupplierCode); - await UpsertTbReceiptAndTbReceiptDetailAsync(entity); - await CurrentUnitOfWork.SaveChangesAsync(); + Validator.CheckSite(_tenantRepository, entity.Site); + Validator.CheckSite(_tenantRepository, entity.Company); + var tenant = await _tenantStore.FindAsync(entity.Site); + using (CurrentTenant.Change(tenant.Id, tenant.Name)) + { + Validator.CheckSupplierCode(_taVenderRepository, entity.Site, entity.SupplierCode); + await UpsertTbReceiptAndTbReceiptDetailAsync(entity, tenant.Id); + await CurrentUnitOfWork.SaveChangesAsync(); + } } catch (Exception ex) { @@ -119,21 +123,18 @@ namespace Win_in.Sfs.Scp.WebApi } } - private async Task UpsertTbReceiptAndTbReceiptDetailAsync(Receipt entity) + private async Task UpsertTbReceiptAndTbReceiptDetailAsync(Receipt entity, Guid tenantId) { //使用AutoMapper执行类型转换 var tbReceipt = ObjectMapper.Map(entity); var tbReceiveDetail = ObjectMapper.Map(entity); - var tenant = await _tenantStore.FindAsync(tbReceipt.Site); - using (CurrentTenant.Change(tenant.Id, tenant.Name)) - { - //根据传入数据新增或修改SCP数据 - await _tbReceiptRepository.UpsertAsync(tbReceipt); - - //根据传入数据新增或修改SCP数据 - await _tbReceiptDetailRepository.UpsertAsync(tbReceiveDetail); - } + tbReceipt.TenantId = tenantId; + //根据传入数据新增或修改SCP数据 + await _tbReceiptRepository.UpsertAsync(tbReceipt); + tbReceiveDetail.TenantId = tenantId; + //根据传入数据新增或修改SCP数据 + await _tbReceiptDetailRepository.UpsertAsync(tbReceiveDetail); } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Suppliers/SuppliersAppService.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Suppliers/SuppliersAppService.cs index d7ac186..845d96f 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Suppliers/SuppliersAppService.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Suppliers/SuppliersAppService.cs @@ -9,6 +9,7 @@ using Microsoft.Extensions.Configuration; using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; using Volo.Abp.MultiTenancy; +using Volo.Abp.TenantManagement; using Volo.Abp.Uow; using Volo.Abp.Validation; using Win_in.Sfs.Scp.v1.Domain; @@ -22,25 +23,24 @@ namespace Win_in.Sfs.Scp.WebApi [Authorize] [Route(RouteConsts.Supplier)] [ApiExplorerSettings(GroupName = SwaggerGroupConsts.ScpWebApi)] - public class SuppliersAppService : ReadOnlyAppService, ISupplierAppService + public class SuppliersAppService : ReadOnlyAppService, ISupplierAppService { private readonly ISupplierRepository _supplierRepository; private readonly ITaVenderRepository _taVenderRepository; private readonly ITenantStore _tenantStore; - private readonly string _validSites = Validator.VALID_SITES; + private readonly ITenantRepository _tenantRepository; public SuppliersAppService( ISupplierRepository repository - ,ITaVenderRepository taVenderRepository - ,ITenantStore tenantStore - , IConfiguration configuration + , ITaVenderRepository taVenderRepository + , ITenantStore tenantStore + , ITenantRepository tenantRepository ) : base(repository) { _supplierRepository = repository; _taVenderRepository = taVenderRepository; _tenantStore = tenantStore; - _validSites = configuration["ValidSites"]; - + _tenantRepository = tenantRepository; } @@ -83,10 +83,13 @@ namespace Win_in.Sfs.Scp.WebApi try { - Validator.CheckSite(_validSites,entity.Company); - UpsertTaVenderAsync(entity).Wait(); - await CurrentUnitOfWork.SaveChangesAsync(); - + Validator.CheckSite(_tenantRepository, entity.Company); + var tenant = await _tenantStore.FindAsync(entity.Company); + using (CurrentTenant.Change(tenant.Id, tenant.Name)) + { + await UpsertTaVenderAsync(entity, tenant.Id); + await CurrentUnitOfWork.SaveChangesAsync(); + } } catch (Exception ex) { @@ -111,18 +114,14 @@ namespace Win_in.Sfs.Scp.WebApi } } - private async Task UpsertTaVenderAsync(Supplier entity) + private async Task UpsertTaVenderAsync(Supplier entity, Guid tenantId) { //使用AutoMapper执行类型转换 var taVender = ObjectMapper.Map(entity); - var tenant =await _tenantStore.FindAsync(taVender.Site); - using (CurrentTenant.Change(tenant.Id, tenant.Name)) - { - - //根据传入数据新增或修改SCP数据 - await _taVenderRepository.UpsertAsync(taVender); - } + taVender.TenantId = tenantId; + //根据传入数据新增或修改SCP数据 + await _taVenderRepository.UpsertAsync(taVender); } } -} \ No newline at end of file +} diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/UnplannedReceipts/UnplannedReceiptAppService.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/UnplannedReceipts/UnplannedReceiptAppService.cs index 1c78834..0223243 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/UnplannedReceipts/UnplannedReceiptAppService.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/UnplannedReceipts/UnplannedReceiptAppService.cs @@ -12,6 +12,7 @@ using Volo.Abp.MultiTenancy; using Volo.Abp.Uow; using Volo.Abp.Validation; using Win_in.Sfs.Scp.v1.Domain; +using Volo.Abp.TenantManagement; namespace Win_in.Sfs.Scp.WebApi { @@ -29,7 +30,7 @@ namespace Win_in.Sfs.Scp.WebApi private readonly ITbReceiptDetailRepository _tbReceiptDetailRepository; private readonly ITaVenderRepository _taVenderRepository; private readonly ITenantStore _tenantStore; - private readonly string _validSites = Validator.VALID_SITES; + private readonly ITenantRepository _tenantRepository; public UnplannedReceiptAppService( IUnplannedReceiptRepository repository @@ -37,7 +38,7 @@ namespace Win_in.Sfs.Scp.WebApi , ITbReceiptDetailRepository tbReceiptDetailRepository , ITaVenderRepository taVenderRepository , ITenantStore tenantStore - , IConfiguration configuration + , ITenantRepository tenantRepository ) : base(repository) { _unplannedReceiptRepository = repository; @@ -45,8 +46,7 @@ namespace Win_in.Sfs.Scp.WebApi _tbReceiptDetailRepository = tbReceiptDetailRepository; _taVenderRepository = taVenderRepository; _tenantStore = tenantStore; - _validSites = configuration["ValidSites"]; - + _tenantRepository = tenantRepository; } @@ -90,13 +90,16 @@ namespace Win_in.Sfs.Scp.WebApi try { - Validator.CheckSite(_validSites, entity.Site); - Validator.CheckSite(_validSites, entity.Company); - Validator.CheckSupplierCode(_taVenderRepository, entity.Site, entity.Address); - - await UpsertTbReceiptAndTbReceiptDetailAsync(entity); - await CurrentUnitOfWork.SaveChangesAsync(); + Validator.CheckSite(_tenantRepository, entity.Site); + Validator.CheckSite(_tenantRepository, entity.Company); + var tenant = await _tenantStore.FindAsync(entity.Site); + using (CurrentTenant.Change(tenant.Id, tenant.Name)) + { + Validator.CheckSupplierCode(_taVenderRepository, entity.Site, entity.Address); + await UpsertTbReceiptAndTbReceiptDetailAsync(entity, tenant.Id); + await CurrentUnitOfWork.SaveChangesAsync(); + } } catch (Exception ex) { @@ -122,22 +125,19 @@ namespace Win_in.Sfs.Scp.WebApi } } - private async Task UpsertTbReceiptAndTbReceiptDetailAsync(UnplannedReceipt entity) + private async Task UpsertTbReceiptAndTbReceiptDetailAsync(UnplannedReceipt entity, Guid tenantId) { //使用AutoMapper执行类型转换 var tbReceipt = ObjectMapper.Map(entity); var tbReceiveDetail = ObjectMapper.Map(entity); + tbReceipt.TenantId = tenantId; - var tenant = await _tenantStore.FindAsync(tbReceipt.Site); - using (CurrentTenant.Change(tenant.Id, tenant.Name)) - { - - //根据传入数据新增或修改SCP数据 - await _tbReceiptRepository.UpsertAsync(tbReceipt); + //根据传入数据新增或修改SCP数据 + await _tbReceiptRepository.UpsertAsync(tbReceipt); - //根据传入数据新增或修改SCP数据 - await _tbReceiptDetailRepository.UpsertAsync(tbReceiveDetail); - } + tbReceiveDetail.TenantId = tenantId; + //根据传入数据新增或修改SCP数据 + await _tbReceiptDetailRepository.UpsertAsync(tbReceiveDetail); } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Validator.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Validator.cs index bee371a..d88d31b 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Validator.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.Application/Validator.cs @@ -2,28 +2,41 @@ using System.Linq; using System.Linq.Dynamic.Core; using Volo.Abp; +using Volo.Abp.MultiTenancy; +using Volo.Abp.TenantManagement; using Win_in.Sfs.Scp.v1.Domain; namespace Win_in.Sfs.Scp.WebApi; public static class Validator { - public const string VALID_SITES = "T8"; + private static string VALID_SITES = ""; - public static void CheckSite(string validSites,string site) + + + public static void CheckSite(ITenantRepository tenantRepository,string site) { - if (!validSites.Contains(site) ) + if (string.IsNullOrEmpty(VALID_SITES)) + { + var tenants = tenantRepository.GetListAsync().GetAwaiter().GetResult(); + VALID_SITES = tenants.Select(p => p.Name).JoinAsString(","); + } + + if (!VALID_SITES.Contains(site) ) { - throw new UserFriendlyException($"Site must be in [{validSites}]"); + throw new UserFriendlyException($"Site must be in [{VALID_SITES}]"); } } public static void CheckSupplierCode(ITaVenderRepository taVenderRepository, string site, string supplierCode) { - if (!taVenderRepository.Any(p =>p.Site==site && p.VendId == supplierCode)) - { - throw new UserFriendlyException($"Wrong supplier code: [{supplierCode}] of Site: [{site}]"); - } + + + if (!taVenderRepository.Any(p => p.Site == site && p.VendId == supplierCode)) + { + throw new UserFriendlyException($"Wrong supplier code: [{supplierCode}] of Site: [{site}]"); + } + } } diff --git a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Parts/TA_PART.cs b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Parts/TA_PART.cs index 61da65e..f56b823 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Parts/TA_PART.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Parts/TA_PART.cs @@ -42,6 +42,6 @@ namespace Win_in.Sfs.Scp.v1.Domain public bool? Ischeck { get; set; } - public Guid? TenantId { get; } + public Guid? TenantId { get; set; } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO.cs b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO.cs index 06e9c56..cc489f3 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO.cs @@ -32,6 +32,6 @@ namespace Win_in.Sfs.Scp.v1.Domain public bool IsDeleted { get; set; } public Guid GUID { get; set; } - public Guid? TenantId { get; } + public Guid? TenantId { get; set; } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO_DETAIL.cs b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO_DETAIL.cs index a5e0aad..99ba7bb 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO_DETAIL.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/PurchaseOrders/TB_PO_DETAIL.cs @@ -42,6 +42,6 @@ namespace Win_in.Sfs.Scp.v1.Domain public Guid GUID { get; set; } - public Guid? TenantId { get; } + public Guid? TenantId { get; set; } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_DETAIL_QAD.cs b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_DETAIL_QAD.cs index 10b7a5a..58085fd 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_DETAIL_QAD.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_DETAIL_QAD.cs @@ -43,6 +43,6 @@ namespace Win_in.Sfs.Scp.v1.Domain public string Extend2 { get; set; } public string Extend3 { get; set; } public string SubSite { get; set; } - public Guid? TenantId { get; } + public Guid? TenantId { get; set; } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_QAD.cs b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_QAD.cs index 02c773d..96a97bd 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_QAD.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Receipts/TB_RECEIVE_QAD.cs @@ -31,6 +31,6 @@ namespace Win_in.Sfs.Scp.v1.Domain public string SubSite { get; set; } - public Guid? TenantId { get; } + public Guid? TenantId { get; set; } } } \ No newline at end of file diff --git a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Suppliers/TA_VENDER.cs b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Suppliers/TA_VENDER.cs index e075e3e..e49c14d 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Suppliers/TA_VENDER.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.v1.Domain/Suppliers/TA_VENDER.cs @@ -47,6 +47,6 @@ namespace Win_in.Sfs.Scp.v1.Domain public decimal? Quota { set; get; } - public Guid? TenantId { get; } + public Guid? TenantId { get; set; } } } \ No newline at end of file