ProductStructureMaster.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Business.Model.MES.IC
  9. {
  10. /// <summary>
  11. /// 标准BOM表
  12. /// </summary>
  13. public class ProductStructureMaster
  14. {
  15. /// <summary>
  16. /// 主键
  17. /// </summary>
  18. [Comment("主键")]
  19. [Key]
  20. public int RecID { get; set; }
  21. /// <summary>
  22. /// 域名
  23. /// </summary>
  24. [Comment("域名")]
  25. public string? Domain { get; set; }
  26. /// <summary>
  27. /// 父零件
  28. /// </summary>
  29. [Comment("父零件")]
  30. public string ParentItem { get; set; }
  31. /// <summary>
  32. /// 子零件
  33. /// </summary>
  34. [Comment("子零件")]
  35. public string ComponentItem { get; set; }
  36. /// <summary>
  37. /// 结构类型:X-虚拟件,需要通过ComponentItem查询其子级
  38. /// </summary>
  39. [Comment("结构类型")]
  40. public string? StructureType { get; set; }
  41. /// <summary>
  42. /// 工序
  43. /// </summary>
  44. [Comment("工序")]
  45. public int Op { get; set; }
  46. /// <summary>
  47. /// 数量
  48. /// </summary>
  49. [Comment("数量")]
  50. public decimal Qty { get; set; }
  51. /// <summary>
  52. /// 序列号
  53. /// </summary>
  54. [Comment("序列号")]
  55. public int SequenceNum { get; set; }
  56. /// <summary>
  57. /// 开始生效
  58. /// </summary>
  59. [Comment("开始生效")]
  60. public DateTime? StartEff { get; set; }
  61. /// <summary>
  62. /// 终止生效
  63. /// </summary>
  64. [Comment("终止生效")]
  65. public DateTime? EndEff { get; set; }
  66. /// <summary>
  67. /// 版本
  68. /// </summary>
  69. [Comment("版本")]
  70. public string? Refs { get; set; }
  71. /// <summary>
  72. /// 单位
  73. /// </summary>
  74. [Comment("单位")]
  75. public string? UM { get; set; }
  76. /// <summary>
  77. /// 是否有效:1-有效;0-无效
  78. /// </summary>
  79. [Comment("是否有效")]
  80. public Boolean IsActive { get; set; }
  81. }
  82. }