namespace Admin.NET.Plugin.AiDOP.Order;
/// 资源检查 BOM 行(计算中间态)
public class ResourceCheckBomLine
{
public long Fid { get; set; }
public long? ParentFid { get; set; }
public long? BomChildId { get; set; }
public string Num { get; set; } = "1";
public int Level { get; set; } = 1;
public int Type { get; set; }
public string ItemNumber { get; set; } = string.Empty;
public string? ItemName { get; set; }
public string? Model { get; set; }
public string? Unit { get; set; }
public string? BomNumber { get; set; }
public int ErpCls { get; set; }
public string? ErpClsName { get; set; }
public int Backflush { get; set; }
public decimal Qty { get; set; }
public decimal Wastage { get; set; }
public decimal Scrap { get; set; }
public decimal NeedCount { get; set; }
public decimal NeedCountNoLoss { get; set; }
public decimal StockQty { get; set; }
public decimal UseQty { get; set; }
public decimal Sqty { get; set; }
public decimal SelfLackQty { get; set; }
public decimal LackQty { get; set; }
public decimal MoQty { get; set; }
public decimal MakeQty { get; set; }
public decimal PurchaseQty { get; set; }
public decimal PurchaseOccupyQty { get; set; }
public DateTime? KittingTime { get; set; }
public DateTime? SatisfyTime { get; set; }
public int IsBom { get; set; }
public int HaveIcSubs { get; set; }
public string? SubstituteCode { get; set; }
public int IsUse { get; set; } = 1;
}
/// 单条订单行资源检查结果
public class OrderResourceCheckResult
{
public long ExamineId { get; set; }
public int LineCount { get; set; }
public bool HasShortage { get; set; }
public DateTime? KittingTime { get; set; }
}