贾荣国
3 years ago
25 changed files with 3089 additions and 52 deletions
File diff suppressed because it is too large
@ -0,0 +1,153 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Scp.WebApi.Migrations |
||||
|
{ |
||||
|
public partial class Decimal : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "Qty", |
||||
|
table: "WebApi_UnplannedReceipt", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "ReceiveQty", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "StdPackQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "OrderQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "TaxRate", |
||||
|
table: "WebApi_PO", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "Qty", |
||||
|
table: "WebApi_UnplannedReceipt", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "ReceiveQty", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "StdPackQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "OrderQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "TaxRate", |
||||
|
table: "WebApi_PO", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,16 +1,22 @@ |
|||||
using System.Threading.Tasks; |
using System; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.DependencyInjection; |
||||
|
using Volo.Abp.Domain.Entities.Events; |
||||
using Volo.Abp.Domain.Entities.Events.Distributed; |
using Volo.Abp.Domain.Entities.Events.Distributed; |
||||
using Volo.Abp.EventBus; |
using Volo.Abp.EventBus; |
||||
using Win_in.Sfs.Scp.WebApi; |
using Win_in.Sfs.Scp.WebApi; |
||||
|
|
||||
namespace Win_in.Sfs.Scp.v1.Event |
namespace Win_in.Sfs.Scp.v1.Event |
||||
{ |
{ |
||||
public class PurchaseOrderEventHandler:ILocalEventHandler<EntityCreatedEto<PurchaseOrder>> |
public class PurchaseOrderEventHandler:ILocalEventHandler<EntityCreatedEventData<PurchaseOrder>>,ITransientDependency |
||||
{ |
{ |
||||
public Task HandleEventAsync(EntityCreatedEto<PurchaseOrder> eventData) |
public Task HandleEventAsync(EntityCreatedEventData<PurchaseOrder> eventData) |
||||
{ |
{ |
||||
throw new System.NotImplementedException(); |
Console.WriteLine("Local Event:" + eventData.Entity.Id); |
||||
|
|
||||
|
|
||||
|
return Task.CompletedTask; |
||||
|
|
||||
//TODO 新增或修改TB_PO
|
//TODO 新增或修改TB_PO
|
||||
} |
} |
||||
} |
} |
||||
|
@ -1,16 +1,23 @@ |
|||||
using System.Threading.Tasks; |
using System; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.DependencyInjection; |
||||
|
using Volo.Abp.Domain.Entities.Events; |
||||
using Volo.Abp.Domain.Entities.Events.Distributed; |
using Volo.Abp.Domain.Entities.Events.Distributed; |
||||
using Volo.Abp.EventBus; |
using Volo.Abp.EventBus; |
||||
using Win_in.Sfs.Scp.WebApi; |
using Win_in.Sfs.Scp.WebApi; |
||||
|
|
||||
namespace Win_in.Sfs.Scp.v1.Event |
namespace Win_in.Sfs.Scp.v1.Event |
||||
{ |
{ |
||||
public class ReceiptEventHandler:ILocalEventHandler<EntityCreatedEto<Receipt>> |
public class ReceiptEventHandler:ILocalEventHandler<EntityCreatedEventData<Receipt>>, ITransientDependency |
||||
{ |
{ |
||||
public Task HandleEventAsync(EntityCreatedEto<Receipt> eventData) |
public Task HandleEventAsync(EntityCreatedEventData<Receipt> eventData) |
||||
{ |
{ |
||||
throw new System.NotImplementedException(); |
Console.WriteLine("Local Event:" + eventData.Entity.Id); |
||||
|
|
||||
|
|
||||
|
return Task.CompletedTask; |
||||
|
|
||||
|
|
||||
//TODO 新增 TB_RECEIPT 或 TB_REJECT
|
//TODO 新增 TB_RECEIPT 或 TB_REJECT
|
||||
} |
} |
||||
} |
} |
||||
|
@ -1,16 +1,22 @@ |
|||||
using System.Threading.Tasks; |
using System; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.DependencyInjection; |
||||
|
using Volo.Abp.Domain.Entities.Events; |
||||
using Volo.Abp.Domain.Entities.Events.Distributed; |
using Volo.Abp.Domain.Entities.Events.Distributed; |
||||
using Volo.Abp.EventBus; |
using Volo.Abp.EventBus; |
||||
using Win_in.Sfs.Scp.WebApi; |
using Win_in.Sfs.Scp.WebApi; |
||||
|
|
||||
namespace Win_in.Sfs.Scp.v1.Event |
namespace Win_in.Sfs.Scp.v1.Event |
||||
{ |
{ |
||||
public class SupplierEventHandler:ILocalEventHandler<EntityCreatedEto<Supplier>> |
public class SupplierEventHandler:ILocalEventHandler<EntityCreatedEventData<Supplier>>, ITransientDependency |
||||
{ |
{ |
||||
public Task HandleEventAsync(EntityCreatedEto<Supplier> eventData) |
public Task HandleEventAsync(EntityCreatedEventData<Supplier> eventData) |
||||
{ |
{ |
||||
throw new System.NotImplementedException(); |
Console.WriteLine("Local Event:" + eventData.Entity.Id); |
||||
|
|
||||
|
|
||||
|
return Task.CompletedTask; |
||||
|
|
||||
//TODO 根据传入数据新增或修改TA_VENDER
|
//TODO 根据传入数据新增或修改TA_VENDER
|
||||
} |
} |
||||
} |
} |
||||
|
Loading…
Reference in new issue