namespace Admin.NET.Plugin.AiDOP.Entity;
/// 订单(看板基础查询用,对应旧版 ado_order 表)
[IgnoreTable]
[SugarTable("ado_order")]
public class AdoOrder
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
[SugarColumn(IsNullable = true, Length = 200)]
public string? Product { get; set; }
[SugarColumn(IsNullable = true, Length = 100)]
public string? OrderNo { get; set; }
}
/// 工单(看板基础查询用,对应旧版 ado_work_order 表)
[IgnoreTable]
[SugarTable("ado_work_order")]
public class AdoWorkOrder
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
[SugarColumn(IsNullable = true, Length = 200)]
public string? Product { get; set; }
[SugarColumn(IsNullable = true, Length = 100)]
public string? WorkCenter { get; set; }
}
/// 计划(看板基础查询用,对应旧版 ado_plan 表)
[IgnoreTable]
[SugarTable("ado_plan")]
public class AdoPlan
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
[SugarColumn(IsNullable = true, Length = 200)]
public string? ProductName { get; set; }
}
/// 通用代码主数据(legacy GeneralizedCodeMaster 只读投影,用于 BarcodeStatus 等状态码翻译)。
[IgnoreTable]
[SugarTable("GeneralizedCodeMaster")]
public class AdoGeneralizedCodeRecord
{
[SugarColumn(ColumnName = "RecID", IsPrimaryKey = true)]
public long Id { get; set; }
[SugarColumn(ColumnName = "FldName", Length = 100, IsNullable = true)]
public string? FldName { get; set; }
[SugarColumn(ColumnName = "Val", Length = 50)]
public string Val { get; set; } = "";
[SugarColumn(ColumnName = "Comments", Length = 50, IsNullable = true)]
public string? Comments { get; set; }
}