移箱增加仓库
This commit is contained in:
@@ -873,6 +873,11 @@
|
|||||||
箱号ID
|
箱号ID
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:WMS.Web.Domain.Entitys.MoveBoxRecord.StockCode">
|
||||||
|
<summary>
|
||||||
|
仓库
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:WMS.Web.Domain.Entitys.MoveBoxRecord.SrcSubStockId">
|
<member name="P:WMS.Web.Domain.Entitys.MoveBoxRecord.SrcSubStockId">
|
||||||
<summary>
|
<summary>
|
||||||
原仓位编码
|
原仓位编码
|
||||||
@@ -903,7 +908,7 @@
|
|||||||
操作时间
|
操作时间
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:WMS.Web.Domain.Entitys.MoveBoxRecord.Create(WMS.Web.Domain.Values.MoveBoxType,System.Int32,System.Int32,System.Int32)">
|
<member name="M:WMS.Web.Domain.Entitys.MoveBoxRecord.Create(WMS.Web.Domain.Values.MoveBoxType,System.Int32,System.String,System.Int32,System.Int32)">
|
||||||
<summary>
|
<summary>
|
||||||
创建
|
创建
|
||||||
</summary>
|
</summary>
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
[Column("BoxId")]
|
[Column("BoxId")]
|
||||||
public int BoxId { get; set; }
|
public int BoxId { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 仓库
|
||||||
|
///</summary>
|
||||||
|
[Column("StockCode")]
|
||||||
|
public string StockCode { get; set; }
|
||||||
|
/// <summary>
|
||||||
/// 原仓位编码
|
/// 原仓位编码
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("SrcSubStockId")]
|
[Column("SrcSubStockId")]
|
||||||
@@ -65,10 +70,11 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
/// 创建
|
/// 创建
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="creatorId"></param>
|
/// <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.BoxId = boxId;
|
||||||
this.Type = type;
|
this.Type = type;
|
||||||
|
this.StockCode = stockCode;
|
||||||
SrcSubStockId = type == MoveBoxType.Up ? 0 : subStockId;//上架 原仓位是0 目标仓位有值
|
SrcSubStockId = type == MoveBoxType.Up ? 0 : subStockId;//上架 原仓位是0 目标仓位有值
|
||||||
DestSubStockId = type == MoveBoxType.Up ? subStockId : 0; //下架 原仓位有值 目标仓位是0
|
DestSubStockId = type == MoveBoxType.Up ? subStockId : 0; //下架 原仓位有值 目标仓位是0
|
||||||
this.CreatorId = creatorId;
|
this.CreatorId = creatorId;
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
foreach (var d in dto)
|
foreach (var d in dto)
|
||||||
{
|
{
|
||||||
var entity = new MoveBoxRecord();
|
var entity = new MoveBoxRecord();
|
||||||
entity.Create(IsUp == true ? MoveBoxType.Up : MoveBoxType.Down, d.BoxId, d.SubStockId, loginInfo.UserInfo.StaffId);
|
entity.Create(IsUp == true ? MoveBoxType.Up : MoveBoxType.Down, d.BoxId, d.StockCode, d.SubStockId, loginInfo.UserInfo.StaffId);
|
||||||
entityList.Add(entity);
|
entityList.Add(entity);
|
||||||
}
|
}
|
||||||
var inventoryList = dto.Select(s => new BoxInventoryMoveGenerateDto()
|
var inventoryList = dto.Select(s => new BoxInventoryMoveGenerateDto()
|
||||||
@@ -147,7 +147,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
BoxId = s.BoxId,
|
BoxId = s.BoxId,
|
||||||
SubStockId = s.SubStockId,
|
SubStockId = s.SubStockId,
|
||||||
InventoryInOutType = IsUp == true ? 1 : 2,
|
InventoryInOutType = IsUp == true ? 1 : 2,
|
||||||
StockCode=s.StockCode
|
StockCode = s.StockCode
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();
|
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();
|
||||||
|
|||||||
Reference in New Issue
Block a user