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>
82 lines
2.3 KiB
C#
82 lines
2.3 KiB
C#
using System.Collections.Generic;
|
||
using WmsLite.Api.Enums;
|
||
|
||
namespace WmsLite.Api.Dtos.Orders;
|
||
|
||
/// <summary>入库/出库订单行(结构一致)。</summary>
|
||
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; }
|
||
|
||
/// <summary>已入库数量(累计)。</summary>
|
||
public decimal ReceivedQty { get; set; }
|
||
|
||
/// <summary>剩余可入库数量(计划 − 已收)。</summary>
|
||
public decimal RemainingQty { get; set; }
|
||
|
||
public OrderLineStatus LineStatus { get; set; }
|
||
|
||
public string Unit { get; set; } = string.Empty;
|
||
|
||
/// <summary>物料主数据计量单位(物料行可由列表接口联表带出,用于入库确认的展示与单位依据)。</summary>
|
||
public string? MaterialMasterUnit { get; set; }
|
||
|
||
public Dictionary<string, object>? 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<string, object>? Attrs { get; set; }
|
||
}
|
||
|
||
public class StocktakeOrderLineViewDto : InventoryOrderLineViewDto
|
||
{
|
||
public decimal CountedQty { get; set; }
|
||
}
|