mo_ic_item.cs 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. [StringLength(80)]
  78. [Comment("物料属性")]
  79. public string? erp_cls_name { get; set; }
  80. /// <summary>
  81. /// 单位
  82. /// </summary>
  83. [StringLength(80)]
  84. [Comment("单位")]
  85. public string? unit { get; set; }
  86. /// <summary>
  87. /// 物料等级
  88. /// </summary>
  89. [Comment("物料等级")]
  90. public long? item_level { get; set; }
  91. /// <summary>
  92. /// 环保等级
  93. /// </summary>
  94. [Comment("环保等级")]
  95. public long? hb_level { get; set; }
  96. /// <summary>
  97. /// 单位标准工时_小时
  98. /// </summary>
  99. [Precision(20, 8)]
  100. [Comment("单位标准工时_小时")]
  101. public decimal? standard_manhour { get; set; }
  102. /// <summary>
  103. /// 单位材料定额_元
  104. /// </summary>
  105. [Precision(20, 8)]
  106. [Comment("单位材料定额_元")]
  107. public decimal? unititem_amount { get; set; }
  108. /// <summary>
  109. /// 来源
  110. /// </summary>
  111. [StringLength(200)]
  112. [Comment("来源")]
  113. public string? source { get; set; }
  114. /// <summary>
  115. /// 是否为设备
  116. /// </summary>
  117. [Comment("是否为设备")]
  118. public int? is_equipment { get; set; }
  119. /// <summary>
  120. /// 单位包装数量
  121. /// </summary>
  122. [Precision(20, 8)]
  123. [Comment("单位包装数量")]
  124. public decimal? unit_qty { get; set; }
  125. /// <summary>
  126. /// 严格进行二维码数量校验
  127. /// </summary>
  128. [StringLength(80)]
  129. [Comment("严格进行二维码数量校验")]
  130. public string? check_bybarcode { get; set; }
  131. /// <summary>
  132. /// 是否关键件
  133. /// </summary>
  134. [Comment("是否关键件")]
  135. public int? iskeyitem { get; set; }
  136. /// <summary>
  137. /// 毛重
  138. /// </summary>
  139. [Precision(20, 8)]
  140. [Comment("毛重")]
  141. public decimal? gross_weight { get; set; }
  142. /// <summary>
  143. /// 净重
  144. /// </summary>
  145. [Precision(20, 8)]
  146. [Comment("净重")]
  147. public decimal? net_weight { get; set; }
  148. /// <summary>
  149. /// 重量单位
  150. /// </summary>
  151. [StringLength(80)]
  152. [Comment("重量单位")]
  153. public string? maund { get; set; }
  154. /// <summary>
  155. /// 长度
  156. /// </summary>
  157. [Precision(20, 8)]
  158. [Comment("长度")]
  159. public decimal? length { get; set; }
  160. /// <summary>
  161. /// 长度单位
  162. /// </summary>
  163. [StringLength(80)]
  164. [Comment("长度单位")]
  165. public string? cubic_measure { get; set; }
  166. /// <summary>
  167. /// 宽度
  168. /// </summary>
  169. [Precision(20, 8)]
  170. [Comment("宽度")]
  171. public decimal? width { get; set; }
  172. /// <summary>
  173. /// 高度
  174. /// </summary>
  175. [Precision(20, 8)]
  176. [Comment("高度")]
  177. public decimal? height { get; set; }
  178. /// <summary>
  179. /// 体积
  180. /// </summary>
  181. [Precision(20, 8)]
  182. [Comment("体积")]
  183. public decimal? size { get; set; }
  184. /// <summary>
  185. /// 物料类别
  186. /// </summary>
  187. [Comment("物料类别")]
  188. public long? matatt { get; set; }
  189. /// <summary>
  190. /// 允许采购
  191. /// </summary>
  192. [Comment("允许采购")]
  193. public int? allowpur { get; set; }
  194. /// <summary>
  195. /// 允许销售
  196. /// </summary>
  197. [Comment("允许销售")]
  198. public int? allowsale { get; set; }
  199. /// <summary>
  200. /// 允许生产
  201. /// </summary>
  202. [Comment("允许生产")]
  203. public int? allowmanu { get; set; }
  204. /// <summary>
  205. /// 允许委外
  206. /// </summary>
  207. [Comment("允许委外")]
  208. public int? allowout { get; set; }
  209. /// <summary>
  210. /// 批号管理
  211. /// </summary>
  212. [Comment("批号管理")]
  213. public int? allowbatch { get; set; }
  214. /// <summary>
  215. /// 序列号管理
  216. /// </summary>
  217. [Comment("序列号管理")]
  218. public int? allowserial { get; set; }
  219. /// <summary>
  220. /// 图片
  221. /// </summary>
  222. [StringLength(80)]
  223. [Comment("图片")]
  224. public string? photo { get; set; }
  225. /// <summary>
  226. /// 领料类型
  227. /// </summary>
  228. [Comment("领料类型")]
  229. public long? picktype { get; set; }
  230. /// <summary>
  231. /// 出库类型
  232. /// </summary>
  233. [Comment("出库类型")]
  234. public long? output_type_id { get; set; }
  235. /// <summary>
  236. /// 启用预警
  237. /// </summary>
  238. [Comment("启用预警")]
  239. public int? enable_warning { get; set; }
  240. }
  241. }