Added new products

This commit is contained in:
Gerhard Hoffmann 2024-07-19 14:04:20 +02:00
parent 2d6ef2d158
commit f2356bec55

View File

@ -13,7 +13,13 @@ enum class PERMIT_TYPE : quint8 {
DAY_TICKET_CHILD=6, DAY_TICKET_CHILD=6,
INVALID=7, INVALID=7,
FOOD_STAMP=8, FOOD_STAMP=8,
TWENTY_FOUR_HOURS_TICKET=9 TWENTY_FOUR_HOURS_TICKET=9,
SHORT_TERM_PARKING_PKW=10,
SHORT_TERM_PARKING_BUS=11,
SHORT_TERM_PARKING_CAMPER=12,
DAY_TICKET_PKW=13,
DAY_TICKET_BUS=14,
DAY_TICKET_CAMPER=15
}; };
struct PermitType { struct PermitType {
@ -43,12 +49,30 @@ struct PermitType {
case 6: case 6:
m_permitType = PERMIT_TYPE::DAY_TICKET_CHILD; m_permitType = PERMIT_TYPE::DAY_TICKET_CHILD;
break; break;
case 7: case 8:
m_permitType = PERMIT_TYPE::FOOD_STAMP; m_permitType = PERMIT_TYPE::FOOD_STAMP;
break; break;
case 8: case 9:
m_permitType = PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET; m_permitType = PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET;
break; break;
case 10:
m_permitType = PERMIT_TYPE::SHORT_TERM_PARKING_PKW;
break;
case 11:
m_permitType = PERMIT_TYPE::SHORT_TERM_PARKING_BUS;
break;
case 12:
m_permitType = PERMIT_TYPE::SHORT_TERM_PARKING_CAMPER;
break;
case 13:
m_permitType = PERMIT_TYPE::DAY_TICKET_PKW;
break;
case 14:
m_permitType = PERMIT_TYPE::DAY_TICKET_BUS;
break;
case 15:
m_permitType = PERMIT_TYPE::DAY_TICKET_CAMPER;
break;
default: default:
m_permitType = PERMIT_TYPE::INVALID; m_permitType = PERMIT_TYPE::INVALID;
} }
@ -77,14 +101,25 @@ struct PermitType {
case PERMIT_TYPE::DAY_TICKET_TEEN: case PERMIT_TYPE::DAY_TICKET_TEEN:
return 6; return 6;
case PERMIT_TYPE::FOOD_STAMP: case PERMIT_TYPE::FOOD_STAMP:
return 7;
case PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET:
return 8; return 8;
case PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET:
return 9;
case PERMIT_TYPE::SHORT_TERM_PARKING_PKW:
return 10;
case PERMIT_TYPE::SHORT_TERM_PARKING_BUS:
return 11;
case PERMIT_TYPE::SHORT_TERM_PARKING_CAMPER:
return 12;
case PERMIT_TYPE::DAY_TICKET_PKW:
return 13;
case PERMIT_TYPE::DAY_TICKET_BUS:
return 14;
case PERMIT_TYPE::DAY_TICKET_CAMPER:
return 15;
default: default:
break; break;
} }
return 7; return 7;
} }
QString toString() { QString toString() {
@ -107,6 +142,18 @@ struct PermitType {
return QString("FOOD_STAMP"); return QString("FOOD_STAMP");
case PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET: case PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET:
return QString("TWENTY_FOUR_HOURS_TICKET"); return QString("TWENTY_FOUR_HOURS_TICKET");
case PERMIT_TYPE::SHORT_TERM_PARKING_PKW:
return QString("SHORT_TERM_PARKING_PKW");
case PERMIT_TYPE::SHORT_TERM_PARKING_BUS:
return QString("SHORT_TERM_PARKING_BUS");
case PERMIT_TYPE::SHORT_TERM_PARKING_CAMPER:
return QString("SHORT_TERM_PARKING_CAMPER");
case PERMIT_TYPE::DAY_TICKET_PKW:
return QString("DAY_TICKET_PKW");
case PERMIT_TYPE::DAY_TICKET_BUS:
return QString("DAY_TICKET_BUS");
case PERMIT_TYPE::DAY_TICKET_CAMPER:
return QString("DAY_TICKET_CAMPER");
default: default:
break; break;
} }
@ -133,6 +180,18 @@ struct PermitType {
return QString("FOOD_STAMP"); return QString("FOOD_STAMP");
case PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET: case PERMIT_TYPE::TWENTY_FOUR_HOURS_TICKET:
return QString("TWENTY_FOUR_HOURS_TICKET"); return QString("TWENTY_FOUR_HOURS_TICKET");
case PERMIT_TYPE::SHORT_TERM_PARKING_PKW:
return QString("SHORT_TERM_PARKING_PKW");
case PERMIT_TYPE::SHORT_TERM_PARKING_BUS:
return QString("SHORT_TERM_PARKING_BUS");
case PERMIT_TYPE::SHORT_TERM_PARKING_CAMPER:
return QString("SHORT_TERM_PARKING_CAMPER");
case PERMIT_TYPE::DAY_TICKET_PKW:
return QString("DAY_TICKET_PKW");
case PERMIT_TYPE::DAY_TICKET_BUS:
return QString("DAY_TICKET_BUS");
case PERMIT_TYPE::DAY_TICKET_CAMPER:
return QString("DAY_TICKET_CAMPER");
default: default:
break; break;
} }