using System.Collections.Generic;
using WmsLite.Api.Enums;
namespace WmsLite.Api.Dtos.Orders;
/// 入库/出库订单行(结构一致)。
public class InventoryOrderLineViewDto
{
public string Id { get; set; } = string.Empty;
public string OrderId { get; set; } = string.Empty;
public int LineNo { get; set; }
public InventoryKind InventoryKind { get; set; }
public string? MaterialCode { get; set; }
public string? ContainerCode { get; set; }
public string WarehouseCode { get; set; } = string.Empty;
public string AreaCode { get; set; } = string.Empty;
public string LocationCode { get; set; } = string.Empty;
public decimal Qty { get; set; }
/// 已入库数量(累计)。
public decimal ReceivedQty { get; set; }
/// 剩余可入库数量(计划 − 已收)。
public decimal RemainingQty { get; set; }
public OrderLineStatus LineStatus { get; set; }
public string Unit { get; set; } = string.Empty;
/// 物料主数据计量单位(物料行可由列表接口联表带出,用于入库确认的展示与单位依据)。
public string? MaterialMasterUnit { get; set; }
public Dictionary? Attrs { get; set; }
}
public class TransferOrderLineViewDto
{
public string Id { get; set; } = string.Empty;
public string OrderId { get; set; } = string.Empty;
public int LineNo { get; set; }
public InventoryKind InventoryKind { get; set; }
public string? MaterialCode { get; set; }
public string? ContainerCode { get; set; }
public string FromWarehouseCode { get; set; } = string.Empty;
public string FromAreaCode { get; set; } = string.Empty;
public string FromLocationCode { get; set; } = string.Empty;
public string ToWarehouseCode { get; set; } = string.Empty;
public string ToAreaCode { get; set; } = string.Empty;
public string ToLocationCode { get; set; } = string.Empty;
public decimal Qty { get; set; }
public string Unit { get; set; } = string.Empty;
public Dictionary? Attrs { get; set; }
}
public class StocktakeOrderLineViewDto : InventoryOrderLineViewDto
{
public decimal CountedQty { get; set; }
}