ReplenishmentServiceLevel.cs 3.5 KB

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