Browse Source

添加厂内零件号列

master
学 赵 1 year ago
parent
commit
10dd9a4cf1
  1. 5377
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.Designer.cs
  2. 233
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.cs
  3. 50
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

5377
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.Designer.cs

File diff suppressed because it is too large

233
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810003703_202308100001.cs

@ -0,0 +1,233 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202308100001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum",
table: "Set_VmiBalance");
migrationBuilder.DeleteData(
table: "Set_VmiBalance",
keyColumn: "Id",
keyValue: new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"));
migrationBuilder.AlterColumn<string>(
name: "factory",
table: "Set_VmiBalance",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Configcode",
table: "Set_VmiBalance",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CodeType",
table: "Set_VmiBalance",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_PUB_NOT_SA_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_PUB_CAN_SA_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_PUB_ADJ_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ClientCode",
table: "Set_INVOICE_GRP",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "PreTaxDiff",
table: "Set_INVOICE_GRP",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn<decimal>(
name: "RealAmt",
table: "Set_INVOICE_GRP",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn<decimal>(
name: "TaxDiff",
table: "Set_INVOICE_GRP",
type: "decimal(18,2)",
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_HBPO_NOT_SA_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_HBPO_CAN_SA_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_HBPO_ADJ_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_BBAC_NOT_SA_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PartCode",
table: "Set_BBAC_CAN_SA_DETAIL",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.InsertData(
table: "Set_VmiBalance",
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" },
values: new object[] { new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4d0aea6c7eb24ecf908624ef4ffc315a", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null });
migrationBuilder.CreateIndex(
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode",
table: "Set_VmiBalance",
columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" },
unique: true,
filter: "[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode",
table: "Set_VmiBalance");
migrationBuilder.DeleteData(
table: "Set_VmiBalance",
keyColumn: "Id",
keyValue: new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086"));
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_PUB_NOT_SA_DETAIL");
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_PUB_CAN_SA_DETAIL");
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_PUB_ADJ_DETAIL");
migrationBuilder.DropColumn(
name: "ClientCode",
table: "Set_INVOICE_GRP");
migrationBuilder.DropColumn(
name: "PreTaxDiff",
table: "Set_INVOICE_GRP");
migrationBuilder.DropColumn(
name: "RealAmt",
table: "Set_INVOICE_GRP");
migrationBuilder.DropColumn(
name: "TaxDiff",
table: "Set_INVOICE_GRP");
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_HBPO_NOT_SA_DETAIL");
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_HBPO_CAN_SA_DETAIL");
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_HBPO_ADJ_DETAIL");
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_BBAC_NOT_SA_DETAIL");
migrationBuilder.DropColumn(
name: "PartCode",
table: "Set_BBAC_CAN_SA_DETAIL");
migrationBuilder.AlterColumn<string>(
name: "factory",
table: "Set_VmiBalance",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Configcode",
table: "Set_VmiBalance",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CodeType",
table: "Set_VmiBalance",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
migrationBuilder.InsertData(
table: "Set_VmiBalance",
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" },
values: new object[] { new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "02418a7349a942d4b3e1fe9a3968a908", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null });
migrationBuilder.CreateIndex(
name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum",
table: "Set_VmiBalance",
columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" },
unique: true,
filter: "[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL");
}
}
}

50
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

@ -152,6 +152,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -239,6 +242,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -1130,6 +1136,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -1279,6 +1288,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -1359,6 +1371,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -2215,6 +2230,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("int");
b.Property<string>("ClientCode")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(50)
@ -2273,6 +2291,12 @@ namespace Win.Sfs.SettleAccount.Migrations
b.Property<string>("ParentInvbillNum")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("PreTaxDiff")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("RealAmt")
.HasColumnType("decimal(18,2)");
b.Property<string>("RealnvBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
@ -2286,6 +2310,9 @@ namespace Win.Sfs.SettleAccount.Migrations
b.Property<decimal>("TaxAmt")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("TaxDiff")
.HasColumnType("decimal(18,2)");
b.HasKey("Id");
b.ToTable("Set_INVOICE_GRP");
@ -2732,6 +2759,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -2882,6 +2912,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -2975,6 +3008,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PartCode")
.HasColumnType("nvarchar(max)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
@ -4263,7 +4299,7 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasColumnType("int");
b.Property<string>("CodeType")
.HasColumnType("nvarchar(max)");
.HasColumnType("nvarchar(450)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
@ -4272,7 +4308,7 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<string>("Configcode")
.HasColumnType("nvarchar(max)");
.HasColumnType("nvarchar(450)");
b.Property<string>("CustomerPartCode")
.HasColumnType("nvarchar(max)");
@ -4317,23 +4353,23 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasColumnType("nvarchar(450)");
b.Property<string>("factory")
.HasColumnType("nvarchar(max)");
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum")
b.HasIndex("BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode")
.IsUnique()
.HasFilter("[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL");
.HasFilter("[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL");
b.ToTable("Set_VmiBalance");
b.HasData(
new
{
Id = new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"),
Id = new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086"),
BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
BillType = 1,
ConcurrencyStamp = "02418a7349a942d4b3e1fe9a3968a908",
ConcurrencyStamp = "4d0aea6c7eb24ecf908624ef4ffc315a",
DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
ErpToLoc = "ErpToLoc",
OrderNum = "OrderNum",

Loading…
Cancel
Save