QJsonArray AccountsRecharge::getAllJson() { QJsonArray array; TSqlORMapper<AccountsRechargeObject> mapper; if (mapper.find() > 0) { for (TSqlORMapperIterator<AccountsRechargeObject> i(mapper); i.hasNext(); ) { array.append(QJsonValue(QJsonObject::fromVariantMap(AccountsRecharge(i.next()).toVariantMap()))); } } return array; }
QJsonArray ParkAttendants::getAllJson() { QJsonArray array; TSqlORMapper<ParkAttendantsObject> mapper; if (mapper.find() > 0) { for (TSqlORMapperIterator<ParkAttendantsObject> i(mapper); i.hasNext(); ) { array.append(QJsonValue(QJsonObject::fromVariantMap(ParkAttendants(i.next()).toVariantMap()))); } } return array; }
QJsonArray UserVehicle::getAllJson() { QJsonArray array; TSqlORMapper<UserVehicleObject> mapper; if (mapper.find() > 0) { for (TSqlORMapperIterator<UserVehicleObject> i(mapper); i.hasNext(); ) { array.append(QJsonValue(QJsonObject::fromVariantMap(UserVehicle(i.next()).toVariantMap()))); } } return array; }