增加接口

This commit is contained in:
18942506660
2023-12-14 14:16:35 +08:00
parent 47057a7458
commit f083dc810c
4 changed files with 105 additions and 1 deletions

View File

@@ -10,6 +10,12 @@ namespace WMS.Web.Core.Dto.ChangeBoxRecord
/// </summary>
public class SaveChangeBoxRecordRequest
{
public SaveChangeBoxRecordRequest() { }
public SaveChangeBoxRecordRequest(int srcBoxId, int destBoxId)
{
this.SrcBoxId = srcBoxId;
this.DestBoxId = destBoxId;
}
/// <summary>
/// 原箱子ID
/// </summary>
@@ -34,6 +40,19 @@ namespace WMS.Web.Core.Dto.ChangeBoxRecord
/// </summary>
public class SaveChangeBoxRecordDetailsRequest
{
public SaveChangeBoxRecordDetailsRequest() { }
public SaveChangeBoxRecordDetailsRequest(int materialId, decimal qty, List<string> serialNumbers)
{
this.MaterialId = materialId;
this.Qty = qty;
this.SerialNumbers = serialNumbers;
}
public SaveChangeBoxRecordDetailsRequest(int materialId, decimal qty, string serialNumber)
{
this.MaterialId = materialId;
this.Qty = qty;
this.SerialNumbers.Add(serialNumber);
}
/// <summary>
/// 物料ID
/// </summary>