Files
WMSlite/WmsLite.Api/Dtos/Inventory/InventoryViewDto.cs
T
zhougfandCursor fa1b286463 Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
Implement API security baseline (sys_user, JWT, audit fields, transactions,
unique constraints) and Web real login with 401 handling. Document setup
and development workflows in root, WmsLite.Api, and WmsLite.Web README files.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-24 14:17:47 +08:00

67 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 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; }
}