ic_bom.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. [Required]
  66. [Comment("工艺主键")]
  67. public long tech_id { get; set; }
  68. /// <summary>
  69. /// 工艺名称
  70. /// </summary>
  71. [StringLength(20)]
  72. [Comment("工艺名称")]
  73. public string? tech_name { get; set; }*/
  74. /// <summary>
  75. /// 生产负责人
  76. /// </summary>
  77. [StringLength(80)]
  78. [Comment("生产负责人")]
  79. public string product_principal { get; set; }
  80. /// <summary>
  81. /// 产品设计员
  82. /// </summary>
  83. [StringLength(80)]
  84. [Comment("产品设计员")]
  85. public string product_designer { get; set; }
  86. /// <summary>
  87. /// 版本
  88. /// </summary>
  89. [StringLength(80)]
  90. [Comment("版本")]
  91. public string version { get; set; }
  92. /// <summary>
  93. /// 图表编号
  94. /// </summary>
  95. [StringLength(80)]
  96. [Comment("图表编号")]
  97. public string chartnumber { get; set; }
  98. /// <summary>
  99. /// 图片
  100. /// </summary>
  101. [StringLength(80)]
  102. [Comment("图片")]
  103. public string biller { get; set; }
  104. /// <summary>
  105. /// 检验人
  106. /// </summary>
  107. [StringLength(80)]
  108. [Comment("检验人")]
  109. public string checker { get; set; }
  110. /// <summary>
  111. /// 检验时间
  112. /// </summary>
  113. [Comment("检验时间")]
  114. public DateTime? check_date { get; set; }
  115. /// <summary>
  116. /// bom创建人
  117. /// </summary>
  118. [StringLength(20)]
  119. [Comment("bom创建人")]
  120. public string user { get; set; }
  121. /// <summary>
  122. /// bom创建时间
  123. /// </summary>
  124. [Comment("bom创建时间")]
  125. public DateTime? use_date { get; set; }
  126. /// <summary>
  127. /// 单位
  128. /// </summary>
  129. [StringLength(20)]
  130. [Comment("单位")]
  131. public string unit { get; set; }
  132. }
  133. }