移箱增加仓库
This commit is contained in:
@@ -31,6 +31,11 @@ namespace WMS.Web.Domain.Entitys
|
||||
[Column("BoxId")]
|
||||
public int BoxId { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库
|
||||
///</summary>
|
||||
[Column("StockCode")]
|
||||
public string StockCode { get; set; }
|
||||
/// <summary>
|
||||
/// 原仓位编码
|
||||
/// </summary>
|
||||
[Column("SrcSubStockId")]
|
||||
@@ -65,10 +70,11 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// 创建
|
||||
/// </summary>
|
||||
/// <param name="creatorId"></param>
|
||||
public void Create(MoveBoxType type, int boxId, int subStockId, int creatorId)
|
||||
public void Create(MoveBoxType type, int boxId, string stockCode, int subStockId, int creatorId)
|
||||
{
|
||||
this.BoxId = boxId;
|
||||
this.Type = type;
|
||||
this.StockCode = stockCode;
|
||||
SrcSubStockId = type == MoveBoxType.Up ? 0 : subStockId;//上架 原仓位是0 目标仓位有值
|
||||
DestSubStockId = type == MoveBoxType.Up ? subStockId : 0; //下架 原仓位有值 目标仓位是0
|
||||
this.CreatorId = creatorId;
|
||||
|
||||
Reference in New Issue
Block a user