#include <ETimeTicketSellModule.h>
| Enumerator |
|---|
| OK |
|
| TariffNotFound |
|
| PriceListNotFound |
|
| ErrorWhileObtainingData |
|
| ErrorWhileSettingData |
|
| virtual EM::TicketIssueLogic::ETimeTicketSellModule::~ETimeTicketSellModule |
( |
| ) |
|
|
virtual |
| virtual bool EM::TicketIssueLogic::ETimeTicketSellModule::AutoBeginValidity |
( |
unsigned long |
date = 0 | ) |
|
|
virtual |
Automatically modifies date relative to property of actual tariff. Result is stored in DataStorage in TimeTicketValidityStart If date wasn't given (default param), method works with actual time-date.
- Parameters
-
| date | - to be modified and set |
- Returns
- true when everything's ok, otherwise false
| virtual bool EM::TicketIssueLogic::ETimeTicketSellModule::CalculateEndValidity |
( |
| ) |
|
|
virtual |
CalculateEndValidity - Calculates validity end of time ticket and stores it in DataStorage.
- Returns
- true if no error occured, otherwise false
| virtual bool EM::TicketIssueLogic::ETimeTicketSellModule::CheckValidity |
( |
unsigned long |
validityBeginDate, |
|
|
unsigned long |
validityEndDate |
|
) |
| |
|
virtual |
Function checks if given date isn't too far in future of too far in tha past (according to tariff properties in input data)
- Parameters
-
| validityBeginDate | - validity begin date |
| validityEndDate | - validity end date |
- Returns
- true if given date is OK, otherwise false
| virtual bool EM::TicketIssueLogic::ETimeTicketSellModule::CorrectValidity |
( |
| ) |
|
|
virtual |
CorrectValidity corrects already values (validity from and validity to) stored in dataStorage according to properties of actual tariff (PlatnPredZacPlCL and PlatnPoSkoncPlCL) and saves it back into DataStorage.
- Returns
- true if no error occured, otherwise false
| virtual FillTimeTicketResult EM::TicketIssueLogic::ETimeTicketSellModule::FillTimeTicket |
( |
unsigned char |
index | ) |
|
|
virtual |
FillTimeTicket - sets all time ticket data to facade what is set to facade:
- tariff
- time validity
- zones
- time ticket number (counter)
- price and price unit
- time ticket status
- network
- company number
- urban transport ident. number
- Parameters
-
| index | - index of time ticket in collection to be modified |
| virtual bool EM::TicketIssueLogic::ETimeTicketSellModule::GetAvailableTimeTicketIndex |
( |
unsigned char & |
index | ) |
|
|
virtual |
Finds first time ticket that is invalid (it means that it's status is set as not valid) or no longer valid.
- Parameters
-
| index | - found index, that is available for new time ticket |
- Returns
- true when some index was found, otherwise false (no space on card)
| virtual bool EM::TicketIssueLogic::ETimeTicketSellModule::GetTimeTicketIndexByTariffTicketNumber |
( |
unsigned short |
tariffTicketNumber, |
|
|
char & |
correspondingTTIndex |
|
) |
| |
|
virtual |
GetTimeTicketIndexByTariffTicketNumber - function return time ticket index with entered tariff ticket number and oldest end validity of ticket on index ( multiple indexes could have same tariff ticket number )
- Parameters
-
| tariffTicketNumber | - tariff ticket number |
| correspondingTTIndex | - output paramterer for found time ticket index |
- Returns
- true if corresponding time ticket index found for entered tariff ticket number else return false
The documentation for this class was generated from the following file: