修复bug

This commit is contained in:
18942506660
2023-11-14 16:11:59 +08:00
parent e27c4ae5de
commit d02668a871
3 changed files with 14 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using WMS.Web.Core;
using WMS.Web.Domain.Values;
namespace WMS.Web.Domain.Entitys
{
@@ -14,7 +15,7 @@ namespace WMS.Web.Domain.Entitys
public class SerialNumbers : EntityBase
{
public SerialNumbers() { }
public SerialNumbers(string serialNumber,int materialId,int boxId,int opsBoxId,string creator,DateTime? createTime)
public SerialNumbers(string serialNumber, int materialId, int boxId, int opsBoxId, string creator, DateTime? createTime)
{
this.SerialNumber = serialNumber;
this.MaterialId = materialId;
@@ -88,18 +89,20 @@ namespace WMS.Web.Domain.Entitys
/// 出库
/// </summary>
/// <param name="outStockBillNo">出库单号</param>
public void OutStock(string outStockBillNo)
public void OutStock(string outStockBillNo, OutStockType type)
{
this.BoxId = 0;
this.OutStockBillNo = outStockBillNo;
if (type == OutStockType.Sal)
this.OutStockBillNo = outStockBillNo;
}
/// <summary>
///
///
/// </summary>
/// <param name="inStockBillNo">出库单号</param>
public void InStock(string inStockBillNo)
public void InStock(string inStockBillNo, InstockType type)
{
this.InStockBillNo = inStockBillNo;
if (type == InstockType.Purchase)
this.InStockBillNo = inStockBillNo;
}
}
}