|
|
@ -346,19 +346,162 @@ namespace Win.Sfs.SettleAccount |
|
|
|
builder.ConfigureWmsHQHSharePartOutPutVersion(options); |
|
|
|
builder.ConfigureWmsHQHSharePartOutPutDetial(options); |
|
|
|
|
|
|
|
//M平台出库
|
|
|
|
builder.ConfigureWmsHQMKanbanOutPutVersion(options); |
|
|
|
builder.ConfigureWmsHQMKanbanOutPutDetial(options); |
|
|
|
builder.ConfigureWmsHQMSharePartOutPutVersion(options); |
|
|
|
builder.ConfigureWmsHQMSharePartOutPutDetial(options); |
|
|
|
//一汽轿车出库
|
|
|
|
builder.ConfigureWmsHQCarOutPutVersion(options); |
|
|
|
builder.ConfigureWmsHQCarPutDetial(options); |
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 红旗M平台、一汽轿车
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// M平台-出库单
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="builder"></param>
|
|
|
|
/// <param name="options"></param>
|
|
|
|
private static void ConfigureWmsHQMKanbanOutPutVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
{ |
|
|
|
|
|
|
|
builder.Entity<WmsHQMKanbanOutPut>(b => |
|
|
|
{ |
|
|
|
b.ToTable($"{options.TablePrefix}_WmsHQMKanbanOutPut", options.Schema); |
|
|
|
b.ConfigureByConvention(); |
|
|
|
b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
|
|
b.HasIndex(x => new { x.BillNum }); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// M平台出库详表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="builder"></param>
|
|
|
|
/// <param name="options"></param>
|
|
|
|
private static void ConfigureWmsHQMKanbanOutPutDetial(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
{ |
|
|
|
|
|
|
|
builder.Entity<WmsHQMKanbanOutPutDetial>(b => |
|
|
|
{ |
|
|
|
b.ToTable($"{options.TablePrefix}_WmsHQMKanbanOutPutDetial", options.Schema); |
|
|
|
b.ConfigureByConvention(); |
|
|
|
b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.WmsBillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.OutPut).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.InPut).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.PoLine).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Kanban).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.ParentMaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Extend1).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Extend2).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.MaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.HasIndex(x => new { x.Version }); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 一汽轿车-出库单
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="builder"></param>
|
|
|
|
/// <param name="options"></param>
|
|
|
|
private static void ConfigureWmsHQCarOutPutVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
{ |
|
|
|
|
|
|
|
builder.Entity<WmsHQCarOutPut>(b => |
|
|
|
{ |
|
|
|
b.ToTable($"{options.TablePrefix}_WmsHQCarOutPut", options.Schema); |
|
|
|
b.ConfigureByConvention(); |
|
|
|
b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
|
|
b.HasIndex(x => new { x.BillNum }); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 一汽轿车-出库详表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="builder"></param>
|
|
|
|
/// <param name="options"></param>
|
|
|
|
private static void ConfigureWmsHQCarPutDetial(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
{ |
|
|
|
|
|
|
|
builder.Entity<WmsHQCarOutPutDetial>(b => |
|
|
|
{ |
|
|
|
b.ToTable($"{options.TablePrefix}_WmsHQCarOutPutDetial", options.Schema); |
|
|
|
b.ConfigureByConvention(); |
|
|
|
b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.WmsBillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.OutPut).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.InPut).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
//b.Property(x => x.PoLine).HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
//b.Property(x => x.Kanban).HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
b.Property(x => x.ParentMaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Extend1).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Extend2).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.MaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.HasIndex(x => new { x.Version }); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private static void ConfigureWmsHQMSharePartOutPutVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
{ |
|
|
|
|
|
|
|
builder.Entity<WmsHQMSharePartOutPut>(b => |
|
|
|
{ |
|
|
|
b.ToTable($"{options.TablePrefix}_WmsHQMSharePartOutPut", options.Schema); |
|
|
|
b.ConfigureByConvention(); |
|
|
|
b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
|
|
b.HasIndex(x => new { x.BillNum }); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
private static void ConfigureWmsHQMSharePartOutPutDetial(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
{ |
|
|
|
|
|
|
|
builder.Entity<WmsHQHSharePartOutPutDetial>(b => |
|
|
|
{ |
|
|
|
b.ToTable($"{options.TablePrefix}_WmsHQMSharePartOutPutDetial", options.Schema); |
|
|
|
b.ConfigureByConvention(); |
|
|
|
b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.WmsBillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Version).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.OutPut).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.InPut).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.OrderBillNum).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
|
|
|
|
//b.Property(x => x.PoLine).HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
//b.Property(x => x.Kanban).HasMaxLength(CommonConsts.MaxCodeLength);
|
|
|
|
b.Property(x => x.ParentMaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Extend1).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.Extend2).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.Property(x => x.MaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); |
|
|
|
b.HasIndex(x => new { x.Version }); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region PG-派格
|
|
|
|
|
|
|
|
|
|
|
|
private static void ConfigureHQFKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
private static void ConfigureHQFKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) |
|
|
|
{ |
|
|
|
|
|
|
|
builder.Entity<HQ_F_Kanban>(b => |
|
|
|