仓储-提交

This commit is contained in:
tongfei
2023-10-27 11:17:32 +08:00
parent fad33c0d31
commit d002904d44
4 changed files with 172 additions and 9 deletions

View File

@@ -51,5 +51,30 @@ namespace WMS.Web.Domain.Entitys
/// </summary>
[NotMapped]
public List<InStockTaskDetails> Details = new List<InStockTaskDetails>();
/// <summary>
/// 创建订单号
/// </summary>
/// <param name="newId"></param>
public void MakeBillNo(int newId)
{
//生成订单号
var length = newId.ToString().Length;
if (length >= 8)
{
this.BillNo = $"RKRW{newId.ToString()}";
}
else
{
var needLength = 8 - length;
var needStr = "";
for (int i = 0; i < needLength; i++)
{
needStr += "0";
}
this.BillNo = "RKRW" + needStr + newId.ToString();
}
}
}
}