mahao
1 year ago
36 changed files with 5417 additions and 178 deletions
@ -1,35 +1,56 @@ |
|||||
using System; |
using System; |
||||
using System.Collections.Generic; |
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
using Volo.Abp.Domain.Entities; |
using Volo.Abp.Domain.Entities; |
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
||||
|
|
||||
public class VmiBalance : Entity<Guid> |
public class VmiBalance : Entity<Guid> |
||||
{ |
{ |
||||
/// <summary>
|
[Display(Name = "Erp目标库位", Description = "Key")] |
||||
/// LU零件号:BBAC发运单BBAC_SE_DETAIL.LU
|
public string ErpToLoc { get; set; } |
||||
/// </summary>
|
|
||||
|
[Display(Name = "LU零件号", Description = "Key")] |
||||
public string LU { get; set; } |
public string LU { get; set; } |
||||
|
|
||||
/// <summary>
|
[Display(Name = "客户零件号")] |
||||
/// 生产码:BBAC发运单BBAC_SE_DETAIL.PN
|
public string PartCode { get; set; } |
||||
/// </summary>
|
|
||||
public string PN { get; set; } |
[Display(Name = "生产码", Description = "Key")] |
||||
|
public string VinCode { get; set; } |
||||
|
|
||||
/// <summary>
|
[Display(Name = "生产码类型")] |
||||
/// 生产码类型(01前保、02后保、03门槛等)
|
public string CodeType { get; set; } |
||||
/// </summary>
|
|
||||
public int PNType { get; set; } |
|
||||
|
|
||||
/// <summary>
|
[Display(Name = "发货类型")] |
||||
/// 发货类型???
|
public string ProType { get; set; } |
||||
/// </summary>
|
|
||||
public string Type { get; set; } |
|
||||
|
|
||||
/// <summary>
|
[Display(Name = "数量")] |
||||
/// 数量
|
|
||||
/// </summary>
|
|
||||
public decimal Qty { get; set; } |
public decimal Qty { get; set; } |
||||
|
|
||||
|
[Display(Name = "发运日期")] |
||||
|
public DateTime ShippingDate { get; set; } |
||||
|
|
||||
|
[Display(Name = "订单日期")] |
||||
|
public DateTime CreationTime { get; set; } |
||||
|
|
||||
|
[Display(Name = "EDI顺序号")] |
||||
|
public string SeqNumber { get; set; } |
||||
|
|
||||
|
[Display(Name = "客户订单号")] |
||||
|
public string Tmpe4 { get; set; } |
||||
|
|
||||
|
[Display(Name = "塑件唯一码")] |
||||
|
public string UniqueCode { get; set; } |
||||
|
|
||||
|
[Display(Name = "EDI总成号")] |
||||
|
public string MatchNumber { get; set; } |
||||
|
|
||||
|
[Display(Name = "PJIS生产顺序号")] |
||||
|
public string PjsNum { get; set; } |
||||
|
|
||||
|
[Display(Name = "备注")] |
||||
|
public string Desc { get; set; } |
||||
|
|
||||
public List<VmiLog> Logs { get; set; } = new List<VmiLog>(); |
public List<VmiLog> Logs { get; set; } = new List<VmiLog>(); |
||||
} |
} |
||||
|
File diff suppressed because it is too large
@ -0,0 +1,227 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win.Sfs.SettleAccount.Migrations |
||||
|
{ |
||||
|
public partial class vmi2 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropUniqueConstraint( |
||||
|
name: "AK_Set_VmiBalance_PN_LU", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DeleteData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("6efe1947-a242-4d20-b633-20b0f716a782")); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "PNType", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Type", |
||||
|
table: "Set_VmiBalance", |
||||
|
newName: "VinCode"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "PN", |
||||
|
table: "Set_VmiBalance", |
||||
|
newName: "PartCode"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CreatedBy", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "CreatedDate", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "OrderNumber", |
||||
|
table: "Set_VmiLog", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "CreationTime", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Desc", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(450)", |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ProType", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SeqNumber", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<DateTime>( |
||||
|
name: "ShippingDate", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Tmpe4", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddUniqueConstraint( |
||||
|
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
||||
|
table: "Set_VmiBalance", |
||||
|
columns: new[] { "ErpToLoc", "PartCode", "LU" }); |
||||
|
|
||||
|
migrationBuilder.InsertData( |
||||
|
table: "Set_JobItem", |
||||
|
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
||||
|
values: new object[] { new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropUniqueConstraint( |
||||
|
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DeleteData( |
||||
|
table: "Set_JobItem", |
||||
|
keyColumn: "Id", |
||||
|
keyValue: new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73")); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreatedBy", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreatedDate", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "OrderNumber", |
||||
|
table: "Set_VmiLog"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CodeType", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CreationTime", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Desc", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ErpToLoc", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "MatchNumber", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "PjsNum", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ProType", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SeqNumber", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ShippingDate", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Tmpe4", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "UniqueCode", |
||||
|
table: "Set_VmiBalance"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "VinCode", |
||||
|
table: "Set_VmiBalance", |
||||
|
newName: "Type"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "PartCode", |
||||
|
table: "Set_VmiBalance", |
||||
|
newName: "PN"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "PNType", |
||||
|
table: "Set_VmiBalance", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
|
||||
|
migrationBuilder.AddUniqueConstraint( |
||||
|
name: "AK_Set_VmiBalance_PN_LU", |
||||
|
table: "Set_VmiBalance", |
||||
|
columns: new[] { "PN", "LU" }); |
||||
|
|
||||
|
migrationBuilder.InsertData( |
||||
|
table: "Set_JobItem", |
||||
|
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
||||
|
values: new object[] { new Guid("6efe1947-a242-4d20-b633-20b0f716a782"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue