hblastregrecord.cpp 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #include "hblastregrecord.h"
  2. HBlastEquipmentRecord::HBlastEquipmentRecord(QObject *parent) : QObject(parent) {}
  3. qint64 HBlastEquipmentRecord::getId() const { return id; }
  4. void HBlastEquipmentRecord::setId(qint64 newId) { id = newId; }
  5. QString HBlastEquipmentRecord::getUuid() const { return uuid; }
  6. void HBlastEquipmentRecord::setUuid(const QString &newUuid) { uuid = newUuid; }
  7. QString HBlastEquipmentRecord::getEquipSn() const { return equipSn; }
  8. void HBlastEquipmentRecord::setEquipSn(const QString &newEquipSn) { equipSn = newEquipSn; }
  9. QString HBlastEquipmentRecord::getEquipVersion() const { return equipVersion; }
  10. void HBlastEquipmentRecord::setEquipVersion(const QString &newEquipVersion) {
  11. equipVersion = newEquipVersion;
  12. }
  13. int HBlastEquipmentRecord::getRegDetoCount() const { return regDetoCount; }
  14. void HBlastEquipmentRecord::setRegDetoCount(int newRegDetoCount) { regDetoCount = newRegDetoCount; }
  15. int HBlastEquipmentRecord::getErrorDetoCount() const { return errorDetoCount; }
  16. void HBlastEquipmentRecord::setErrorDetoCount(int newErrorDetoCount) {
  17. errorDetoCount = newErrorDetoCount;
  18. }
  19. QString HBlastEquipmentRecord::getAfterTestBusV() const { return afterTestBusV; }
  20. void HBlastEquipmentRecord::setAfterTestBusV(const QString &newAfterTestBusV) {
  21. afterTestBusV = newAfterTestBusV;
  22. }
  23. QString HBlastEquipmentRecord::getAfterTestBusI() const { return afterTestBusI; }
  24. void HBlastEquipmentRecord::setAfterTestBusI(const QString &newAfterTestBusI) {
  25. afterTestBusI = newAfterTestBusI;
  26. }
  27. QString HBlastEquipmentRecord::getBusLeakageCurrentI() const { return busLeakageCurrentI; }
  28. void HBlastEquipmentRecord::setBusLeakageCurrentI(const QString &newBusLeakageCurrentI) {
  29. busLeakageCurrentI = newBusLeakageCurrentI;
  30. }
  31. QString HBlastEquipmentRecord::getNetChargedV() const { return netChargedV; }
  32. void HBlastEquipmentRecord::setNetChargedV(const QString &newNetChargedV) {
  33. netChargedV = newNetChargedV;
  34. }
  35. QString HBlastEquipmentRecord::getNetChargedI() const { return netChargedI; }
  36. void HBlastEquipmentRecord::setNetChargedI(const QString &newNetChargedI) {
  37. netChargedI = newNetChargedI;
  38. }
  39. QString HBlastEquipmentRecord::getBeforeBlastingV() const { return beforeBlastingV; }
  40. void HBlastEquipmentRecord::setBeforeBlastingV(const QString &newBeforeBlastingV) {
  41. beforeBlastingV = newBeforeBlastingV;
  42. }
  43. QString HBlastEquipmentRecord::getBeforeBlastingI() const { return beforeBlastingI; }
  44. void HBlastEquipmentRecord::setBeforeBlastingI(const QString &newBeforeBlastingI) {
  45. beforeBlastingI = newBeforeBlastingI;
  46. }
  47. QString HBlastEquipmentRecord::getRecordUuid() const { return recordUuid; }
  48. void HBlastEquipmentRecord::setRecordUuid(const QString &newRecordUuid) {
  49. recordUuid = newRecordUuid;
  50. }
  51. QDateTime HBlastEquipmentRecord::getCreatedAt() const { return createdAt; }
  52. void HBlastEquipmentRecord::setCreatedAt(const QDateTime &newCreatedAt) {
  53. createdAt = newCreatedAt;
  54. }
  55. QDateTime HBlastEquipmentRecord::getUpdatedAt() const { return updatedAt; }
  56. void HBlastEquipmentRecord::setUpdatedAt(const QDateTime &newUpdatedAt) {
  57. updatedAt = newUpdatedAt;
  58. }
  59. QDateTime HBlastEquipmentRecord::getDeletedAt() const { return deletedAt; }
  60. void HBlastEquipmentRecord::setDeletedAt(const QDateTime &newDeletedAt) {
  61. deletedAt = newDeletedAt;
  62. }
  63. qint64 HBlastEquipmentRecord::getCreateBy() const { return createBy; }
  64. void HBlastEquipmentRecord::setCreateBy(qint64 newCreateBy) { createBy = newCreateBy; }
  65. qint64 HBlastEquipmentRecord::getUpdateBy() const { return updateBy; }
  66. void HBlastEquipmentRecord::setUpdateBy(qint64 newUpdateBy) { updateBy = newUpdateBy; }
  67. QJsonObject HBlastEquipmentRecord::ToJson() {
  68. QJsonObject json;
  69. // json["id"] = this->getId();
  70. // json["uuid"] = this->getUuid();
  71. json["equipment_sn"] = this->getEquipSn();
  72. json["equipment_version"] = this->getEquipVersion();
  73. json["reg_deto_count"] = QString::number(this->getRegDetoCount());
  74. json["error_deto_count"] = QString::number(this->getErrorDetoCount());
  75. json["after_test_bus_v"] = this->getAfterTestBusV();
  76. json["after_test_bus_i"] = this->getAfterTestBusI();
  77. json["bus_leakage_current_i"] = this->getBusLeakageCurrentI();
  78. json["net_charged_v"] = this->getNetChargedV();
  79. json["net_charged_i"] = this->getNetChargedI();
  80. json["before_blasting_v"] = this->getBeforeBlastingV();
  81. json["before_blasting_i"] = this->getBeforeBlastingI();
  82. // json["record_uuid"] = this->getRecordUuid();
  83. // json["created_at"] = this->getCreatedAt().toString(Qt::ISODateWithMs);
  84. // json["updated_at"] = this->getUpdatedAt().toString(Qt::ISODateWithMs);
  85. // json["deleted_at"] = this->getDeletedAt().toString(Qt::ISODateWithMs);
  86. // json["create_by"] = this->getCreateBy();
  87. // json["update_by"] = this->getUpdateBy();
  88. return json;
  89. }