26 changed files with 43258 additions and 4185 deletions
@ -1,61 +1,51 @@ |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Win_in.Sfs.Basedata.Domain.Shared; |
|||
using Win_in.Sfs.Shared.Domain; |
|||
using Win_in.Sfs.Shared.Domain.Entities; |
|||
|
|||
namespace Win_in.Sfs.Basedata.Application.Contracts; |
|||
|
|||
/// <summary>
|
|||
/// 生产线
|
|||
/// 生产线
|
|||
/// </summary>
|
|||
[Display(Name = "生产线")] |
|||
|
|||
public class ProductionLineDTO : SfsBaseDataDTOBase, IHasCode, IHasName |
|||
{ |
|||
/// <summary>
|
|||
/// 编码
|
|||
/// </summary>
|
|||
[Display(Name = "编码")] |
|||
public string Code { get; set; } |
|||
[Display(Name = "编码")] [IgnoreUpdate] public string Code { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 名称
|
|||
/// 名称
|
|||
/// </summary>
|
|||
[Display(Name = "名称")] |
|||
[Display(Name = "编码")] |
|||
public string Name { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 描述
|
|||
/// 描述
|
|||
/// </summary>
|
|||
[Display(Name = "描述")] |
|||
[Display(Name = "编码")] |
|||
public string Description { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 类型
|
|||
/// 类型
|
|||
/// </summary>
|
|||
[Display(Name = "类型")] |
|||
public EnumProductionLineType Type { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 车间
|
|||
/// </summary>
|
|||
[Display(Name = "车间")] |
|||
public string WorkshopCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 原料库位
|
|||
/// 原料库位
|
|||
/// </summary>
|
|||
[Display(Name = "原料库位")] |
|||
public string RawLocationCode { get; set; } |
|||
[Display(Name = "原料库位集合")] |
|||
public List<string> RawLocationCodeList { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 成品库位
|
|||
/// 成品库位
|
|||
/// </summary>
|
|||
[Display(Name = "成品库位")] |
|||
public string ProductLocationCode { get; set; } |
|||
[Display(Name = "完工库位集合")] |
|||
public List<string> ProductLocationCodeList { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 原料库位组
|
|||
/// 线边库位
|
|||
/// </summary>
|
|||
[Display(Name = "原料库位组")] |
|||
public string RawLocationGroupCode { get; set; } |
|||
[Display(Name = "线边库位集合")] |
|||
public List<string> WipLocationCodeList { get; set; } |
|||
} |
|||
|
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,801 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Win_in.Sfs.Wms.Store.Migrations |
|||
{ |
|||
public partial class Update_2024_03_28_ProductLine : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "Confirmed", |
|||
table: "Job_TransferLibJob", |
|||
type: "bit", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Job_CoatingIssueJob", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
RequestType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
MaterialRequestNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Workshop = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
UseOnTheWayLocation = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
Worker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
UpStreamJobNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
JobDescription = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|||
JobType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
JobStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Priority = table.Column<int>(type: "int", nullable: false, defaultValue: 0), |
|||
PriorityIncrement = table.Column<int>(type: "int", nullable: false, defaultValue: 0), |
|||
WorkGroupCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
IsAutoComplete = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
AcceptUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
AcceptUserName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
AcceptTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
CompleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
CompleteUserName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
CompleteTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
WarehouseCode = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Job_CoatingIssueJob", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Job_InjectionJob", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
RequestType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
InjectionRequestNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Workshop = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
UseOnTheWayLocation = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
Worker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
UpStreamJobNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
JobDescription = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|||
JobType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
JobStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Priority = table.Column<int>(type: "int", nullable: false, defaultValue: 0), |
|||
PriorityIncrement = table.Column<int>(type: "int", nullable: false, defaultValue: 0), |
|||
WorkGroupCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
IsAutoComplete = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
AcceptUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
AcceptUserName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
AcceptTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
CompleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
CompleteUserName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
CompleteTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
WarehouseCode = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Job_InjectionJob", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_CoatingIssueNote", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
JobNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Workshop = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RequestNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RequestType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
UseOnTheWayLocation = table.Column<bool>(type: "bit", nullable: false), |
|||
ConfirmTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
Confirmed = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
Worker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ActiveDate = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_CoatingIssueNote", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_CoatingMaterialRequest", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
PreparationPlanNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Workshop = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
UseOnTheWayLocation = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
Worker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ActiveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
AutoSubmit = table.Column<bool>(type: "bit", nullable: false), |
|||
AutoAgree = table.Column<bool>(type: "bit", nullable: false), |
|||
AutoHandle = table.Column<bool>(type: "bit", nullable: false), |
|||
AutoCompleteJob = table.Column<bool>(type: "bit", nullable: false), |
|||
DirectCreateNote = table.Column<bool>(type: "bit", nullable: false), |
|||
RequestStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_CoatingMaterialRequest", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_InjectionNote", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
JobNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Workshop = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RequestNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RequestType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
UseOnTheWayLocation = table.Column<bool>(type: "bit", nullable: false), |
|||
ConfirmTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
Confirmed = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
Worker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ActiveDate = table.Column<DateTime>(type: "datetime2", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_InjectionNote", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_InjectionRequest", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
PreparationPlanNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Workshop = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
UseOnTheWayLocation = table.Column<bool>(type: "bit", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
Worker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ActiveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
AutoSubmit = table.Column<bool>(type: "bit", nullable: false), |
|||
AutoAgree = table.Column<bool>(type: "bit", nullable: false), |
|||
AutoHandle = table.Column<bool>(type: "bit", nullable: false), |
|||
AutoCompleteJob = table.Column<bool>(type: "bit", nullable: false), |
|||
DirectCreateNote = table.Column<bool>(type: "bit", nullable: false), |
|||
RequestStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_InjectionRequest", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Job_CoatingIssueJobDetail", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
RequestLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
OnTheWayLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
WorkStation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ExpiredTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
Operation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
DistributionType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
TruncType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RoundedQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
PlannedSplitRule = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PlanBeginTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
DeliveryQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
PositionCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
ItemName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc2 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
Status = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RecommendContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Uom = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
RecommendQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
HandledContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Job_CoatingIssueJobDetail", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_Job_CoatingIssueJobDetail_Job_CoatingIssueJob_MasterID", |
|||
column: x => x.MasterID, |
|||
principalTable: "Job_CoatingIssueJob", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Job_InjectionJobDetail", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
RequestLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
OnTheWayLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
WorkStation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ExpiredTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
Operation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
DistributionType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
TruncType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RoundedQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
PlannedSplitRule = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PlanBeginTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
DeliveryQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
PositionCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
ItemName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc2 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
Status = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RecommendContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Uom = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
RecommendQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
HandledContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Job_InjectionJobDetail", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_Job_InjectionJobDetail_Job_InjectionJob_MasterID", |
|||
column: x => x.MasterID, |
|||
principalTable: "Job_InjectionJob", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_CoatingIssueNoteDetail", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
IssueTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ExpiredTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
WorkStation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
OnTheWayLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
PositionCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
RecommendType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
ItemName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc2 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Uom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Qty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
FromPackingCode = table.Column<string>(type: "nvarchar(450)", nullable: true), |
|||
ToPackingCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
FromContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ToContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
FromLot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ToLot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
SupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
FromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
FromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
FromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RecommendContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
HandledContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_CoatingIssueNoteDetail", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_Store_CoatingIssueNoteDetail_Store_CoatingIssueNote_MasterID", |
|||
column: x => x.MasterID, |
|||
principalTable: "Store_CoatingIssueNote", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_CoatingMaterialRequestDetail", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ToLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromLocationArea = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
WorkStation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ExpiredTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
IssuedQty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
ReceivedQty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
Status = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PositionCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
RecommendType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
ItemName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc2 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Uom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Qty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_CoatingMaterialRequestDetail", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_Store_CoatingMaterialRequestDetail_Store_CoatingMaterialRequest_MasterID", |
|||
column: x => x.MasterID, |
|||
principalTable: "Store_CoatingMaterialRequest", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_InjectionNoteDetail", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
IssueTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ExpiredTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
WorkStation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
OnTheWayLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
PositionCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
ItemName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc2 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Uom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Qty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
FromPackingCode = table.Column<string>(type: "nvarchar(450)", nullable: true), |
|||
ToPackingCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
FromContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ToContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
FromLot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ToLot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
SupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
FromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
FromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
FromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ToLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToStatus = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RecommendContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
RecommendLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
HandledContainerCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledPackingCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledSupplierBatch = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledArriveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledProduceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledExpireDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
HandledLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledFromWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
HandledQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_InjectionNoteDetail", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_Store_InjectionNoteDetail_Store_InjectionNote_MasterID", |
|||
column: x => x.MasterID, |
|||
principalTable: "Store_InjectionNote", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Store_InjectionRequestDetail", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ToLocationCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationArea = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationGroup = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToLocationErpCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ToWarehouseCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
FromLocationArea = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ProdLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
WorkStation = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ExpiredTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
IssuedQty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
ReceivedQty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
Status = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PositionCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
RecommendType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(3072)", maxLength: 3072, nullable: true), |
|||
ItemName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc1 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemDesc2 = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ItemCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Uom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Qty = table.Column<decimal>(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Store_InjectionRequestDetail", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_Store_InjectionRequestDetail_Store_InjectionRequest_MasterID", |
|||
column: x => x.MasterID, |
|||
principalTable: "Store_InjectionRequest", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Job_CoatingIssueJob_Number", |
|||
table: "Job_CoatingIssueJob", |
|||
column: "Number", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Job_CoatingIssueJobDetail_MasterID", |
|||
table: "Job_CoatingIssueJobDetail", |
|||
column: "MasterID"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Job_InjectionJob_Number", |
|||
table: "Job_InjectionJob", |
|||
column: "Number", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Job_InjectionJobDetail_MasterID", |
|||
table: "Job_InjectionJobDetail", |
|||
column: "MasterID"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingIssueNote_Number", |
|||
table: "Store_CoatingIssueNote", |
|||
column: "Number", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingIssueNoteDetail_FromPackingCode", |
|||
table: "Store_CoatingIssueNoteDetail", |
|||
column: "FromPackingCode"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingIssueNoteDetail_MasterID", |
|||
table: "Store_CoatingIssueNoteDetail", |
|||
column: "MasterID"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingIssueNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", |
|||
table: "Store_CoatingIssueNoteDetail", |
|||
columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, |
|||
unique: true, |
|||
filter: "[FromPackingCode] IS NOT NULL"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingMaterialRequest_Number", |
|||
table: "Store_CoatingMaterialRequest", |
|||
column: "Number", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingMaterialRequestDetail_ItemCode", |
|||
table: "Store_CoatingMaterialRequestDetail", |
|||
column: "ItemCode"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingMaterialRequestDetail_MasterID", |
|||
table: "Store_CoatingMaterialRequestDetail", |
|||
column: "MasterID"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_CoatingMaterialRequestDetail_Number_ItemCode_ToLocationCode", |
|||
table: "Store_CoatingMaterialRequestDetail", |
|||
columns: new[] { "Number", "ItemCode", "ToLocationCode" }, |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionNote_Number", |
|||
table: "Store_InjectionNote", |
|||
column: "Number", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionNoteDetail_FromPackingCode", |
|||
table: "Store_InjectionNoteDetail", |
|||
column: "FromPackingCode"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionNoteDetail_MasterID", |
|||
table: "Store_InjectionNoteDetail", |
|||
column: "MasterID"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", |
|||
table: "Store_InjectionNoteDetail", |
|||
columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, |
|||
unique: true, |
|||
filter: "[FromPackingCode] IS NOT NULL"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionRequest_Number", |
|||
table: "Store_InjectionRequest", |
|||
column: "Number", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionRequestDetail_ItemCode", |
|||
table: "Store_InjectionRequestDetail", |
|||
column: "ItemCode"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionRequestDetail_MasterID", |
|||
table: "Store_InjectionRequestDetail", |
|||
column: "MasterID"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Store_InjectionRequestDetail_Number_ItemCode_ToLocationCode", |
|||
table: "Store_InjectionRequestDetail", |
|||
columns: new[] { "Number", "ItemCode", "ToLocationCode" }, |
|||
unique: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Job_CoatingIssueJobDetail"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Job_InjectionJobDetail"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_CoatingIssueNoteDetail"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_CoatingMaterialRequestDetail"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_InjectionNoteDetail"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_InjectionRequestDetail"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Job_CoatingIssueJob"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Job_InjectionJob"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_CoatingIssueNote"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_CoatingMaterialRequest"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_InjectionNote"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Store_InjectionRequest"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Confirmed", |
|||
table: "Job_TransferLibJob"); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
Loading…
Reference in new issue