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 );
86 bool GetActualLineNumber(
long &lineNumber );
87 bool GetActualTripNumber(
long &tripNumber );
89 bool GetProtectNumber(
long &protectNumber );
91 bool GetTariffGroupNumber(
unsigned short &tariffGroupNumber );
93 bool GetTripOrderCheckInBusStop(
long &checkInBusStopOrder );
94 bool SetTripOrderCheckInBusStop(
const long checkInBusStopOrder );
96 bool GetUrbanTransportNumberOnBusStop(
long busStopLineOrder,
long &urbanTransportIdentificationNumber );
98 bool GetTripOrderCheckOutBusStop(
long &checkOutBusStopOrder );
99 bool SetTripOrderCheckOutBusStop(
const long checkOutBusStopOrder );
101 bool GetTripOrderBusStopForCheckOut(
long &busStopForCheckoutTripOrder );
102 bool SetTripOrderBusStopForCheckOut(
const long busStopForCheckoutTripOrder );
104 bool GetLineOrderCheckInBusStop(
long &checkInBusStopOrder );
106 bool GetLineOrderCheckOutBusStop(
long &checkOutBusStopOrder );
108 bool GetLineOrderBusStopForCheckOut(
long &orderOfBusStopForCheckOut );
110 bool GetCheckInZone(
unsigned short &checkinZone );
112 bool GetCheckOutZone(
unsigned short &checkoutZone );
119 bool GetCheckInZone2(
unsigned short &checkInZone2 );
121 bool GetCheckInBusStopID(
unsigned long &checkInBusStopID );
122 bool SetCheckInBusStopID(
const unsigned long checkInBusStopID );
124 bool GetCheckOutBusStopID(
unsigned long &checkOutBusStopID );
125 bool SetCheckOutBusStopID(
const unsigned long checkOutBusStopID );
127 bool GetBusStopForCheckOutID(
unsigned long &busStopForCheckOutID );
128 bool SetBusStopForCheckOutID(
const unsigned long busStopForCheckOutID );
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 );
142 bool GetCardWriteOperations(
unsigned long &cardWriteOperations );
143 bool SetCardWriteOperations(
unsigned long cardWriteOperations );
145 bool GetTicketCount(
short &ticketCount );
146 bool SetTicketCount(
const short ticketCount );
149 bool GetMultipleTicketCount(
unsigned char &ticketCount )
const;
151 bool GetMultipleTickets( std::list< EMultipleTicket * > &multipleTicketList )
const;
152 bool ClearMultipleTickets();
157 bool GetValidTimeTicketIndexes( std::set<short> &validTimeTicketIndexes );
158 bool SetValidTimeTicketIndexes(
const std::set<short> &validTimeTicketIndexes );
160 bool SetCreditRecharge(
unsigned long creditRecharge );
161 bool GetCreditRecharge(
unsigned long &creditRecharge );
163 bool SetCancelationStatisticTicketNumber(
const long cancelationStatisticTicketNumber );
164 bool GetCancelationStatisticTicketNumber(
long &cancelationStatisticTicketNumber )
const;
166 bool GetIssuedTicketCollection( std::vector< IssuedTicket * > *&issuedTicketCollection );
168 bool GetActualIssuedTicket(
IssuedTicket *&issuedTicket );
170 bool SetDeviceSerialNumber(
unsigned long serialNumber );
171 bool GetDeviceSerialNumber(
unsigned long &serialNumber );
173 bool SetDeviceOrderNumber(
unsigned char orderNumber );
174 bool GetDeviceOrderNumber(
unsigned char &orderNumber );
176 bool SetAdvertisementEnabled(
bool enableAdvertisement );
177 bool GetAdvertisementEnabled(
bool &enableAdvertisement );
179 bool SetTimeTicketValidityStart(
unsigned long validityStart );
180 bool GetTimeTicketValidityStart(
unsigned long &validityStart );
182 bool SetTimeTicketValidityEnd(
unsigned long validityEnd );
183 bool GetTimeTicketValidityEnd(
unsigned long &validityEnd );
185 bool SetCoinerOverfallValue(
unsigned long coinerOverfallValue );
186 bool GetCoinerOverfallValue(
unsigned long &coinerOverfallValue );
188 bool SetTimeTicketCounter(
unsigned char timeTicketCounter );
189 bool GetTimeTicketCounter(
unsigned char &timeTicketCounter );
191 bool SetTimeTicketPreviousCounter(
unsigned char timeTicketCounter );
192 bool GetTimeTicketPreviousCounter(
unsigned char &timeTicketCounter );
208 bool GetZoneTo(
unsigned short &zoneTo );
210 bool SetKilometers(
const unsigned char kilometers );
211 bool GetKilometers(
unsigned char &kilometers )
const;
213 bool SetZoneList(
const std::list<unsigned long> &zoneList );
214 bool GetZoneList( std::list<unsigned long> &zoneList );
216 bool SetAdditionalZones(
const std::list<unsigned long> &additionalZones );
217 bool GetAdditionalZones( std::list<unsigned long> &additionalZones );
219 bool SetTimeTicketExtensionIndex(
short timeTicketIndex );
220 bool GetTimeTicketExtensionIndex(
short &timeTicketIndex );
222 bool SetSoldTimeTicketIndex(
short timeTicketIndex );
223 bool GetSoldTimeTicketIndex(
short &timeTicketIndex );
227 bool GetPurchasedTicketRegister( EPurchasedTicketRegister *&purchasedTicketRegister );
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 );
231 bool ClearTripSections();
232 bool GetTripSectionCount(
unsigned char §ionCount )
const;
233 bool GetTripSectionList(
const std::list< TripSection * > *&tripSectionList )
const ;
235 void SetCrossTransfer(
const EM::Strojcek::VstupneUdaje::EPrestupSpoj &crossTransfer );
236 void ClearCrossTransfer();
237 bool IsCrossTransfer();
238 bool GetCrossTransfer( EM::Strojcek::VstupneUdaje::EPrestupSpoj &crossTransfer )
const;
240 bool GetCheckInZoneBusStopID(
unsigned long &checkInZoneBusStopID );
241 bool SetCheckInZoneBusStopID(
const unsigned long checkInZoneBusStopID );
243 bool GetCheckOutZoneBusStopID(
unsigned long &checkOutZoneBusStopID );
244 bool SetCheckOutZoneBusStopID(
const unsigned long checkOutZoneBusStopID );
246 bool GetDestinationZoneNumber(
unsigned long &zoneNumber );
247 bool SetDestinationZoneNumber(
const unsigned long zoneNumber );
249 bool GetDestinationSubZoneNumber(
unsigned short &subZoneNumber );
250 bool SetDestinationSubZoneNumber(
const unsigned short subZoneNumber );
252 bool GetPassNumber(
unsigned long &passNumber );
253 bool SetPassNumber(
const unsigned long passNumber );
256 bool SetPriceListRow(
unsigned short priceListRow );
257 bool GetPriceListRow(
unsigned short &priceListRow );
262 bool SetFlagAllowIssueOnPortableEP(
bool allowIssueOnPortableCard );
263 bool GetFlagAllowIssueOnPortableEP(
bool &allowIssueOnPortableCard );
265 bool SetFlagShowConfirmationMessageOnPortableEP(
bool showConfirmationMessage );
266 bool GetFlagShowConfirmationMessageOnPortableEP(
bool &showConfirmationMessage );
271 bool SetFlagRepeatedCheckIn(
bool repeatedCheckIn );
272 bool GetFlagRepeatedCheckIn(
bool &repeatedCheckIn );
274 bool GetIds(
unsigned short &ids );
276 bool SetCheckOutBusStopToActual();
277 bool SetCheckInBusStopFromCard(
long lineOrderCheckInBussTop );
282 bool SetReclamationUID(
long long uid );
283 bool GetReclamationUID(
long long &uid );
288 bool SetFlagUseSubstituteTariffGroup(
const bool useSubstituteTariffGroup );
289 bool GetFlagUseSubstituteTariffGroup(
bool &useSubstituteTariffGroup )
const;
291 bool SetFlagExplicitlySelectedTariff(
bool explicitlySelectedTariff );
292 bool GetFlagExplicitlySelectedTariff(
bool &explicitlySelectedTariff )
const;
294 bool SetFlagIsAnyTimeTicketTemporallyValid(
bool isAnyTimeTicketTemporallyValid );
295 bool GetFlagIsAnyTimeTicketTemporallyValid(
bool &isAnyTimeTicketTemporallyValid )
const;
297 bool SetAlternativeTrip(
unsigned long lineNumber,
unsigned long tripNumber,
long protectNumber,
long lastBusStopTripOrder );
300 bool SetServiceCounter(
unsigned char serviceCounter );
301 bool GetServiceCounter(
unsigned char &serviceCounter );
303 bool SetPaperTicketID(
long long paperTicketID );
304 bool GetPaperTicketID(
long long &paperTicketID );
306 bool SetUnpaidExpenseData(
long receivedCashPayment,
long ticketsPrice );
307 bool GetUnpaidExpenseData(
long &receivedCashPayment,
long &ticketsPrice );
309 bool SetFlagForceNewOneWayTicket(
bool forceNewOneWayTicket );
310 bool GetFlagForceNewOneWayTicket(
bool &forceNewOneWayTicket );
312 bool SetFlagUseValidTimeTicketsInPriceCalculation(
bool flagUseValidTimeTicketsInPriceCalculation );
313 bool GetFlagUseValidTimeTicketsInPriceCalculation(
bool &flagUseValidTimeTicketsInPriceCalculation );
315 bool SetFlagUsePriceListRowWithLongestTimeValidity(
bool usePriceListRowWithLongestTimeValidity );
316 bool GetFlagUsePriceListRowWithLongestTimeValidity(
bool &usePriceListRowWithLongestTimeValidity );
318 bool SetRegionalCodeForPriceCalculation(
unsigned long regionalDiscountCodeForPriceCalculation );
319 bool GetRegionalCodeForPriceCalculation(
unsigned long ®ionalDiscountCodeForPriceCalculation );
321 bool SetFlagCreditRechargeWithCardActivation(
bool flagCreditRechargeWithCardActivation );
322 bool GetFlagCreditRechargeWithCardActivation(
bool &flagCreditRechargeWithCardActivation );
324 bool SetFlagUseUrbanZonesAsTravelledZones(
bool flagUseUrbanZonesAsTravelledZones );
325 bool GetFlagUseUrbanZonesAsTravelledZones(
bool &flagUseUrbanZonesAsTravelledZones );
327 bool SetFlagDontCheckTimeValidityWhileCalculationLastValidBusStop(
bool flagDontCheckTimeValidityWhileCalculationLastValidBusStop );
328 bool GetFlagDontCheckTimeValidityWhileCalculationLastValidBusStop(
bool &flagDontCheckTimeValidityWhileCalculationLastValidBusStop );
330 bool SetFlagUsePriceListRowFromFirstSegmentOnEverySegment(
bool flagUsePriceListRowFromFirstSegmentOnEverySegment );
331 bool GetFlagUsePriceListRowFromFirstSegmentOnEverySegment(
bool &flagUsePriceListRowFromFirstSegmentOnEverySegment );
333 bool ClearActualTimetableData();
338 bool SetFlagIgnoreAcceptanceTimeTickets(
bool ignoreTimeTicketsInManualIssue );
339 bool GetFlagIgnoreAcceptanceTimeTickets(
bool &ignoreTimeTicketsInManualIssue );
341 bool SetMultiplePassengerCountOnTimeTicket(
unsigned short multiplePassengerCountOnTimeTicket );
342 bool GetMultiplePassengerCountOnTimeTicket(
unsigned short &multiplePassengerCountOnTimeTicket )
const;
344 bool SetFlagPrintInterchangeTicket(
bool flagPrintInterchangeTicket );
345 bool GetFlagPrintInterchangeTicket(
bool &flagPrintInterchangeTicket )
const;
347 bool SetFlagTripOptimization(
bool flagTripOptimization );
348 bool GetFlagTripOptimization(
bool &flagTripOptimization )
const;
350 bool SetFlagIgnoreAcceptanceOfOneWayTicketsWithTimeValidity(
bool ignoreAcceptanceOfOneWayTicketsWithTimeValidity );
351 bool GetFlagIgnoreAcceptanceOfOneWayTicketsWithTimeValidity(
bool &ignoreAcceptanceOfOneWayTicketsWithTimeValidity )
const;
356 #endif // EISSUELOGICDATASTORAGE_H
OneWayTicketCardPositioning
Definition: ETicketIssueLogicDefines.h:292
Definition: EMultipleTicket.h:26
TransferForAllTicketsOnCard
Definition: ETicketIssueLogicDefines.h:278
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
ProlongTicketsTimeValidity
Definition: ETicketIssueLogicDefines.h:285
std::vector< IssuedTicket * > IssuedTicketCollection
Definition: ETicketIssueLogicDataStorage.h:61
Definition: ETicketIssueLogicDefines.h:360
Definition: PriceListLogicDispatcher.h:25
IssueType
Definition: ETicketIssueLogicDefines.h:255
PaymentType
Definition: ETicketIssueLogicDefines.h:160
void SetZoneFrom(short zoneFrom)
Definition: EModuleManager.h:11
This class allows access to ETicketIssueLogicOutputData.
Definition: EOutputDataInternalManager.h:21
void SetZoneTo(short zoneTo)
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
OperationType
Definition: ETicketIssueLogicDefines.h:180
Definition: IssuedTicket.h:33
#define DLL_API
Definition: ECardFacadeDefines.h:8
TicketIndexDetail
Definition: ETicketIssueLogicDefines.h:358
Definition: ETicketIssueLogicDataStorage.h:51
EMVTransactionData
Definition: ETicketIssueLogicDefines.h:404
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
Definition: EAlternativeTrip.h:20
TripSectionType
Definition: ETicketIssueLogicDefines.h:262