OrderResourceCheckDto.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. namespace Admin.NET.Plugin.AiDOP.Order;
  2. /// <summary>资源检查 BOM 行(计算中间态)</summary>
  3. public class ResourceCheckBomLine
  4. {
  5. public long Fid { get; set; }
  6. public long? ParentFid { get; set; }
  7. public long? BomChildId { get; set; }
  8. public string Num { get; set; } = "1";
  9. public int Level { get; set; } = 1;
  10. public int Type { get; set; }
  11. public string ItemNumber { get; set; } = string.Empty;
  12. public string? ItemName { get; set; }
  13. public string? Model { get; set; }
  14. public string? Unit { get; set; }
  15. public string? BomNumber { get; set; }
  16. public int ErpCls { get; set; }
  17. public string? ErpClsName { get; set; }
  18. public int Backflush { get; set; }
  19. public decimal Qty { get; set; }
  20. public decimal Wastage { get; set; }
  21. public decimal Scrap { get; set; }
  22. public decimal NeedCount { get; set; }
  23. public decimal NeedCountNoLoss { get; set; }
  24. public decimal StockQty { get; set; }
  25. public decimal UseQty { get; set; }
  26. public decimal Sqty { get; set; }
  27. public decimal SelfLackQty { get; set; }
  28. public decimal LackQty { get; set; }
  29. public decimal MoQty { get; set; }
  30. public decimal MakeQty { get; set; }
  31. public decimal PurchaseQty { get; set; }
  32. public decimal PurchaseOccupyQty { get; set; }
  33. public DateTime? KittingTime { get; set; }
  34. public DateTime? SatisfyTime { get; set; }
  35. public int IsBom { get; set; }
  36. public int HaveIcSubs { get; set; }
  37. public string? SubstituteCode { get; set; }
  38. public int IsUse { get; set; } = 1;
  39. }
  40. /// <summary>单条订单行资源检查结果</summary>
  41. public class OrderResourceCheckResult
  42. {
  43. public long ExamineId { get; set; }
  44. public int LineCount { get; set; }
  45. public bool HasShortage { get; set; }
  46. public DateTime? KittingTime { get; set; }
  47. }