修复bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user