增加序列号冻结启用

This commit is contained in:
18942506660
2024-04-07 16:47:30 +08:00
parent 235ca654e8
commit 40e4b7a1d1
8 changed files with 85 additions and 26 deletions

View File

@@ -93,10 +93,10 @@ namespace WMS.Web.Domain.Entitys
[Column("CustomerId")]
public int CustomerId { get; set; } = 0;
/// <summary>
/// 是否出库
/// 是否删除
///</summary>
[Column("IsOutStock")]
public bool? IsOutStock { get; set; } = false;
[Column("IsDelete")]
public bool? IsDelete { get; set; } = false;
/// <summary>
/// 操作(绑定箱信息)
@@ -132,7 +132,7 @@ namespace WMS.Web.Domain.Entitys
this.OutStockTime = DateTime.Now;
}
//标识出库
this.IsOutStock = true;
this.IsDelete = true;
}
/// <summary>
/// 入库
@@ -146,5 +146,44 @@ namespace WMS.Web.Domain.Entitys
this.InStockTime = DateTime.Now;
}
}
/// <summary>
/// 移箱
/// </summary>
/// <param name="type"></param>
public void MoveBox(MoveBoxType type)
{
//拣货出库, 整箱移货下架, 入库回退下架---- 序列号状态失效
//盘点, 整箱移货上架, 出库回退上架----序列号正常可用
this.IsDelete = type == MoveBoxType.Up ? false : true;
}
/// <summary>
/// 出入库回退
/// </summary>
/// <param name="type"></param>
/// <param name="boxId"></param>
public void BackRecord(BackRecordType type, int boxId)
{
//拣货出库, 整箱移货下架, 入库回退下架---- 序列号状态失效
//盘点, 整箱移货上架, 出库回退上架----序列号正常可用
if (BackRecordType.OutstockOn == type)
{
this.BoxId = boxId;
this.IsDelete = false;
}
else
this.IsDelete = true;
}
/// <summary>
/// 盘点
/// </summary>
public void TakeStock(int boxId)
{
//拣货出库, 整箱移货下架, 入库回退下架---- 序列号状态失效
//盘点, 整箱移货上架, 出库回退上架----序列号正常可用
this.BoxId = boxId;
this.IsDelete = false;
}
}
}

View File

@@ -84,7 +84,7 @@ namespace WMS.Web.Domain.Entitys
/// <summary>
/// 是否出库
///</summary>
[Column("IsOutStock")]
public bool? IsOutStock { get; set; } = false;
[Column("IsDelete")]
public bool? IsDelete { get; set; } = false;
}
}