Files
kunshan-bzfm-mes-backend/DOAN.Model/MES/Material/Dto/ShipmentDto.cs
git_rabbit 4d5893d124 feat(库存管理): 添加出货操作功能
实现物料出货功能,包括库存校验、事务处理、单据生成和关联订单/工单更新
支持蓝单正向和红单逆向操作,包含完整的参数校验和错误处理
2026-01-28 14:52:32 +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.ComponentModel.DataAnnotations;
namespace DOAN.Model.BZFM.Dto
{
/// <summary>
/// 出货请求参数
/// </summary>
public class ShipmentDto
{
[Required(ErrorMessage = "物料编码不能为空")]
public string MaterialCode { get; set; }
[Required(ErrorMessage = "出货数量不能为空")]
public decimal Quantity { get; set; }
[Required(ErrorMessage = "仓库编码不能为空")]
public string WarehouseCode { get; set; }
[Required(ErrorMessage = "库位编码不能为空")]
public string LocationCode { get; set; }
public string BatchNo { get; set; }
[Required(ErrorMessage = "操作员不能为空")]
public string Operator { get; set; }
public string Workorder { get; set; }
public string WorkorderRaw { get; set; }
public string OrderNo { get; set; }
[Required(ErrorMessage = "交易类型不能为空")]
public string TransactionType { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remarks { get; set; }
/// <summary>
/// 客户订单号
/// </summary>
[Required(ErrorMessage = "客户订单号不能为空")]
public string CustomerOrder { get; set; }
/// <summary>
/// 单据类型1-蓝单正向2-红单逆向
/// </summary>
public int ReceiptType { get; set; } = 1;
}
}