49 changed files with 371792 additions and 300 deletions
@ -1,13 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using System.Threading.Tasks; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.Domain.Shared.SplitPackings; |
|
||||
public enum NodeTypeEnum |
|
||||
{ |
|
||||
ToBox = 1, |
|
||||
|
|
||||
FromBox = 2 |
|
||||
} |
|
@ -1,19 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using System.Threading.Tasks; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.Domain.Shared.SplitPackings; |
|
||||
public enum OprTypeEnum |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// 拆箱
|
|
||||
/// </summary>
|
|
||||
SplitBox = 1, |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 合箱
|
|
||||
/// </summary>
|
|
||||
MergeBox = 2 |
|
||||
} |
|
@ -1,13 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using System.Threading.Tasks; |
|
||||
using Volo.Abp.Domain.Services; |
|
||||
using Win_in.Sfs.Wms.Store.Domain; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.SplitPackings; |
|
||||
public interface ISplitPackingRecManager : IDomainService |
|
||||
{ |
|
||||
Task<bool> DoSplitPacking(List<SplitPackingRec> input); |
|
||||
} |
|
@ -1,9 +0,0 @@ |
|||||
using Win_in.Sfs.Shared.Domain; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.Domain; |
|
||||
|
|
||||
public interface ISplitPackingRecRepository : ISfsStoreRepositoryBase<SplitPackingRec> |
|
||||
{ |
|
||||
} |
|
||||
|
|
||||
|
|
@ -1,76 +0,0 @@ |
|||||
using System; |
|
||||
using System.ComponentModel.DataAnnotations; |
|
||||
using System.ComponentModel.DataAnnotations.Schema; |
|
||||
using Win_in.Sfs.Shared.Domain; |
|
||||
using Win_in.Sfs.Shared.Domain.Shared; |
|
||||
using Win_in.Sfs.Wms.Store.Domain.Shared.SplitPackings; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.Domain; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 采购标签
|
|
||||
/// </summary>
|
|
||||
public class SplitPackingRec : SfsAggregateRootBase |
|
||||
, IHasItem |
|
||||
, IHasQty |
|
||||
, IHasStdPack |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// 操作类型
|
|
||||
/// </summary>
|
|
||||
public OprTypeEnum OprType { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
///
|
|
||||
/// </summary>
|
|
||||
public string GroupCode { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
///
|
|
||||
/// </summary>
|
|
||||
public long OprLevel { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
///
|
|
||||
/// </summary>
|
|
||||
public NodeTypeEnum NodeType { get; set; } |
|
||||
|
|
||||
public Guid? ParentId { get; set; } |
|
||||
|
|
||||
public string PackingCode { get; set; } |
|
||||
|
|
||||
public string RootPackingCode { get; set; } |
|
||||
|
|
||||
//public string FullBarcodeString { get; set; }
|
|
||||
|
|
||||
public string ItemCode { get; set; } |
|
||||
|
|
||||
public string ItemName { get; set; } |
|
||||
|
|
||||
public string ItemDesc1 { get; set; } |
|
||||
|
|
||||
public string ItemDesc2 { get; set; } |
|
||||
|
|
||||
public string Lot { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 标包数量
|
|
||||
/// </summary>
|
|
||||
[Display(Name = "标包数量")] |
|
||||
[Column(TypeName = "decimal(18,6)")] |
|
||||
public decimal StdPackQty { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 计量单位
|
|
||||
/// </summary>
|
|
||||
[Display(Name = "计量单位")] |
|
||||
[MaxLength(SfsPropertyConst.CodeLength)] |
|
||||
public string Uom { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 数量
|
|
||||
/// </summary>
|
|
||||
[Display(Name = "数量")] |
|
||||
[Column(TypeName = "decimal(18,6)")] |
|
||||
public decimal Qty { get; set; } |
|
||||
} |
|
@ -1,53 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using System.Threading.Tasks; |
|
||||
using Microsoft.EntityFrameworkCore; |
|
||||
using Volo.Abp.Domain.Services; |
|
||||
using Win_in.Sfs.Wms.Store.Domain; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.SplitPackings; |
|
||||
public class SplitPackingRecManager : DomainService, ISplitPackingRecManager |
|
||||
{ |
|
||||
private readonly ISplitPackingRecRepository _repository; |
|
||||
|
|
||||
public SplitPackingRecManager(ISplitPackingRecRepository repository) |
|
||||
{ |
|
||||
_repository = repository; |
|
||||
} |
|
||||
|
|
||||
public async Task<bool> DoSplitPacking(List<SplitPackingRec> input) |
|
||||
{ |
|
||||
string groupCode = Guid.NewGuid().ToString(); |
|
||||
long maxOprLevel; |
|
||||
Guid? parentId; |
|
||||
string rootPackingCode; |
|
||||
SplitPackingRec fromRec = input.First(itm => itm.NodeType == Domain.Shared.SplitPackings.NodeTypeEnum.FromBox); |
|
||||
var query = await _repository.GetQueryableAsync().ConfigureAwait(false); |
|
||||
var hasData = await query.AnyAsync(itm => itm.PackingCode == fromRec.PackingCode).ConfigureAwait(false); |
|
||||
if (hasData) |
|
||||
{ |
|
||||
maxOprLevel = await query.Where(itm => itm.PackingCode == fromRec.PackingCode).MaxAsync(itm => itm.OprLevel).ConfigureAwait(false); |
|
||||
SplitPackingRec lastRec = await query.FirstAsync(itm => itm.PackingCode == fromRec.PackingCode && itm.OprLevel == maxOprLevel).ConfigureAwait(false); |
|
||||
parentId = lastRec.Id; |
|
||||
rootPackingCode = lastRec.RootPackingCode; |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
maxOprLevel = 1; |
|
||||
parentId = null; |
|
||||
rootPackingCode = fromRec.PackingCode; |
|
||||
} |
|
||||
|
|
||||
foreach (SplitPackingRec item in input) |
|
||||
{ |
|
||||
item.GroupCode = groupCode; |
|
||||
item.OprLevel = maxOprLevel + 1; |
|
||||
item.ParentId = parentId; |
|
||||
item.RootPackingCode = rootPackingCode; |
|
||||
} |
|
||||
await _repository.InsertManyAsync(input).ConfigureAwait(false); |
|
||||
return true; |
|
||||
} |
|
||||
} |
|
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
File diff suppressed because it is too large
@ -0,0 +1,406 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Migrations; |
||||
|
|
||||
|
public partial class RemoveWarehouseCodeInDetail : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedReceiptRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedIssueRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedIssueNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_SupplierAsnDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ScrapRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_RecycledMaterialReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ReceiptAbnormalNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PutawayRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReturnRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReturnNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductRecycleRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductRecycleNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductRecycleMaterialDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductReceiptRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductL7PartsNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductionReturnRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_OfflineSettlementNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_JisProductReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ItemTransformRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ItemTransformNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InventoryInitialNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectAbnormalNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountAdjustRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountAdjustNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ContainerBindNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_BackFlushNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReceiptRequestDetail"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedReceiptRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedIssueRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_UnplannedIssueNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_SupplierAsnDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ScrapRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_RecycledMaterialReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ReceiptAbnormalNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PutawayRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReturnRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReturnNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductRecycleRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductRecycleNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductRecycleMaterialDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductReceiptRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductL7PartsNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ProductionReturnRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_OfflineSettlementNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_JisProductReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ItemTransformRequestDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ItemTransformNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InventoryInitialNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectAbnormalNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountAdjustRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_CountAdjustNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_ContainerBindNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_BackFlushNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReceiptRequestDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
} |
||||
|
} |
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,167 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Migrations; |
||||
|
|
||||
|
public partial class FlatTimeRangeAndPhoto : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "Store_InspectAbnormalNoteDetailPhoto"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "Store_InspectNoteDetailPhoto"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "Store_ReceiptAbnormalNotePhoto"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "TimeRange_EndTime", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "EndTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "TimeRange_BeginTime", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "BeginTime"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Photos", |
||||
|
table: "Store_ReceiptAbnormalNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Photos", |
||||
|
table: "Store_InspectNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Photos", |
||||
|
table: "Store_InspectAbnormalNoteDetail", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "EndTime", |
||||
|
table: "Store_CountPlan", |
||||
|
type: "datetime2", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "BeginTime", |
||||
|
table: "Store_CountPlan", |
||||
|
type: "datetime2", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Photos", |
||||
|
table: "Store_ReceiptAbnormalNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Photos", |
||||
|
table: "Store_InspectNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Photos", |
||||
|
table: "Store_InspectAbnormalNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "EndTime", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "TimeRange_EndTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "BeginTime", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "TimeRange_BeginTime"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "EndTime", |
||||
|
table: "Store_CountPlan", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "BeginTime", |
||||
|
table: "Store_CountPlan", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "Store_InspectAbnormalNoteDetailPhoto", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
InspectAbnormalNoteDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
PhotoID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_Store_InspectAbnormalNoteDetailPhoto", x => new { x.InspectAbnormalNoteDetailId, x.PhotoID }); |
||||
|
table.ForeignKey( |
||||
|
name: "FK_Store_InspectAbnormalNoteDetailPhoto_Store_InspectAbnormalNoteDetail_InspectAbnormalNoteDetailId", |
||||
|
column: x => x.InspectAbnormalNoteDetailId, |
||||
|
principalTable: "Store_InspectAbnormalNoteDetail", |
||||
|
principalColumn: "Id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "Store_InspectNoteDetailPhoto", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
InspectNoteDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
PhotoID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_Store_InspectNoteDetailPhoto", x => new { x.InspectNoteDetailId, x.PhotoID }); |
||||
|
table.ForeignKey( |
||||
|
name: "FK_Store_InspectNoteDetailPhoto_Store_InspectNoteDetail_InspectNoteDetailId", |
||||
|
column: x => x.InspectNoteDetailId, |
||||
|
principalTable: "Store_InspectNoteDetail", |
||||
|
principalColumn: "Id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "Store_ReceiptAbnormalNotePhoto", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
ReceiptAbnormalNoteDetailId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
PhotoID = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
MasterID = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_Store_ReceiptAbnormalNotePhoto", x => new { x.ReceiptAbnormalNoteDetailId, x.PhotoID }); |
||||
|
table.ForeignKey( |
||||
|
name: "FK_Store_ReceiptAbnormalNotePhoto_Store_ReceiptAbnormalNoteDetail_ReceiptAbnormalNoteDetailId", |
||||
|
column: x => x.ReceiptAbnormalNoteDetailId, |
||||
|
principalTable: "Store_ReceiptAbnormalNoteDetail", |
||||
|
principalColumn: "Id", |
||||
|
onDelete: ReferentialAction.Cascade); |
||||
|
}); |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,588 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Migrations; |
||||
|
|
||||
|
public partial class FlatPersonCountResult : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "InspectUser_Email", |
||||
|
table: "Store_InspectNoteSummaryDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "InspectUser_Name", |
||||
|
table: "Store_InspectNoteSummaryDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "InspectUser_Email", |
||||
|
table: "Store_InspectNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "InspectUser_Name", |
||||
|
table: "Store_InspectNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCount_Description", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCount_Qty", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCount_Description", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCount_Qty", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RepeatCount_Description", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RepeatCount_Qty", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCount_Description", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCount_Qty", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCount_Description", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCount_Qty", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RepeatCount_Description", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RepeatCount_Qty", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Phone", |
||||
|
table: "Store_SupplierAsn", |
||||
|
newName: "ContactPhone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Name", |
||||
|
table: "Store_SupplierAsn", |
||||
|
newName: "ContactName"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Email", |
||||
|
table: "Store_SupplierAsn", |
||||
|
newName: "ContactEmail"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Phone", |
||||
|
table: "Store_SaleOrder", |
||||
|
newName: "ContactPhone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Name", |
||||
|
table: "Store_SaleOrder", |
||||
|
newName: "ContactName"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Email", |
||||
|
table: "Store_SaleOrder", |
||||
|
newName: "ContactEmail"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Phone", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
newName: "ContactPhone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Name", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
newName: "ContactName"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Email", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
newName: "ContactEmail"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "InspectUser_Phone", |
||||
|
table: "Store_InspectNoteSummaryDetail", |
||||
|
newName: "InspectUser"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "InspectUser_Phone", |
||||
|
table: "Store_InspectNoteDetail", |
||||
|
newName: "InspectUser"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Phone", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "ContactPhone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Name", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "ContactName"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "Contacts_Email", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "ContactEmail"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCount_Time", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "RepeatCountTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCount_Operator", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "RepeatCountOperator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCount_Time", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "FirstCountTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCount_Operator", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "RepeatCountDescription"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "AuditCount_Time", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "AuditCountTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "AuditCount_Operator", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "FirstCountOperator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCount_Time", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "RepeatCountTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCount_Operator", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "RepeatCountOperator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCount_Time", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "FirstCountTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCount_Operator", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "RepeatCountDescription"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "AuditCount_Time", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "AuditCountTime"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "AuditCount_Operator", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "FirstCountOperator"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "AuditCountDescription", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "AuditCountOperator", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "AuditCountQty", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FirstCountDescription", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "FirstCountQty", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "RepeatCountQty", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "AuditCountDescription", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "AuditCountOperator", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "AuditCountQty", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FirstCountDescription", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "FirstCountQty", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "RepeatCountQty", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCountDescription", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCountOperator", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCountQty", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCountDescription", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCountQty", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RepeatCountQty", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCountDescription", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCountOperator", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AuditCountQty", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCountDescription", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FirstCountQty", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "RepeatCountQty", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactPhone", |
||||
|
table: "Store_SupplierAsn", |
||||
|
newName: "Contacts_Phone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactName", |
||||
|
table: "Store_SupplierAsn", |
||||
|
newName: "Contacts_Name"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactEmail", |
||||
|
table: "Store_SupplierAsn", |
||||
|
newName: "Contacts_Email"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactPhone", |
||||
|
table: "Store_SaleOrder", |
||||
|
newName: "Contacts_Phone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactName", |
||||
|
table: "Store_SaleOrder", |
||||
|
newName: "Contacts_Name"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactEmail", |
||||
|
table: "Store_SaleOrder", |
||||
|
newName: "Contacts_Email"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactPhone", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
newName: "Contacts_Phone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactName", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
newName: "Contacts_Name"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactEmail", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
newName: "Contacts_Email"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "InspectUser", |
||||
|
table: "Store_InspectNoteSummaryDetail", |
||||
|
newName: "InspectUser_Phone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "InspectUser", |
||||
|
table: "Store_InspectNoteDetail", |
||||
|
newName: "InspectUser_Phone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactPhone", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "Contacts_Phone"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactName", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "Contacts_Name"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "ContactEmail", |
||||
|
table: "Store_CustomerAsn", |
||||
|
newName: "Contacts_Email"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCountTime", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "RepeatCount_Time"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCountOperator", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "RepeatCount_Operator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCountDescription", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "FirstCount_Operator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCountTime", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "FirstCount_Time"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCountOperator", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "AuditCount_Operator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "AuditCountTime", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
newName: "AuditCount_Time"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCountTime", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "RepeatCount_Time"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCountOperator", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "RepeatCount_Operator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "RepeatCountDescription", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "FirstCount_Operator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCountTime", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "FirstCount_Time"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "FirstCountOperator", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "AuditCount_Operator"); |
||||
|
|
||||
|
migrationBuilder.RenameColumn( |
||||
|
name: "AuditCountTime", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
newName: "AuditCount_Time"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "InspectUser_Email", |
||||
|
table: "Store_InspectNoteSummaryDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "InspectUser_Name", |
||||
|
table: "Store_InspectNoteSummaryDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "InspectUser_Email", |
||||
|
table: "Store_InspectNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "InspectUser_Name", |
||||
|
table: "Store_InspectNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "AuditCount_Description", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(1024)", |
||||
|
maxLength: 1024, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "AuditCount_Qty", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FirstCount_Description", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(1024)", |
||||
|
maxLength: 1024, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "FirstCount_Qty", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RepeatCount_Description", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(1024)", |
||||
|
maxLength: 1024, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "RepeatCount_Qty", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "AuditCount_Description", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(1024)", |
||||
|
maxLength: 1024, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "AuditCount_Qty", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FirstCount_Description", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(1024)", |
||||
|
maxLength: 1024, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "FirstCount_Qty", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "RepeatCount_Description", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(1024)", |
||||
|
maxLength: 1024, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "RepeatCount_Qty", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "decimal(18,6)", |
||||
|
nullable: true); |
||||
|
} |
||||
|
} |
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
File diff suppressed because it is too large
@ -0,0 +1,734 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Migrations; |
||||
|
|
||||
|
public partial class RemoveWorkGroup : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_WarehouseTransferNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_WarehouseTransferNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedReceiptRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedIssueRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedIssueNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_TransferRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_TransferRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_TransferNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_TransferNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ScrapRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ScrapNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ScrapNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_RecycledMaterialReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ReceiptAbnormalNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_PutawayRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_PutawayRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_PutawayNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_PutawayNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_PurchaseReturnRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_PurchaseReturnNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_PurchaseReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductRecycleRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductRecycleNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductRecycleMaterialDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductReceiptRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ProductionReturnRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ProductionReturnRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ProductionReturnNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ProductionReturnNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_OfflineSettlementNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_NoOkConvertOkNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_NoOkConvertOkNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_MaterialRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_JisProductReceiptNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_JisDeliverNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_JisDeliverNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ItemTransformRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ItemTransformRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ItemTransformNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ItemTransformNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_IssueNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_IssueNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_IsolationNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_IsolationNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_InventoryTransferNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_InventoryTransferNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_InventoryInitialNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_InspectNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_DeliverNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_DeliverNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_CustomerReturnNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_CustomerReturnNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountPlanDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountAdjustRequestDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountAdjustNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_BackFlushNoteDetail"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_BackFlushNote"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_WarehouseTransferNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_WarehouseTransferNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedReceiptRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedIssueRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_UnplannedIssueNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_TransferRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_TransferRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_TransferNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_TransferNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ScrapRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ScrapNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ScrapNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_RecycledMaterialReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ReceiptAbnormalNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_PutawayRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_PutawayRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_PutawayNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_PutawayNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_PurchaseReturnRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_PurchaseReturnNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_PurchaseReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductRecycleRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductRecycleNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductRecycleMaterialDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductReceiptRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_ProductReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ProductionReturnRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ProductionReturnRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ProductionReturnNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ProductionReturnNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_OfflineSettlementNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_NoOkConvertOkNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_NoOkConvertOkNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_MaterialRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_JisProductReceiptNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_JisDeliverNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_JisDeliverNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ItemTransformRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ItemTransformRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_ItemTransformNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_ItemTransformNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_IssueNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_IssueNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_IsolationNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_IsolationNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_InventoryTransferNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_InventoryTransferNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_InventoryInitialNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_InspectNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_DeliverNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_DeliverNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "FromWorkGroup", |
||||
|
table: "Store_CustomerReturnNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ToWorkGroup", |
||||
|
table: "Store_CustomerReturnNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountPlanDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountAdjustRequestDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_CountAdjustNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_BackFlushNoteDetail", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkGroup", |
||||
|
table: "Store_BackFlushNote", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
} |
||||
|
} |
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
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,125 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Migrations |
||||
|
{ |
||||
|
public partial class StoreDbEnumToString : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ReturnType", |
||||
|
table: "Store_PurchaseReturnNote", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64, |
||||
|
oldDefaultValue: "AfterPuton"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "RequestStatus", |
||||
|
table: "Store_ProductionReturnRequest", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64, |
||||
|
oldDefaultValue: "New"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "RequestStatus", |
||||
|
table: "Store_MaterialRequest", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64, |
||||
|
oldDefaultValue: "New"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Stage", |
||||
|
table: "Store_CountPlan", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64, |
||||
|
oldDefaultValue: "First"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ReturnType", |
||||
|
table: "Job_PurchaseReturnJob", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64, |
||||
|
oldDefaultValue: "AfterPuton"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ReturnType", |
||||
|
table: "Store_PurchaseReturnNote", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: "AfterPuton", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "RequestStatus", |
||||
|
table: "Store_ProductionReturnRequest", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: "New", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "RequestStatus", |
||||
|
table: "Store_MaterialRequest", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: "New", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Stage", |
||||
|
table: "Store_CountPlan", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: "First", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ReturnType", |
||||
|
table: "Job_PurchaseReturnJob", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: "AfterPuton", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64); |
||||
|
} |
||||
|
} |
||||
|
} |
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,95 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Migrations |
||||
|
{ |
||||
|
public partial class Added_Store_Add_SupplierAddress_SupplierName : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_SupplierAsn", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierName", |
||||
|
table: "Store_SupplierAsn", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_PurchaseReceiptRequest", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_PurchaseReceiptNote", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierName", |
||||
|
table: "Store_PurchaseReceiptNote", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierName", |
||||
|
table: "Store_PurchaseOrder", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Job_PurchaseReceiptJob", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_SupplierAsn"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierName", |
||||
|
table: "Store_SupplierAsn"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_PurchaseReceiptRequest"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_PurchaseReceiptNote"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierName", |
||||
|
table: "Store_PurchaseReceiptNote"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Store_PurchaseOrder"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierName", |
||||
|
table: "Store_PurchaseOrder"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierAddress", |
||||
|
table: "Job_PurchaseReceiptJob"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,68 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Migrations |
||||
|
{ |
||||
|
public partial class Store_AddColumn : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Type", |
||||
|
table: "Store_TransferNote", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64, |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReceiptNote", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectRequest", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AddColumn<int>( |
||||
|
name: "CountPrint", |
||||
|
table: "Store_DeliverNote", |
||||
|
type: "int", |
||||
|
nullable: false, |
||||
|
defaultValue: 0); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_PurchaseReceiptNote"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WarehouseCode", |
||||
|
table: "Store_InspectRequest"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CountPrint", |
||||
|
table: "Store_DeliverNote"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Type", |
||||
|
table: "Store_TransferNote", |
||||
|
type: "nvarchar(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(64)", |
||||
|
oldMaxLength: 64); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -1,45 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore; |
|
||||
using Volo.Abp.EntityFrameworkCore.Modeling; |
|
||||
using Win_in.Sfs.Label.Domain; |
|
||||
using Win_in.Sfs.Shared.Domain.Shared; |
|
||||
using Win_in.Sfs.Shared.EntityFrameworkCore; |
|
||||
using Win_in.Sfs.Wms.Store.Domain; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.EntityFrameworkCore; |
|
||||
|
|
||||
public static class SplitPackingRecDbContextModelCreatingExtensions |
|
||||
{ |
|
||||
public static void ConfigureSplitPackingRec(this ModelBuilder builder, StoreModelBuilderConfigurationOptions options) |
|
||||
{ |
|
||||
builder.Entity<SplitPackingRec>(b => |
|
||||
{ |
|
||||
//Configure table & schema name
|
|
||||
b.ToTable(options.TablePrefix + nameof(SplitPackingRec), options.Schema); |
|
||||
//Configure ABP properties
|
|
||||
b.ConfigureByConvention(); |
|
||||
//Configure Sfs base properties
|
|
||||
b.ConfigureSfsBase(); |
|
||||
|
|
||||
//Properties
|
|
||||
b.Property(q => q.OprType).IsRequired(); |
|
||||
b.Property(q => q.GroupCode).IsRequired().HasMaxLength(36); |
|
||||
b.Property(q => q.OprLevel).IsRequired(); |
|
||||
b.Property(q => q.NodeType).IsRequired(); |
|
||||
//b.Property(q => q.ParentId)
|
|
||||
b.Property(q => q.PackingCode).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); |
|
||||
b.Property(q => q.RootPackingCode).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); |
|
||||
b.Property(q => q.ItemCode).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); |
|
||||
b.Property(q => q.ItemName).IsRequired().HasMaxLength(SfsPropertyConst.NameLength); |
|
||||
b.Property(q => q.ItemDesc1).IsRequired().HasMaxLength(SfsPropertyConst.DescLength); |
|
||||
b.Property(q => q.ItemDesc2).IsRequired().HasMaxLength(SfsPropertyConst.DescLength); |
|
||||
b.Property(q => q.Lot).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); |
|
||||
b.Property(q => q.StdPackQty).HasPrecision(18, 4); |
|
||||
b.Property(q => q.Uom).HasMaxLength(50); |
|
||||
b.Property(q => q.Qty).IsRequired().HasPrecision(18,4); |
|
||||
//Indexes
|
|
||||
b.HasIndex(q => new { PackingCode = q.PackingCode }); |
|
||||
b.HasIndex(q => new { PackingCode = q.PackingCode, OprLevel = q.OprLevel }); |
|
||||
|
|
||||
}); |
|
||||
} |
|
||||
} |
|
@ -1,12 +0,0 @@ |
|||||
using Volo.Abp.EntityFrameworkCore; |
|
||||
using Win_in.Sfs.Label.Domain; |
|
||||
using Win_in.Sfs.Wms.Store.Domain; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.Store.EntityFrameworkCore; |
|
||||
|
|
||||
public class SplitPackingRecEfCoreRepository : SfsStoreEfCoreRepositoryBase<StoreDbContext, SplitPackingRec>, ISplitPackingRecRepository |
|
||||
{ |
|
||||
public SplitPackingRecEfCoreRepository(IDbContextProvider<StoreDbContext> dbContextProvider) : base(dbContextProvider) |
|
||||
{ |
|
||||
} |
|
||||
} |
|
Loading…
Reference in new issue