ReplenishmentServiceLevel.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace Business.Domain
  5. {
  6. /// <summary>
  7. ///补货模型物料Z服务水平
  8. /// </summary>
  9. [Comment("补货模型物料abcfmr")]
  10. [Index(nameof(number), nameof(tenant_id), nameof(fversion),nameof(isstandalone), nameof(factory_id), IsUnique = true)]
  11. public class ReplenishmentServiceLevel : BaseEntity
  12. {
  13. /// <summary>
  14. /// 物料编码
  15. /// </summary>
  16. [StringLength(80)]
  17. [Comment("物料编码")]
  18. public string number { get; set; }
  19. /// <summary>
  20. /// 物料名称
  21. /// </summary>
  22. [StringLength(200)]
  23. [Comment("物料名称")]
  24. public string name { get; set; }
  25. /// <summary>
  26. /// 规格型号
  27. /// </summary>
  28. [StringLength(200)]
  29. [Comment("规格型号")]
  30. public string model { get; set; }
  31. /// <summary>
  32. /// RS50成品 RS30 组件 RS11 原材料 RS12 零件 RS13 包装材料 RS14 辅料 RS15 低值易耗品 RS99 虚拟物料
  33. /// </summary>
  34. [StringLength(50)]
  35. [Comment("物料类型")]
  36. public string item_type { get; set; }
  37. /// <summary>
  38. /// 版本号
  39. /// </summary>
  40. [StringLength(80)]
  41. [Comment("版本号")]
  42. public string? fversion { get; set; }
  43. /// <summary>
  44. /// 存货金额
  45. /// </summary>
  46. [Precision(20, 8)]
  47. [Comment("存货金额")]
  48. public decimal? inventoryamount { get; set; }
  49. /// <summary>
  50. /// 出库金额
  51. /// </summary>
  52. [Precision(20, 8)]
  53. [Comment("出库金额")]
  54. public decimal? outstockamount { get; set; }
  55. /// <summary>
  56. /// 金额占比
  57. /// </summary>
  58. [Precision(20, 8)]
  59. [Comment("金额占比")]
  60. public decimal? amountpercent { get; set; }
  61. /// <summary>
  62. /// ABC分类
  63. /// </summary>
  64. [StringLength(8)]
  65. [Comment("ABC分类")]
  66. public string? abc { get; set; }
  67. /// <summary>
  68. /// 出库次数
  69. /// </summary>
  70. [Precision(20, 8)]
  71. [Comment("出库次数")]
  72. public decimal? outstockcount { get; set; }
  73. /// <summary>
  74. /// 移动次数
  75. /// </summary>
  76. [Precision(20, 8)]
  77. [Comment("移动次数/月")]
  78. public decimal? movecount { get; set; }
  79. /// <summary>
  80. /// 次数占比
  81. /// </summary>
  82. [Precision(20, 8)]
  83. [Comment("次数占比")]
  84. public decimal? moveperent { get; set; }
  85. /// <summary>
  86. /// FMR分类
  87. /// </summary>
  88. [StringLength(8)]
  89. [Comment("FMR分类")]
  90. public string? fmr { get; set; }
  91. /// <summary>
  92. /// Z服务水平参数
  93. /// </summary>
  94. [Precision(20, 8)]
  95. [Comment("Z服务水平参数")]
  96. public decimal? service_level_pct { get; set; }
  97. /// <summary>
  98. /// 是否独立计算,成品跟产品计算,原材料跟原材料计算
  99. /// </summary>
  100. [Comment("是否独立计算,成品跟产品计算,原材料跟原材料计算")]
  101. public bool isstandalone { get; set; }
  102. }
  103. }