Files
WMS-Api/src/WMS.Web.Core/Dto/OutStock/SaveOutStockRequest.cs
2023-12-13 14:28:14 +08:00

52 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace WMS.Web.Core.Dto.OutStock
{
/// <summary>
/// 出库单保存
/// </summary>
public class SaveOutStockRequest
{
/// <summary>
/// 出库任务单Id
///</summary>
[Required(ErrorMessage = "出库单不能为空")]
public int TaskId { get; set; }
/// <summary>
/// 出库方式 必填1-box按箱2-product按产品
/// </summary>
[Required(ErrorMessage = "出库方式不能为空")]
public int Method { get; set; }
public List<SaveOutStockDetailsRequest> Details { get; set; } = new List<SaveOutStockDetailsRequest>();
}
public class SaveOutStockDetailsRequest
{
/// <summary>
/// 物料Id
///</summary>
public int MaterialId { get; set; }
/// <summary>
/// 出库数量
///</summary>
[Range(0.999999999, 10000000000, ErrorMessage = "数量必须大于等于1")]
public decimal Qty { get; set; }
/// <summary>
/// 箱Id
///</summary>
[Required(ErrorMessage = "箱不能为空")]
public int BoxId { get; set; }
/// <summary>
/// 箱对应仓位不能为空
/// </summary>
public int SubStockId { get; set; }
/// <summary>
/// 序列号集
/// </summary>
public List<string> SerialNumbers { get; set; } = new List<string>();
}
}