IdentifyJsonMember():
Add "Monday" - "Sunday" as level-1 sections in a tariff-file.
This commit is contained in:
parent
53cf9a7341
commit
431664d8b9
@ -8,6 +8,8 @@
|
|||||||
#include "tariff_global_defines.h"
|
#include "tariff_global_defines.h"
|
||||||
#include "tariff_carryover.h"
|
#include "tariff_carryover.h"
|
||||||
#include "tariff_global_defines.h"
|
#include "tariff_global_defines.h"
|
||||||
|
#include "tariff_settings.h"
|
||||||
|
#include "tariff_carryover_settings.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@ -21,7 +23,13 @@ MemberType Configuration::IdentifyJsonMember(const char* member_name)
|
|||||||
if (strcmp(member_name, "PaymentRate") == 0) return MemberType::PaymentRateType;
|
if (strcmp(member_name, "PaymentRate") == 0) return MemberType::PaymentRateType;
|
||||||
if (strcmp(member_name, "PaymentOption") == 0) return MemberType::PaymentOptionType;
|
if (strcmp(member_name, "PaymentOption") == 0) return MemberType::PaymentOptionType;
|
||||||
if (strcmp(member_name, "Duration") == 0) return MemberType::DurationType;
|
if (strcmp(member_name, "Duration") == 0) return MemberType::DurationType;
|
||||||
//if (strcmp(member_name, "WeekDays") == 0) return MemberType::WeekDaysType;
|
if (strcmp(member_name, "Monday") == 0) return MemberType::WeekDaysType;
|
||||||
|
if (strcmp(member_name, "Tuesday") == 0) return MemberType::WeekDaysType;
|
||||||
|
if (strcmp(member_name, "Wednesday") == 0) return MemberType::WeekDaysType;
|
||||||
|
if (strcmp(member_name, "Thursday") == 0) return MemberType::WeekDaysType;
|
||||||
|
if (strcmp(member_name, "Friday") == 0) return MemberType::WeekDaysType;
|
||||||
|
if (strcmp(member_name, "Saturday") == 0) return MemberType::WeekDaysType;
|
||||||
|
if (strcmp(member_name, "Sunday") == 0) return MemberType::WeekDaysType;
|
||||||
if (strcmp(member_name, "WeekDaysWorktime") == 0) return MemberType::WeekDaysWorkTimeType;
|
if (strcmp(member_name, "WeekDaysWorktime") == 0) return MemberType::WeekDaysWorkTimeType;
|
||||||
if (strcmp(member_name, "SpecialDaysWorktime") == 0) return MemberType::SpecialDaysWorktimeType;
|
if (strcmp(member_name, "SpecialDaysWorktime") == 0) return MemberType::SpecialDaysWorktimeType;
|
||||||
if (strcmp(member_name, "SpecialDays") == 0) return MemberType::SpecialDaysType;
|
if (strcmp(member_name, "SpecialDays") == 0) return MemberType::SpecialDaysType;
|
||||||
|
Loading…
Reference in New Issue
Block a user