mahao
1 year ago
27 changed files with 13312 additions and 247 deletions
@ -1,5 +1,5 @@ |
|||||
export default { |
export default { |
||||
enableLocale: false, |
enableLocale: false, |
||||
//baseURL: "http://dev.ccwin-in.com:10582/api",
|
// baseURL: "http://dev.ccwin-in.com:16082/api",
|
||||
baseURL: "/api", |
baseURL: new URLSearchParams(location.search).get("api") ?? "/api", |
||||
}; |
}; |
||||
|
@ -0,0 +1,83 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
using Win.Sfs.SettleAccount.Entities.BQ.Syncs; |
||||
|
|
||||
|
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
||||
|
|
||||
|
public abstract class VmiBalanceBase : Entity<Guid> |
||||
|
{ |
||||
|
public VmiBalanceBase() |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
public VmiBalanceBase(Guid id) : base(id) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
[Display(Name = "LU零件号", Order = 6)] |
||||
|
public string RealPartCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "客户零件号", Order = 7)] |
||||
|
public string CustPartCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "生产码类型", Order = 8)] |
||||
|
public string CodeType { get; set; } |
||||
|
|
||||
|
[Display(Name = "发货类型", Order = 9)] |
||||
|
public EnumDeliverBjBmpBillType? DeliverBillType { get; set; } |
||||
|
|
||||
|
[Display(Name = "数量", Order = 10)] |
||||
|
public decimal Qty { get; set; } |
||||
|
|
||||
|
[Display(Name = "发运日期", Order = 11)] |
||||
|
public DateTime? BillTime { get; set; } |
||||
|
|
||||
|
[Display(Name = "订单日期", Order = 12)] |
||||
|
public DateTime? AssembleData { get; set; } |
||||
|
|
||||
|
[Display(Name = "ERP库位", Order = 13)] |
||||
|
public string ErpToLoc { get; set; } |
||||
|
|
||||
|
[Display(Name = "EDI顺序号", Order = 14)] |
||||
|
public string Seq { get; set; } |
||||
|
|
||||
|
[Display(Name = "客户订单号", Order = 15)] |
||||
|
public string OrderNum { get; set; } |
||||
|
|
||||
|
[Display(Name = "塑件唯一码", Order = 16)] |
||||
|
public string UniqueCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "EDI总成号", Order = 17)] |
||||
|
public string MatchNumber { get; set; } |
||||
|
|
||||
|
[Display(Name = "PJIS生产顺序号", Order = 18)] |
||||
|
public string PjsNum { get; set; } |
||||
|
|
||||
|
[Display(Name = "实际生产码", Order = 19)] |
||||
|
public string RealCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "配置码", Order = 20)] |
||||
|
public string Configcode { get; set; } |
||||
|
|
||||
|
[Display(Name = "工厂", Order = 21)] |
||||
|
public string factory { get; set; } |
||||
|
|
||||
|
[Display(Name = "发货子类型", Order = 22)] |
||||
|
public EnumDeliverSubBillType? DeliverSubBillType { get; set; } |
||||
|
|
||||
|
[Display(Name = "EDI订单生产码", Order = 23)] |
||||
|
public string VinCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "结算生产码", Order = 24)] |
||||
|
public string SettlementVinCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "结算生产码", Order = 25)] |
||||
|
public string SettlementPartCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "是否补货", Order = 26)] |
||||
|
public bool? IsReplenished { get; set; } |
||||
|
|
||||
|
[Display(Name = "备注", Order = 27)] |
||||
|
public string ReMark { get; set; } |
||||
|
} |
@ -1,5 +1,39 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
||||
|
|
||||
public class VmiReplenished : VmiLog |
public class VmiReplenished : VmiBalanceBase |
||||
{ |
{ |
||||
|
public VmiReplenished() |
||||
|
{ |
||||
|
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
||||
|
} |
||||
|
|
||||
|
public VmiReplenished(Guid id) : base(id) |
||||
|
{ |
||||
|
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
||||
|
} |
||||
|
|
||||
|
[Display(Name = "库存事务分类", Order = 0)] |
||||
|
public VmiLogType LogType { get; set; } |
||||
|
|
||||
|
[Display(Name = "变动单号", Order = 1)] |
||||
|
public string ChangedNumber { get; set; } |
||||
|
|
||||
|
[Display(Name = "变动时间", Order = 2)] |
||||
|
public DateTime ChangedTime { get; set; } |
||||
|
|
||||
|
[Display(Name = "变动类型", Order = 3)] |
||||
|
public VmiType ChangedType { get; set; } |
||||
|
|
||||
|
[Display(Name = "便动人", Order = 4)] |
||||
|
public string ChangedBy { get; set; } |
||||
|
|
||||
|
[Display(Name = "库存变动", Order = 5)] |
||||
|
public decimal ChangedQty { get; set; } |
||||
|
|
||||
|
public string ConcurrencyStamp { get; set; } |
||||
|
public DateTime CreatedTime { get; set; } |
||||
|
public DateTime UpdatedTime { get; set; } |
||||
} |
} |
||||
|
@ -0,0 +1,38 @@ |
|||||
|
using System; |
||||
|
using ShardingCore.Core.EntityMetadatas; |
||||
|
using ShardingCore.VirtualRoutes.Months; |
||||
|
using Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
||||
|
|
||||
|
namespace Win.Sfs.SettleAccount.EntityFrameworkCore; |
||||
|
|
||||
|
public class OrderVirtualTableRoute : AbstractSimpleShardingMonthKeyDateTimeVirtualTableRoute<VmiLog> |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// fixed value don't use DateTime.Now because if if application restart this value where change
|
||||
|
/// </summary>
|
||||
|
/// <returns></returns>
|
||||
|
public override DateTime GetBeginTime() |
||||
|
{ |
||||
|
return new DateTime(2023, 1, 1); |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// configure sharding property
|
||||
|
/// </summary>
|
||||
|
/// <param name="builder"></param>
|
||||
|
|
||||
|
public override void Configure(EntityMetadataTableBuilder<VmiLog> builder) |
||||
|
{ |
||||
|
builder.ShardingProperty(o => o.CreatedTime); |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// enable auto create table job
|
||||
|
/// </summary>
|
||||
|
/// <returns></returns>
|
||||
|
|
||||
|
public override bool AutoCreateTableByTime() |
||||
|
{ |
||||
|
return true; |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,499 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win.Sfs.SettleAccount.Migrations |
||||
|
{ |
||||
|
public partial class vmi15 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DeleteData( |
||||
|
table: "Set_VmiBalance", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("67c5b578-8110-4674-ac1e-c3da0814244a")); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AssembleData", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "BillTime", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Configcode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreatedTime", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CustPartCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DeliverBillType", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DeliverSubBillType", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "IsReplenished", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "OrderNum", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Qty", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ReMark", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RealCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RealPartCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Seq", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SettlementPartCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SettlementVinCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "UpdatedTime", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "VinCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "factory", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "4e46d864aae4482e8881952792c6825d"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "ed9901e7e6e9410586a3af9111d2bb59"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "964f6aa5b6304936a93f8504f317c82e"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "79faaa6f20934b64942a91a524a87af3"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "82ac7a04c0fe4c2992bd99c8a6e73be7"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "1c2bfef188904011b6aca9ed6af49f44"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "cc3b71fcf18245349951c249c5b56e86"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "c8069ed240614eb4a9872d260d8839b8"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "c273b5a9dcbd4fc4ba7d33f6ef464ed7"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "5c56e915398d4e8d92644d811a98c5df"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "8069a183435141cfa0398fe295ec652c"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "e2266fce0ce94b9082a705bb6528b36c"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "54450a20639f479887d74e798aa0f00b"); |
||||
|
|
||||
|
migrationBuilder.InsertData( |
||||
|
table: "Set_VmiBalance", |
||||
|
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
||||
|
values: new object[] { new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3"), null, null, null, "82e1f152724a4a9882aab30e6cc337cb", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "ed9c903f9b4146aeb682f9e60ebff821"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "b84bb2ea7bf040368718c5d9063144bf"); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "FK_Set_VmiLog_Set_VmiBalance_Id", |
||||
|
table: "Set_VmiLog", |
||||
|
column: "Id", |
||||
|
principalTable: "Set_VmiBalance", |
||||
|
principalColumn: "Id", |
||||
|
onDelete: ReferentialAction.Restrict); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "FK_Set_VmiLog_Set_VmiBalance_Id", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DeleteData( |
||||
|
table: "Set_VmiBalance", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3")); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "AssembleData", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "BillTime", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Configcode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "CreatedTime", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CustPartCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "DeliverBillType", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "int", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "DeliverSubBillType", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "int", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<bool>( |
||||
|
name: "IsReplenished", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "bit", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "OrderNum", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "Qty", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ReMark", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RealCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RealPartCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Seq", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SettlementPartCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SettlementVinCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "UpdatedTime", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "VinCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "factory", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "800892b9cac64cb69669dc937238d39d"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "4794bc4fa2ad409ea64cdd2404983475"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "0efcdccaa94d4e7fb550794d50efa9ab"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "1e3131d9f8454d96b0429796010752d3"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "5f427300bdfd44a19eaf54fddde31db1"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "a4c7d3ff7e3b4578bc2332f114c7a6bb"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "3ab808a6104c483496414711259c375b"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "4d161eb0a7154f1db4cf7dcca4ffceea"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "9186efa28e7242bf94451f40834c2160"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "742b38d034d94d4685b7f074f35cd3ce"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "98dff4b93f1e4b0ba88a556ab20e7973"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "e25c06d5cdd34b2bbf909e8c655f94fc"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "602c85109f6743a6949bb260b3846ca7"); |
||||
|
|
||||
|
migrationBuilder.InsertData( |
||||
|
table: "Set_VmiBalance", |
||||
|
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
||||
|
values: new object[] { new Guid("67c5b578-8110-4674-ac1e-c3da0814244a"), null, null, null, "71adabfbf9a74d35985c08ecba2dd537", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "09290251f9914e5385fbae2fa00c4734"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "cecf7d9ac9924ac99b3665395406b3af"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,849 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win.Sfs.SettleAccount.Migrations |
||||
|
{ |
||||
|
public partial class vmi16 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "FK_Set_VmiLog_Set_VmiBalance_Id", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "FK_Set_VmiReplenished_Set_VmiLog_Id", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DeleteData( |
||||
|
table: "Set_VmiBalance", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3")); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "LastUpdate", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "AssembleData", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "datetime2", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "BillTime", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "datetime2", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ChangedBy", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ChangedNumber", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "ChangedQty", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "ChangedTime", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "ChangedType", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ConcurrencyStamp", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Configcode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "CreatedTime", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CustPartCode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "DeliverBillType", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "int", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "DeliverSubBillType", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "int", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<bool>( |
||||
|
name: "IsReplenished", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "bit", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "LogType", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "OrderNum", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "Qty", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ReMark", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RealCode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RealPartCode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Seq", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SettlementPartCode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SettlementVinCode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "UpdatedTime", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "VinCode", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "factory", |
||||
|
table: "Set_VmiReplenished", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "AssembleData", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "BillTime", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ConcurrencyStamp", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Configcode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "CreatedTime", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CustPartCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "DeliverBillType", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "int", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "DeliverSubBillType", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "int", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<bool>( |
||||
|
name: "IsReplenished", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "bit", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "OrderNum", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "Qty", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ReMark", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RealCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RealPartCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Seq", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SettlementPartCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SettlementVinCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "UpdatedTime", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "VinCode", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "factory", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "cda3828abfa24e43a7ff9dced0aceaeb"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "ebb669926c1d4ab988edfe14269e4b20"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "03159d6b06554bf99cfbbb15d476e386"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "73e9bf92fae34390a12c393f6ed8d163"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "b22b285ec9aa48c8b7ed2aa1f9dd7af6"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "12581a5c89da4c8587f2696f8b02ce62"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "456fe904f19a46349489730351148e28"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "15d1504855924d95abde0dc835de555d"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "f5d16790a44b4367aeeec82ab1a35fd4"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "11cf3dd1955c4da29aa430ed0b9bafdb"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "cedf8a69b6474171b18c5fe227b78d26"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "87fd77d7f0e04c4da372a75168619afc"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "6cdaca1650424494980e906bb44eab0f"); |
||||
|
|
||||
|
migrationBuilder.InsertData( |
||||
|
table: "Set_VmiBalance", |
||||
|
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
||||
|
values: new object[] { new Guid("f12dd04d-4189-4f24-9501-038a2846b84a"), null, null, null, "1200fe51a7b84cfda12141b184958098", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "b301dcf7075a41768ced27af9a124f2f"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "1606b33f2487461fb72fb38851576947"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DeleteData( |
||||
|
table: "Set_VmiBalance", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("f12dd04d-4189-4f24-9501-038a2846b84a")); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AssembleData", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "BillTime", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ChangedBy", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ChangedNumber", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ChangedQty", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ChangedTime", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ChangedType", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ConcurrencyStamp", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Configcode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreatedTime", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CustPartCode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DeliverBillType", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DeliverSubBillType", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "IsReplenished", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "LogType", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "OrderNum", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Qty", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ReMark", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RealCode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RealPartCode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Seq", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SettlementPartCode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SettlementVinCode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "UpdatedTime", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "VinCode", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "factory", |
||||
|
table: "Set_VmiReplenished"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AssembleData", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "BillTime", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ConcurrencyStamp", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Configcode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreatedTime", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CustPartCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DeliverBillType", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DeliverSubBillType", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "IsReplenished", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "OrderNum", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Qty", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ReMark", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RealCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RealPartCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Seq", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SettlementPartCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SettlementVinCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "UpdatedTime", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "VinCode", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "factory", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "LastUpdate", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "4e46d864aae4482e8881952792c6825d"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "ed9901e7e6e9410586a3af9111d2bb59"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "964f6aa5b6304936a93f8504f317c82e"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "79faaa6f20934b64942a91a524a87af3"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "82ac7a04c0fe4c2992bd99c8a6e73be7"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "1c2bfef188904011b6aca9ed6af49f44"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "cc3b71fcf18245349951c249c5b56e86"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "c8069ed240614eb4a9872d260d8839b8"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "c273b5a9dcbd4fc4ba7d33f6ef464ed7"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "5c56e915398d4e8d92644d811a98c5df"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "8069a183435141cfa0398fe295ec652c"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "e2266fce0ce94b9082a705bb6528b36c"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "54450a20639f479887d74e798aa0f00b"); |
||||
|
|
||||
|
migrationBuilder.InsertData( |
||||
|
table: "Set_VmiBalance", |
||||
|
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
||||
|
values: new object[] { new Guid("9053e8f6-6f09-42ba-9502-2e7a2f9105c3"), null, null, null, "82e1f152724a4a9882aab30e6cc337cb", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "ed9c903f9b4146aeb682f9e60ebff821"); |
||||
|
|
||||
|
migrationBuilder.UpdateData( |
||||
|
table: "Set_VmiSyncTask", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), |
||||
|
column: "ConcurrencyStamp", |
||||
|
value: "b84bb2ea7bf040368718c5d9063144bf"); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "FK_Set_VmiLog_Set_VmiBalance_Id", |
||||
|
table: "Set_VmiLog", |
||||
|
column: "Id", |
||||
|
principalTable: "Set_VmiBalance", |
||||
|
principalColumn: "Id", |
||||
|
onDelete: ReferentialAction.Restrict); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "FK_Set_VmiReplenished_Set_VmiLog_Id", |
||||
|
table: "Set_VmiReplenished", |
||||
|
column: "Id", |
||||
|
principalTable: "Set_VmiLog", |
||||
|
principalColumn: "Id", |
||||
|
onDelete: ReferentialAction.Restrict); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue