mo_ic_check.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. using Business.Core.Attributes;
  2. using Business.MongoModel;
  3. using Microsoft.EntityFrameworkCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.ComponentModel.DataAnnotations;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace Business.MongoModel.MES.IC
  12. {
  13. /// <summary>
  14. /// 物料检验表
  15. /// </summary>
  16. [CollectionName("dopbase", "mo_ic_check")]
  17. [Comment("物料检验表")]
  18. public class mo_ic_check : MoBaseEntity
  19. {
  20. /// <summary>
  21. /// 主键
  22. /// </summary>
  23. [Key]
  24. [Required]
  25. [Comment("主键")]
  26. public long ic_check_id { get; set; }
  27. /// <summary>
  28. /// 工厂编码
  29. /// </summary>
  30. [StringLength(80)]
  31. [Comment("工厂编码")]
  32. public string? factory_code { get; set; }
  33. /// <summary>
  34. /// 物料id
  35. /// </summary>
  36. [Required]
  37. [Comment("物料id")]
  38. public long icitem_id { get; set; }
  39. /// <summary>
  40. /// 批次号
  41. /// </summary>
  42. [StringLength(80)]
  43. [Comment("批次号")]
  44. public string? batch_no { get; set; }
  45. /// <summary>
  46. /// 检验方案
  47. /// </summary>
  48. [StringLength(80)]
  49. [Comment("检验方案")]
  50. public string? inspection_project { get; set; }
  51. /// <summary>
  52. /// 检验员
  53. /// </summary>
  54. [StringLength(80)]
  55. [Comment("检验员")]
  56. public string? identifier { get; set; }
  57. /// <summary>
  58. /// 检验卡号
  59. /// </summary>
  60. [StringLength(80)]
  61. [Comment("检验卡号")]
  62. public string? chk_card { get; set; }
  63. /// <summary>
  64. /// 采购检验方式
  65. /// </summary>
  66. [Comment("采购检验方式")]
  67. public long? inspection_level { get; set; }
  68. /// <summary>
  69. /// 委外加工检验方式
  70. /// </summary>
  71. [Comment("委外加工检验方式")]
  72. public long? ww_chk_mde { get; set; }
  73. /// <summary>
  74. /// 产品检验方式
  75. /// </summary>
  76. [Comment("产品检验方式")]
  77. public long? pro_chk_mde { get; set; }
  78. /// <summary>
  79. /// 发货检验方式
  80. /// </summary>
  81. [Comment("发货检验方式")]
  82. public long? so_chk_mde { get; set; }
  83. /// <summary>
  84. /// 退货检验方式
  85. /// </summary>
  86. [Comment("退货检验方式")]
  87. public long? wth_drw_chk_mde { get; set; }
  88. /// <summary>
  89. /// 库存检验方式
  90. /// </summary>
  91. [Comment("库存检验方式")]
  92. public long? stk_chk_mde { get; set; }
  93. /// <summary>
  94. /// 其他检验方式
  95. /// </summary>
  96. [Comment("其他检验方式")]
  97. public long? other_chk_mde { get; set; }
  98. /// <summary>
  99. /// 抽样标准_致命
  100. /// </summary>
  101. [Comment("抽样标准_致命")]
  102. public string? critical_samp_std { get; set; }
  103. /// <summary>
  104. /// 抽样标准_严重
  105. /// </summary>
  106. [Comment("抽样标准_严重")]
  107. public string? samp_std { get; set; }
  108. /// <summary>
  109. /// 抽样标准_轻微
  110. /// </summary>
  111. [Comment("抽样标准_轻微")]
  112. public string? slight_samp_std { get; set; }
  113. /// <summary>
  114. /// 库存检验周期_天
  115. /// </summary>
  116. [Comment("库存检验周期_天")]
  117. [Precision(23, 10)]
  118. public decimal? stk_chk_prd { get; set; }
  119. /// <summary>
  120. /// 库存周期检验预警提前期_天
  121. /// </summary>
  122. [Comment("库存周期检验预警提前期_天")]
  123. public decimal? stk_chk_alrm { get; set; }
  124. /// <summary>
  125. /// 保质期管理
  126. /// </summary>
  127. [Comment("保质期管理")]
  128. public int? allow_exp { get; set; }
  129. /// <summary>
  130. /// 有效天数
  131. /// </summary>
  132. [Comment("有效天数")]
  133. [Precision(23, 10)]
  134. public decimal? effecdays { get; set; }
  135. /// <summary>
  136. /// 复检天数
  137. /// </summary>
  138. [Comment("复检天数")]
  139. [Precision(23, 10)]
  140. public decimal? retestdays { get; set; }
  141. /// <summary>
  142. /// 是否质检
  143. /// </summary>
  144. [Comment("是否质检")]
  145. public int? istest { get; set; }
  146. /// <summary>
  147. /// 质检周期/天
  148. /// </summary>
  149. [Comment("质检周期/天")]
  150. [Precision(23, 10)]
  151. public decimal? testperid { get; set; }
  152. /// <summary>
  153. /// 检验项目
  154. /// </summary>
  155. [StringLength(80)]
  156. [Comment("检验项目")]
  157. public string? test_item { get; set; }
  158. /// <summary>
  159. /// 质量备注
  160. /// </summary>
  161. [StringLength(1000)]
  162. [Comment("质量备注")]
  163. public string? quality_note { get; set; }
  164. }
  165. }