mo_ic_item.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. using Business.Core.Attributes;
  2. using Bussiness.MongoModel;
  3. using Microsoft.EntityFrameworkCore;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. namespace Bussiness.MongoModel.MES.IC
  7. {
  8. /// <summary>
  9. /// 物料详情
  10. /// </summary>
  11. [CollectionName("dopbase", "mo_ic_item")]
  12. [Comment("物料详情")]
  13. public class mo_ic_item : MoBaseEntity
  14. {
  15. /// <summary>
  16. /// 物料编码
  17. /// </summary>
  18. [StringLength(80)]
  19. [Comment("物料编码")]
  20. public string? number { get; set; }
  21. /// <summary>
  22. /// 物料名称
  23. /// </summary>
  24. [StringLength(80)]
  25. [Comment("物料名称")]
  26. public string? name { get; set; }
  27. /// <summary>
  28. /// 规格型号
  29. /// </summary>
  30. [StringLength(200)]
  31. [Comment("规格型号")]
  32. public string? model { get; set; }
  33. /// <summary>
  34. /// 全名
  35. /// </summary>
  36. [StringLength(255)]
  37. [Comment("全名")]
  38. public string? full_name { get; set; }
  39. /// <summary>
  40. /// fms旧料号
  41. /// </summary>
  42. [StringLength(80)]
  43. [Comment("fms旧料号")]
  44. public string? fms_number { get; set; }
  45. /// <summary>
  46. /// erp旧料号
  47. /// </summary>
  48. [StringLength(80)]
  49. [Comment("erp旧料号")]
  50. public string? erp_oldnumber { get; set; }
  51. /// <summary>
  52. /// 图号
  53. /// </summary>
  54. [StringLength(80)]
  55. [Comment("图号")]
  56. public string? chart_number { get; set; }
  57. /// <summary>
  58. /// 版本号
  59. /// </summary>
  60. [StringLength(80)]
  61. [Comment("版本号")]
  62. public string? fversion { get; set; }
  63. /// <summary>
  64. /// 盒贴规格
  65. /// </summary>
  66. [StringLength(200)]
  67. [Comment("盒贴规格")]
  68. public string? box_model { get; set; }
  69. /// <summary>
  70. /// 物料属性
  71. /// </summary>
  72. [Comment("物料属性")]
  73. public int erp_cls { get; set; }
  74. /// <summary>
  75. /// 物料属性名称
  76. /// </summary>
  77. [Comment("物料属性")]
  78. public string? erp_cls_name { get; set; }
  79. /// <summary>
  80. /// 单位
  81. /// </summary>
  82. [StringLength(80)]
  83. [Comment("单位")]
  84. public string? unit { get; set; }
  85. /// <summary>
  86. /// 物料等级
  87. /// </summary>
  88. [Required]
  89. [Comment("物料等级")]
  90. public long item_level { get; set; }
  91. /// <summary>
  92. /// 环保等级
  93. /// </summary>
  94. [Required]
  95. [Comment("环保等级")]
  96. public long hb_level { get; set; }
  97. /// <summary>
  98. /// 单位标准工时_小时
  99. /// </summary>
  100. [Precision(20, 8)]
  101. [Comment("单位标准工时_小时")]
  102. public decimal? standard_manhour { get; set; }
  103. /// <summary>
  104. /// 单位材料定额_元
  105. /// </summary>
  106. [Precision(20, 8)]
  107. [Comment("单位材料定额_元")]
  108. public decimal? unititem_amount { get; set; }
  109. /// <summary>
  110. /// 来源
  111. /// </summary>
  112. [StringLength(200)]
  113. [Comment("来源")]
  114. public string? source { get; set; }
  115. /// <summary>
  116. /// 是否为设备
  117. /// </summary>
  118. [Comment("是否为设备")]
  119. public int is_equipment { get; set; }
  120. /// <summary>
  121. /// 单位包装数量
  122. /// </summary>
  123. [Precision(20, 8)]
  124. [Comment("单位包装数量")]
  125. public decimal? unit_qty { get; set; }
  126. /// <summary>
  127. /// 严格进行二维码数量校验
  128. /// </summary>
  129. [StringLength(80)]
  130. [Comment("严格进行二维码数量校验")]
  131. public string? check_bybarcode { get; set; }
  132. /// <summary>
  133. /// 是否关键件
  134. /// </summary>
  135. [Comment("是否关键件")]
  136. public int iskeyitem { get; set; }
  137. /// <summary>
  138. /// 毛重
  139. /// </summary>
  140. [Precision(20, 8)]
  141. [Comment("毛重")]
  142. public decimal? gross_weight { get; set; }
  143. /// <summary>
  144. /// 净重
  145. /// </summary>
  146. [Precision(20, 8)]
  147. [Comment("净重")]
  148. public decimal? net_weight { get; set; }
  149. /// <summary>
  150. /// 重量单位
  151. /// </summary>
  152. [StringLength(80)]
  153. [Comment("重量单位")]
  154. public string? maund { get; set; }
  155. /// <summary>
  156. /// 长度
  157. /// </summary>
  158. [Precision(20, 8)]
  159. [Comment("长度")]
  160. public decimal? length { get; set; }
  161. /// <summary>
  162. /// 长度单位
  163. /// </summary>
  164. [StringLength(80)]
  165. [Comment("长度单位")]
  166. public string? cubic_measure { get; set; }
  167. /// <summary>
  168. /// 宽度
  169. /// </summary>
  170. [Precision(20, 8)]
  171. [Comment("宽度")]
  172. public decimal? width { get; set; }
  173. /// <summary>
  174. /// 高度
  175. /// </summary>
  176. [Precision(20, 8)]
  177. [Comment("高度")]
  178. public decimal? height { get; set; }
  179. /// <summary>
  180. /// 体积
  181. /// </summary>
  182. [Precision(20, 8)]
  183. [Comment("体积")]
  184. public decimal? size { get; set; }
  185. /// <summary>
  186. /// 物料类别
  187. /// </summary>
  188. [Required]
  189. [Comment("物料类别")]
  190. public long matatt { get; set; }
  191. /// <summary>
  192. /// 允许采购
  193. /// </summary>
  194. [Comment("允许采购")]
  195. public int allowpur { get; set; }
  196. /// <summary>
  197. /// 允许销售
  198. /// </summary>
  199. [Comment("允许销售")]
  200. public int allowsale { get; set; }
  201. /// <summary>
  202. /// 允许生产
  203. /// </summary>
  204. [Comment("允许生产")]
  205. public int allowmanu { get; set; }
  206. /// <summary>
  207. /// 允许委外
  208. /// </summary>
  209. [Comment("允许委外")]
  210. public int allowout { get; set; }
  211. /// <summary>
  212. /// 批号管理
  213. /// </summary>
  214. [Comment("批号管理")]
  215. public int allowbatch { get; set; }
  216. /// <summary>
  217. /// 序列号管理
  218. /// </summary>
  219. [Comment("序列号管理")]
  220. public int allowserial { get; set; }
  221. /// <summary>
  222. /// 图片
  223. /// </summary>
  224. [StringLength(80)]
  225. [Comment("图片")]
  226. public string? photo { get; set; }
  227. /// <summary>
  228. /// 领料类型
  229. /// </summary>
  230. [Required]
  231. [Comment("领料类型")]
  232. public long picktype { get; set; }
  233. /// <summary>
  234. /// 出库类型
  235. /// </summary>
  236. [Required]
  237. [Comment("出库类型")]
  238. public long output_type_id { get; set; }
  239. /// <summary>
  240. /// 启用预警
  241. /// </summary>
  242. [Comment("启用预警")]
  243. public int enable_warning { get; set; }
  244. }
  245. }