mo_ic_check.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. using Business.Core.Attributes;
  2. using Bussiness.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 Bussiness.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. public decimal? stk_chk_prd { get; set; }
  118. /// <summary>
  119. /// 库存周期检验预警提前期_天
  120. /// </summary>
  121. [Comment("库存周期检验预警提前期_天")]
  122. public decimal? stk_chk_alrm { get; set; }
  123. /// <summary>
  124. /// 保质期管理
  125. /// </summary>
  126. [Comment("保质期管理")]
  127. public int? allow_exp { get; set; }
  128. /// <summary>
  129. /// 有效天数
  130. /// </summary>
  131. [Comment("有效天数")]
  132. public decimal? effecdays { get; set; }
  133. /// <summary>
  134. /// 复检天数
  135. /// </summary>
  136. [Comment("复检天数")]
  137. public decimal? retestdays { get; set; }
  138. /// <summary>
  139. /// 是否质检
  140. /// </summary>
  141. [Comment("是否质检")]
  142. public int? istest { get; set; }
  143. /// <summary>
  144. /// 质检周期/天
  145. /// </summary>
  146. [Comment("质检周期/天")]
  147. public decimal? testperid { get; set; }
  148. /// <summary>
  149. /// 检验项目
  150. /// </summary>
  151. [StringLength(80)]
  152. [Comment("检验项目")]
  153. public long? test_item { get; set; }
  154. /// <summary>
  155. /// 质量备注
  156. /// </summary>
  157. [StringLength(1000)]
  158. [Comment("质量备注")]
  159. public long? quality_note { get; set; }
  160. }
  161. }