#include "hblastregrecord.h" HBlastRegRecord::HBlastRegRecord(QObject *parent) : QObject(parent) { } qint64 HBlastRegRecord::getId() const { return id; } void HBlastRegRecord::setId(qint64 newId) { id = newId; } QString HBlastRegRecord::getUuid() const { return uuid; } void HBlastRegRecord::setUuid(const QString &newUuid) { uuid = newUuid; } QString HBlastRegRecord::getEquipSn() const { return equipSn; } void HBlastRegRecord::setEquipSn(const QString &newEquipSn) { equipSn = newEquipSn; } QString HBlastRegRecord::getEquipVersion() const { return equipVersion; } void HBlastRegRecord::setEquipVersion(const QString &newEquipVersion) { equipVersion = newEquipVersion; } int HBlastRegRecord::getRegDetoCount() const { return regDetoCount; } void HBlastRegRecord::setRegDetoCount(int newRegDetoCount) { regDetoCount = newRegDetoCount; } int HBlastRegRecord::getErrorDetoCount() const { return errorDetoCount; } void HBlastRegRecord::setErrorDetoCount(int newErrorDetoCount) { errorDetoCount = newErrorDetoCount; } QString HBlastRegRecord::getAfterTestBusV() const { return afterTestBusV; } void HBlastRegRecord::setAfterTestBusV(const QString &newAfterTestBusV) { afterTestBusV = newAfterTestBusV; } QString HBlastRegRecord::getAfterTestBusI() const { return afterTestBusI; } void HBlastRegRecord::setAfterTestBusI(const QString &newAfterTestBusI) { afterTestBusI = newAfterTestBusI; } QString HBlastRegRecord::getBusLeakageCurrentI() const { return busLeakageCurrentI; } void HBlastRegRecord::setBusLeakageCurrentI(const QString &newBusLeakageCurrentI) { busLeakageCurrentI = newBusLeakageCurrentI; } QString HBlastRegRecord::getNetChargedV() const { return netChargedV; } void HBlastRegRecord::setNetChargedV(const QString &newNetChargedV) { netChargedV = newNetChargedV; } QString HBlastRegRecord::getNetChargedI() const { return netChargedI; } void HBlastRegRecord::setNetChargedI(const QString &newNetChargedI) { netChargedI = newNetChargedI; } QString HBlastRegRecord::getBeforeBlastingV() const { return beforeBlastingV; } void HBlastRegRecord::setBeforeBlastingV(const QString &newBeforeBlastingV) { beforeBlastingV = newBeforeBlastingV; } QString HBlastRegRecord::getBeforeBlastingI() const { return beforeBlastingI; } void HBlastRegRecord::setBeforeBlastingI(const QString &newBeforeBlastingI) { beforeBlastingI = newBeforeBlastingI; } QString HBlastRegRecord::getRecordUuid() const { return recordUuid; } void HBlastRegRecord::setRecordUuid(const QString &newRecordUuid) { recordUuid = newRecordUuid; } QDateTime HBlastRegRecord::getCreatedAt() const { return createdAt; } void HBlastRegRecord::setCreatedAt(const QDateTime &newCreatedAt) { createdAt = newCreatedAt; } QDateTime HBlastRegRecord::getUpdatedAt() const { return updatedAt; } void HBlastRegRecord::setUpdatedAt(const QDateTime &newUpdatedAt) { updatedAt = newUpdatedAt; } QDateTime HBlastRegRecord::getDeletedAt() const { return deletedAt; } void HBlastRegRecord::setDeletedAt(const QDateTime &newDeletedAt) { deletedAt = newDeletedAt; } qint64 HBlastRegRecord::getCreateBy() const { return createBy; } void HBlastRegRecord::setCreateBy(qint64 newCreateBy) { createBy = newCreateBy; } qint64 HBlastRegRecord::getUpdateBy() const { return updateBy; } void HBlastRegRecord::setUpdateBy(qint64 newUpdateBy) { updateBy = newUpdateBy; } QByteArray HBlastRegRecord::RecordToJson(const HBlastRegRecord& record) { QJsonObject json; json["id"] = record.getId(); json["uuid"] = record.getUuid(); json["equip_sn"] = record.getEquipSn(); json["equip_version"] = record.getEquipVersion(); json["reg_deto_count"] = record.getRegDetoCount(); json["error_deto_count"] = record.getErrorDetoCount(); json["after_test_bus_v"] = record.getAfterTestBusV(); json["after_test_bus_i"] = record.getAfterTestBusI(); json["bus_leakage_current_i"] = record.getBusLeakageCurrentI(); json["net_charged_v"] = record.getNetChargedV(); json["net_charged_i"] = record.getNetChargedI(); json["before_blasting_v"] = record.getBeforeBlastingV(); json["before_blasting_i"] = record.getBeforeBlastingI(); json["record_uuid"] = record.getRecordUuid(); json["created_at"] = record.getCreatedAt().toString(Qt::ISODateWithMs); json["updated_at"] = record.getUpdatedAt().toString(Qt::ISODateWithMs); json["deleted_at"] = record.getDeletedAt().toString(Qt::ISODateWithMs); json["create_by"] = record.getCreateBy(); json["update_by"] = record.getUpdateBy(); QJsonDocument doc(json); return doc.toJson(); }