Files

69 lines
1.8 KiB
C#

using System.Collections.Generic;
using WmsLite.Api.Enums;
namespace WmsLite.Api.Dtos.Inventory;
public class InventoryViewDto
{
public long Id { get; set; }
public string TenantId { get; set; } = string.Empty;
public string OwnerCode { get; set; } = string.Empty;
public InventoryKind InventoryKind { get; set; }
public InventoryStatus InventoryStatus { get; set; }
public string? MaterialCode { get; set; }
public string? ContainerCode { get; set; }
public string WarehouseCode { get; set; } = string.Empty;
/// <summary>主数据解析,非库存表字段。</summary>
public string WarehouseName { get; set; } = string.Empty;
public string AreaCode { get; set; } = string.Empty;
/// <summary>主数据解析。</summary>
public string AreaName { get; set; } = string.Empty;
public string ZoneCode { get; set; } = string.Empty;
/// <summary>主数据解析,分区名称。</summary>
public string ZoneName { get; set; } = string.Empty;
public string LocationCode { get; set; } = string.Empty;
/// <summary>主数据解析,非库存表字段。</summary>
public string MaterialName { get; set; } = string.Empty;
public decimal Qty { get; set; }
public decimal AvailableQty { get; set; }
public decimal PendingInboundQty { get; set; }
public decimal PendingOutboundQty { get; set; }
public decimal FrozenQty { get; set; }
public string Unit { get; set; } = string.Empty;
public Dictionary<string, object>? Attrs { get; set; }
public List<TemplateFieldDto>? ConfigFields { get; set; }
}
public class TemplateFieldDto
{
public string Field { get; set; } = string.Empty;
public string Label { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty;
public object? Value { get; set; }
}