hblastregrecord.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #ifndef HBLASTREGRECORD_H
  2. #define HBLASTREGRECORD_H
  3. #include <QDateTime>
  4. #include <QJsonDocument>
  5. #include <QJsonObject>
  6. #include <QString>
  7. #include <QUuid>
  8. class HBlastEquipmentRecord : public QObject {
  9. Q_OBJECT
  10. // 定义属性
  11. Q_PROPERTY(qint64 id READ getId WRITE setId)
  12. Q_PROPERTY(QString uuid READ getUuid WRITE setUuid)
  13. Q_PROPERTY(QString equipSn READ getEquipSn WRITE setEquipSn)
  14. Q_PROPERTY(QString equipVersion READ getEquipVersion WRITE setEquipVersion)
  15. Q_PROPERTY(int regDetoCount READ getRegDetoCount WRITE setRegDetoCount)
  16. Q_PROPERTY(int errorDetoCount READ getErrorDetoCount WRITE setErrorDetoCount)
  17. Q_PROPERTY(QString afterTestBusV READ getAfterTestBusV WRITE setAfterTestBusV)
  18. Q_PROPERTY(QString afterTestBusI READ getAfterTestBusI WRITE setAfterTestBusI)
  19. Q_PROPERTY(QString busLeakageCurrentI READ getBusLeakageCurrentI WRITE setBusLeakageCurrentI)
  20. Q_PROPERTY(QString netChargedV READ getNetChargedV WRITE setNetChargedV)
  21. Q_PROPERTY(QString netChargedI READ getNetChargedI WRITE setNetChargedI)
  22. Q_PROPERTY(QString beforeBlastingV READ getBeforeBlastingV WRITE setBeforeBlastingV)
  23. Q_PROPERTY(QString beforeBlastingI READ getBeforeBlastingI WRITE setBeforeBlastingI)
  24. Q_PROPERTY(QString recordUuid READ getRecordUuid WRITE setRecordUuid)
  25. Q_PROPERTY(QDateTime createdAt READ getCreatedAt WRITE setCreatedAt)
  26. Q_PROPERTY(QDateTime updatedAt READ getUpdatedAt WRITE setUpdatedAt)
  27. Q_PROPERTY(QDateTime deletedAt READ getDeletedAt WRITE setDeletedAt)
  28. Q_PROPERTY(qint64 createBy READ getCreateBy WRITE setCreateBy)
  29. Q_PROPERTY(qint64 updateBy READ getUpdateBy WRITE setUpdateBy)
  30. public:
  31. explicit HBlastEquipmentRecord(QObject *parent = nullptr);
  32. // Getter and Setter methods
  33. qint64 getId() const;
  34. void setId(qint64 newId);
  35. QString getUuid() const;
  36. void setUuid(const QString &newUuid);
  37. QString getEquipSn() const;
  38. void setEquipSn(const QString &newEquipSn);
  39. QString getEquipVersion() const;
  40. void setEquipVersion(const QString &newEquipVersion);
  41. int getRegDetoCount() const;
  42. void setRegDetoCount(int newRegDetoCount);
  43. int getErrorDetoCount() const;
  44. void setErrorDetoCount(int newErrorDetoCount);
  45. QString getAfterTestBusV() const;
  46. void setAfterTestBusV(const QString &newAfterTestBusV);
  47. QString getAfterTestBusI() const;
  48. void setAfterTestBusI(const QString &newAfterTestBusI);
  49. QString getBusLeakageCurrentI() const;
  50. void setBusLeakageCurrentI(const QString &newBusLeakageCurrentI);
  51. QString getNetChargedV() const;
  52. void setNetChargedV(const QString &newNetChargedV);
  53. QString getNetChargedI() const;
  54. void setNetChargedI(const QString &newNetChargedI);
  55. QString getBeforeBlastingV() const;
  56. void setBeforeBlastingV(const QString &newBeforeBlastingV);
  57. QString getBeforeBlastingI() const;
  58. void setBeforeBlastingI(const QString &newBeforeBlastingI);
  59. QString getRecordUuid() const;
  60. void setRecordUuid(const QString &newRecordUuid);
  61. QDateTime getCreatedAt() const;
  62. void setCreatedAt(const QDateTime &newCreatedAt);
  63. QDateTime getUpdatedAt() const;
  64. void setUpdatedAt(const QDateTime &newUpdatedAt);
  65. QDateTime getDeletedAt() const;
  66. void setDeletedAt(const QDateTime &newDeletedAt);
  67. qint64 getCreateBy() const;
  68. void setCreateBy(qint64 newCreateBy);
  69. qint64 getUpdateBy() const;
  70. void setUpdateBy(qint64 newUpdateBy);
  71. QJsonObject ToJson();
  72. private:
  73. qint64 id;
  74. QString uuid;
  75. QString equipSn;
  76. QString equipVersion;
  77. int regDetoCount;
  78. int errorDetoCount;
  79. QString afterTestBusV;
  80. QString afterTestBusI;
  81. QString busLeakageCurrentI;
  82. QString netChargedV;
  83. QString netChargedI;
  84. QString beforeBlastingV;
  85. QString beforeBlastingI;
  86. QString recordUuid;
  87. QDateTime createdAt;
  88. QDateTime updatedAt;
  89. QDateTime deletedAt;
  90. qint64 createBy;
  91. qint64 updateBy;
  92. };
  93. #endif // HBLASTREGRECORD_H