贾荣国
3 years ago
22 changed files with 188 additions and 47 deletions
@ -1,13 +0,0 @@ |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Win_in.Sfs.Scp.v1.Domain; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|||
{ |
|||
public class PurchaseOrderRepository : EfCoreRepository<V1ScpDbContext, TB_PO>, IPurchaseOrderRepository |
|||
{ |
|||
public PurchaseOrderRepository(IDbContextProvider<V1ScpDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -1,13 +0,0 @@ |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Win_in.Sfs.Scp.v1.Domain; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|||
{ |
|||
public class ReceiptRepository : EfCoreRepository<V1ScpDbContext, TB_RECEIVE_QAD>, IReceiptRepository |
|||
{ |
|||
public ReceiptRepository(IDbContextProvider<V1ScpDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Win_in.Sfs.Scp.v1.Domain; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|||
{ |
|||
public class TbReceiptRepository : EfCoreRepository<V1ScpDbContext, TB_RECEIVE_QAD>, ITbReceiptRepository |
|||
{ |
|||
public TbReceiptRepository(IDbContextProvider<V1ScpDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Win_in.Sfs.Scp.v1.Domain; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|||
{ |
|||
public class TbRejectRepository : EfCoreRepository<V1ScpDbContext, TB_REJECT>, ITbRejectRepository |
|||
{ |
|||
public TbRejectRepository(IDbContextProvider<V1ScpDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,26 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Entities.Events.Distributed; |
|||
using Volo.Abp.EventBus; |
|||
using Win_in.Sfs.Scp.v1.Domain; |
|||
using Win_in.Sfs.Scp.WebApi; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.Event |
|||
{ |
|||
public class PartEventHandler:ILocalEventHandler<EntityCreatedEto<Part>> |
|||
{ |
|||
private readonly ITaPartRepository _taPartRepository; |
|||
|
|||
public PartEventHandler(ITaPartRepository taPartRepository) |
|||
{ |
|||
_taPartRepository = taPartRepository; |
|||
} |
|||
|
|||
public Task HandleEventAsync(EntityCreatedEto<Part> eventData) |
|||
{ |
|||
throw new System.NotImplementedException(); |
|||
|
|||
//TODO 根据传入数据新增或修改TA_PART
|
|||
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Entities.Events.Distributed; |
|||
using Volo.Abp.EventBus; |
|||
using Win_in.Sfs.Scp.WebApi; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.Event |
|||
{ |
|||
public class PurchaseOrderEventHandler:ILocalEventHandler<EntityCreatedEto<PurchaseOrder>> |
|||
{ |
|||
public Task HandleEventAsync(EntityCreatedEto<PurchaseOrder> eventData) |
|||
{ |
|||
throw new System.NotImplementedException(); |
|||
|
|||
//TODO 新增或修改TB_PO
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Entities.Events.Distributed; |
|||
using Volo.Abp.EventBus; |
|||
using Win_in.Sfs.Scp.WebApi; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.Event |
|||
{ |
|||
public class ReceiptEventHandler:ILocalEventHandler<EntityCreatedEto<Receipt>> |
|||
{ |
|||
public Task HandleEventAsync(EntityCreatedEto<Receipt> eventData) |
|||
{ |
|||
throw new System.NotImplementedException(); |
|||
|
|||
//TODO 新增 TB_RECEIPT 或 TB_REJECT
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Entities.Events.Distributed; |
|||
using Volo.Abp.EventBus; |
|||
using Win_in.Sfs.Scp.WebApi; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.Event |
|||
{ |
|||
public class SupplierEventHandler:ILocalEventHandler<EntityCreatedEto<Supplier>> |
|||
{ |
|||
public Task HandleEventAsync(EntityCreatedEto<Supplier> eventData) |
|||
{ |
|||
throw new System.NotImplementedException(); |
|||
|
|||
//TODO 根据传入数据新增或修改TA_VENDER
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Entities.Events.Distributed; |
|||
using Volo.Abp.EventBus; |
|||
using Win_in.Sfs.Scp.WebApi; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.Event |
|||
{ |
|||
public class UnplannedReceiptEventHandler:ILocalEventHandler<EntityCreatedEto<UnplannedReceipt>> |
|||
{ |
|||
public Task HandleEventAsync(EntityCreatedEto<UnplannedReceipt> eventData) |
|||
{ |
|||
throw new System.NotImplementedException(); |
|||
|
|||
//TODO 新增无订单的TB_RECEIPT
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
using Volo.Abp.Autofac; |
|||
using Volo.Abp.Domain.Entities.Events.Distributed; |
|||
using Volo.Abp.Modularity; |
|||
using Win_in.Sfs.Scp.v1.Domain; |
|||
using Win_in.Sfs.Scp.WebApi; |
|||
|
|||
namespace Win_in.Sfs.Scp.v1.Event |
|||
{ |
|||
[DependsOn( |
|||
typeof(AbpAutofacModule), |
|||
typeof(V1ScpDomainModule), |
|||
typeof(WebApiDomainModule) |
|||
)] |
|||
public class V1ScpEventModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
|
|||
Configure<AbpDistributedEntityEventOptions>(options => |
|||
{ |
|||
options.AutoEventSelectors.AddAll(); |
|||
}); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net5.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="Volo.Abp.Autofac" Version="4.4.2" /> |
|||
<PackageReference Include="Volo.Abp.Core" Version="4.4.2" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\Win_in.Sfs.Scp.v1.Domain\Win_in.Sfs.Scp.v1.Domain.csproj" /> |
|||
<ProjectReference Include="..\Win_in.Sfs.Scp.WebApi.Domain\Win_in.Sfs.Scp.WebApi.Domain.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
Loading…
Reference in new issue