AssemblyRecord.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. using System;
  2. using SqlSugar;
  3. namespace TeamAAS_VP.Models
  4. {
  5. /// <summary>
  6. /// 组装记录实体,表示一次组装操作的详细信息(用于持久化到数据库的 AssemblyRecord 表)
  7. /// </summary>
  8. [SugarTable("AssemblyRecord")]
  9. public class AssemblyRecord
  10. {
  11. /// <summary>
  12. /// 主键,唯一标识
  13. /// </summary>
  14. [SugarColumn(IsPrimaryKey = true)]
  15. public Guid Id { get; set; } = Guid.NewGuid();
  16. /// <summary>
  17. /// 时间戳
  18. /// </summary>
  19. public DateTime Timestamp { get; set; } = DateTime.UtcNow;
  20. /// <summary>
  21. /// 配方名称
  22. /// </summary>
  23. [SugarColumn(Length = 255, IsNullable = true)]
  24. public string RecipeName { get; set; }
  25. /// <summary>
  26. /// 产品序列号
  27. /// </summary>
  28. [SugarColumn(Length = 255, IsNullable = true)]
  29. public string ProductSN { get; set; }
  30. /// <summary>
  31. /// 零件序列号
  32. /// </summary>
  33. [SugarColumn(Length = 255, IsNullable = true)]
  34. public string PartSN { get; set; }
  35. /// <summary>
  36. /// 是否组装成功
  37. /// </summary>
  38. public bool Success { get; set; }
  39. /// <summary>
  40. /// 组装压力
  41. /// </summary>
  42. public double AssemblyPressure { get; set; }
  43. /// <summary>
  44. /// 组装用时(秒)
  45. /// </summary>
  46. public double AssemblyDurationSeconds { get; set; }
  47. /// <summary>
  48. /// 下相机拍摄的坐标1,字符串格式(例如 "x,y,z"),用于简化数据库存储,可为空
  49. /// </summary>
  50. [SugarColumn(Length = 1000, IsNullable = true)]
  51. public string DownCameraCoord1 { get; set; }
  52. /// <summary>
  53. /// 下相机拍摄的坐标2,字符串格式(例如 "x,y,z"),用于简化数据库存储,可为空
  54. /// </summary>
  55. [SugarColumn(Length = 1000, IsNullable = true)]
  56. public string DownCameraCoord2 { get; set; }
  57. /// <summary>
  58. /// 下相机拍摄的坐标3,字符串格式(例如 "x,y,z"),用于简化数据库存储,可为空
  59. /// </summary>
  60. [SugarColumn(Length = 1000, IsNullable = true)]
  61. public string DownCameraCoord3 { get; set; }
  62. /// <summary>
  63. /// 下相机拍摄的坐标4,字符串格式(例如 "x,y,z"),用于简化数据库存储,可为空
  64. /// </summary>
  65. [SugarColumn(Length = 1000, IsNullable = true)]
  66. public string DownCameraCoord4 { get; set; }
  67. /// <summary>
  68. /// 抓取运动过程中的相机坐标,字符串格式(例如 "x,y,z"),可为空
  69. /// </summary>
  70. [SugarColumn(Length = 1000, IsNullable = true)]
  71. public string PickMoveCameraCoord { get; set; }
  72. /// <summary>
  73. /// 放置运动过程的相机坐标1,字符串格式(例如 "x,y,z"),可为空
  74. /// </summary>
  75. [SugarColumn(Length = 1000, IsNullable = true)]
  76. public string PlaceMoveCameraCoord1 { get; set; }
  77. /// <summary>
  78. /// 放置运动过程的相机坐标2,字符串格式(例如 "x,y,z"),可为空
  79. /// </summary>
  80. [SugarColumn(Length = 1000, IsNullable = true)]
  81. public string PlaceMoveCameraCoord2 { get; set; }
  82. /// <summary>
  83. /// 放置运动过程的相机坐标3,字符串格式(例如 "x,y,z"),可为空
  84. /// </summary>
  85. [SugarColumn(Length = 1000, IsNullable = true)]
  86. public string PlaceMoveCameraCoord3 { get; set; }
  87. /// <summary>
  88. /// 放置运动过程的相机坐标4,字符串格式(例如 "x,y,z"),可为空
  89. /// </summary>
  90. [SugarColumn(Length = 1000, IsNullable = true)]
  91. public string PlaceMoveCameraCoord4 { get; set; }
  92. /// <summary>
  93. /// 实际放置坐标,字符串格式(例如 "x,y,z"),可用于记录放置位置的实际测量值
  94. /// </summary>
  95. [SugarColumn(Length = 1000, IsNullable = true)]
  96. public string PlaceActualCoord { get; set; }
  97. /// <summary>
  98. /// 设备名称,可为空
  99. /// </summary>
  100. [SugarColumn(IsNullable = true, Length = 255)]
  101. public string DeviceName { get; set; }
  102. /// <summary>
  103. /// 设备ID,关联设备的数字标识
  104. /// </summary>
  105. public int DeviceId { get; set; }
  106. /// <summary>
  107. /// 操作员名称,可为空
  108. /// </summary>
  109. [SugarColumn(Length = 255, IsNullable = true)]
  110. public string OperatorName { get; set; }
  111. /// <summary>
  112. /// 备注信息,可为空
  113. /// </summary>
  114. [SugarColumn(Length = 1000, IsNullable = true)]
  115. public string Remark { get; set; }
  116. }
  117. }