ic_bom.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace Business.Domain
  6. {
  7. /// <summary>
  8. /// 物料BOM
  9. /// </summary>
  10. [CollectionName("dopbase", "ic_bom")]
  11. [Comment("物料BOM")]
  12. [Index(nameof(bom_number), nameof(item_number), nameof(version), nameof(tenant_id), nameof(company_id), nameof(factory_id),IsUnique = true)]
  13. public class ic_bom : BaseEntity
  14. {
  15. public ic_bom(long Id) : base(Id)
  16. {
  17. }
  18. /// <summary>
  19. /// bom单编号
  20. /// </summary>
  21. [StringLength(20)]
  22. [Comment("bom单编号")]
  23. public string bom_number { get; set; }
  24. /// <summary>
  25. /// 物料id
  26. /// </summary>
  27. [Required]
  28. [Comment("物料id")]
  29. public long icitem_id { get; set; }
  30. /// <summary>
  31. /// 物料代码
  32. /// </summary>
  33. [StringLength(80)]
  34. [Comment("物料代码")]
  35. public string item_number { get; set; }
  36. /// <summary>
  37. /// 物料名称
  38. /// </summary>
  39. [StringLength(200)]
  40. [Comment("物料名称")]
  41. public string item_name { get; set; }
  42. /// <summary>
  43. /// 序号
  44. /// </summary>
  45. [Comment("序号")]
  46. public int? bom_num { get; set; }
  47. /// <summary>
  48. /// 使用状态
  49. /// </summary>
  50. [Comment("使用状态")]
  51. public int? use_status { get; set; }
  52. /// <summary>
  53. /// 生效日期
  54. /// </summary>
  55. [Comment("生效日期")]
  56. public DateTime? begin_day { get; set; }
  57. /// <summary>
  58. /// 失效日期
  59. /// </summary>
  60. [Comment("失效日期")]
  61. public DateTime? end_day { get; set; }
  62. /// <summary>
  63. /// 工艺主键
  64. /// </summary>
  65. [Comment("工艺主键")]
  66. public long? tech_id { get; set; }
  67. /// <summary>
  68. /// 工艺名称
  69. /// </summary>
  70. [StringLength(255)]
  71. [Comment("工艺名称")]
  72. public string tech_name { get; set; }
  73. /// <summary>
  74. /// 生产负责人
  75. /// </summary>
  76. [StringLength(80)]
  77. [Comment("生产负责人")]
  78. public string product_principal { get; set; }
  79. /// <summary>
  80. /// 产品设计员
  81. /// </summary>
  82. [StringLength(80)]
  83. [Comment("产品设计员")]
  84. public string product_designer { get; set; }
  85. /// <summary>
  86. /// 版本
  87. /// </summary>
  88. [StringLength(80)]
  89. [Comment("版本")]
  90. public string version { get; set; }
  91. /// <summary>
  92. /// 图表编号
  93. /// </summary>
  94. [StringLength(80)]
  95. [Comment("图表编号")]
  96. public string chartnumber { get; set; }
  97. /// <summary>
  98. /// 图片
  99. /// </summary>
  100. [StringLength(80)]
  101. [Comment("图片")]
  102. public string biller { get; set; }
  103. /// <summary>
  104. /// 检验人
  105. /// </summary>
  106. [StringLength(80)]
  107. [Comment("检验人")]
  108. public string checker { get; set; }
  109. /// <summary>
  110. /// 检验时间
  111. /// </summary>
  112. [Comment("检验时间")]
  113. public DateTime? check_date { get; set; }
  114. /// <summary>
  115. /// bom创建人
  116. /// </summary>
  117. [StringLength(20)]
  118. [Comment("bom创建人")]
  119. public string user { get; set; }
  120. /// <summary>
  121. /// bom创建时间
  122. /// </summary>
  123. [Comment("bom创建时间")]
  124. public DateTime? use_date { get; set; }
  125. /// <summary>
  126. /// 单位
  127. /// </summary>
  128. [StringLength(20)]
  129. [Comment("单位")]
  130. public string unit { get; set; }
  131. }
  132. }