Files
WMSlite/WmsLite.Api/Models/OutboundPickTask.cs
T
2026-06-01 23:30:36 +08:00

58 lines
2.2 KiB
C#

using System.Collections.Generic;
using SqlSugar;
using WmsLite.Api.Enums;
namespace WmsLite.Api.Models;
[SugarTable("outbound_pick_task")]
public class OutboundPickTask : BaseEntity
{
[SugarColumn(ColumnName = "order_id", IsNullable = false)]
public long OrderId { get; set; }
[SugarColumn(ColumnName = "order_line_id", IsNullable = false)]
public long OrderLineId { get; set; }
[SugarColumn(ColumnName = "task_no", Length = 128, IsNullable = false)]
public string TaskNo { get; set; } = string.Empty;
[SugarColumn(ColumnName = "inventory_id", IsNullable = false)]
public long InventoryId { get; set; }
[SugarColumn(ColumnName = "inventory_kind", IsNullable = false)]
public InventoryKind InventoryKind { get; set; } = InventoryKind.Material;
[SugarColumn(ColumnName = "material_code", Length = 64, IsNullable = true)]
public string? MaterialCode { get; set; }
[SugarColumn(ColumnName = "container_code", Length = 64, IsNullable = true)]
public string? ContainerCode { get; set; }
[SugarColumn(ColumnName = "warehouse_code", Length = 64, IsNullable = false)]
public string WarehouseCode { get; set; } = string.Empty;
[SugarColumn(ColumnName = "area_code", Length = 64, IsNullable = false)]
public string AreaCode { get; set; } = string.Empty;
[SugarColumn(ColumnName = "zone_code", Length = 64, IsNullable = false)]
public string ZoneCode { get; set; } = string.Empty;
[SugarColumn(ColumnName = "location_code", Length = 64, IsNullable = false)]
public string LocationCode { get; set; } = string.Empty;
[SugarColumn(ColumnName = "qty", IsNullable = false)]
public decimal Qty { get; set; }
[SugarColumn(ColumnName = "picked_qty", IsNullable = false, DefaultValue = "0")]
public decimal PickedQty { get; set; }
[SugarColumn(ColumnName = "unit", Length = 32, IsNullable = false)]
public string Unit { get; set; } = string.Empty;
[SugarColumn(ColumnName = "task_status", IsNullable = false)]
public PickTaskStatus TaskStatus { get; set; } = PickTaskStatus.Open;
[SugarColumn(ColumnName = "attrs", IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
public Dictionary<string, object>? Attrs { get; set; }
}