调整序列码状态
This commit is contained in:
@@ -97,6 +97,11 @@ namespace WMS.Web.Domain.Entitys
|
||||
///</summary>
|
||||
[Column("IsDelete")]
|
||||
public bool? IsDelete { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否激活过(只有做过 盘点 采购和非采购上架 出库回退上架 才算激活)
|
||||
///</summary>
|
||||
[Column("IsActivate")]
|
||||
public bool? IsActivate { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 操作(绑定箱信息)
|
||||
@@ -140,6 +145,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// <param name="inStockBillNo">出库单号</param>
|
||||
public void InStock(string inStockBillNo, InstockType type)
|
||||
{
|
||||
this.IsActivate = true;
|
||||
if (type == InstockType.Purchase)
|
||||
{
|
||||
this.PurchaseBillNo = inStockBillNo;
|
||||
@@ -168,6 +174,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
//盘点, 整箱移货上架, 出库回退上架----序列号正常可用
|
||||
if (BackRecordType.OutstockOn == type)
|
||||
{
|
||||
this.IsActivate = true;
|
||||
this.BoxId = boxId;
|
||||
this.IsDelete = false;
|
||||
}
|
||||
@@ -177,12 +184,14 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// <summary>
|
||||
/// 盘点
|
||||
/// </summary>
|
||||
public void TakeStock(int boxId)
|
||||
public void TakeStock(int boxId, TakeStockType type)
|
||||
{
|
||||
//拣货出库, 整箱移货下架, 入库回退下架---- 序列号状态失效
|
||||
//盘点, 整箱移货上架, 出库回退上架----序列号正常可用
|
||||
this.BoxId = boxId;
|
||||
this.IsDelete = false;
|
||||
//盘亏被冻结 盘盈反冻结
|
||||
this.IsDelete = type == TakeStockType.Profit ? true : false;
|
||||
this.IsActivate = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -86,5 +86,10 @@ namespace WMS.Web.Domain.Entitys
|
||||
///</summary>
|
||||
[Column("IsDelete")]
|
||||
public bool? IsDelete { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否激活过(只有做过 盘点 采购和非采购上架 出库回退上架 才算激活)
|
||||
///</summary>
|
||||
[Column("IsActivate")]
|
||||
public bool? IsActivate { get; set; } = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user