|
@ -72,6 +72,7 @@ using Win.Sfs.SettleAccount.Entities.HQ_M; |
|
|
using Win.Sfs.SettleAccount.Entities.BT_Car; |
|
|
using Win.Sfs.SettleAccount.Entities.BT_Car; |
|
|
using Win.Sfs.SettleAccount.Entities.WMS; |
|
|
using Win.Sfs.SettleAccount.Entities.WMS; |
|
|
using Win.Sfs.SettleAccount.Entities.HQ_F; |
|
|
using Win.Sfs.SettleAccount.Entities.HQ_F; |
|
|
|
|
|
using Win.Sfs.SettleAccount.Entities.HQ_Car; |
|
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount |
|
|
namespace Win.Sfs.SettleAccount |
|
|
{ |
|
|
{ |
|
@ -319,9 +320,11 @@ namespace Win.Sfs.SettleAccount |
|
|
builder.ConfigureHQM(options); |
|
|
builder.ConfigureHQM(options); |
|
|
builder.ConfigureHQMVersion(options); |
|
|
builder.ConfigureHQMVersion(options); |
|
|
|
|
|
|
|
|
//一汽轿车
|
|
|
//派格一汽轿车
|
|
|
builder.ConfigureBTCar(options); |
|
|
builder.ConfigureBTCar(options); |
|
|
builder.ConfigureBTCarVersion(options); |
|
|
builder.ConfigureBTCarVersion(options); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
builder.ConfigureWmsJitOutPutDetail(options); |
|
|
builder.ConfigureWmsJitOutPutDetail(options); |
|
|
builder.ConfigureWmsJitOutPutVersion(options); |
|
|
builder.ConfigureWmsJitOutPutVersion(options); |
|
|
builder.ConfigureWmsJitOutPutDetail(options); |
|
|
builder.ConfigureWmsJitOutPutDetail(options); |
|
@ -336,6 +339,55 @@ namespace Win.Sfs.SettleAccount |
|
|
|
|
|
|
|
|
#region PG-派格
|
|
|
#region PG-派格
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 一汽轿车平台验收结算明细-导入
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="builder"></param>
|
|
|
|
|
|
/// <param name="options"></param>
|
|
|
|
|
|
private static void ConfigureHQCar(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
builder.Entity<HQ_Car_Platform>(b => |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
b.ToTable($"{options.TablePrefix}_HQ_Car_Platform", options.Schema); |
|
|
|
|
|
|
|
|
|
|
|
b.ConfigureByConvention(); |
|
|
|
|
|
b.Property(x => x.HQCarKanBan).HasMaxLength(150);//看板号(一汽轿车没有看板号)
|
|
|
|
|
|
b.Property(x => x.MaterialVoucherNo).HasMaxLength(150); |
|
|
|
|
|
b.Property(x => x.Factory).HasMaxLength(50); |
|
|
|
|
|
b.Property(x => x.MaterialCode).IsRequired().HasMaxLength(150); |
|
|
|
|
|
b.Property(x => x.ExternalKanbanNumber).HasMaxLength(50); |
|
|
|
|
|
b.Property(x => x.KanbanNumber).HasMaxLength(150);//看板编号
|
|
|
|
|
|
b.Property(x => x.Period).HasMaxLength(50); |
|
|
|
|
|
b.Property(x => x.Year).HasMaxLength(50); |
|
|
|
|
|
b.Property(x => x.Version).HasMaxLength(50); |
|
|
|
|
|
b.Property(x => x.Supplier).HasMaxLength(50); |
|
|
|
|
|
b.Property(x => x.StorageLocation).HasMaxLength(50); |
|
|
|
|
|
b.Property(x => x.StorageLocationDesc).HasMaxLength(150); |
|
|
|
|
|
//创建组合索引
|
|
|
|
|
|
b.HasIndex(x => new { x.Version, x.KanbanNumber, x.MaterialCode }).IsUnique().HasFilter(IsDeletedFilter); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void ConfigureHQCarVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
builder.Entity<HQ_Car_PlatformVersion>(b => |
|
|
|
|
|
{ |
|
|
|
|
|
b.ToTable($"{options.TablePrefix}_HQ_Car_PlatformVersion", options.Schema); |
|
|
|
|
|
b.ConfigureByConvention(); |
|
|
|
|
|
b.Property(x => x.Year).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.Property(x => x.Period).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.Property(x => x.CustomerCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.HasIndex(x => new { x.Version }).IsUnique().HasFilter(IsDeletedFilter); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 红旗工厂F平台验收结算明细-导入
|
|
|
/// 红旗工厂F平台验收结算明细-导入
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
@ -398,7 +450,7 @@ namespace Win.Sfs.SettleAccount |
|
|
b.ToTable($"{options.TablePrefix}_BT_Car_Platform", options.Schema); |
|
|
b.ToTable($"{options.TablePrefix}_BT_Car_Platform", options.Schema); |
|
|
|
|
|
|
|
|
b.ConfigureByConvention(); |
|
|
b.ConfigureByConvention(); |
|
|
b.Property(x => x.BTCarKanBan).IsRequired().HasMaxLength(150);//必填项
|
|
|
b.Property(x => x.BTCarKanBan).HasMaxLength(150);//一汽轿车没有看板号,为空
|
|
|
b.Property(x => x.MaterialVoucherNo).HasMaxLength(150); |
|
|
b.Property(x => x.MaterialVoucherNo).HasMaxLength(150); |
|
|
b.Property(x => x.Factory).HasMaxLength(50); |
|
|
b.Property(x => x.Factory).HasMaxLength(50); |
|
|
b.Property(x => x.MaterialCode).IsRequired().HasMaxLength(150); |
|
|
b.Property(x => x.MaterialCode).IsRequired().HasMaxLength(150); |
|
@ -416,6 +468,22 @@ namespace Win.Sfs.SettleAccount |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static void ConfigureBTCarVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
builder.Entity<BT_Car_PlatformVersion>(b => |
|
|
|
|
|
{ |
|
|
|
|
|
b.ToTable($"{options.TablePrefix}_BT_Car_PlatformVersion", options.Schema); |
|
|
|
|
|
b.ConfigureByConvention(); |
|
|
|
|
|
b.Property(x => x.Year).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.Property(x => x.Period).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.Property(x => x.CustomerCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
b.HasIndex(x => new { x.Version }).IsUnique().HasFilter(IsDeletedFilter); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 准时化出库明细
|
|
|
/// 准时化出库明细
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
@ -445,22 +513,6 @@ namespace Win.Sfs.SettleAccount |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void ConfigureBTCarVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
builder.Entity<SparePartVersion>(b => |
|
|
|
|
|
{ |
|
|
|
|
|
//b.ToTable($"{options.TablePrefix}_BT_Car_PlatformVersion", options.Schema);
|
|
|
|
|
|
//b.ConfigureByConvention();
|
|
|
|
|
|
//b.Property(x => x.Year).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
|
|
//b.Property(x => x.Period).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
|
|
//b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
|
|
//b.Property(x => x.CustomerCode).HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
|
|
//b.HasIndex(x => new { x.Version }).IsUnique().HasFilter(IsDeletedFilter);
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 红旗工厂M平台验收结算明细-导入
|
|
|
/// 红旗工厂M平台验收结算明细-导入
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
@ -535,6 +587,8 @@ namespace Win.Sfs.SettleAccount |
|
|
b.Property(x => x.Supplier).HasMaxLength(50); |
|
|
b.Property(x => x.Supplier).HasMaxLength(50); |
|
|
b.Property(x => x.StorageLocation).HasMaxLength(50); |
|
|
b.Property(x => x.StorageLocation).HasMaxLength(50); |
|
|
b.Property(x => x.StorageLocationDesc).HasMaxLength(150); |
|
|
b.Property(x => x.StorageLocationDesc).HasMaxLength(150); |
|
|
|
|
|
b.Property(x => x.AcceptanceNo).HasMaxLength(50); |
|
|
|
|
|
|
|
|
//创建组合索引
|
|
|
//创建组合索引
|
|
|
b.HasIndex(x => new { x.Version, x.HQHKanBan, x.MaterialCode }).IsUnique().HasFilter(IsDeletedFilter); |
|
|
b.HasIndex(x => new { x.Version, x.HQHKanBan, x.MaterialCode }).IsUnique().HasFilter(IsDeletedFilter); |
|
|
|
|
|
|
|
|