add test and outbound test
This commit is contained in:
1 parent
38ecbf82e5
commit
7f621dd553
23 files changed
+1301
-26
No files matched your search
@@ -0,0 +1,57 @@
|
||||
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; }
|
||||
}
|
||||
Reference in new issue
Block a user