1#ifndef EISSUELOGICDATASTORAGE_H
2#define EISSUELOGICDATASTORAGE_H
4#include "../ETicketIssueLogicDefines.h"
16 namespace VstupneUdaje
18 namespace CestovnePoriadky
24 namespace TarifnySystem
27 class ETarifnaSkupina;
33 namespace StatistikaStrojcek
36 class ECestovnyListok;
40 namespace TicketIssueLogic
44 class EMultipleTicket;
46 class EOutputDataInternalManager;
47 class EPurchasedTicketRegister;
48 class EAlternativeTrip;
49 class PriceListLogicDispatcher;
80 bool GetActualLine( Strojcek::VstupneUdaje::CestovnePoriadky::ELinka *&line );
81 bool SetActualLine(
const Strojcek::VstupneUdaje::CestovnePoriadky::ELinka *line );
83 bool GetActualTrip( Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *&trip );
84 bool SetActualTrip(
const Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip );
130 bool GetTariffGroup( Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&tariffGroup );
131 bool SetTariffGroup(
const Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup );
133 bool GetTariff( Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&tariff );
134 bool SetTariff(
const Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff );
230 bool AddTripSection(
const unsigned int starBusStop,
const unsigned int endBusStop,
const long oneWayTicketIndexToCard,
const unsigned short tariffGroupOnSection,
EIssueLogicDefines::TripSectionType sectionType,
const std::list<unsigned long> &travelledZones = std::list<unsigned long>(),
const short timeTicketIndex = -1 ,
const unsigned char continuousTripOrder = 0 );
297 bool SetAlternativeTrip(
unsigned long lineNumber,
unsigned long tripNumber,
long protectNumber,
long lastBusStopTripOrder );
#define DLL_API
Definition ECardFacadeDefines.h:8
Definition EAlternativeTrip.h:21
TicketIndexDetail
Definition ETicketIssueLogicDefines.h:359
TransferForAllTicketsOnCard
Definition ETicketIssueLogicDefines.h:279
OneWayTicketCardPositioning
Definition ETicketIssueLogicDefines.h:293
IssueType
Definition ETicketIssueLogicDefines.h:256
TripSectionType
Definition ETicketIssueLogicDefines.h:263
OperationType
Definition ETicketIssueLogicDefines.h:181
PaymentType
Definition ETicketIssueLogicDefines.h:161
EMVTransactionData
Definition ETicketIssueLogicDefines.h:405
ProlongTicketsTimeValidity
Definition ETicketIssueLogicDefines.h:286
Definition EModuleManager.h:12
Definition EMultipleTicket.h:27
This class allows access to ETicketIssueLogicOutputData.
Definition EOutputDataInternalManager.h:22
Definition ETicketIssueLogicDataStorage.h:52
bool GetIssueType(EIssueLogicDefines::IssueType &issueType)
bool SetFlagUsePriceListRowWithLongestTimeValidity(bool usePriceListRowWithLongestTimeValidity)
bool GetFlagTripOptimization(bool &flagTripOptimization) const
bool SetTimeTicketCounter(unsigned char timeTicketCounter)
bool SetFlagExplicitlySelectedTariff(bool explicitlySelectedTariff)
bool SetFlagTransferForAllTicketsOnCard(EIssueLogicDefines::TransferForAllTicketsOnCard value)
bool GetFlagIgnoreAcceptanceTimeTickets(bool &ignoreTimeTicketsInManualIssue)
std::vector< IssuedTicket * > IssuedTicketCollection
Definition ETicketIssueLogicDataStorage.h:61
bool GetFlagDontCheckTimeValidityWhileCalculationLastValidBusStop(bool &flagDontCheckTimeValidityWhileCalculationLastValidBusStop)
bool GetTripOrderBusStopForCheckOut(long &busStopForCheckoutTripOrder)
bool GetUrbanTransportNumberOnBusStop(long busStopLineOrder, long &urbanTransportIdentificationNumber)
bool GetFlagUseValidTimeTicketsInPriceCalculation(bool &flagUseValidTimeTicketsInPriceCalculation)
bool SetFlagCreditRechargeWithCardActivation(bool flagCreditRechargeWithCardActivation)
bool GetActualLineNumber(long &lineNumber)
bool GetFlagUsePriceListRowFromFirstSegmentOnEverySegment(bool &flagUsePriceListRowFromFirstSegmentOnEverySegment)
bool GetPurchasedTicketRegister(EPurchasedTicketRegister *&purchasedTicketRegister)
void ClearCrossTransfer()
bool GetCheckInZoneBusStopID(unsigned long &checkInZoneBusStopID)
bool SetFlagIgnoreAcceptanceTimeTickets(bool ignoreTimeTicketsInManualIssue)
bool GetActualLine(Strojcek::VstupneUdaje::CestovnePoriadky::ELinka *&line)
bool GetValidTimeTicketIndexes(std::set< short > &validTimeTicketIndexes)
void Clear()
Function call in ETicketIssueLogic::ReInit function before ticket issue. After this function is possi...
bool ClearActualTimetableData()
bool GetTripSectionCount(unsigned char §ionCount) const
bool SetDeviceSerialNumber(unsigned long serialNumber)
bool SetFlagUsePriceListRowFromFirstSegmentOnEverySegment(bool flagUsePriceListRowFromFirstSegmentOnEverySegment)
bool GetCheckOutBusStopID(unsigned long &checkOutBusStopID)
bool GetTariffGroup(Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&tariffGroup)
bool GetPassNumber(unsigned long &passNumber)
bool SetTripOrderBusStopForCheckOut(const long busStopForCheckoutTripOrder)
bool GetLineOrderBusStopForCheckOut(long &orderOfBusStopForCheckOut)
bool GetIds(unsigned short &ids)
bool SetUnpaidExpenseData(long receivedCashPayment, long ticketsPrice)
bool GetReclamationUID(long long &uid)
bool SetFlagDontCheckTimeValidityWhileCalculationLastValidBusStop(bool flagDontCheckTimeValidityWhileCalculationLastValidBusStop)
bool SetFlagForceNewOneWayTicket(bool forceNewOneWayTicket)
bool SetFlagTripOptimization(bool flagTripOptimization)
bool GetTimeTicketCounter(unsigned char &timeTicketCounter)
bool SetFlagRepeatedCheckIn(bool repeatedCheckIn)
bool GetDestinationSubZoneNumber(unsigned short &subZoneNumber)
bool SetPaperTicketID(long long paperTicketID)
void AutoClear()
Function call automaticaly for each ticket issue or calculate price.
bool GetZoneFrom(unsigned short &zoneFrom)
bool PopMultipleTicket(EMultipleTicket *&multipleTicket)
bool SetAlternativeTrip(unsigned long lineNumber, unsigned long tripNumber, long protectNumber, long lastBusStopTripOrder)
bool GetTimeTicketValidityEnd(unsigned long &validityEnd)
bool GetMultiplePassengerCountOnTimeTicket(unsigned short &multiplePassengerCountOnTimeTicket) const
bool GetTripSectionList(const std::list< TripSection * > *&tripSectionList) const
bool GetFlagProlongTicketsTimeValidity(EIssueLogicDefines::ProlongTicketsTimeValidity &prolongTicketTimeValidity)
bool SetReclamationUID(long long uid)
bool SetFlagShowConfirmationMessageOnPortableEP(bool showConfirmationMessage)
bool SetFlagUseValidTimeTicketsInPriceCalculation(bool flagUseValidTimeTicketsInPriceCalculation)
void SetCrossTransfer(const EM::Strojcek::VstupneUdaje::EPrestupSpoj &crossTransfer)
bool GetTripOrderCheckInBusStop(long &checkInBusStopOrder)
bool GetTripOrderCheckOutBusStop(long &checkOutBusStopOrder)
bool GetAdvertisementEnabled(bool &enableAdvertisement)
bool SetTimeTicketPreviousCounter(unsigned char timeTicketCounter)
bool GetTicketCount(short &ticketCount)
bool SetPassNumber(const unsigned long passNumber)
bool SetCheckOutBusStopToActual()
bool SetOperationType(const EIssueLogicDefines::OperationType operationType)
bool GetFlagUsePriceListRowWithLongestTimeValidity(bool &usePriceListRowWithLongestTimeValidity)
bool GetPriceListRow(unsigned short &priceListRow)
bool SetMultiplePassengerCountOnTimeTicket(unsigned short multiplePassengerCountOnTimeTicket)
bool GetFlagTransferForAllTicketsOnCard(EIssueLogicDefines::TransferForAllTicketsOnCard &value)
bool SetCheckInBusStopFromCard(long lineOrderCheckInBussTop)
bool SetTimeTicketValidityStart(unsigned long validityStart)
bool SetActualLine(const Strojcek::VstupneUdaje::CestovnePoriadky::ELinka *line)
bool GetFlagAllowIssueOnPortableEP(bool &allowIssueOnPortableCard)
bool ClearMultipleTickets()
bool SetIssueType(EIssueLogicDefines::IssueType issueType)
bool GetAdditionalZones(std::list< unsigned long > &additionalZones)
bool GetOutputDataManager(EOutputDataInternalManager *&outputDataManager)
bool SetTimeTicketExtensionIndex(short timeTicketIndex)
bool GetDeviceSerialNumber(unsigned long &serialNumber)
bool SetCheckInZoneBusStopID(const unsigned long checkInZoneBusStopID)
bool GetMultipleTicketCount(unsigned char &ticketCount) const
bool GetCheckInBusStopID(unsigned long &checkInBusStopID)
bool SetCheckOutZoneBusStopID(const unsigned long checkOutZoneBusStopID)
bool SetCoinerOverfallValue(unsigned long coinerOverfallValue)
bool GetTariff(Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&tariff)
bool SetTariff(const Strojcek::VstupneUdaje::TarifnySystem::ETarifa *tariff)
bool GetProtectNumber(long &protectNumber)
bool SetFlagPrintInterchangeTicket(bool flagPrintInterchangeTicket)
bool GetActualTrip(Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *&trip)
bool GetFlagExplicitlySelectedTariff(bool &explicitlySelectedTariff) const
bool GetBusStopForCheckOutID(unsigned long &busStopForCheckOutID)
bool SetFlagAllowIssueOnPortableEP(bool allowIssueOnPortableCard)
bool AddMultipleTicket(EMultipleTicket *multipleTicket)
bool GetActualIssuedTicket(IssuedTicket *&issuedTicket)
bool SetAdvertisementEnabled(bool enableAdvertisement)
bool SetDestinationZoneNumber(const unsigned long zoneNumber)
bool SetTariffGroup(const Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *tariffGroup)
bool GetFlagShowConfirmationMessageOnPortableEP(bool &showConfirmationMessage)
bool SetActualTrip(const Strojcek::VstupneUdaje::CestovnePoriadky::ESpoj *trip)
bool SetZoneFrom(unsigned short zoneFrom)
bool GetPaymentType(EIssueLogicDefines::PaymentType &paymentType)
bool SetZoneTo(unsigned short zoneTo)
bool SetTimeTicketValidityEnd(unsigned long validityEnd)
bool SetFlagUseSubstituteTariffGroup(const bool useSubstituteTariffGroup)
bool GetLineOrderCheckOutBusStop(long &checkOutBusStopOrder)
bool GetCrossTransfer(EM::Strojcek::VstupneUdaje::EPrestupSpoj &crossTransfer) const
bool SetPriceListRow(unsigned short priceListRow)
bool GetTimeTicketValidityStart(unsigned long &validityStart)
bool GetFlagUseUrbanZonesAsTravelledZones(bool &flagUseUrbanZonesAsTravelledZones)
bool GetModuleManager(EModuleManager *&moduleManager)
bool GetTariffGroupNumber(unsigned short &tariffGroupNumber)
bool SetBusStopForCheckOutID(const unsigned long busStopForCheckOutID)
bool SetValidTimeTicketIndexes(const std::set< short > &validTimeTicketIndexes)
bool AddTripSection(const unsigned int starBusStop, const unsigned int endBusStop, const long oneWayTicketIndexToCard, const unsigned short tariffGroupOnSection, EIssueLogicDefines::TripSectionType sectionType, const std::list< unsigned long > &travelledZones=std::list< unsigned long >(), const short timeTicketIndex=-1, const unsigned char continuousTripOrder=0)
bool SetRegionalCodeForPriceCalculation(unsigned long regionalDiscountCodeForPriceCalculation)
bool GetRegionalCodeForPriceCalculation(unsigned long ®ionalDiscountCodeForPriceCalculation)
bool GetKilometers(unsigned char &kilometers) const
bool GetIssuedTicketCollection(std::vector< IssuedTicket * > *&issuedTicketCollection)
bool GetMultipleTickets(std::list< EMultipleTicket * > &multipleTicketList) const
bool GetDeviceOrderNumber(unsigned char &orderNumber)
bool SetOneWayTicketCardPositioning(EIssueLogicDefines::OneWayTicketCardPositioning value)
bool GetFlagCreditRechargeWithCardActivation(bool &flagCreditRechargeWithCardActivation)
bool GetLineOrderCheckInBusStop(long &checkInBusStopOrder)
bool SetCancelationStatisticTicketNumber(const long cancelationStatisticTicketNumber)
bool GetOperationType(EIssueLogicDefines::OperationType &operationType)
bool SetCreditRecharge(unsigned long creditRecharge)
bool GetDestinationZoneNumber(unsigned long &zoneNumber)
bool GetFlagForceNewOneWayTicket(bool &forceNewOneWayTicket)
bool GetCheckInZone(unsigned short &checkinZone)
bool GetOneWayTicketCardPositioning(EIssueLogicDefines::OneWayTicketCardPositioning &value)
bool GetPriceListLogicDispatcher(PriceListLogicDispatcher *&priceListLogicDispatcher)
bool GetCheckOutZoneBusStopID(unsigned long &checkOutZoneBusStopID)
bool SetTicketCount(const short ticketCount)
bool GetTimeTicketPreviousCounter(unsigned char &timeTicketCounter)
bool GetZoneTo(unsigned short &zoneTo)
bool GetFlagPrintInterchangeTicket(bool &flagPrintInterchangeTicket) const
bool GetUnpaidExpenseData(long &receivedCashPayment, long &ticketsPrice)
bool SetTripOrderCheckOutBusStop(const long checkOutBusStopOrder)
void SetCardTicketIndexToUse(long ticketIndex, EIssueLogicDefines::TicketIndexDetail ticketIndexDetail=EIssueLogicDefines::TicketIndexDetailNoDetail)
bool AddIssuedTicket(IssuedTicket *issuedTicket)
bool GetCardWriteOperations(unsigned long &cardWriteOperations)
bool SetServiceCounter(unsigned char serviceCounter)
bool SetZoneList(const std::list< unsigned long > &zoneList)
bool SetSoldTimeTicketIndex(short timeTicketIndex)
bool GetCreditRecharge(unsigned long &creditRecharge)
bool GetCardTicketIndexToUse(long &ticketIndex, EIssueLogicDefines::TicketIndexDetail &ticketIndexDetail) const
bool GetFlagIsAnyTimeTicketTemporallyValid(bool &isAnyTimeTicketTemporallyValid) const
bool GetCheckOutZone(unsigned short &checkoutZone)
bool GetSoldTimeTicketIndex(short &timeTicketIndex)
bool SetAdditionalZones(const std::list< unsigned long > &additionalZones)
bool SetFlagUseUrbanZonesAsTravelledZones(bool flagUseUrbanZonesAsTravelledZones)
bool GetEMVPaymentTransactionData(EIssueLogicDefines::EMVTransactionData emvTransactionDataId, QString &data)
bool GetZoneList(std::list< unsigned long > &zoneList)
bool GetFlagUseSubstituteTariffGroup(bool &useSubstituteTariffGroup) const
bool SetKilometers(const unsigned char kilometers)
bool SetCardWriteOperations(unsigned long cardWriteOperations)
bool GetActualTripNumber(long &tripNumber)
bool GetServiceCounter(unsigned char &serviceCounter)
~ETicketIssueLogicDataStorage()
bool GetPaperTicketID(long long &paperTicketID)
bool SetDeviceOrderNumber(unsigned char orderNumber)
bool SetFlagIgnoreAcceptanceOfOneWayTicketsWithTimeValidity(bool ignoreAcceptanceOfOneWayTicketsWithTimeValidity)
bool GetFlagRepeatedCheckIn(bool &repeatedCheckIn)
bool GetAlternativeTrip(EAlternativeTrip &alternativeTrip)
bool GetCoinerOverfallValue(unsigned long &coinerOverfallValue)
bool GetCancelationStatisticTicketNumber(long &cancelationStatisticTicketNumber) const
bool GetFlagIgnoreAcceptanceOfOneWayTicketsWithTimeValidity(bool &ignoreAcceptanceOfOneWayTicketsWithTimeValidity) const
bool SetTripOrderCheckInBusStop(const long checkInBusStopOrder)
bool SetEMVPaymentTransactionData(EIssueLogicDefines::EMVTransactionData emvTransactionDataId, QString data)
bool SetCheckInBusStopID(const unsigned long checkInBusStopID)
bool SetFlagProlongTicketsTimeValidity(EIssueLogicDefines::ProlongTicketsTimeValidity prolongTicketTimeValidity)
bool SetFlagIsAnyTimeTicketTemporallyValid(bool isAnyTimeTicketTemporallyValid)
bool SetPaymentType(const EIssueLogicDefines::PaymentType paymentType)
bool SetCheckOutBusStopID(const unsigned long checkOutBusStopID)
bool GetTimeTicketExtensionIndex(short &timeTicketIndex)
bool GetCheckInZone2(unsigned short &checkInZone2)
GetCheckInZone2 method is used in the case of border stops.
ETicketIssueLogicDataStorage()
bool SetDestinationSubZoneNumber(const unsigned short subZoneNumber)
Definition IssuedTicket.h:34
Definition PriceListLogicDispatcher.h:26
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7