diff --git a/.swp b/.swp new file mode 100644 index 0000000..24c2401 Binary files /dev/null and b/.swp differ diff --git a/library/include/mobilisis/payment_opt.h b/library/include/mobilisis/payment_opt.h index c3976ba..a8a7a67 100644 --- a/library/include/mobilisis/payment_opt.h +++ b/library/include/mobilisis/payment_opt.h @@ -16,6 +16,7 @@ public: pop_min_time = 0; pop_max_time = 0; pop_min_price = 0; + pop_max_price = 0; pop_carry_over = -1; pop_carry_over_time_range_id = -1; pop_daily_card_price = -1; @@ -32,6 +33,7 @@ public: double pop_min_time; double pop_max_time; double pop_min_price; + double pop_max_price; int pop_carry_over; int pop_carry_over_time_range_id; int pop_daily_card_price; diff --git a/library/include/mobilisis/utilities.h b/library/include/mobilisis/utilities.h index 1e52a8b..9d9e1ed 100644 --- a/library/include/mobilisis/utilities.h +++ b/library/include/mobilisis/utilities.h @@ -88,6 +88,7 @@ namespace Utilities { int getMinimalParkingTime(Configuration const *cfg, PaymentMethod methodId); int getMaximalParkingTime(Configuration const *cfg, PaymentMethod methodId); uint32_t getMinimalParkingPrice(Configuration const *cfg, PaymentMethod methodId); + uint32_t getMaximalParkingPrice(Configuration const *cfg, PaymentMethod methodId); uint32_t getFirstDurationStep(Configuration const *cfg, PaymentMethod methodId); BusinessHours getBusinessHours(Configuration const *cfg, PaymentMethod methodId); uint32_t computeWeekDaysPrice(Configuration const *cfg, PaymentMethod id); diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index 1b7cb56..7c078d5 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -115,8 +115,8 @@ QDateTime Calculator::GetDailyTicketDuration(Configuration* cfg, const QDateTime /// std::string Calculator::GetDurationFromCost(Configuration* cfg, uint8_t payment_option, - char const* start_datetime, // given in local time - double price, + char const *start_datetime, // given in local time + double cost, bool nextDay, bool prepaid) { @@ -131,7 +131,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, if (tariffIs24_7(cfg)) { // use tariff with structure as for instance Schoenau, Koenigsee: // without given YearPeriod, SpecialDays and SpecialDaysWorktime - inputDate = inputDate.addSecs(GetDurationForPrice(cfg, price) * 60); + inputDate = inputDate.addSecs(GetDurationForPrice(cfg, cost) * 60); return inputDate.toString(Qt::ISODate).toStdString(); } else { if (Utilities::IsYearPeriodActive(cfg, inputDate)) { @@ -147,9 +147,282 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, return ""; } } + } else + if (paymentMethodId == PaymentMethod::Progressive) { + // started with Neuhauser, Kirchdorf: merge into main algo. later + // for now try out some ideas + + static const bool carryOverNotSet = Utilities::isCarryOverNotSet(cfg, paymentMethodId); + + Q_ASSERT_X(carryOverNotSet, __func__, "CARRYOVER SET (FOR KIRCHDORF)"); + Q_ASSERT_X(prepaid, __func__, "PREPAID NOT SET (FOR KIRCHDORF)"); + + QDateTime start = QDateTime::fromString(QString(start_datetime)); + QDateTime end = QDateTime(); + + int weekdayId = -1; + int weekdayIdLast = -1; + int timeRanges = 0; + int durationMinutesBrutto = 0; + int durationMinutes = Utilities::getMaximalParkingPrice(cfg, paymentMethodId); + + + QDateTime current = QDateTime::fromString(QString(start_datetime), Qt::ISODate); + +#define DEBUG 1 +//#define DEBUG 0 + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "current" << current.time().toString(Qt::ISODate) + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + int days = 7; + while (--days > 0) { + weekdayId = current.date().dayOfWeek(); + weekdayIdLast = weekdayId; // TODO: some end condition in json-file + + while ((timeRanges = cfg->WeekDaysWorktime.count(weekdayId)) == 0) { + current = current.addDays(1); + weekdayId = current.date().dayOfWeek(); + if (weekdayId == weekdayIdLast) { + qCritical() << "ERROR: NO VALID WORKDAY-TIMES DEFINED"; + return 0; + } + } + + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + QTime to = QTime(0, 0, 0); + for (WTIterator itr = p.first; itr != p.second; ++itr) { + QTime const &t = Utilities::WeekDaysWorkTimeUntil(itr); + + if (to < t) { + to = t; + } + } + + + if (current.time() >= to) { + QDateTime const dt = start; + start = start.addDays(1); + start.setTime(QTime(0, 0, 0)); + + durationMinutesBrutto += dt.secsTo(start) / 60; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "start" << start.time().toString(Qt::ISODate) + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + current = start; + } else { + break; + } + } + + int durationMinutesNetto = 0; + uint price = cost; + + if (carryOverNotSet) { + int range = 0; + int minsToCarryOver = 0; // from one work-time to the other on the same day + QDateTime lastCurrent = QDateTime(); + + auto timeRangeIt = cfg->TimeRange.cbegin(); + for (; timeRangeIt != cfg->TimeRange.cend(); ++timeRangeIt) { + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + for (WTIterator itr = p.first; itr != p.second; ++itr) { + ++range; + + QTime const &from = Utilities::WeekDaysWorkTimeFrom(itr); + QTime const &to = Utilities::WeekDaysWorkTimeUntil(itr); + + Q_ASSERT_X(from < to, __func__, "MISCONFIGURED WORK-TIMES"); + + + if (current.time() >= to) { + continue; // try to use next available work-time + } else + if (current.time() <= from) { + if (prepaid) { + lastCurrent = current; + current.setTime(from); // move current forward (range==1), + // as prepaid is set + uint const minutesMoved = lastCurrent.secsTo(current) / 60; + durationMinutesBrutto += minutesMoved; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "lastCurrent" << lastCurrent.time().toString(Qt::ISODate) + << "current" << current.time().toString(Qt::ISODate) + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + if (range == 1) { + // TODO + // start_datetime = current; + } + } + } + + while (timeRangeIt != cfg->TimeRange.cend()) { + ATBTimeRange timeRange = timeRangeIt->second; + + timeRange.computeQTimes(current.time()); + + int duration = timeRange.time_range_to_in_minutes_from_start - + timeRange.time_range_from_in_minutes_from_start; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "duration" << duration + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + if (current.addSecs(duration * 60).time() <= to) { + + for(const auto &x: cfg->PaymentRate) { + ATBPaymentRate const rate = x.second; + if (rate.pra_payment_unit_id == timeRange.time_range_payment_type_id) { + if (minsToCarryOver > 0) { + durationMinutes -= minsToCarryOver; + durationMinutesNetto += minsToCarryOver; + durationMinutesBrutto += minsToCarryOver; + current = current.addSecs(minsToCarryOver*60); + minsToCarryOver = 0; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "price" << price + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + } else { + price -= (uint)rate.pra_price; + + durationMinutes -= duration; + durationMinutesNetto += duration; + durationMinutesBrutto += duration; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "price" << price + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + current = current.addSecs(duration * 60); + + if (price <= 0) { + + //end = start.addSecs(durationMinutesBrutto * 60); + end = current; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "durationMinutesBrutto" << durationMinutesBrutto + << "price" << price + << "current" << current.toString(Qt::ISODate) + << "end" << end.toString(Qt::ISODate); +#endif + + return end.toString(Qt::ISODate).toStdString(); + } + } + break; + } + } + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << durationMinutes << durationMinutes; +#endif + + if (durationMinutes <= 0) { + end = current; + return end.toString(Qt::ISODate).toStdString(); + } + + ++timeRangeIt; + + } else { + + lastCurrent = current; + current.setTime(to); + int const minsLeft = lastCurrent.secsTo(current) / 60; + + // mod duration: possibly discard some minutes in + // the next time-range + minsToCarryOver = (durationMinutes - minsLeft) % duration; + + durationMinutes -= minsLeft; + durationMinutesNetto += minsLeft; + durationMinutesBrutto += minsLeft; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "lastCurrent" << lastCurrent.time().toString(Qt::ISODate) + << "current" << current.time().toString(Qt::ISODate) + << "minsLeft" << minsLeft + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + if (minsLeft > 0) { + for(const auto &x: cfg->PaymentRate) { + ATBPaymentRate const rate = x.second; + if (rate.pra_payment_unit_id == timeRange.time_range_payment_type_id) { + price -= (uint)rate.pra_price; + if (price <= 0) { + end = lastCurrent; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "lastCurrent" << lastCurrent.time().toString(Qt::ISODate) + << "current" << current.time().toString(Qt::ISODate) + << "price" << price + << "end" << end.toString(Qt::ISODate); +#endif + // return end.toString(Qt::ISODate).toStdString(); + break; + } else break; + } + } + } + + break; + } + } + } + + end = current; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "end" << end.toString(Qt::ISODate) + << "durationMinutes" << durationMinutes + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + return end.toString(Qt::ISODate).toStdString(); + } + } + + end = QDateTime(); + return end.toString(Qt::ISODate).toStdString(); } - Ticket t = private_GetDurationFromCost(cfg, inputDate, price, prepaid); + Ticket t = private_GetDurationFromCost(cfg, inputDate, cost, prepaid); // qCritical().noquote() << t; @@ -301,7 +574,6 @@ double Calculator::GetCostFromDuration(Configuration* cfg, int weekdayId = -1; int weekdayIdLast = -1; - int timeRanges = 0; int durationMinutesBrutto = 0; QDateTime current = start; @@ -311,7 +583,7 @@ double Calculator::GetCostFromDuration(Configuration* cfg, weekdayId = current.date().dayOfWeek(); weekdayIdLast = weekdayId; // TODO: some end condition in json-file - while ((timeRanges = cfg->WeekDaysWorktime.count(weekdayId)) == 0) { + while (cfg->WeekDaysWorktime.count(weekdayId) == 0) { current = current.addDays(1); weekdayId = current.date().dayOfWeek(); if (weekdayId == weekdayIdLast) { diff --git a/library/src/calculator_functions.cpp.kirchdorf b/library/src/calculator_functions.cpp.kirchdorf new file mode 100644 index 0000000..8353516 --- /dev/null +++ b/library/src/calculator_functions.cpp.kirchdorf @@ -0,0 +1,1315 @@ +#include "calculator_functions.h" +#include "payment_option.h" +#include "utilities.h" +#include "tariff_log.h" +#include "tariff_time_range.h" +#include "ticket.h" + +#include +#include +#include +#include +#include + +double total_duration_min = 0.0f; +double total_cost = 0.0f; +bool overtime = false; + +#ifdef _WIN32 +inline struct tm* localtime_r(const time_t *clock, struct tm* result){ + if(!clock || !result) return NULL; + memcpy(result,localtime(clock),sizeof(*result)); + return result; +} +#endif + +QDateTime Calculator::GetDailyTicketDuration(Configuration* cfg, const QDateTime start_datetime, uint8_t payment_option, bool carry_over) +{ + if(!start_datetime.isValid()) { + return QDateTime(); + } + + double day_price = 0.0f; + int current_special_day_id = -1; + bool is_special_day = Utilities::CheckSpecialDay(cfg, start_datetime.toString(Qt::ISODate).toStdString().c_str(), ¤t_special_day_id, &day_price); + + QDateTime inputDateTime = start_datetime; + QTime worktime_from; + QTime worktime_to; + + int daily_card_price = cfg->PaymentOption.find(payment_option)->second.pop_daily_card_price; + if(daily_card_price <= 0) { + qCritical() << "Calculator::GetDailyTicketDuration(): Daily ticket price zero or less"; + return QDateTime(); + } + + if(is_special_day) + { + worktime_from = QTime::fromString(cfg->SpecialDaysWorktime.find(current_special_day_id)->second.pedwt_time_from.c_str(), Qt::ISODate); + worktime_to = QTime::fromString(cfg->SpecialDaysWorktime.find(current_special_day_id)->second.pedwt_time_to.c_str(),Qt::ISODate); + + if(inputDateTime.time() < worktime_from) inputDateTime.setTime(worktime_from); + if(carry_over) inputDateTime.setTime(worktime_from); + + if(inputDateTime.time() >= worktime_to) + { + // Go to next day if outside worktime + inputDateTime = inputDateTime.addSecs(86400); + return GetDailyTicketDuration(cfg,inputDateTime, payment_option,true); + } + + if(day_price <=0) + { + // Go to next day if special day price is 0 + inputDateTime = inputDateTime.addSecs(86400); + return GetDailyTicketDuration(cfg,inputDateTime, payment_option,true); + } + + int diff = abs(inputDateTime.time().secsTo(worktime_to)); + inputDateTime = inputDateTime.addSecs(diff); + + //qDebug() << "Ticket is valid until: " << inputDateTime.toString(Qt::ISODate) << "price = " << daily_card_price << ", duration = " << diff / 60; + return inputDateTime; + } + else + { + // Get day of week + int const weekdayId = inputDateTime.date().dayOfWeek(); + + // If no working day found, skip it (recursively call method again) + size_t found = cfg->WeekDaysWorktime.count(weekdayId); + + // When no workday found, go to next available day + if(found <=0) + { + inputDateTime = inputDateTime.addSecs(86400); + return GetDailyTicketDuration(cfg,inputDateTime, payment_option,true); + } + else + { + worktime_from = QTime::fromString(cfg->WeekDaysWorktime.find(weekdayId)->second.pwd_time_from.c_str(),Qt::ISODate); + worktime_to = QTime::fromString(cfg->WeekDaysWorktime.find(weekdayId)->second.pwd_time_to.c_str(),Qt::ISODate); + if(inputDateTime.time() < worktime_from) + inputDateTime.setTime(worktime_from); + + if(carry_over) + inputDateTime.setTime(worktime_from); + + if(inputDateTime.time() >= worktime_to) + { + // Go to next day if outside worktime + inputDateTime = inputDateTime.addSecs(86400); + return GetDailyTicketDuration(cfg,inputDateTime, payment_option,true); + } + + int diff = abs(inputDateTime.time().secsTo(worktime_to)); + inputDateTime = inputDateTime.addSecs(diff); + + //qDebug() << "Ticket is valid until: " << inputDateTime.toString(Qt::ISODate) << "price = " << daily_card_price << ", duration = " << diff / 60; + return inputDateTime; + } + } + + return QDateTime(); +} +/// +std::string Calculator::GetDurationFromCost(Configuration* cfg, + uint8_t payment_option, + char const* start_datetime, // given in local time + double price, + bool nextDay, + bool prepaid) +{ + Q_UNUSED(payment_option); + Q_UNUSED(nextDay); + + // Get input date + QDateTime inputDate = QDateTime::fromString(start_datetime,Qt::ISODate); + + static const PaymentMethod paymentMethodId = Utilities::getPaymentMethodId(cfg); + if (paymentMethodId == PaymentMethod::Steps) { + if (tariffIs24_7(cfg)) { + // use tariff with structure as for instance Schoenau, Koenigsee: + // without given YearPeriod, SpecialDays and SpecialDaysWorktime + inputDate = inputDate.addSecs(GetDurationForPrice(cfg, price) * 60); + return inputDate.toString(Qt::ISODate).toStdString(); + } else { + if (Utilities::IsYearPeriodActive(cfg, inputDate)) { + if (!prepaid) { + CalcState cs = isParkingAllowed(cfg, inputDate); + if (cs) { + inputDate.setTime(cs.getAllowedTimeRange().getTimeUntil()); + return inputDate.toString(Qt::ISODate).toStdString(); + } + } + + qCritical() << __func__ << ":" << __LINE__ << "NOT YET IMPLEMENTED"; + return ""; + } + } + } + + Ticket t = private_GetDurationFromCost(cfg, inputDate, price, prepaid); + + // qCritical().noquote() << t; + + // TODO: im fehlerfall + return t.getValidUntil().toString(Qt::ISODate).toStdString(); +} + +/////////////////////////////////////// + +/// +/// + +uint32_t Calculator::GetCostFromDuration(Configuration *cfg, + QDateTime const &start, + quint64 timeStepInMinutes) const { + // for instance, a tariff as used in Schoenau, Koenigssee: only steps, no + // special days, nonstop. + static const PaymentMethod paymentMethodId = Utilities::getPaymentMethodId(cfg); + if (paymentMethodId == PaymentMethod::Steps) { + QDateTime const end = start.addSecs(timeStepInMinutes*60); + return GetCostFromDuration(cfg, start, end); + } + return 0; +} + +uint32_t Calculator::GetCostFromDuration(Configuration * cfg, + QDateTime const &start, + QDateTime const &end) const { + static const PaymentMethod paymentMethodId = Utilities::getPaymentMethodId(cfg); + if (paymentMethodId == PaymentMethod::Steps) { + int const timeStepInMinutes = start.secsTo(end) / 60; + return GetPriceForTimeStep(cfg, timeStepInMinutes); + } + return 0; +} + + +CalcState Calculator::isParkingAllowed(Configuration const *cfg, QDateTime const &start) { + static const PaymentMethod paymentMethodId = Utilities::getPaymentMethodId(cfg); + + if (paymentMethodId == PaymentMethod::Steps) { + int const weekdayId = start.date().dayOfWeek(); + BusinessHours businessHours = Utilities::getBusinessHours(cfg, paymentMethodId); + if (businessHours == BusinessHours::OnlyWeekDays) { + if (weekdayId != (int)Qt::Saturday && weekdayId != (int)Qt::Sunday) { // e.g. Neuhauser, Linsinger Maschinenbau (741) + if (cfg->WeekDaysWorktime.count(weekdayId) > 0) { + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + for (WTIterator itr = p.first; itr != p.second; ++itr) { + QTime const &from = Utilities::WeekDaysWorkTimeFrom(itr); + QTime const &until = Utilities::WeekDaysWorkTimeUntil(itr); + QTime const &startTime = start.time(); + if (from > startTime) { + return CalcState(CalcState::State::OUTSIDE_ALLOWED_PARKING_TIME, + QString("%1 < %2").arg(from.toString(Qt::ISODate)) + .arg(startTime.toString(Qt::ISODate)), from, until); + } else + if (startTime >= until) { + return CalcState(CalcState::State::OUTSIDE_ALLOWED_PARKING_TIME, + QString("%1 >= %2").arg(startTime.toString(Qt::ISODate)) + .arg(until.toString(Qt::ISODate)), from, until); + } + return CalcState(CalcState::State::SUCCESS, + "PARKING ALLOWED", from, until); + } + } + } + } else + if (businessHours == BusinessHours::AllDaysWithRestrictedHours) { // e.g. for Neuhauser, NAZ (744) + if (cfg->WeekDaysWorktime.count(weekdayId) > 0) { + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + for (WTIterator itr = p.first; itr != p.second; ++itr) { + QTime const &from = Utilities::WeekDaysWorkTimeFrom(itr); + QTime const &until = Utilities::WeekDaysWorkTimeUntil(itr); + QTime const &startTime = start.time(); + if (from > startTime) { + return CalcState(CalcState::State::OUTSIDE_ALLOWED_PARKING_TIME, + QString("%1 < %2").arg(from.toString(Qt::ISODate)) + .arg(startTime.toString(Qt::ISODate)), from, until); + } else + if (startTime >= until) { + return CalcState(CalcState::State::OUTSIDE_ALLOWED_PARKING_TIME, + QString("%1 >= %2").arg(startTime.toString(Qt::ISODate)) + .arg(until.toString(Qt::ISODate)), from, until); + } + return CalcState(CalcState::State::SUCCESS, + "PARKING ALLOWED", from, until); + } + } + } + } + + return CalcState(CalcState::State::OUTSIDE_ALLOWED_PARKING_TIME, "UNKNOWN ERROR", + QTime(), QTime()); +} + + +/////////////////////////////////////// + +/// +double Calculator::GetCostFromDuration(Configuration* cfg, + uint8_t payment_option, + QDateTime &start_datetime, + QDateTime &end_datetime, + int durationMinutes, + bool nextDay, + bool prepaid) { + Q_UNUSED(payment_option); + Q_UNUSED(nextDay); + + static const PaymentMethod paymentMethodId = Utilities::getPaymentMethodId(cfg); + if (paymentMethodId == PaymentMethod::Steps) { + if (tariffIs24_7(cfg)) { + end_datetime = start_datetime.addSecs(durationMinutes*60); + return GetCostFromDuration(cfg, start_datetime, end_datetime); + } else { + if (Utilities::IsYearPeriodActive(cfg, start_datetime)) { + if (!prepaid) { + CalcState cs = isParkingAllowed(cfg, start_datetime); + if (cs) { + end_datetime = start_datetime.addSecs(durationMinutes*60); + double cost = GetCostFromDuration(cfg, start_datetime, end_datetime); + end_datetime = start_datetime; + end_datetime.setTime(cs.getAllowedTimeRange().getTimeUntil()); + return cost; + } + } + + qCritical() << __PRETTY_FUNCTION__ << "NOT YET IMPLEMENTED"; + end_datetime = QDateTime(); + return 0; + } + } + } else + if (paymentMethodId == PaymentMethod::Progressive) { + // started with Neuhauser, Kirchdorf: merge into main algo. later + // for now try out some ideas + + static const bool carryOverNotSet = Utilities::isCarryOverNotSet(cfg, paymentMethodId); + static const uint minParkingPrice = Utilities::getMinimalParkingPrice(cfg, paymentMethodId); + + Q_ASSERT_X(carryOverNotSet, __func__, "CARRYOVER SET (FOR KIRCHDORF)"); + Q_ASSERT_X(prepaid, __func__, "PREPAID NOT SET (FOR KIRCHDORF)"); + + QDateTime start = start_datetime; + +#define DEBUG 0 +#if DEBUG==1 + qCritical() << "start" << start.toString(Qt::ISODate) << durationMinutes; +#endif + int weekdayId = -1; + int weekdayIdLast = -1; + int timeRanges = 0; + int durationMinutesBrutto = 0; + + QDateTime current = start; + + //if ((durationMinutes % 5) != 0) { + // qCritical() << "ERROR DURATION (" << durationMinutes + // << ") NOT A MULTIPLE Of 5"; + //} + + int days = 7; + while (--days > 0) { + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "start" << start.toString(Qt::ISODate) + << "current" << current.toString(Qt::ISODate); +#endif + weekdayId = current.date().dayOfWeek(); + weekdayIdLast = weekdayId; // TODO: some end condition in json-file + + while ((timeRanges = cfg->WeekDaysWorktime.count(weekdayId)) == 0) { + current = current.addDays(1); + weekdayId = current.date().dayOfWeek(); + if (weekdayId == weekdayIdLast) { + qCritical() << "ERROR: NO VALID WORKDAY-TIMES DEFINED"; + return 0; + } + } + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "current" << current.toString(Qt::ISODate); +#endif + + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + QTime to = QTime(0, 0, 0); + for (WTIterator itr = p.first; itr != p.second; ++itr) { + QTime const &t = Utilities::WeekDaysWorkTimeUntil(itr); + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "current" << current.time().toString(Qt::ISODate) + << "t" << t.toString(Qt::ISODate) + << "to" << to.toString(Qt::ISODate); +#endif + + if (to < t) { + to = t; + } + } + + + if (current.time() >= to) { + QDateTime const dt = start; + start = start.addDays(1); + start.setTime(QTime(0, 0, 0)); + + durationMinutesBrutto += dt.secsTo(start) / 60; + current = start; + } else { + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "current" << current.toString(Qt::ISODate) + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + break; + } + } + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "timeRanges" << timeRanges << weekdayId + << "durationMinutesBrutto" << durationMinutesBrutto + << "start" << start.toString(Qt::ISODate) + << "current" << current.toString(Qt::ISODate); +#endif + + int durationMinutesNetto = 0; + uint price = 0; + + if (carryOverNotSet) { + int range = 0; + int minsToCarryOver = 0; // from one work-time to the other on the same day + QDateTime lastCurrent = QDateTime(); + + auto timeRangeIt = cfg->TimeRange.cbegin(); + for (; timeRangeIt != cfg->TimeRange.cend(); ++timeRangeIt) { + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + for (WTIterator itr = p.first; itr != p.second; ++itr) { + ++range; + + QTime const &from = Utilities::WeekDaysWorkTimeFrom(itr); + QTime const &to = Utilities::WeekDaysWorkTimeUntil(itr); + + Q_ASSERT_X(from < to, __func__, "MISCONFIGURED WORK-TIMES"); + + + if (current.time() >= to) { +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "current" << current.toString(Qt::ISODate) + << "from" << from.toString(Qt::ISODate) + << "to" << to.toString(Qt::ISODate); +#endif + continue; // try to use next available work-time + } else + if (current.time() <= from) { + if (prepaid) { + lastCurrent = current; + current.setTime(from); // move current forward (range==1), + // as prepaid is set + uint const minutesMoved = lastCurrent.secsTo(current) / 60; +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "current" << current.toString(Qt::ISODate) + << "lastCurrent" << lastCurrent.toString(Qt::ISODate) + << "minutesMoved" << minutesMoved + << "durationMinutes" << durationMinutes; +#endif + durationMinutesBrutto += minutesMoved; + + if (range == 1) { + start_datetime = current; + } + } + } + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "from" << from.toString(Qt::ISODate) + << "to" << to.toString(Qt::ISODate) + << "current" << current.toString(Qt::ISODate) + << "durationMinutes" << durationMinutes; +#endif + + while (timeRangeIt != cfg->TimeRange.cend()) { + ATBTimeRange timeRange = timeRangeIt->second; + + timeRange.computeQTimes(current.time()); + + int duration = timeRange.time_range_to_in_minutes_from_start - + timeRange.time_range_from_in_minutes_from_start; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "duration" << duration << timeRange.time_range_id + << "current" << current.toString(Qt::ISODate) + << "minsToCarryOver" << minsToCarryOver + << "durationMinutes" << durationMinutes; +#endif + + if (current.addSecs(duration * 60).time() <= to) { + + for(const auto &x: cfg->PaymentRate) { + ATBPaymentRate const rate = x.second; + if (rate.pra_payment_unit_id == timeRange.time_range_payment_type_id) { + if (minsToCarryOver > 0) { + durationMinutes -= minsToCarryOver; + durationMinutesNetto += minsToCarryOver; + durationMinutesBrutto += minsToCarryOver; + current = current.addSecs(minsToCarryOver*60); + minsToCarryOver = 0; +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "durationMinutes" << durationMinutes + << "durationMinutesNetto" << durationMinutesNetto + << "durationMinutesBrutto" << durationMinutesBrutto + << "current" << current.toString(Qt::ISODate); +#endif + } else { + price += (uint)rate.pra_price; + + durationMinutes -= duration; + durationMinutesNetto += duration; + durationMinutesBrutto += duration; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "duration" << duration + << "durationMinutes" << durationMinutes + << "durationMinutesNetto" << durationMinutesNetto + << "durationMinutesBrutto" << durationMinutesBrutto; +#endif + + current = current.addSecs(duration * 60); + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "current" << current.toString(Qt::ISODate) + << "price" << price; +#endif + } + + break; + } + } + + if (durationMinutes <= 0) { + end_datetime = current; +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "duration" << durationMinutesNetto << ", price" << price + << current.toString(Qt::ISODate) + << end_datetime.toString(Qt::ISODate); +#endif + return price; + } + + ++timeRangeIt; + + } else { + + lastCurrent = current; + current.setTime(to); + int const minsLeft = lastCurrent.secsTo(current) / 60; + + // mod duration: possibly discard some minutes in + // the next time-range + minsToCarryOver = (durationMinutes - minsLeft) % duration; + + durationMinutes -= minsLeft; + durationMinutesNetto += minsLeft; + durationMinutesBrutto += minsLeft; + +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "lastCurrent" << lastCurrent.toString(Qt::ISODate) + << "current" << current.toString(Qt::ISODate) + << "minsLeft" << minsLeft; + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "duration" << duration + << "durationMinutes" << durationMinutes + << "durationMinutesNetto" << durationMinutesNetto + << "durationMinutesBrutto" << durationMinutesBrutto + << "minsToCarryOver" << minsToCarryOver; +#endif + + if (minsLeft > 0) { + for(const auto &x: cfg->PaymentRate) { + ATBPaymentRate const rate = x.second; + if (rate.pra_payment_unit_id == timeRange.time_range_payment_type_id) { + price += (uint)rate.pra_price; +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "price" << price; +#endif + break; + } + } + } + + break; + } + } + } + + end_datetime = start.addSecs(durationMinutesBrutto * 60); +#if DEBUG==1 + qCritical() << "(" << __func__ << ":" << __LINE__ << ")" + << "duration" << durationMinutesNetto + << ", price" << std::max(price, minParkingPrice) + << start.toString(Qt::ISODate) + << end_datetime.toString(Qt::ISODate); +#endif + return std::max(price, minParkingPrice); + } + } + + end_datetime = QDateTime(); + return 0; + } + + QDateTime start = start_datetime; + + Ticket t = private_GetCostFromDuration(cfg, start, + durationMinutes, + prepaid); + if (t) { + // qCritical().noquote() << t; + } + + end_datetime = t.getValidUntil(); + + return t.getPrice(); +} + +bool Calculator::checkDurationMinutes(int minParkingTime, + int maxParkingTime, + int durationMinutes) { + if (durationMinutes > maxParkingTime) { + qWarning() << QString("Total duration >= max_min (%1 >= %2)").arg(durationMinutes).arg(maxParkingTime); + return false; + } + if (durationMinutes < minParkingTime) { + qWarning() << QString("Total duration <= minMin (%1 <= %2)").arg(durationMinutes).arg(minParkingTime); + return false; + } + + return true; +} + +int Calculator::findWorkTimeRange(QDateTime const &dt, + QScopedArrayPointer const &worktime, + size_t size) { + for (size_t w = 0; w < size; ++w) { + QTime const &worktime_from = worktime[w].getTimeFrom(); + QTime const &worktime_to = worktime[w].getTimeUntil(); + + if ((dt.time() >= worktime_from) && (dt.time() < worktime_to)) { + return w; + } + } + return -1; +} + +int Calculator::findNextWorkTimeRange(QDateTime const &dt, + QScopedArrayPointer const &worktime, + size_t size) { + int nextWorkTimeRange = -1; + for (size_t w = 0; w < size; ++w) { + QTime const &worktime_from = worktime[w].getTimeFrom(); + + if (dt.time() < worktime_from) { + nextWorkTimeRange = w; + break; + } + } + return nextWorkTimeRange; +} + +using namespace Utilities; + +Ticket Calculator::private_GetCostFromDuration(Configuration const* cfg, + QDateTime const &start, + int durationMinutes, // Netto + bool prepaid) { + + static const PaymentMethod paymentMethodId = Utilities::getPaymentMethodId(cfg); + static const bool carryOverNotSet = isCarryOverNotSet(cfg, paymentMethodId); + static const int minParkingTimeMinutes = Utilities::getMinimalParkingTime(cfg, paymentMethodId); + static const int maxParkingTimeMinutes = Utilities::getMaximalParkingTime(cfg, paymentMethodId); + static const bool checkMinMaxMinutes = (minParkingTimeMinutes < maxParkingTimeMinutes); + static const int durationMinutesNetto = durationMinutes; + static const uint32_t weekDaysPrice = Utilities::computeWeekDaysPrice(cfg, paymentMethodId); + static const double weekDaysDurationUnit = Utilities::computeWeekDaysDurationUnit(cfg, paymentMethodId); + static const double specialDaysDurationUnit = 60.0; + + if (!checkMinMaxMinutes) { + qCritical() << QString( + "ERROR: CONDITION minMin < maxMin (%1 < %2) IS NOT VALID") + .arg(minParkingTimeMinutes).arg(maxParkingTimeMinutes); + return Ticket(); + } + + if (!checkDurationMinutes(minParkingTimeMinutes, + maxParkingTimeMinutes, durationMinutes)) { + return Ticket(); + } + + uint32_t price = 0; + uint32_t costFromDuration = 0; + double durationUnit = 0.0; + int specialDayId = -1; + bool isSpecialDay = false; + Ticket ticket; + QDateTime end = start; + QDateTime current; + int totalTimeRanges = 0; + + for (current = start; durationMinutes > 0; current = current.addDays(1)) { + int const weekdayId = current.date().dayOfWeek(); + + specialDayId = -1; + + // find worktime ranges for the current day + int const timeRanges = std::max((int)cfg->WeekDaysWorktime.count(weekdayId), 1); + QScopedArrayPointer worktime(new TariffTimeRange[timeRanges]); + int ranges = 0; + + if((isSpecialDay = Utilities::CheckSpecialDay(cfg, current, &specialDayId, &price))) { + // Set special day price: + durationUnit = specialDaysDurationUnit; + worktime[ranges].setTimeRange(SpecialDaysWorkTimeFrom(cfg, specialDayId), + SpecialDaysWorkTimeUntil(cfg, specialDayId)); + ranges = 1; + } else { + // Set new price for the normal day: do not use a floating-point type + // for the price, rather compute with integers. Only at the very end of + // the computation the price is divided by durationUnit. + price = weekDaysPrice; + durationUnit = weekDaysDurationUnit; + + // If no working day found, skip it (epsecially Sundays!) + if (cfg->WeekDaysWorktime.count(weekdayId) <= 0) { + qDebug() << "No workday found, trying to find next available day"; + end = current; + current.setTime(QTime()); // start at midnight on the next day + continue; + } + + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + for (WTIterator itr = p.first; itr != p.second; ++itr) { + worktime[ranges].setTimeRange(WeekDaysWorkTimeFrom(itr), + WeekDaysWorkTimeUntil(itr)); + ranges += 1; + } + } + + QTime const &lastWorktimeTo = worktime[ranges-1].getTimeUntil(); + + // qCritical() << "start" << start.toString(Qt::ISODate) + // << "current" << current.toString(Qt::ISODate) << lastWorktimeTo; + + // find worktime range to start with + int currentRange = 0; + if (!isSpecialDay) { + if (start != current) { // on next day + current.setTime(worktime[currentRange].getTimeFrom()); + } else { + // check if inputDate is located inside a valid worktime-range... + if ((currentRange = findWorkTimeRange(current, worktime, ranges)) == -1) { + if (!prepaid && carryOverNotSet) { // parking is not allowed + return Ticket(start, QDateTime(), durationMinutesNetto, 0, + 0, Ticket::s[INVALID_FROM_DATETIME]); + } + // find the next worktime-range (on the same day), and start from there + if ((currentRange = findNextWorkTimeRange(current, worktime, ranges)) == -1) { + end = current; + continue; + } + current.setTime(worktime[currentRange].getTimeFrom()); + } + } + } + + // qCritical() << "current" << current.toString(Qt::ISODate); + + for (int w = currentRange; w < ranges; ++w, ++totalTimeRanges) { + if (durationMinutes > 0) { + QTime const &worktime_from = worktime[w].getTimeFrom(); + QTime const &worktime_to = worktime[w].getTimeUntil(); + + if (totalTimeRanges) { + // durationMinutes are always meant as netto time and + // the time between worktime-ranges are free. + current.setTime(worktime_from); + } + + if (price == 0) { + end = current; + current.setTime(QTime()); + continue; + } + + if (current.time() == worktime_to) { + end = current; + current.setTime(QTime()); + continue; + } + + // Check prepaid + if (!prepaid) { + if ((current.time() < worktime_from) || (current.time() > worktime_to)) { + qDebug() << "[STOP] * Ticket is not valid * "; + return Ticket(); + } + } else { + //qDebug() << "* PREPAID MODE ACTIVE *"; + //qCritical() << "current" << current.toString(Qt::ISODate) << worktime_from << lastWorktimeTo; + if (current.time() < worktime_from) { + current.setTime(worktime_from); + end = current; + } else if(current.time() > lastWorktimeTo) { + //qDebug() << " *** PREPAID *** Current time is past the time range end, searching for next available day"; + end = current; + current.setTime(QTime()); + continue; + } + } + + while(durationMinutes > 0) { + // Check for active year period + if (!IsYearPeriodActive(cfg, current)) { + return Ticket(); + } + if(current.time() >= lastWorktimeTo) { + // Go to next day if minutes not spent + if (carryOverNotSet) { + // no carry_over, so stop computation + break; + } + current.setTime(QTime()); + break; // stop while, and continue in outer loop + } else { + //qCritical() << "current" << current.toString(Qt::ISODate) << worktime_to; + if(current.time() < worktime_to) { + // Increment input date minutes for each monetary unit + current = current.addSecs(60); + end = current; + durationMinutes -= 1; + //costFromDuration += price_per_unit; + costFromDuration += price; + //qCritical() << "current" << current.toString(Qt::ISODate); + } else break; + } + } // while(durationMinutes > 0) { + } // if (durationMinutes > 0) { + } // for (int w = currentRange; w < ranges; ++w, ++totalTimeRanges) { + } // for (current = start; durationMinutes > 0; current = current.addDays(1)) { + + int durationMinutesBrutto = start.secsTo(end) / 60; + + return + Ticket(start, end, durationMinutesNetto, durationMinutesBrutto, + ceil(Utilities::CalculatePricePerUnit(costFromDuration, durationUnit)), + Ticket::s[VALID]); +} + + +Ticket Calculator::private_GetDurationFromCost(Configuration *cfg, + QDateTime const &start, + uint32_t cost, + bool prepaid) { + // Get input date + QDateTime current = start; + + static const PaymentMethod paymentMethodId = Utilities::getPaymentMethodId(cfg); + static const bool carryOverNotSet = isCarryOverNotSet(cfg, paymentMethodId); + static const uint32_t minParkingTimeMinutes = std::max(Utilities::getMinimalParkingTime(cfg, paymentMethodId), 0); + static const uint32_t maxParkingTimeMinutes = std::max(Utilities::getMaximalParkingTime(cfg, paymentMethodId), 0); + static const uint32_t minParkingPrice = getMinimalParkingPrice(cfg, paymentMethodId); + // static const bool checkMinMaxMinutes = (minParkingTimeMinutes < maxParkingTimeMinutes); + static const uint32_t weekDaysPrice = Utilities::computeWeekDaysPrice(cfg, paymentMethodId); + static const uint32_t weekDaysDurationUnit = Utilities::computeWeekDaysDurationUnit(cfg, paymentMethodId); + static const uint32_t specialDaysDurationUnit = 60; + + if(cost < minParkingPrice) { + uint64_t const durationMinutes = GetDurationForPrice(cfg, cost); + return Ticket(start, current, durationMinutes, durationMinutes, + cost, Ticket::s[INVALID_PRICE]); + } + if (minParkingTimeMinutes >= maxParkingTimeMinutes) { + // TODO + return Ticket(); + } + if (maxParkingTimeMinutes <= minParkingTimeMinutes) { + // TODO + return Ticket(); + } + + uint32_t durationMinutesNetto = 0; + double moneyLeft = cost; + double durationUnit = 1; + int specialDayId = -1; + bool isSpecialDay = false; + QDateTime end = start; + int totalTimeRanges = 0; + double price = 0; + + for (current = start; moneyLeft > 0 && moneyLeft >= price; current = current.addDays(1)) { + int const weekdayId = current.date().dayOfWeek(); + + specialDayId = -1; + + // find worktime ranges for the current day + int const timeRanges = std::max((int)cfg->WeekDaysWorktime.count(weekdayId), 1); + QScopedArrayPointer worktime(new TariffTimeRange[timeRanges]); + int ranges = 0; + + uint32_t p = 0; + if((isSpecialDay = Utilities::CheckSpecialDay(cfg, current, &specialDayId, &p))) { + // Set special day price: + durationUnit = specialDaysDurationUnit; + price = p / durationUnit; + price = std::round(price * 1000.0) / 1000.0; + worktime[ranges].setTimeRange(SpecialDaysWorkTimeFrom(cfg, specialDayId), + SpecialDaysWorkTimeUntil(cfg, specialDayId)); + ranges = 1; + } else { + // Set new price for the normal day: do not use a floating-point type + // for the price, rather compute with integers. Only at the very end of + // the computation the price is divided by durationUnit. + price = weekDaysPrice; + durationUnit = weekDaysDurationUnit; + price /= durationUnit; + price = std::round(price * 1000.0) / 1000.0; // round to 3 decimals + + // If no working day found, skip it (epsecially Sundays!) + if (cfg->WeekDaysWorktime.count(weekdayId) <= 0) { + // qDebug() << "No workday found, trying to find next available day"; + end = current; + current.setTime(QTime()); // start at midnight on the next day + continue; + } + + using WTIterator = std::multimap::const_iterator; + std::pair p = cfg->WeekDaysWorktime.equal_range(weekdayId); + + for (WTIterator itr = p.first; itr != p.second; ++itr) { + worktime[ranges].setTimeRange(WeekDaysWorkTimeFrom(itr), + WeekDaysWorkTimeUntil(itr)); + ranges += 1; + } + } + + QTime const &lastWorktimeTo = worktime[ranges-1].getTimeUntil(); + + // find worktime range to start with + int currentRange = 0; + if (!isSpecialDay) { + if (start != current) { // on next day + current.setTime(worktime[currentRange].getTimeFrom()); + } else { + // check if inputDate is located inside a valid worktime-range... + if ((currentRange = findWorkTimeRange(current, worktime, ranges)) == -1) { + if (!prepaid && carryOverNotSet) { // parking is not allowed + return Ticket(start, QDateTime(), durationMinutesNetto, 0, + 0, Ticket::s[INVALID_FROM_DATETIME]); + } + // find the next worktime-range (on the same day), and start from there + if ((currentRange = findNextWorkTimeRange(current, worktime, ranges)) == -1) { + end = current; + continue; + } + current.setTime(worktime[currentRange].getTimeFrom()); + } + } + } + + for (int w = currentRange; w < ranges; ++w, ++totalTimeRanges) { + if (moneyLeft > 0) { + QTime const &worktime_from = worktime[w].getTimeFrom(); + QTime const &worktime_to = worktime[w].getTimeUntil(); + + if (totalTimeRanges) { + // durationMinutes are always meant as netto time and + // the time between worktime-ranges are free. + current.setTime(worktime_from); + } + + if (price == 0) { + // inputDate = inputDate.addDays(1); + // inputDate.setTime(worktime_from); + end = current; + current.setTime(QTime()); + continue; + } + + if (current.time() == worktime_to) { + end = current; + current.setTime(QTime()); + continue; + } + + // Check prepaid + if (!prepaid) { + if (current.time() < worktime_from) { + qDebug() << "[STOP] TICKET IS NOT VALID: " + << QString("%1 (current) < %2 (start)") + .arg(current.toString(Qt::ISODate) + .arg(worktime_from.toString(Qt::ISODate))); + return Ticket(); + } else + if (current.time() > worktime_to) { + qDebug() << "[STOP] TICKET IS NOT VALID: " + << QString("%1 (current) > %2 (end)") + .arg(current.toString(Qt::ISODate) + .arg(worktime_to.toString(Qt::ISODate))); + return Ticket(); + } + } else { + if (current.time() < worktime_from) { + qDebug() << "*** PREPAID *** Current time is before time range start, fast-forward to start" + << worktime_from.toString(Qt::ISODate); + current.setTime(worktime_from); + end = current; + } else if(current.time() > lastWorktimeTo) { + qDebug() << " *** PREPAID *** Current time is past the time range end, searching for next available day"; + end = current; + current.setTime(QTime()); + continue; + } + } + + while(moneyLeft >= price) { + // Check for active year period + if (!IsYearPeriodActive(cfg, current)) { + return Ticket(); + } + // if(durationMinutesNetto >= maxParkingTimeMinutes) { + // might be useful for overpayment + // durationMinutesNetto = maxParkingTimeMinutes; + // int durationMinutesBrutto = start.secsTo(end) / 60; + // + // return + // Ticket(start, end, durationMinutesNetto, + // durationMinutesBrutto, cost, Ticket::s[INVALID_PRICE]); + // + // } + if(current.time() >= lastWorktimeTo) { + // Go to next day if minutes not spent + if (carryOverNotSet) { + // no carry_over, so stop computation + break; + } + current.setTime(QTime()); + break; // stop while, and continue in outer loop + } else { + if(current.time() < worktime_to) { + // Increment input date minutes for each monetary unit + durationMinutesNetto += 1; + moneyLeft -= price; + moneyLeft = std::round(moneyLeft * 1000.0) / 1000.0; + current = current.addSecs(60); + + //qCritical() << "moneyLeft" << moneyLeft + // << "durationMinutesNetto" << durationMinutesNetto + // << "current" << current.toString(Qt::ISODate); + + if(durationMinutesNetto <= maxParkingTimeMinutes) { + // stop updating of end-date if parking time is + // overshot + end = current; + } + } else break; + } + } // while(durationMinutes > 0) { + } // if (durationMinutes > 0) { + } // for (int w = currentRange; w < ranges; ++w, ++totalTimeRanges) { + } // for (current = start; durationMinutes > 0; current = current.addDays(1)) { + + int durationMinutesBrutto = start.secsTo(end) / 60; + + //qCritical() << "start" << start.toString(Qt::ISODate) << "end" + // << end.toString(Qt::ISODate) << durationMinutesBrutto; + + return + Ticket(start, end, durationMinutesNetto, durationMinutesBrutto, + cost, Ticket::s[VALID]); +} + +QList Calculator::GetPriceSteps(Configuration * /*cfg*/) const { + return QList(); +} + +QList Calculator::GetTimeSteps(Configuration *cfg) const { + if (m_timeSteps.size() > 0) { + //qCritical() << __PRETTY_FUNCTION__ << "timeSteps:" << m_timeSteps; + return m_timeSteps; + } + + QDateTime start = QDateTime::currentDateTime(); + start.setTime(QTime(start.time().hour(), start.time().minute(), 0)); + + int const pop_id = cfg->getPaymentOptions().pop_id; + int const pop_carry_over = cfg->getPaymentOptions().pop_carry_over; + int const pop_time_step_config = cfg->getPaymentOptions().pop_time_step_config; + + qCritical() << __func__ << ":" << __LINE__ << " start parking time:" << start.toString(Qt::ISODate); + qCritical() << __func__ << ":" << __LINE__ << " payment option id:" << pop_id; + qCritical() << __func__ << ":" << __LINE__ << "payment option carry over:" << pop_carry_over; + + if (pop_time_step_config == (int)ATBTimeStepConfig::TimeStepConfig::DYNAMIC) { + //qCritical() << __PRETTY_FUNCTION__ << "payment option time step config:" << "TimeStepConfig::DYNAMIC"; + + uint16_t timeStepCompensation = 0; + + if (pop_carry_over) { + int const pop_carry_over_time_range_id = cfg->getPaymentOptions().pop_carry_over_time_range_id; + QTime const carryOverTimeRangeFrom = cfg->TimeRange.find(pop_carry_over_time_range_id)->second.time_range_from; + QTime const carryOverTimeRangeTo = cfg->TimeRange.find(pop_carry_over_time_range_id)->second.time_range_to; + + if (carryOverTimeRangeFrom.secsTo(carryOverTimeRangeTo) <= 60) { // carry over time point, usually 00:00:00 + if (carryOverTimeRangeFrom == QTime(0, 0, 0)) { + for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) { + int const durationId = itr->second.pra_payment_unit_id; + auto search = cfg->Duration.find(durationId); + if (search != cfg->Duration.end()) { + ATBDuration duration = search->second; + if (durationId == 1) { + QDateTime carryOver = start; + carryOver = carryOver.addDays(1); + carryOver.setTime(QTime(0, 0, 0)); + + int const timeStep = std::ceil(start.secsTo(carryOver) / 60.0); + if (timeStep < duration.pun_duration_min || timeStep > duration.pun_duration_max) { + qCritical() + << QString("ERROR timeStep (%1) < durationMin (%2) || timeStep (%3)) > durationMax (%4)") + .arg(timeStep).arg(duration.pun_duration_min) + .arg(timeStep).arg(duration.pun_duration_max); + break; + } + qCritical() << __PRETTY_FUNCTION__ << "configured minimal parking time:" << cfg->getPaymentOptions().pop_min_time; + + // set dynamic minimal parking time + cfg->getPaymentOptions().pop_min_time = timeStep; + + qCritical() << __PRETTY_FUNCTION__ << " computed minimal parking time:" << cfg->getPaymentOptions().pop_min_time; + + duration.pun_duration = timeStep; + timeStepCompensation = duration.pun_duration_max - duration.pun_duration; + m_timeSteps << duration.pun_duration; + } else { + duration.pun_duration = duration.pun_duration_max - timeStepCompensation; + m_timeSteps << duration.pun_duration;; + } + + cfg->Duration.erase(search); + cfg->Duration.insert(pair(duration.pun_id, duration)); + + } else { // if (search != cfg->Duration.end()) { + // TODO + } + } + } else { // if (carryOverTimeRangeFrom == QTime(0, 0, 0)) { + // TODO + } + } else { // if (carryOverTimeRangeFrom == carryOverTimeRangeTo) { + // TODO + } + } else { // if (pop_carry_over) { + // TODO + } + } else { + qCritical() << __PRETTY_FUNCTION__ << "payment option time step config:" << "TimeStepConfig::STATIC"; + + for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) + { + int const durationId = itr->second.pra_payment_unit_id; + int const durationUnit = cfg->Duration.find(durationId)->second.pun_duration; + m_timeSteps << durationUnit; + } + } + + qCritical() << __PRETTY_FUNCTION__ << "NEW timeSteps:" << m_timeSteps; + + return m_timeSteps; +} + +uint32_t Calculator::GetPriceForTimeStep(Configuration *cfg, int timeStep) const { + + int const pop_id = cfg->getPaymentOptions().pop_id; + + for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) + { + int const payment_unit_id = itr->second.pra_payment_unit_id; + int const pun_id = cfg->Duration.find(payment_unit_id)->second.pun_id; + + Q_ASSERT(pun_id == payment_unit_id); + + int const pun_duration = cfg->Duration.find(payment_unit_id)->second.pun_duration; + if (timeStep == pun_duration) { + return (uint32_t)(itr->second.pra_price); + } + } + + return 0; +} + +uint32_t Calculator::GetDurationForPrice(Configuration *cfg, int price) const { + int const pop_id = cfg->getPaymentOptions().pop_id; + + uint32_t duration = 0; + + for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) + { + int const durationId = itr->second.pra_payment_unit_id; + int const pra_price = itr->second.pra_price; + + uint32_t const durationUnit = cfg->Duration.find(durationId)->second.pun_duration; + + if (pra_price == price) { + return durationUnit; + } + + if (pra_price < price) { + duration = durationUnit; + } + } + + return duration; +} + +std::optional +Calculator::GetDailyTicketPrice(Configuration* cfg, + QDateTime const &startDatetime, + QDateTime &endTime, + PERMIT_TYPE permitType) { + struct price_t price; + std::optional value; + + std::optional workTime = + cfg->getWeekDayWorkTime(startDatetime.time(), + (Qt::DayOfWeek)startDatetime.date().dayOfWeek()); + if (workTime) { + ATBWeekDaysWorktime const &wt = workTime.value(); + endTime = startDatetime; + endTime.setTime(QTime::fromString(wt.pwd_time_to.c_str(), Qt::ISODate)); + std::optional> dailyTickets = cfg->getDailyTicketsForAllKeys(); + if (dailyTickets) { + QVector const tickets = dailyTickets.value(); + switch (permitType) { + case PERMIT_TYPE::DAY_TICKET_ADULT: { + std::optional c = cfg->getCustomerForType(ATBCustomer::CustomerType::ADULT); + if (c) { + for (QVector::size_type i=0; i const &paymentOptions = cfg->getAllPaymentOptions(); + for (QVector::size_type j=0; j < paymentOptions.size(); ++j) { + int const pop_id = paymentOptions.at(j).pop_id; + std::optional> const &paymentRates = cfg->getPaymentRateForKey(pop_id); + if (paymentRates) { + QVector const &pr = paymentRates.value(); + for (QVector::size_type k=0; k < pr.size(); ++k) { + if (pr.at(k).pra_payment_option_id == pop_id) { + if (priceId == pr.at(k).pra_payment_unit_id) { + price.netto = pr.at(k).pra_price; + value = value.value_or(price); + } + } + } + } + } + } + } + } + } break; + case PERMIT_TYPE::DAY_TICKET_TEEN: { + std::optional c = cfg->getCustomerForType(ATBCustomer::CustomerType::TEEN); + if (c) { + for (QVector::size_type i=0; i const &paymentOptions = cfg->getAllPaymentOptions(); + for (QVector::size_type j=0; j < paymentOptions.size(); ++j) { + int const pop_id = paymentOptions.at(j).pop_id; + std::optional> const &paymentRates = cfg->getPaymentRateForKey(pop_id); + if (paymentRates) { + QVector const &pr = paymentRates.value(); + for (QVector::size_type k=0; k < pr.size(); ++k) { + if (pr.at(k).pra_payment_option_id == pop_id) { + if (priceId == pr.at(k).pra_payment_unit_id) { + price.netto = pr.at(k).pra_price; + value = value.value_or(price); + } + } + } + } + } + } + } + } + } break; + case PERMIT_TYPE::DAY_TICKET_CHILD: { + std::optional c = cfg->getCustomerForType(ATBCustomer::CustomerType::CHILD); + if (c) { + for (QVector::size_type i=0; i const &paymentOptions = cfg->getAllPaymentOptions(); + for (QVector::size_type j=0; j < paymentOptions.size(); ++j) { + int const pop_id = paymentOptions.at(j).pop_id; + std::optional> const &paymentRates = cfg->getPaymentRateForKey(pop_id); + if (paymentRates) { + QVector const &pr = paymentRates.value(); + for (QVector::size_type k=0; k < pr.size(); ++k) { + if (pr.at(k).pra_payment_option_id == pop_id) { + if (priceId == pr.at(k).pra_payment_unit_id) { + price.netto = pr.at(k).pra_price; + value = value.value_or(price); + } + } + } + } + } + } + } + } + } + // [[fallthrough]]; + case PERMIT_TYPE::SHORT_TERM_PARKING: { + } + // [[fallthrough]]; + case PERMIT_TYPE::DAY_TICKET: { + } + // [[fallthrough]]; + case PERMIT_TYPE::SZEGED_START: + // [[fallthrough]]; + case PERMIT_TYPE::SZEGED_STOP: + // [[fallthrough]]; + case PERMIT_TYPE::INVALID: + break; + } + } + } + + return value; +} diff --git a/library/src/configuration.cpp b/library/src/configuration.cpp index 16ecb7e..d301cd3 100644 --- a/library/src/configuration.cpp +++ b/library/src/configuration.cpp @@ -356,6 +356,8 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json) this->currentPaymentOptions.last().pop_price_night = k->value.GetDouble(); } else if (strcmp(inner_obj_name, "pop_min_time") == 0) { this->currentPaymentOptions.last().pop_min_time = k->value.GetDouble(); + } else if (strcmp(inner_obj_name, "pop_max_price") == 0) { + this->currentPaymentOptions.last().pop_max_price = k->value.GetDouble(); } else if (strcmp(inner_obj_name, "pop_max_time") == 0) { this->currentPaymentOptions.last().pop_max_time = k->value.GetDouble(); } else if (strcmp(inner_obj_name, "pop_min_price") == 0) { diff --git a/library/src/utilities.cpp b/library/src/utilities.cpp index 7fe41f7..962f822 100644 --- a/library/src/utilities.cpp +++ b/library/src/utilities.cpp @@ -393,6 +393,10 @@ uint32_t Utilities::getMinimalParkingPrice(Configuration const *cfg, PaymentMeth return std::max((int)cfg->PaymentOption.find(methodId)->second.pop_min_price, 0); } +uint32_t Utilities::getMaximalParkingPrice(Configuration const *cfg, PaymentMethod methodId) { + return std::max((int)cfg->PaymentOption.find(methodId)->second.pop_max_price, 0); +} + uint32_t Utilities::getFirstDurationStep(Configuration const *cfg, PaymentMethod methodId) { int const popId = cfg->PaymentOption.find(methodId)->second.pop_id; diff --git a/main/main.cpp b/main/main.cpp index 02512d4..208d56b 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -118,10 +118,10 @@ int main() { QDateTime s(QDate(2023, 11, 30), QTime()); // QDateTime s(QDate(2023, 11, 26), QTime()); QDateTime end; - for (int duration = 30; duration <= 30; duration += 5) { + for (int duration = 35; duration <= 35; duration += 5) { // for (int duration = 30; duration <= maxParkingTime; duration += 5) { qCritical() << ""; - for (int offset = 721; offset <= 721; ++offset) { + for (int offset = 1046; offset <= 1046; ++offset) { //for (int offset = 420; offset <= 1080; ++offset) { //if (offset > 720 && offset < 840) { // continue; @@ -130,8 +130,9 @@ int main() { QDateTime const firstStart = start; // qCritical() << "start" << start.toString(Qt::ISODate); - double cost = Calculator::GetInstance().GetCostFromDuration(&cfg, 3, start, end, duration, nextDay, prePaid); + double cost = Calculator::GetInstance().GetCostFromDuration(&cfg, 1, start, end, duration, nextDay, prePaid); +#if COST_FROM_DURATION==1 double cost_soll = 30 + ((duration-30)/5 * 10); uint32_t duration_ist = start.secsTo(end) / 60; @@ -160,13 +161,16 @@ int main() { //break; } +#else + std::string duration = Calculator::GetInstance().GetDurationFromCost(&cfg, 1, + start.toString(Qt::ISODate).toStdString().c_str(), + cost, false, true); + qCritical() << "start" << start.toString(Qt::ISODate) + << "cost" << cost + << "until" << duration.c_str() << start.secsTo(QDateTime::fromString(duration.c_str(), Qt::ISODate)) / 60; +#endif // COST_FROM_DURATION - - //std::string duration = calculator.GetDurationFromCost(&cfg, 3, start.toString(Qt::ISODate).toStdString().c_str(), cost); - //qCritical() << "start" << start.toString(Qt::ISODate) - // << "cost" << cost - // << "until" << duration.c_str() << start.secsTo(QDateTime::fromString(duration.c_str(), Qt::ISODate)) / 60; } } #endif // 0 diff --git a/main/main.cpp.bck.23112023 b/main/main.cpp.bck.23112023 new file mode 100644 index 0000000..ca7015a --- /dev/null +++ b/main/main.cpp.bck.23112023 @@ -0,0 +1,75 @@ +#ifdef WIN32 +#include +#include +#include + + +extern "C" char* strptime(const char* s, + const char* f, + struct tm* tm) { + // Isn't the C++ standard lib nice? std::get_time is defined such that its + // format parameters are the exact same as strptime. Of course, we have to + // create a string stream first, and imbue it with the current C locale, and + // we also have to make sure we return the right things if it fails, or + // if it succeeds, but this is still far simpler an implementation than any + // of the versions in any of the C standard libraries. + std::istringstream input(s); + input.imbue(std::locale(setlocale(LC_ALL, nullptr))); + input >> std::get_time(tm, f); + if (input.fail()) { + return nullptr; + } + return (char*)(s + input.tellg()); +} +#endif + +#include "calculate_price.h" +#include "calculator_functions.h" +#include "payment_method.h" +#include "payment_option.h" + + +#include +#include + + +static Calculator calculator; +int main() { + + parking_tariff_t *tariff = 0; + if (init_tariff(&tariff, "/tmp")) + { + + + for(auto itr = tariff->WeekDaysWorktime.begin(); itr != tariff->WeekDaysWorktime.end(); ++itr) + { + qCritical() << itr->first << "TO " << itr->second.pwd_time_from.c_str(); + qCritical() << itr->first << "FROM" << itr->second.pwd_time_from.c_str(); + } + + for (auto[itr, rangeEnd] = tariff->WeekDaysWorktime.equal_range(36); itr != rangeEnd; ++itr) + { + qCritical() << itr->first << itr->second.pwd_time_from.c_str(); + } + +#if 0 + struct price_t price; + memset(&price, 0x00, sizeof(price)); + QDateTime start = QDateTime::fromString("2023-11-22T14:00:00.000Z",Qt::ISODate); //QDateTime::currentDateTime(); + //QDateTime start = QDateTime::currentDateTime(); + for (int j=30; j <=180; j+=5) { + QDateTime s = start.addSecs(j*60); + for (int i = 60; i <= 360; i+=10) { + std::string a = calculator.GetDurationFromCost(tariff, PaymentOption::Option1, + s.toString(Qt::ISODate).toStdString().c_str(), + i); + + //qCritical() << "cost=" << i << ", duration=" << QString(a.c_str()); + } + } +#endif + free_tariff(tariff); + } + + return 0; +} diff --git a/script.sql b/script.sql new file mode 100644 index 0000000..75f20ac --- /dev/null +++ b/script.sql @@ -0,0 +1,296 @@ +/****** Object: User [atb_tariff_api] Script Date: 11.12.2023. 14:30:40 ******/ +CREATE USER [atb_tariff_api] FOR LOGIN [atb_tariff_api] WITH DEFAULT_SCHEMA=[dbo] +GO +ALTER ROLE [db_owner] ADD MEMBER [atb_tariff_api] +GO +ALTER ROLE [db_datareader] ADD MEMBER [atb_tariff_api] +GO +ALTER ROLE [db_datawriter] ADD MEMBER [atb_tariff_api] +GO +/****** Object: Table [dbo].[city] Script Date: 11.12.2023. 14:30:40 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[city]( + [cty_id] [int] IDENTITY(1,1) NOT NULL, + [cty_label] [nvarchar](50) NOT NULL, + [cty_delete_date] [datetimeoffset](7) NULL, + CONSTRAINT [PK_city] PRIMARY KEY CLUSTERED +( + [cty_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[payment_currency] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[payment_currency]( + [pcu_id] [int] IDENTITY(1,1) NOT NULL, + [pcu_sign] [nvarchar](50) NOT NULL, + [pcu_major] [nvarchar](50) NOT NULL, + [pcu_minor] [nvarchar](50) NULL, + [pcu_active] [bit] NOT NULL, + CONSTRAINT [PK_payment_currency] PRIMARY KEY CLUSTERED +( + [pcu_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[payment_method] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[payment_method]( + [pme_id] [int] IDENTITY(1,1) NOT NULL, + [pme_label] [nvarchar](50) NOT NULL, + CONSTRAINT [PK_payment_method] PRIMARY KEY CLUSTERED +( + [pme_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[payment_option] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[payment_option]( + [pop_id] [int] IDENTITY(1,1) NOT NULL, + [pop_label] [nvarchar](50) NOT NULL, + [pop_payment_method_id] [int] NOT NULL, + [pop_day_end_time] [time](7) NOT NULL, + [pop_day_night_end_time] [time](7) NOT NULL, + [pop_price_night] [float] NULL, + [pop_min_time] [int] NULL, + [pop_max_time] [int] NULL, + [pop_min_price] [decimal](18, 0) NULL, + [pop_carry_over] [bit] NULL, + [pop_period_week_id] [int] NULL, + [pop_currency_id] [int] NULL, + [pop_daily_card_price] [int] NULL, + [pop_city_id] [int] NULL, + [pop_multi_hour_price] [float] NULL, + CONSTRAINT [PK_payment_option] PRIMARY KEY CLUSTERED +( + [pop_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[payment_rate] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[payment_rate]( + [pra_id] [int] IDENTITY(1,1) NOT NULL, + [pra_payment_option_id] [int] NOT NULL, + [pra_payment_unit_id] [int] NOT NULL, + [pra_price] [float] NOT NULL, + [pra_currency_id] [int] NULL, + CONSTRAINT [PK_payment_rate_1] PRIMARY KEY CLUSTERED +( + [pra_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[payment_unit] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[payment_unit]( + [pun_id] [int] IDENTITY(1,1) NOT NULL, + [pun_label] [nvarchar](50) NOT NULL, + [pun_duration] [int] NOT NULL, + CONSTRAINT [PK_payment_unit] PRIMARY KEY CLUSTERED +( + [pun_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[period_day_in_week] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[period_day_in_week]( + [pdiw_id] [tinyint] IDENTITY(1,1) NOT NULL, + [pdiw_label] [nvarchar](50) NOT NULL, + [pdiw_index] [tinyint] NOT NULL, + [pdiw_index_device] [tinyint] NOT NULL, + CONSTRAINT [PK_period_day_in_week] PRIMARY KEY CLUSTERED +( + [pdiw_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[period_exceptional_day_work_time] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[period_exceptional_day_work_time]( + [pedwt_id] [int] IDENTITY(1,1) NOT NULL, + [pedwt_period_exc_day_id] [int] NOT NULL, + [pedwt_time_from] [time](7) NOT NULL, + [pedwt_time_to] [time](7) NOT NULL, + [pedwt_price] [float] NOT NULL, + [pedwt_currency_id] [int] NULL, + CONSTRAINT [PK_period_exceptional_day_work_time] PRIMARY KEY CLUSTERED +( + [pedwt_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[period_exceptional_days] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[period_exceptional_days]( + [ped_id] [int] IDENTITY(1,1) NOT NULL, + [ped_label] [nvarchar](50) NOT NULL, + [ped_date_start] [date] NOT NULL, + [ped_date_end] [date] NOT NULL, + [ped_period_special_day_id] [int] NOT NULL, + [ped_year] [int] NULL, + [ped_city_id] [int] NULL, + CONSTRAINT [PK_period_exceptional_days] PRIMARY KEY CLUSTERED +( + [ped_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[period_special_days] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[period_special_days]( + [psd_id] [int] IDENTITY(1,1) NOT NULL, + [psd_label] [nvarchar](50) NOT NULL, + [psd_chargeable] [bit] NOT NULL, + [psd_priority] [tinyint] NOT NULL, + CONSTRAINT [PK_period_special_days] PRIMARY KEY CLUSTERED +( + [psd_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[period_week] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[period_week]( + [pwe_id] [int] IDENTITY(1,1) NOT NULL, + [pwe_label] [nvarchar](150) NOT NULL, + [pwe_period_year_id] [int] NOT NULL, + [pwe_city_id] [int] NULL, + CONSTRAINT [PK_period_week] PRIMARY KEY CLUSTERED +( + [pwe_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[period_week_day] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[period_week_day]( + [pwd_id] [int] IDENTITY(1,1) NOT NULL, + [pwd_period_week_day_id] [int] NOT NULL, + [pwd_period_day_in_week_id] [tinyint] NOT NULL, + [pwd_time_from] [time](7) NOT NULL, + [pwd_time_to] [time](7) NOT NULL, + [pwd_ui_group] [int] NULL, + CONSTRAINT [PK_period_week_day] PRIMARY KEY CLUSTERED +( + [pwd_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +/****** Object: Table [dbo].[period_year] Script Date: 11.12.2023. 14:30:41 ******/ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO +CREATE TABLE [dbo].[period_year]( + [pye_id] [int] IDENTITY(1,1) NOT NULL, + [pye_label] [nvarchar](50) NOT NULL, + [pye_start_month] [int] NOT NULL, + [pye_start_day] [int] NOT NULL, + [pye_end_month] [int] NOT NULL, + [pye_end_day] [int] NOT NULL, + [pye_city_id] [int] NULL, + CONSTRAINT [PK_period_year] PRIMARY KEY CLUSTERED +( + [pye_id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO +ALTER TABLE [dbo].[payment_option] WITH CHECK ADD CONSTRAINT [FK_payment_option_payment_currency] FOREIGN KEY([pop_currency_id]) +REFERENCES [dbo].[payment_currency] ([pcu_id]) +GO +ALTER TABLE [dbo].[payment_option] CHECK CONSTRAINT [FK_payment_option_payment_currency] +GO +ALTER TABLE [dbo].[payment_option] WITH CHECK ADD CONSTRAINT [FK_payment_option_payment_method] FOREIGN KEY([pop_payment_method_id]) +REFERENCES [dbo].[payment_method] ([pme_id]) +GO +ALTER TABLE [dbo].[payment_option] CHECK CONSTRAINT [FK_payment_option_payment_method] +GO +ALTER TABLE [dbo].[payment_option] WITH CHECK ADD CONSTRAINT [FK_payment_option_period_week] FOREIGN KEY([pop_period_week_id]) +REFERENCES [dbo].[period_week] ([pwe_id]) +GO +ALTER TABLE [dbo].[payment_option] CHECK CONSTRAINT [FK_payment_option_period_week] +GO +ALTER TABLE [dbo].[payment_rate] WITH CHECK ADD CONSTRAINT [FK_payment_rate_payment_currency] FOREIGN KEY([pra_currency_id]) +REFERENCES [dbo].[payment_currency] ([pcu_id]) +GO +ALTER TABLE [dbo].[payment_rate] CHECK CONSTRAINT [FK_payment_rate_payment_currency] +GO +ALTER TABLE [dbo].[payment_rate] WITH CHECK ADD CONSTRAINT [FK_payment_rate_payment_option] FOREIGN KEY([pra_payment_option_id]) +REFERENCES [dbo].[payment_option] ([pop_id]) +GO +ALTER TABLE [dbo].[payment_rate] CHECK CONSTRAINT [FK_payment_rate_payment_option] +GO +ALTER TABLE [dbo].[payment_rate] WITH CHECK ADD CONSTRAINT [FK_payment_rate_payment_unit] FOREIGN KEY([pra_payment_unit_id]) +REFERENCES [dbo].[payment_unit] ([pun_id]) +GO +ALTER TABLE [dbo].[payment_rate] CHECK CONSTRAINT [FK_payment_rate_payment_unit] +GO +ALTER TABLE [dbo].[period_exceptional_day_work_time] WITH CHECK ADD CONSTRAINT [FK_period_exceptional_day_work_time_payment_currency] FOREIGN KEY([pedwt_currency_id]) +REFERENCES [dbo].[payment_currency] ([pcu_id]) +GO +ALTER TABLE [dbo].[period_exceptional_day_work_time] CHECK CONSTRAINT [FK_period_exceptional_day_work_time_payment_currency] +GO +ALTER TABLE [dbo].[period_exceptional_day_work_time] WITH CHECK ADD CONSTRAINT [FK_period_exceptional_day_work_time_period_exceptional_days] FOREIGN KEY([pedwt_period_exc_day_id]) +REFERENCES [dbo].[period_exceptional_days] ([ped_id]) +GO +ALTER TABLE [dbo].[period_exceptional_day_work_time] CHECK CONSTRAINT [FK_period_exceptional_day_work_time_period_exceptional_days] +GO +ALTER TABLE [dbo].[period_exceptional_days] WITH CHECK ADD CONSTRAINT [FK_period_exceptional_days_period_special_days] FOREIGN KEY([ped_period_special_day_id]) +REFERENCES [dbo].[period_special_days] ([psd_id]) +GO +ALTER TABLE [dbo].[period_exceptional_days] CHECK CONSTRAINT [FK_period_exceptional_days_period_special_days] +GO +ALTER TABLE [dbo].[period_week] WITH CHECK ADD CONSTRAINT [FK_period_week_period_year] FOREIGN KEY([pwe_period_year_id]) +REFERENCES [dbo].[period_year] ([pye_id]) +GO +ALTER TABLE [dbo].[period_week] CHECK CONSTRAINT [FK_period_week_period_year] +GO +ALTER TABLE [dbo].[period_week_day] WITH CHECK ADD CONSTRAINT [FK_period_week_day_period_day_in_week] FOREIGN KEY([pwd_period_day_in_week_id]) +REFERENCES [dbo].[period_day_in_week] ([pdiw_id]) +GO +ALTER TABLE [dbo].[period_week_day] CHECK CONSTRAINT [FK_period_week_day_period_day_in_week] +GO +ALTER TABLE [dbo].[period_week_day] WITH CHECK ADD CONSTRAINT [FK_period_week_day_period_week] FOREIGN KEY([pwd_period_week_day_id]) +REFERENCES [dbo].[period_week] ([pwe_id]) +GO +ALTER TABLE [dbo].[period_week_day] CHECK CONSTRAINT [FK_period_week_day_period_week] +GO diff --git a/script_data.sql b/script_data.sql new file mode 100644 index 0000000..9b8765a --- /dev/null +++ b/script_data.sql @@ -0,0 +1,760 @@ +SET IDENTITY_INSERT [dbo].[payment_currency] ON + +INSERT [dbo].[payment_currency] ([pcu_id], [pcu_sign], [pcu_major], [pcu_minor], [pcu_active]) VALUES (1, N'€', N'Euro', N'Cent', 1) +INSERT [dbo].[payment_currency] ([pcu_id], [pcu_sign], [pcu_major], [pcu_minor], [pcu_active]) VALUES (2, N'Ft', N'HUF', NULL, 1) +SET IDENTITY_INSERT [dbo].[payment_currency] OFF +SET IDENTITY_INSERT [dbo].[payment_method] ON + +INSERT [dbo].[payment_method] ([pme_id], [pme_label]) VALUES (1, N'progressive') +INSERT [dbo].[payment_method] ([pme_id], [pme_label]) VALUES (2, N'degressive') +INSERT [dbo].[payment_method] ([pme_id], [pme_label]) VALUES (3, N'linear') +INSERT [dbo].[payment_method] ([pme_id], [pme_label]) VALUES (4, N'steps') +SET IDENTITY_INSERT [dbo].[payment_method] OFF +SET IDENTITY_INSERT [dbo].[period_year] ON + +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (8, N'Whole year', 1, 1, 12, 31, 2) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (9, N'Whole year', 1, 1, 12, 31, 1) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (10, N'Whole year', 1, 1, 12, 31, 3) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (11, N'Whole Year', 1, 1, 12, 31, 4) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (12, N'Whole Year', 1, 1, 12, 31, 5) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (13, N'Whole Year', 1, 1, 12, 31, 2) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (14, N'Whole Year', 1, 1, 12, 31, 1) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (15, N'Whole year', 1, 1, 12, 31, 6) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (17, N'Whole year', 1, 1, 12, 31, 7) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (18, N'Whole Year', 1, 1, 12, 31, 7) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (19, N'Whole year', 1, 1, 12, 31, 9) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (20, N'Whole Year', 1, 1, 12, 31, 9) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (21, N'Whole year', 1, 1, 12, 31, 9) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (22, N'Whole Year', 1, 1, 12, 31, 9) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (23, N'Whole year', 1, 1, 12, 31, 10) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (24, N'Whole Year', 1, 1, 12, 31, 10) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (25, N'Whole year', 1, 1, 12, 31, 11) +INSERT [dbo].[period_year] ([pye_id], [pye_label], [pye_start_month], [pye_start_day], [pye_end_month], [pye_end_day], [pye_city_id]) VALUES (26, N'Whole Year', 1, 1, 12, 31, 11) +SET IDENTITY_INSERT [dbo].[period_year] OFF +SET IDENTITY_INSERT [dbo].[period_week] ON + +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (16, N'HU Mon Fri 8-18, Sat 8-14', 8, 2) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (17, N'HU Mon Wed Fri 6:30-18, Tue, Thu 13-18 Sat 13-14', 8, 2) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (18, N'Mo. - Fr. 8-18, Sa. 8-12', 9, 1) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (19, N'Montag-Freitag: 6:30-18:00, Samstag: 6:30-14:00 ', 8, 2) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (31, N'Monday - Friday: 08:00-18:00, Saturday: 14:00 - Monday 8:00', 8, 2) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (32, N'Szeged, Mon-Fri: 8:00-18:00', 8, 2) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (33, N'Szeged, Mon-Fri 8:00-18:00, Sat 8:00-12:00', 8, 2) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (34, N'Pon-pet 8-18, Sub 8-12', 10, 3) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (35, N'24/7', 11, 4) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (36, N'Mon-Fri 8:00 - 18:00 ', 12, 5) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (37, N'Mon - Fri 8:00 18:00; Sat 8:00 - 12:00', 12, 5) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (39, N'24/7', 14, 1) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (40, N'HU Mon Fri 8-18, Sat 8-14', 15, 6) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (41, N'HU Mon Wed Fri 6:30-18, Tue, Thu 13-18 Sat 13-14', 15, 6) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (42, N'Montag-Freitag: 6:30-18:00, Samstag: 6:30-14:00 ', 15, 6) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (43, N'Monday - Friday: 08:00-18:00, Saturday: 14:00 - Monday 8:00', 15, 6) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (44, N'Szeged, Mon-Fri: 8:00-18:00', 15, 6) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (45, N'Szeged, Mon-Fri 8:00-18:00, Sat 8:00-12:00', 15, 6) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (46, N'HU Mon Fri 8-18, Sat 8-14', 17, 7) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (47, N'HU Mon Wed Fri 6:30-18, Tue, Thu 13-18 Sat 13-14', 17, 7) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (48, N'Montag-Freitag: 6:30-18:00, Samstag: 6:30-14:00 ', 17, 7) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (49, N'Monday - Friday: 08:00-18:00, Saturday: 14:00 - Monday 8:00', 17, 7) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (50, N'Szeged, Mon-Fri: 8:00-18:00', 17, 7) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (51, N'Szeged, Mon-Fri 8:00-18:00, Sat 8:00-12:00', 17, 7) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (52, N'HU Mon Fri 8-18, Sat 8-14', 19, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (53, N'HU Mon Wed Fri 6:30-18, Tue, Thu 13-18 Sat 13-14', 19, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (54, N'Montag-Freitag: 6:30-18:00, Samstag: 6:30-14:00 ', 19, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (55, N'Monday - Friday: 08:00-18:00, Saturday: 14:00 - Monday 8:00', 19, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (56, N'Szeged, Mon-Fri: 8:00-18:00', 19, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (57, N'Szeged, Mon-Fri 8:00-18:00, Sat 8:00-12:00', 19, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (58, N'Mo. - Fr. 8-18, Sa. 8-12', 21, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (59, N'24/7', 22, 9) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (60, N'Mo. - Fr. 8-18, Sa. 8-12', 23, 10) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (61, N'24/7', 24, 10) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (62, N'HU Mon Fri 8-18, Sat 8-14', 25, 11) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (63, N'HU Mon Wed Fri 6:30-18, Tue, Thu 13-18 Sat 13-14', 25, 11) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (64, N'Montag-Freitag: 6:30-18:00, Samstag: 6:30-14:00 ', 25, 11) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (65, N'Monday - Friday: 08:00-18:00, Saturday: 14:00 - Monday 8:00', 25, 11) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (66, N'Szeged, Mon-Fri: 8:00-18:00', 25, 11) +INSERT [dbo].[period_week] ([pwe_id], [pwe_label], [pwe_period_year_id], [pwe_city_id]) VALUES (67, N'Szeged, Mon-Fri 8:00-18:00, Sat 8:00-12:00', 25, 11) +SET IDENTITY_INSERT [dbo].[period_week] OFF +SET IDENTITY_INSERT [dbo].[payment_option] ON + +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (17, N'Zone 1', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, 900, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (22, N'Zone 2', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (23, N'Zone 3', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, 0, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (24, N'Zone 4 - Marketplace ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (26, N'Zone 4', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (27, N'Zone 4 - Südstr.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 120, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (28, N'Zone 4- Zárda 2.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (29, N'Garage Parking - Day', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), NULL, 15, 0, CAST(75 AS Decimal(18, 0)), 1, 16, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (30, N'Garage Parking -Night ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(25 AS Decimal(18, 0)), NULL, 31, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1041, N'Szeged Test', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), NULL, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, NULL, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1045, N'Zone 1', 3, CAST(N'15:20:00' AS Time), CAST(N'15:20:00' AS Time), NULL, 0, 10080, CAST(3 AS Decimal(18, 0)), 1, 39, 1, 0, 1, 8) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1046, N'pojer teeest', 3, CAST(N'16:03:00' AS Time), CAST(N'16:03:00' AS Time), NULL, 0, 0, CAST(0 AS Decimal(18, 0)), 0, 18, 2, NULL, 3, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1047, N'VŽ Zone I', 3, CAST(N'15:20:00' AS Time), CAST(N'15:20:00' AS Time), NULL, 60, 0, CAST(0 AS Decimal(18, 0)), NULL, 32, 1, NULL, 3, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1048, N'Day Ticket', 3, CAST(N'16:01:00' AS Time), CAST(N'16:01:00' AS Time), NULL, 180, 0, CAST(1 AS Decimal(18, 0)), NULL, 35, 1, 12, 4, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1049, N'Zone Lila 1', 3, CAST(N'16:25:00' AS Time), CAST(N'16:25:00' AS Time), NULL, 15, 300, CAST(0 AS Decimal(18, 0)), 1, 36, 2, 900, 5, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1050, N'Zone Blau 2', 3, CAST(N'16:27:00' AS Time), CAST(N'16:27:00' AS Time), NULL, 15, 300, CAST(0 AS Decimal(18, 0)), 1, 36, 2, 1320, 5, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1051, N'Zone Gelb 3', 3, CAST(N'16:29:00' AS Time), CAST(N'16:29:00' AS Time), NULL, 15, 300, CAST(0 AS Decimal(18, 0)), 1, 36, 2, 1980, 5, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1052, N'Zone Grün 4', 3, CAST(N'16:30:00' AS Time), CAST(N'16:30:00' AS Time), NULL, 15, 240, CAST(0 AS Decimal(18, 0)), 1, 36, 2, 2400, 5, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1055, N'Zone 1', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, 900, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1056, N'Zone 2', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1057, N'Zone 3', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 33, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1058, N'Zone 4 - Marketplace ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1059, N'Zone 4', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1060, N'Zone 4 - Südstr.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 120, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1061, N'Zone 4- Zárda 2.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1062, N'Garage Parking - Day', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), NULL, 15, 0, CAST(75 AS Decimal(18, 0)), 1, 16, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1063, N'Garage Parking -Night ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(25 AS Decimal(18, 0)), NULL, 31, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1064, N'Szeged Test', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), NULL, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, NULL, 6, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1065, N'Kék (blau)', 3, CAST(N'12:52:00' AS Time), CAST(N'12:52:00' AS Time), NULL, 15, 360, CAST(58 AS Decimal(18, 0)), 1, 32, 2, 1320, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1066, N'Lila', 3, CAST(N'12:59:00' AS Time), CAST(N'12:59:00' AS Time), NULL, 15, 360, CAST(38 AS Decimal(18, 0)), 1, 32, 2, 900, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1067, N'Sárga (gelb)', 3, CAST(N'13:00:00' AS Time), CAST(N'13:00:00' AS Time), NULL, 15, 360, CAST(83 AS Decimal(18, 0)), 1, 33, 2, 900, 2, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1068, N'Zone 1', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, 900, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1069, N'Zone 2', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1070, N'Zone 3', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 33, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1071, N'Zone 4 - Marketplace ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1072, N'Zone 4', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1073, N'Zone 4 - Südstr.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 120, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1074, N'Zone 4- Zárda 2.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1075, N'Garage Parking - Day', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), NULL, 15, 0, CAST(75 AS Decimal(18, 0)), 1, 16, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1076, N'Garage Parking -Night ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(25 AS Decimal(18, 0)), NULL, 31, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1077, N'Szeged Test', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), NULL, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, NULL, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1078, N'Kék (blau)', 3, CAST(N'12:52:00' AS Time), CAST(N'12:52:00' AS Time), NULL, 15, 360, CAST(58 AS Decimal(18, 0)), 1, 32, 2, 1320, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1079, N'Lila', 3, CAST(N'12:59:00' AS Time), CAST(N'12:59:00' AS Time), NULL, 15, 360, CAST(38 AS Decimal(18, 0)), 1, 32, 2, 900, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1080, N'Sárga (gelb)', 3, CAST(N'13:00:00' AS Time), CAST(N'13:00:00' AS Time), NULL, 15, 360, CAST(83 AS Decimal(18, 0)), 1, 33, 2, 900, 7, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1081, N'Zone Gelb Mars 5', 3, CAST(N'15:08:00' AS Time), CAST(N'15:08:00' AS Time), NULL, 15, 360, CAST(83 AS Decimal(18, 0)), 1, 37, 2, 1980, 5, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1082, N'Zone Grün Mars 6', 3, CAST(N'15:13:00' AS Time), CAST(N'15:13:00' AS Time), NULL, 15, 240, CAST(150 AS Decimal(18, 0)), 1, 37, 2, 2400, 5, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1083, N'Zone 1', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, 900, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1084, N'Zone 2', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1085, N'Zone 3', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, 0, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1086, N'Zone 4 - Marketplace ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1087, N'Zone 4', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 17, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1088, N'Zone 4 - Südstr.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 120, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1089, N'Zone 4- Zárda 2.', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(45 AS Decimal(18, 0)), 1, 19, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1090, N'Garage Parking - Day', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), NULL, 15, 0, CAST(75 AS Decimal(18, 0)), 1, 16, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1091, N'Garage Parking -Night ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(25 AS Decimal(18, 0)), NULL, 31, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1092, N'Szeged Test', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), NULL, 15, 10000, CAST(0 AS Decimal(18, 0)), 1, 32, 2, NULL, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1093, N'Kék (blau)', 3, CAST(N'12:52:00' AS Time), CAST(N'12:52:00' AS Time), NULL, 15, 360, CAST(58 AS Decimal(18, 0)), 1, 32, 2, 1320, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1094, N'Lila', 3, CAST(N'12:59:00' AS Time), CAST(N'12:59:00' AS Time), NULL, 15, 360, CAST(38 AS Decimal(18, 0)), 1, 32, 2, 900, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1095, N'Sárga (gelb)', 3, CAST(N'13:00:00' AS Time), CAST(N'13:00:00' AS Time), NULL, 15, 360, CAST(83 AS Decimal(18, 0)), 1, 33, 2, 900, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1096, N'Zone 2', 3, CAST(N'15:07:00' AS Time), CAST(N'15:07:00' AS Time), NULL, 60, 1440, CAST(0 AS Decimal(18, 0)), 1, 39, 1, 0, 1, 8) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1097, N'Zone 1', 3, CAST(N'15:20:00' AS Time), CAST(N'15:20:00' AS Time), NULL, 0, 10080, CAST(3 AS Decimal(18, 0)), 1, 39, 1, 0, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1098, N'Zone 2', 3, CAST(N'15:07:00' AS Time), CAST(N'15:07:00' AS Time), NULL, 60, 1440, CAST(0 AS Decimal(18, 0)), 1, 39, 1, 0, 9, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1099, N'Zone 1', 3, CAST(N'15:20:00' AS Time), CAST(N'15:20:00' AS Time), NULL, 60, 10080, CAST(3 AS Decimal(18, 0)), 1, 61, 1, 0, 10, 8) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1100, N'Zone 2', 3, CAST(N'15:07:00' AS Time), CAST(N'15:07:00' AS Time), NULL, 60, 1440, CAST(2 AS Decimal(18, 0)), 1, 61, 1, 0, 10, 5) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1101, N'Zone 3', 3, CAST(N'08:34:00' AS Time), CAST(N'08:34:00' AS Time), NULL, 60, 10080, CAST(3 AS Decimal(18, 0)), 1, 39, 1, 0, 1, 8) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1103, N'Zone 2', 3, CAST(N'18:00:00' AS Time), CAST(N'08:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, NULL, 11, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1104, N'Zone 3', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 240, CAST(120 AS Decimal(18, 0)), 1, 32, 2, 0, 11, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1109, N'Garage Parking - Day', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), NULL, 15, 0, CAST(75 AS Decimal(18, 0)), 1, 16, 2, NULL, 11, NULL) +INSERT [dbo].[payment_option] ([pop_id], [pop_label], [pop_payment_method_id], [pop_day_end_time], [pop_day_night_end_time], [pop_price_night], [pop_min_time], [pop_max_time], [pop_min_price], [pop_carry_over], [pop_period_week_id], [pop_currency_id], [pop_daily_card_price], [pop_city_id], [pop_multi_hour_price]) VALUES (1110, N'Garage Parking -Night ', 3, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, 15, 0, CAST(25 AS Decimal(18, 0)), NULL, 31, 2, NULL, 11, NULL) +SET IDENTITY_INSERT [dbo].[payment_option] OFF +SET IDENTITY_INSERT [dbo].[payment_unit] ON + +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (1, N'1h', 60) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (3, N'15 min', 15) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (5, N'24h', 1440) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (6, N'3h', 180) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (7, N'48h', 2880) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (8, N'72h', 4320) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (9, N'96h', 5670) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (10, N'120h', 7200) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (11, N'144h', 8640) +INSERT [dbo].[payment_unit] ([pun_id], [pun_label], [pun_duration]) VALUES (12, N'168h', 10080) +SET IDENTITY_INSERT [dbo].[payment_unit] OFF +SET IDENTITY_INSERT [dbo].[payment_rate] ON + +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (1, 17, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (2, 22, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (4, 24, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (5, 26, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (6, 27, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (7, 28, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (8, 29, 1, 300, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (9, 30, 1, 100, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (10, 1041, 3, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (27, 1047, 1, 5, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (28, 1046, 1, 0.6, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (31, 1048, 1, 1, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (32, 1048, 3, 2, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (45, 1055, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (46, 1056, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (47, 1057, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (48, 1058, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (49, 1059, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (50, 1060, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (51, 1061, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (52, 1062, 1, 300, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (53, 1063, 1, 100, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (54, 1064, 3, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (60, 1065, 1, 230, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (61, 1066, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (62, 1067, 1, 330, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (75, 1068, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (76, 1069, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (77, 1070, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (78, 1071, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (79, 1072, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (80, 1073, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (81, 1074, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (82, 1075, 1, 300, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (83, 1076, 1, 100, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (84, 1077, 3, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (85, 1078, 1, 230, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (86, 1079, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (87, 1080, 1, 330, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (88, 23, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (109, 1049, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (110, 1050, 1, 230, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (111, 1051, 1, 330, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (112, 1052, 1, 600, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (114, 1081, 1, 330, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (115, 1082, 1, 600, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (117, 1083, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (118, 1084, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (119, 1085, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (120, 1086, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (121, 1087, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (122, 1088, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (123, 1089, 1, 180, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (124, 1090, 1, 300, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (125, 1091, 1, 100, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (126, 1092, 3, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (127, 1093, 1, 230, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (128, 1094, 1, 150, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (129, 1095, 1, 330, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (144, 1096, 1, 2, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (145, 1096, 6, 4, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (146, 1045, 1, 3, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (147, 1045, 6, 7, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (148, 1097, 1, 3, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (149, 1097, 6, 7, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (150, 1098, 1, 2, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (151, 1098, 6, 4, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (180, 1101, 1, 3, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (181, 1101, 6, 7, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (182, 1101, 5, 8, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (186, 1099, 1, 3, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (187, 1099, 6, 7, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (188, 1099, 5, 8, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (189, 1099, 7, 16, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (190, 1099, 8, 24, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (191, 1099, 9, 32, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (192, 1099, 10, 40, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (193, 1099, 11, 48, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (194, 1099, 12, 56, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (195, 1100, 1, 2, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (196, 1100, 6, 4, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (197, 1100, 5, 5, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (199, 1103, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (200, 1104, 3, 480, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (205, 1109, 1, 300, NULL) +INSERT [dbo].[payment_rate] ([pra_id], [pra_payment_option_id], [pra_payment_unit_id], [pra_price], [pra_currency_id]) VALUES (206, 1110, 1, 100, NULL) +SET IDENTITY_INSERT [dbo].[payment_rate] OFF +SET IDENTITY_INSERT [dbo].[period_special_days] ON + +INSERT [dbo].[period_special_days] ([psd_id], [psd_label], [psd_chargeable], [psd_priority]) VALUES (1, N'Holiday', 0, 3) +INSERT [dbo].[period_special_days] ([psd_id], [psd_label], [psd_chargeable], [psd_priority]) VALUES (2, N'Special', 1, 1) +INSERT [dbo].[period_special_days] ([psd_id], [psd_label], [psd_chargeable], [psd_priority]) VALUES (3, N'Shop', 1, 1) +INSERT [dbo].[period_special_days] ([psd_id], [psd_label], [psd_chargeable], [psd_priority]) VALUES (4, N'Free', 0, 4) +SET IDENTITY_INSERT [dbo].[period_special_days] OFF +SET IDENTITY_INSERT [dbo].[period_exceptional_days] ON + +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (11, N'Christmas 1st day', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-25' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (13, N'Christmas 2nd day', CAST(N'2022-12-26' AS Date), CAST(N'2022-12-26' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (14, N'Republic Day (Hungary)', CAST(N'2022-10-23' AS Date), CAST(N'2022-10-23' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2016, N'Christmas (Sunday)', CAST(N'2022-12-24' AS Date), CAST(N'2022-12-24' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2021, N'Holiday (Hungary)', CAST(N'2022-12-31' AS Date), CAST(N'2022-12-31' AS Date), 1, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2022, N'NewYear', CAST(N'2023-01-01' AS Date), CAST(N'2023-01-01' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2024, N'Good Friday', CAST(N'2023-04-07' AS Date), CAST(N'2023-04-07' AS Date), 2, 2023, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2025, N'Easter Sunday', CAST(N'2023-04-09' AS Date), CAST(N'2023-04-09' AS Date), 2, 2023, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2026, N'Easter Monday', CAST(N'2023-04-10' AS Date), CAST(N'2023-04-10' AS Date), 2, 2023, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2027, N'Whit Sunday', CAST(N'2023-05-28' AS Date), CAST(N'2023-05-28' AS Date), 2, 2023, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2028, N'Whit Monday', CAST(N'2023-05-29' AS Date), CAST(N'2023-05-29' AS Date), 2, 2023, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2029, N'Revolution Day (Hungary)', CAST(N'2023-03-15' AS Date), CAST(N'2023-03-15' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2030, N'Labour Day', CAST(N'2023-05-01' AS Date), CAST(N'2023-05-01' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2031, N'Saint Stephens Day (Hungary)', CAST(N'2023-08-20' AS Date), CAST(N'2023-08-20' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2032, N'All Saints Day', CAST(N'2023-11-01' AS Date), CAST(N'2023-11-01' AS Date), 2, NULL, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2034, N'Good Friday', CAST(N'2024-03-29' AS Date), CAST(N'2024-03-29' AS Date), 2, 2024, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2035, N'Easter', CAST(N'2024-03-31' AS Date), CAST(N'2024-03-31' AS Date), 2, 2024, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2036, N'Easter Monday', CAST(N'2024-04-01' AS Date), CAST(N'2024-04-01' AS Date), 2, 2024, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2037, N'Whit Monday', CAST(N'2024-05-20' AS Date), CAST(N'2024-05-20' AS Date), 2, 2024, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2038, N'Whit Sunday', CAST(N'2024-05-19' AS Date), CAST(N'2024-05-19' AS Date), 2, 2024, 2) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2050, N'Weihnachten', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-26' AS Date), 1, NULL, 1) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2051, N'Uskrs', CAST(N'2023-04-16' AS Date), CAST(N'2023-04-16' AS Date), 1, NULL, 3) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2052, N'Christmas 1st day', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-25' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2053, N'Christmas 2nd day', CAST(N'2022-12-26' AS Date), CAST(N'2022-12-26' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2054, N'Republic Day (Hungary)', CAST(N'2022-10-23' AS Date), CAST(N'2022-10-23' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2055, N'Christmas (Sunday)', CAST(N'2022-12-24' AS Date), CAST(N'2022-12-24' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2056, N'Holiday (Hungary)', CAST(N'2022-12-31' AS Date), CAST(N'2022-12-31' AS Date), 1, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2057, N'NewYear', CAST(N'2023-01-01' AS Date), CAST(N'2023-01-01' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2058, N'Good Friday', CAST(N'2023-04-07' AS Date), CAST(N'2023-04-07' AS Date), 2, 2023, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2059, N'Easter Sunday', CAST(N'2023-04-09' AS Date), CAST(N'2023-04-09' AS Date), 2, 2023, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2060, N'Easter Monday', CAST(N'2023-04-10' AS Date), CAST(N'2023-04-10' AS Date), 2, 2023, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2061, N'Whit Sunday', CAST(N'2023-05-28' AS Date), CAST(N'2023-05-28' AS Date), 2, 2023, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2062, N'Whit Monday', CAST(N'2023-05-29' AS Date), CAST(N'2023-05-29' AS Date), 2, 2023, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2063, N'Revolution Day (Hungary)', CAST(N'2023-03-15' AS Date), CAST(N'2023-03-15' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2064, N'Labour Day', CAST(N'2023-05-01' AS Date), CAST(N'2023-05-01' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2065, N'Saint Stephens Day (Hungary)', CAST(N'2023-08-20' AS Date), CAST(N'2023-08-20' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2066, N'All Saints Day', CAST(N'2023-11-01' AS Date), CAST(N'2023-11-01' AS Date), 2, NULL, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2067, N'Good Friday', CAST(N'2024-03-29' AS Date), CAST(N'2024-03-29' AS Date), 2, 2024, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2068, N'Easter', CAST(N'2024-03-31' AS Date), CAST(N'2024-03-31' AS Date), 2, 2024, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2069, N'Easter Monday', CAST(N'2024-04-01' AS Date), CAST(N'2024-04-01' AS Date), 2, 2024, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2070, N'Whit Monday', CAST(N'2024-05-20' AS Date), CAST(N'2024-05-20' AS Date), 2, 2024, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2071, N'Whit Sunday', CAST(N'2024-05-19' AS Date), CAST(N'2024-05-19' AS Date), 2, 2024, 6) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2072, N'Christmas 1st day', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-25' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2073, N'Christmas 2nd day', CAST(N'2022-12-26' AS Date), CAST(N'2022-12-26' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2074, N'Republic Day (Hungary)', CAST(N'2022-10-23' AS Date), CAST(N'2022-10-23' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2075, N'Christmas (Sunday)', CAST(N'2022-12-24' AS Date), CAST(N'2022-12-24' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2076, N'Holiday (Hungary)', CAST(N'2022-12-31' AS Date), CAST(N'2022-12-31' AS Date), 1, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2077, N'NewYear', CAST(N'2023-01-01' AS Date), CAST(N'2023-01-01' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2078, N'Good Friday', CAST(N'2023-04-07' AS Date), CAST(N'2023-04-07' AS Date), 2, 2023, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2079, N'Easter Sunday', CAST(N'2023-04-09' AS Date), CAST(N'2023-04-09' AS Date), 2, 2023, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2080, N'Easter Monday', CAST(N'2023-04-10' AS Date), CAST(N'2023-04-10' AS Date), 2, 2023, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2081, N'Whit Sunday', CAST(N'2023-05-28' AS Date), CAST(N'2023-05-28' AS Date), 2, 2023, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2082, N'Whit Monday', CAST(N'2023-05-29' AS Date), CAST(N'2023-05-29' AS Date), 2, 2023, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2083, N'Revolution Day (Hungary)', CAST(N'2023-03-15' AS Date), CAST(N'2023-03-15' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2084, N'Labour Day', CAST(N'2023-05-01' AS Date), CAST(N'2023-05-01' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2085, N'Saint Stephens Day (Hungary)', CAST(N'2023-08-20' AS Date), CAST(N'2023-08-20' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2086, N'All Saints Day', CAST(N'2023-11-01' AS Date), CAST(N'2023-11-01' AS Date), 2, NULL, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2087, N'Good Friday', CAST(N'2024-03-29' AS Date), CAST(N'2024-03-29' AS Date), 2, 2024, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2088, N'Easter', CAST(N'2024-03-31' AS Date), CAST(N'2024-03-31' AS Date), 2, 2024, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2089, N'Easter Monday', CAST(N'2024-04-01' AS Date), CAST(N'2024-04-01' AS Date), 2, 2024, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2090, N'Whit Monday', CAST(N'2024-05-20' AS Date), CAST(N'2024-05-20' AS Date), 2, 2024, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2091, N'Whit Sunday', CAST(N'2024-05-19' AS Date), CAST(N'2024-05-19' AS Date), 2, 2024, 7) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2092, N'Christmas 1st day', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-25' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2093, N'Christmas 2nd day', CAST(N'2022-12-26' AS Date), CAST(N'2022-12-26' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2094, N'Republic Day (Hungary)', CAST(N'2022-10-23' AS Date), CAST(N'2022-10-23' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2095, N'Christmas (Sunday)', CAST(N'2022-12-24' AS Date), CAST(N'2022-12-24' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2096, N'Holiday (Hungary)', CAST(N'2022-12-31' AS Date), CAST(N'2022-12-31' AS Date), 1, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2097, N'NewYear', CAST(N'2023-01-01' AS Date), CAST(N'2023-01-01' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2098, N'Good Friday', CAST(N'2023-04-07' AS Date), CAST(N'2023-04-07' AS Date), 2, 2023, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2099, N'Easter Sunday', CAST(N'2023-04-09' AS Date), CAST(N'2023-04-09' AS Date), 2, 2023, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2100, N'Easter Monday', CAST(N'2023-04-10' AS Date), CAST(N'2023-04-10' AS Date), 2, 2023, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2101, N'Whit Sunday', CAST(N'2023-05-28' AS Date), CAST(N'2023-05-28' AS Date), 2, 2023, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2102, N'Whit Monday', CAST(N'2023-05-29' AS Date), CAST(N'2023-05-29' AS Date), 2, 2023, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2103, N'Revolution Day (Hungary)', CAST(N'2023-03-15' AS Date), CAST(N'2023-03-15' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2104, N'Labour Day', CAST(N'2023-05-01' AS Date), CAST(N'2023-05-01' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2105, N'Saint Stephens Day (Hungary)', CAST(N'2023-08-20' AS Date), CAST(N'2023-08-20' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2106, N'All Saints Day', CAST(N'2023-11-01' AS Date), CAST(N'2023-11-01' AS Date), 2, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2107, N'Good Friday', CAST(N'2024-03-29' AS Date), CAST(N'2024-03-29' AS Date), 2, 2024, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2108, N'Easter', CAST(N'2024-03-31' AS Date), CAST(N'2024-03-31' AS Date), 2, 2024, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2109, N'Easter Monday', CAST(N'2024-04-01' AS Date), CAST(N'2024-04-01' AS Date), 2, 2024, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2110, N'Whit Monday', CAST(N'2024-05-20' AS Date), CAST(N'2024-05-20' AS Date), 2, 2024, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2111, N'Whit Sunday', CAST(N'2024-05-19' AS Date), CAST(N'2024-05-19' AS Date), 2, 2024, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2112, N'Weihnachten', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-26' AS Date), 1, NULL, 9) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2113, N'Weihnachten', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-26' AS Date), 1, NULL, 10) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2114, N'Christmas 1st day', CAST(N'2022-12-25' AS Date), CAST(N'2022-12-25' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2115, N'Christmas 2nd day', CAST(N'2022-12-26' AS Date), CAST(N'2022-12-26' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2116, N'Republic Day (Hungary)', CAST(N'2022-10-23' AS Date), CAST(N'2022-10-23' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2117, N'Christmas (Sunday)', CAST(N'2022-12-24' AS Date), CAST(N'2022-12-24' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2118, N'Holiday (Hungary)', CAST(N'2022-12-31' AS Date), CAST(N'2022-12-31' AS Date), 1, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2119, N'NewYear', CAST(N'2023-01-01' AS Date), CAST(N'2023-01-01' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2120, N'Good Friday', CAST(N'2023-04-07' AS Date), CAST(N'2023-04-07' AS Date), 2, 2023, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2121, N'Easter Sunday', CAST(N'2023-04-09' AS Date), CAST(N'2023-04-09' AS Date), 2, 2023, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2122, N'Easter Monday', CAST(N'2023-04-10' AS Date), CAST(N'2023-04-10' AS Date), 2, 2023, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2123, N'Whit Sunday', CAST(N'2023-05-28' AS Date), CAST(N'2023-05-28' AS Date), 2, 2023, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2124, N'Whit Monday', CAST(N'2023-05-29' AS Date), CAST(N'2023-05-29' AS Date), 2, 2023, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2125, N'Revolution Day (Hungary)', CAST(N'2023-03-15' AS Date), CAST(N'2023-03-15' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2126, N'Labour Day', CAST(N'2023-05-01' AS Date), CAST(N'2023-05-01' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2127, N'Saint Stephens Day (Hungary)', CAST(N'2023-08-20' AS Date), CAST(N'2023-08-20' AS Date), 2, NULL, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2128, N'All Saints Day', CAST(N'2023-11-01' AS Date), CAST(N'2023-11-01' AS Date), 2, NULL, 11) +GO +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2129, N'Good Friday', CAST(N'2024-03-29' AS Date), CAST(N'2024-03-29' AS Date), 2, 2024, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2130, N'Easter', CAST(N'2024-03-31' AS Date), CAST(N'2024-03-31' AS Date), 2, 2024, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2131, N'Easter Monday', CAST(N'2024-04-01' AS Date), CAST(N'2024-04-01' AS Date), 2, 2024, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2132, N'Whit Monday', CAST(N'2024-05-20' AS Date), CAST(N'2024-05-20' AS Date), 2, 2024, 11) +INSERT [dbo].[period_exceptional_days] ([ped_id], [ped_label], [ped_date_start], [ped_date_end], [ped_period_special_day_id], [ped_year], [ped_city_id]) VALUES (2133, N'Whit Sunday', CAST(N'2024-05-19' AS Date), CAST(N'2024-05-19' AS Date), 2, 2024, 11) +SET IDENTITY_INSERT [dbo].[period_exceptional_days] OFF +SET IDENTITY_INSERT [dbo].[period_exceptional_day_work_time] ON + +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2156, 2024, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2158, 2025, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2160, 2026, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2162, 2027, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2164, 2028, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2170, 2030, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2172, 2032, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2174, 11, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2175, 13, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2178, 2022, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2179, 14, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2184, 2021, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2188, 2031, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2189, 2029, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2194, 2034, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2200, 2037, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2202, 2038, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2226, 2016, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2245, 2035, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2246, 2036, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2250, 2051, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2251, 2052, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2252, 2053, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2253, 2054, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2254, 2055, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2255, 2056, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2256, 2057, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2257, 2058, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2258, 2059, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2259, 2060, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2260, 2061, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2261, 2062, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2262, 2063, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2263, 2064, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2264, 2065, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2265, 2066, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2266, 2067, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2267, 2068, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2268, 2069, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2269, 2070, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2270, 2071, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2271, 2072, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2272, 2073, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2273, 2074, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2274, 2075, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2275, 2076, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2276, 2077, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2277, 2078, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2278, 2079, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2279, 2080, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2280, 2081, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2281, 2082, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2282, 2083, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2283, 2084, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2284, 2085, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2285, 2086, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2286, 2087, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2287, 2088, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2288, 2089, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2289, 2090, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2290, 2091, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2291, 2092, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2292, 2093, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2293, 2094, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2294, 2095, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2295, 2096, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2296, 2097, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2297, 2098, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2298, 2099, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2299, 2100, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2300, 2101, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2301, 2102, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2302, 2103, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2303, 2104, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2304, 2105, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2305, 2106, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2306, 2107, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2307, 2108, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2308, 2109, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2309, 2110, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2310, 2111, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2312, 2050, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2313, 2112, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2314, 2113, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2315, 2114, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2316, 2115, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2317, 2116, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2318, 2117, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2319, 2118, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2320, 2119, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2321, 2120, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2322, 2121, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2323, 2122, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2324, 2123, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2325, 2124, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2326, 2125, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2327, 2126, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2328, 2127, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2329, 2128, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +GO +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2330, 2129, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2331, 2130, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2332, 2131, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2333, 2132, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +INSERT [dbo].[period_exceptional_day_work_time] ([pedwt_id], [pedwt_period_exc_day_id], [pedwt_time_from], [pedwt_time_to], [pedwt_price], [pedwt_currency_id]) VALUES (2334, 2133, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 0, NULL) +SET IDENTITY_INSERT [dbo].[period_exceptional_day_work_time] OFF +SET IDENTITY_INSERT [dbo].[period_day_in_week] ON + +INSERT [dbo].[period_day_in_week] ([pdiw_id], [pdiw_label], [pdiw_index], [pdiw_index_device]) VALUES (1, N'Monday', 1, 1) +INSERT [dbo].[period_day_in_week] ([pdiw_id], [pdiw_label], [pdiw_index], [pdiw_index_device]) VALUES (2, N'Tuesday', 2, 2) +INSERT [dbo].[period_day_in_week] ([pdiw_id], [pdiw_label], [pdiw_index], [pdiw_index_device]) VALUES (3, N'Wednesday', 3, 3) +INSERT [dbo].[period_day_in_week] ([pdiw_id], [pdiw_label], [pdiw_index], [pdiw_index_device]) VALUES (4, N'Thursday', 4, 4) +INSERT [dbo].[period_day_in_week] ([pdiw_id], [pdiw_label], [pdiw_index], [pdiw_index_device]) VALUES (5, N'Friday', 5, 5) +INSERT [dbo].[period_day_in_week] ([pdiw_id], [pdiw_label], [pdiw_index], [pdiw_index_device]) VALUES (6, N'Saturday', 6, 6) +INSERT [dbo].[period_day_in_week] ([pdiw_id], [pdiw_label], [pdiw_index], [pdiw_index_device]) VALUES (7, N'Sunday', 0, 7) +SET IDENTITY_INSERT [dbo].[period_day_in_week] OFF +SET IDENTITY_INSERT [dbo].[period_week_day] ON + +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (433, 17, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (434, 17, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (435, 17, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (436, 17, 2, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (437, 17, 4, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (438, 17, 6, CAST(N'13:00:00' AS Time), CAST(N'14:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (455, 19, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (456, 19, 2, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (457, 19, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (458, 19, 4, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (459, 19, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (460, 19, 6, CAST(N'06:30:00' AS Time), CAST(N'14:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (499, 31, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (500, 31, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (501, 31, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (502, 31, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (503, 31, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (504, 31, 6, CAST(N'14:00:00' AS Time), CAST(N'00:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (505, 31, 7, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (506, 31, 1, CAST(N'00:00:00' AS Time), CAST(N'08:00:00' AS Time), 4) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (513, 16, 6, CAST(N'08:00:00' AS Time), CAST(N'14:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (514, 16, 1, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (515, 16, 2, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (516, 16, 3, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (517, 16, 4, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (518, 16, 5, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (519, 16, 6, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (520, 16, 7, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (570, 33, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (571, 33, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (572, 33, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (573, 33, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (574, 33, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (575, 33, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (581, 32, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (582, 32, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (583, 32, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (584, 32, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (585, 32, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (592, 34, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (593, 34, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (594, 34, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (595, 34, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (596, 34, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (597, 34, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (598, 35, 1, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (599, 35, 2, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (600, 35, 3, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (601, 35, 4, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (602, 35, 5, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (603, 35, 6, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (604, 35, 7, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (621, 36, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (622, 36, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (623, 36, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (624, 36, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (625, 36, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (632, 37, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (633, 37, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (634, 37, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (635, 37, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (636, 37, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (637, 37, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (652, 40, 6, CAST(N'08:00:00' AS Time), CAST(N'14:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (653, 40, 1, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (654, 40, 2, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (655, 40, 3, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (656, 40, 4, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (657, 40, 5, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (658, 40, 6, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (659, 40, 7, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (660, 41, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (661, 41, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (662, 41, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (663, 41, 2, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (664, 41, 4, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (665, 41, 6, CAST(N'13:00:00' AS Time), CAST(N'14:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (666, 42, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (667, 42, 2, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (668, 42, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (669, 42, 4, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (670, 42, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (671, 42, 6, CAST(N'06:30:00' AS Time), CAST(N'14:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (672, 43, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (673, 43, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (674, 43, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (675, 43, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (676, 43, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (677, 43, 6, CAST(N'14:00:00' AS Time), CAST(N'00:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (678, 43, 7, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (679, 43, 1, CAST(N'00:00:00' AS Time), CAST(N'08:00:00' AS Time), 4) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (680, 44, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (681, 44, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (682, 44, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (683, 44, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (684, 44, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (685, 45, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (686, 45, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (687, 45, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +GO +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (688, 45, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (689, 45, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (690, 45, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (733, 46, 6, CAST(N'08:00:00' AS Time), CAST(N'14:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (734, 46, 1, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (735, 46, 2, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (736, 46, 3, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (737, 46, 4, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (738, 46, 5, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (739, 46, 6, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (740, 46, 7, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (741, 47, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (742, 47, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (743, 47, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (744, 47, 2, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (745, 47, 4, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (746, 47, 6, CAST(N'13:00:00' AS Time), CAST(N'14:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (747, 48, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (748, 48, 2, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (749, 48, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (750, 48, 4, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (751, 48, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (752, 48, 6, CAST(N'06:30:00' AS Time), CAST(N'14:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (753, 49, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (754, 49, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (755, 49, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (756, 49, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (757, 49, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (758, 49, 6, CAST(N'14:00:00' AS Time), CAST(N'00:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (759, 49, 7, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (760, 49, 1, CAST(N'00:00:00' AS Time), CAST(N'08:00:00' AS Time), 4) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (761, 50, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (762, 50, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (763, 50, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (764, 50, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (765, 50, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (766, 51, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (767, 51, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (768, 51, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (769, 51, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (770, 51, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (771, 51, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (772, 52, 6, CAST(N'08:00:00' AS Time), CAST(N'14:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (773, 52, 1, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (774, 52, 2, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (775, 52, 3, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (776, 52, 4, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (777, 52, 5, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (778, 52, 6, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (779, 52, 7, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (780, 53, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (781, 53, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (782, 53, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (783, 53, 2, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (784, 53, 4, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (785, 53, 6, CAST(N'13:00:00' AS Time), CAST(N'14:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (786, 54, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (787, 54, 2, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (788, 54, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (789, 54, 4, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (790, 54, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (791, 54, 6, CAST(N'06:30:00' AS Time), CAST(N'14:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (792, 55, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (793, 55, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (794, 55, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (795, 55, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (796, 55, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (797, 55, 6, CAST(N'14:00:00' AS Time), CAST(N'00:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (798, 55, 7, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (799, 55, 1, CAST(N'00:00:00' AS Time), CAST(N'08:00:00' AS Time), 4) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (800, 56, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (801, 56, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (802, 56, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (803, 56, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (804, 56, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (805, 57, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (806, 57, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (807, 57, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (808, 57, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (809, 57, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (810, 57, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (811, 39, 1, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (812, 39, 2, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (813, 39, 3, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (814, 39, 4, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (815, 39, 5, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (816, 39, 6, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (817, 39, 7, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (824, 18, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (825, 18, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (826, 18, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (827, 18, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (828, 18, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (829, 18, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (830, 58, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (831, 58, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (832, 58, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (833, 58, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (834, 58, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (835, 58, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +GO +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (836, 59, 1, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (837, 59, 2, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (838, 59, 3, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (839, 59, 4, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (840, 59, 5, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (841, 59, 6, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (842, 59, 7, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (843, 60, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (844, 60, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (845, 60, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (846, 60, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (847, 60, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (848, 60, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (863, 61, 1, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (864, 61, 2, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (865, 61, 3, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (866, 61, 4, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (867, 61, 5, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (868, 61, 6, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (869, 61, 7, CAST(N'00:00:00' AS Time), CAST(N'23:59:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (870, 62, 6, CAST(N'08:00:00' AS Time), CAST(N'14:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (871, 62, 1, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (872, 62, 2, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (873, 62, 3, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (874, 62, 4, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (875, 62, 5, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (876, 62, 6, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (877, 62, 7, CAST(N'08:00:00' AS Time), CAST(N'16:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (878, 63, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (879, 63, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (880, 63, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (881, 63, 2, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (882, 63, 4, CAST(N'13:00:00' AS Time), CAST(N'18:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (883, 63, 6, CAST(N'13:00:00' AS Time), CAST(N'14:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (884, 64, 1, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (885, 64, 2, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (886, 64, 3, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (887, 64, 4, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (888, 64, 5, CAST(N'06:30:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (889, 64, 6, CAST(N'06:30:00' AS Time), CAST(N'14:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (890, 65, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (891, 65, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (892, 65, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (893, 65, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (894, 65, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (895, 65, 6, CAST(N'14:00:00' AS Time), CAST(N'00:00:00' AS Time), 2) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (896, 65, 7, CAST(N'00:00:00' AS Time), CAST(N'00:00:00' AS Time), 3) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (897, 65, 1, CAST(N'00:00:00' AS Time), CAST(N'08:00:00' AS Time), 4) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (898, 66, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (899, 66, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (900, 66, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (901, 66, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (902, 66, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (903, 67, 1, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (904, 67, 2, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (905, 67, 3, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (906, 67, 4, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (907, 67, 5, CAST(N'08:00:00' AS Time), CAST(N'18:00:00' AS Time), 1) +INSERT [dbo].[period_week_day] ([pwd_id], [pwd_period_week_day_id], [pwd_period_day_in_week_id], [pwd_time_from], [pwd_time_to], [pwd_ui_group]) VALUES (908, 67, 6, CAST(N'08:00:00' AS Time), CAST(N'12:00:00' AS Time), 2) +SET IDENTITY_INSERT [dbo].[period_week_day] OFF +SET IDENTITY_INSERT [dbo].[city] ON + +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (1, N'Varaždinci', NULL) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (2, N'Szeged', NULL) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (3, N'Test', CAST(N'2023-06-01T09:23:45.7126694+02:00' AS DateTimeOffset)) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (4, N'Berlin Trewpto', NULL) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (5, N'Szeged Start Juni 2023', NULL) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (6, N'Szeged copy', CAST(N'2023-06-06T10:45:53.9298634+02:00' AS DateTimeOffset)) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (7, N'Szeged Versuch ', NULL) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (8, N'Schönau', CAST(N'2023-08-31T14:41:04.2730562+02:00' AS DateTimeOffset)) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (9, N'Schönau Königssee', CAST(N'2023-08-31T15:50:29.5479445+02:00' AS DateTimeOffset)) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (10, N'Schönau', NULL) +INSERT [dbo].[city] ([cty_id], [cty_label], [cty_delete_date]) VALUES (11, N'NVT Korneuburg ', NULL) +SET IDENTITY_INSERT [dbo].[city] OFF diff --git a/tariff_korneuburg.json b/tariff_korneuburg.json new file mode 100644 index 0000000..8662012 --- /dev/null +++ b/tariff_korneuburg.json @@ -0,0 +1,629 @@ +{ + "Project" : "Korneuburg", + "Version" : "1.0.0", + "Info" : "", + "Currency": [ + { + "pcu_id": 2, + "pcu_sign": "€", + "pcu_major": "EUR", + "pcu_minor": "", + "pcu_active": true + } + ], + "PaymentMethod": [ + { + "pme_id": 1, + "pme_label": "progressive" + }, + { + "pme_id": 2, + "pme_label": "degressive" + }, + { + "pme_id": 3, + "pme_label": "linear" + }, + { + "pme_id": 4, + "pme_label": "steps" + } + ], + "PaymentOption": [ + { + "pop_id": 1049, + "pop_label": "Zone 1", + "pop_payment_method_id": 3, + "pop_day_end_time": "00:00:00", + "pop_day_night_end_time": "00:00:00", + "pop_price_night": 0, + "pop_min_time": 30, + "pop_max_time": 180, + "pop_min_price": 60, + "pop_carry_over": 1, + "pop_daily_card_price": 0 + } + ], + "PaymentRate": [ + { + "pra_payment_option_id": 1049, + "pra_payment_unit_id": 1, + "pra_price": 10 + } + ], + "Duration": [ + { + "pun_id": 1, + "pun_label": "5 min", + "pun_duration": 5 + }, + { + "pun_id": 3, + "pun_label": "15 min", + "pun_duration": 15 + }, + { + "pun_id": 4, + "pun_label": "1 min", + "pun_duration": 1 + } + ], + "WeekDaysWorktime": [ + { + "pwd_id": 621, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 1, + "pwd_time_from": "08:00:00", + "pwd_time_to": "12:00:00" + }, + { + "pwd_id": 621, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 1, + "pwd_time_from": "14:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 622, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 2, + "pwd_time_from": "08:00:00", + "pwd_time_to": "12:00:00" + }, + { + "pwd_id": 622, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 2, + "pwd_time_from": "14:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 623, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 3, + "pwd_time_from": "08:00:00", + "pwd_time_to": "12:00:00" + }, + { + "pwd_id": 623, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 3, + "pwd_time_from": "14:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 624, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 4, + "pwd_time_from": "08:00:00", + "pwd_time_to": "12:00:00" + }, + { + "pwd_id": 624, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 4, + "pwd_time_from": "14:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 625, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 5, + "pwd_time_from": "08:00:00", + "pwd_time_to": "12:00:00" + }, + { + "pwd_id": 625, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 5, + "pwd_time_from": "14:00:00", + "pwd_time_to": "18:00:00" + }, + { + "pwd_id": 626, + "pwd_period_week_day_id": 36, + "pwd_period_day_in_week_id": 6, + "pwd_time_from": "08:00:00", + "pwd_time_to": "12:00:00" + } + ], + "SpecialDaysWorktime": [ + { + "pedwt_id": 2156, + "pedwt_period_exc_day_id": 2024, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2158, + "pedwt_period_exc_day_id": 2025, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2160, + "pedwt_period_exc_day_id": 2026, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2162, + "pedwt_period_exc_day_id": 2027, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2164, + "pedwt_period_exc_day_id": 2028, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2170, + "pedwt_period_exc_day_id": 2030, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2172, + "pedwt_period_exc_day_id": 2032, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2174, + "pedwt_period_exc_day_id": 11, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2175, + "pedwt_period_exc_day_id": 13, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2178, + "pedwt_period_exc_day_id": 2022, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2179, + "pedwt_period_exc_day_id": 14, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2184, + "pedwt_period_exc_day_id": 2021, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2188, + "pedwt_period_exc_day_id": 2031, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2189, + "pedwt_period_exc_day_id": 2029, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2194, + "pedwt_period_exc_day_id": 2034, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2200, + "pedwt_period_exc_day_id": 2037, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2202, + "pedwt_period_exc_day_id": 2038, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2226, + "pedwt_period_exc_day_id": 2016, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2245, + "pedwt_period_exc_day_id": 2035, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2246, + "pedwt_period_exc_day_id": 2036, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2249, + "pedwt_period_exc_day_id": 2050, + "pedwt_time_from": "08:00:00", + "pedwt_time_to": "16:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2250, + "pedwt_period_exc_day_id": 2051, + "pedwt_time_from": "08:00:00", + "pedwt_time_to": "16:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2251, + "pedwt_period_exc_day_id": 2052, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2252, + "pedwt_period_exc_day_id": 2053, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2253, + "pedwt_period_exc_day_id": 2054, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2254, + "pedwt_period_exc_day_id": 2055, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2255, + "pedwt_period_exc_day_id": 2056, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2256, + "pedwt_period_exc_day_id": 2057, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2257, + "pedwt_period_exc_day_id": 2058, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2258, + "pedwt_period_exc_day_id": 2059, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + }, + { + "pedwt_id": 2259, + "pedwt_period_exc_day_id": 2060, + "pedwt_time_from": "00:00:00", + "pedwt_time_to": "00:00:00", + "pedwt_price": 0 + } + ], + "SpecialDays": [ + { + "ped_id": 11, + "ped_label": "Mariae Empfaengnis", + "ped_date_start": "2023-12-08", + "ped_date_end": "2023-12-08", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 13, + "ped_label": "Christtag", + "ped_date_start": "2023-12-25", + "ped_date_end": "2023-12-25", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 14, + "ped_label": "Stefanitag", + "ped_date_start": "2023-12-26", + "ped_date_end": "2023-12-26", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2016, + "ped_label": "Neujahr", + "ped_date_start": "2024-01-01", + "ped_date_end": "2024-01-01", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2021, + "ped_label": "Heilig Drei Koenige", + "ped_date_start": "2024-01-06", + "ped_date_end": "2024-01-06", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2022, + "ped_label": "Ostermontag", + "ped_date_start": "2024-01-04", + "ped_date_end": "2024-01-04", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2024, + "ped_label": "Staatsfeiertag", + "ped_date_start": "2024-05-01", + "ped_date_end": "2024-05-01", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2025, + "ped_label": "Christi Himmelfahrt", + "ped_date_start": "2024-05-09", + "ped_date_end": "2024-05-09", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2026, + "ped_label": "Pfingst Montag", + "ped_date_start": "2024-05-20", + "ped_date_end": "2024-05-20", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2027, + "ped_label": "Fronleichnam", + "ped_date_start": "2024-05-30", + "ped_date_end": "2024-05-30", + "ped_period_special_day_id": 1, + "ped_year": 2024 + }, + { + "ped_id": 2028, + "ped_label": "Maria Himmelfahrt", + "ped_date_start": "2024-08-15", + "ped_date_end": "2024-08-15", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2029, + "ped_label": "Nationalfeiertag", + "ped_date_start": "2024-10-26", + "ped_date_end": "2024-10-26", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2030, + "ped_label": "Allerheiligen", + "ped_date_start": "2024-11-01", + "ped_date_end": "2024-11-01", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2031, + "ped_label": "Mariae Empfaengnis", + "ped_date_start": "2024-08-12", + "ped_date_end": "2024-08-12", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2032, + "ped_label": "Christtag", + "ped_date_start": "2024-12-25", + "ped_date_end": "2024-12-25", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2034, + "ped_label": "Stefanitag", + "ped_date_start": "2024-12-26", + "ped_date_end": "2024-12-26", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2035, + "ped_label": "Neujahr", + "ped_date_start": "2025-01-01", + "ped_date_end": "2025-01-01", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2036, + "ped_label": "Heilig Drei Koenige", + "ped_date_start": "2025-06-01", + "ped_date_end": "2025-06-01", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2037, + "ped_label": "Ostermontag", + "ped_date_start": "2025-04-21", + "ped_date_end": "2025-04-21", + "ped_period_special_day_id": 1, + "ped_year": 2025 + }, + { + "ped_id": 2038, + "ped_label": "Staatsfeiertag", + "ped_date_start": "2025-05-01", + "ped_date_end": "2025-05-01", + "ped_period_special_day_id": 1, + "ped_year": 2025 + }, + { + "ped_id": 2050, + "ped_label": "Christi Himmelfahrt", + "ped_date_start": "2025-05-29", + "ped_date_end": "2025-05-29", + "ped_period_special_day_id": 1, + "ped_year": 2025 + }, + { + "ped_id": 2051, + "ped_label": "Pfingstmontag", + "ped_date_start": "2025-06-09", + "ped_date_end": "2025-06-09", + "ped_period_special_day_id": 1, + "ped_year": 2025 + }, + { + "ped_id": 2052, + "ped_label": "Fronlaeichnam", + "ped_date_start": "2025-06-19", + "ped_date_end": "2025-06-19", + "ped_period_special_day_id": 1, + "ped_year": 2025 + }, + { + "ped_id": 2053, + "ped_label": "Mariae Himmelfahrt", + "ped_date_start": "2025-08-15", + "ped_date_end": "2025-08-15", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2054, + "ped_label": "Nationalfeiertag", + "ped_date_start": "2025-10-26", + "ped_date_end": "2025-10-26", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2055, + "ped_label": "Allerheiligen", + "ped_date_start": "2025-11-01", + "ped_date_end": "2025-11-01", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2056, + "ped_label": "Mariae Empfaengnis", + "ped_date_start": "2025-12-08", + "ped_date_end": "2025-12-08", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2057, + "ped_label": "Christtag", + "ped_date_start": "2025-12-25", + "ped_date_end": "2025-12-25", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2058, + "ped_label": "Stefanitag", + "ped_date_start": "2025-12-26", + "ped_date_end": "2025-12-26", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2059, + "ped_label": "Neujahr", + "ped_date_start": "2026-01-01", + "ped_date_end": "2026-01-01", + "ped_period_special_day_id": 1, + "ped_year": 0 + }, + { + "ped_id": 2060, + "ped_label": "Heilige Drei Koenige", + "ped_date_start": "2026-01-06", + "ped_date_end": "2026-01-06", + "ped_period_special_day_id": 1, + "ped_year": 0 + } + ], + "PeriodYear": [ + { + "pye_id": 8, + "pye_label": "Whole year", + "pye_start_month": 1, + "pye_start_day": 1, + "pye_end_month": 12, + "pye_end_day": 31 + } + ] +}