AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
EM::TicketIssueLogic::IssuedTicket Class Reference

#include <IssuedTicket.h>

Public Types

enum  IssuedTicketFlags {
  TicketFlagWasInterchange = 0x001, TicketFlagInterchangableTicket = 0x002, TicketFlagWasCheckOut = 0x004, TicketFlagNetworkWideTicket = 0x008,
  TicketFlagCanBePrinted = 0x010, TicketFlagTimeTicketSell = 0x020, TicketFlagFellowTravellerWriteOnCard = 0x040, TicketFlagFellowTravellerWithoutWriteOnCard = 0x080,
  TicketFlagFellowTraveller = TicketFlagFellowTravellerWriteOnCard | TicketFlagFellowTravellerWithoutWriteOnCard, TicketFlagFreeJourneyOnOneWayTicketWithTimeValidity = 0x100, TicketFlagTimeTicketSellWithRegionalDiscount = 0x200, TicketFlagIsCappedPrice = 0x400
}
 

Public Member Functions

 IssuedTicket (ETicketIssueLogicDataStorage *dataStorage)
 
 ~IssuedTicket ()
 
bool SetRepresentativeTariffData (Strojcek::VstupneUdaje::TarifnySystem::ETarifa *representastiveTariff, Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *representastiveTariffGroup)
 
bool GetRepresentativeTariff (Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&representativeTariff) const
 
bool GetRepresentativeTariffGroup (Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&representativeTariffGroup) const
 
bool SetRepresentativeIssuedTicketType (IssuedTicketSegment::IssuedTicketSegmentType issuedTicketType)
 
bool GetRepresentativeIssuedTicketType (IssuedTicketSegment::IssuedTicketSegmentType &issuedTicketType) const
 
bool SetSummaryPrice (const long summaryPrice)
 
bool GetSummaryPrice (long &summaryPrice) const
 
bool SetBulkVat (long bulkVat)
 
bool GetBulkVat (long &bulkVat) const
 
bool SetVatRate (long vatRate)
 
bool GetVatRate (long &vatRate) const
 
bool SetSummaryTravelledZones (const std::list< unsigned long > &travelledZones)
 
bool GetSummaryTravelledZones (const std::list< unsigned long > *&travelledZones) const
 
bool SetRefundPrice (long refundPrice)
 
bool GetRefundPrice (long &refundPrice) const
 
bool SetTicketCount (unsigned short ticketCount)
 
bool GetTicketCount (unsigned short &ticketCount) const
 
bool SetPaymentType (const EIssueLogicDefines::PaymentType paymentType)
 
bool GetPaymentType (EIssueLogicDefines::PaymentType &paymentType) const
 
bool SetIndexOfAppliedDiscountCoupon (const long discountCouponIndex)
 
bool GetIndexOfAppliedDiscountCoupon (long &discountCouponIndex) const
 
bool SetTicketFlag (IssuedTicket::IssuedTicketFlags flag)
 
void IsSetTicketFlag (IssuedTicket::IssuedTicketFlags flag, bool &isSet) const
 
bool SetOneWayTicketIndexOnCard (const long oneWayTicketIndexOnCard)
 
bool GetOneWayTicketIndexOnCard (long &oneWayTicketIndexOnCard) const
 
bool SetUsedCustomerProfileIndex (const unsigned char usedCustomerProfileIndex)
 
bool GetUsedCustomerProfileIndex (unsigned char &usedCustomerProfileIndex) const
 
bool SetStartBusStopLineOrder (const unsigned long startBusStopLineOrder)
 
bool GetStartBusStopLineOrder (unsigned long &startBusStopLineOrder) const
 
bool SetEndBusStopLineOrder (const unsigned long endBusStopLineOrder)
 
bool GetEndBusStopLineOrder (unsigned long &endBusStopLineOrder) const
 
bool SetTimeValidity (const unsigned long timeValidityStart, const unsigned long timeValidityEnd)
 
bool GetTimeValidity (unsigned long &timeValidityStart, unsigned long &timeValidityEnd) const
 
bool SetPriceListRowNumber (const unsigned short priceListRow)
 
bool GetPriceListRowNumber (unsigned short &priceListRow) const
 
bool SetTicketNumber (unsigned long ticketNumber)
 
bool GetTicketNumber (unsigned long &ticketNumber) const
 
bool SetPrinterTemplateID (long printerTemplateID)
 
bool GetPrinterTemplateID (long &printerTemplateID)
 
bool SetAdjustedTimeTicketPriceAfterRegionalDiscount (long adjustedTimeTicketPriceAfterRegionalDiscount) const
 'Sell' or 'Extension' price after applying regional or city discount More...
 
bool GetAdjustedTimeTicketPriceAfterRegionalDiscount (long &adjustedTimeTicketPriceAfterRegionalDiscount)
 
void AddIssuedTicketSegment (IssuedTicketSegment *issuedTicketSegment)
 
bool GetIssuedTicketSegments (std::list< IssuedTicketSegment * > *&issuedTicketSegments)
 
bool SetCappingInformationData (Strojcek::VstupneUdaje::CappingInformationData cappingInformationData)
 
bool GetCappingInformationData (Strojcek::VstupneUdaje::CappingInformationData &cappingInformationData)
 
bool SetCashPriceRounding (const long cashPriceRounding)
 
bool GetCashPriceRounding (long &cashPriceRounding) const
 
void PrintToLog ()
 

Member Enumeration Documentation

Enumerator
TicketFlagWasInterchange 
TicketFlagInterchangableTicket 
TicketFlagWasCheckOut 
TicketFlagNetworkWideTicket 
TicketFlagCanBePrinted 
TicketFlagTimeTicketSell 
TicketFlagFellowTravellerWriteOnCard 
TicketFlagFellowTravellerWithoutWriteOnCard 
TicketFlagFellowTraveller 
TicketFlagFreeJourneyOnOneWayTicketWithTimeValidity 
TicketFlagTimeTicketSellWithRegionalDiscount 
TicketFlagIsCappedPrice 

Constructor & Destructor Documentation

INTERNAL IssuedTicket::IssuedTicket ( ETicketIssueLogicDataStorage dataStorage)

Here is the call graph for this function:

IssuedTicket::~IssuedTicket ( )

Member Function Documentation

void IssuedTicket::AddIssuedTicketSegment ( IssuedTicketSegment issuedTicketSegment)

Here is the caller graph for this function:

bool IssuedTicket::GetAdjustedTimeTicketPriceAfterRegionalDiscount ( long &  adjustedTimeTicketPriceAfterRegionalDiscount)

Here is the caller graph for this function:

bool IssuedTicket::GetBulkVat ( long &  bulkVat) const

Here is the caller graph for this function:

bool IssuedTicket::GetCappingInformationData ( Strojcek::VstupneUdaje::CappingInformationData &  cappingInformationData)

Here is the caller graph for this function:

bool IssuedTicket::GetCashPriceRounding ( long &  cashPriceRounding) const

Here is the caller graph for this function:

bool IssuedTicket::GetEndBusStopLineOrder ( unsigned long &  endBusStopLineOrder) const

Here is the caller graph for this function:

bool IssuedTicket::GetIndexOfAppliedDiscountCoupon ( long &  discountCouponIndex) const

Here is the caller graph for this function:

bool IssuedTicket::GetIssuedTicketSegments ( std::list< IssuedTicketSegment * > *&  issuedTicketSegments)

Here is the caller graph for this function:

bool IssuedTicket::GetOneWayTicketIndexOnCard ( long &  oneWayTicketIndexOnCard) const

Here is the caller graph for this function:

bool IssuedTicket::GetPaymentType ( EIssueLogicDefines::PaymentType paymentType) const

Here is the caller graph for this function:

bool IssuedTicket::GetPriceListRowNumber ( unsigned short &  priceListRow) const

Here is the caller graph for this function:

bool IssuedTicket::GetPrinterTemplateID ( long &  printerTemplateID)
Note
returns value by output param printerTemplateID
Parameters
printerTemplateID- issued ticket printer template ID,
See also
EPrintModule::PrepareTemplateID
bool IssuedTicket::GetRefundPrice ( long &  refundPrice) const

Here is the caller graph for this function:

bool IssuedTicket::GetRepresentativeIssuedTicketType ( IssuedTicketSegment::IssuedTicketSegmentType issuedTicketType) const

Here is the caller graph for this function:

bool IssuedTicket::GetRepresentativeTariff ( Strojcek::VstupneUdaje::TarifnySystem::ETarifa *&  representativeTariff) const

Here is the caller graph for this function:

bool IssuedTicket::GetRepresentativeTariffGroup ( Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *&  representativeTariffGroup) const

Here is the caller graph for this function:

bool IssuedTicket::GetStartBusStopLineOrder ( unsigned long &  startBusStopLineOrder) const

Here is the caller graph for this function:

bool IssuedTicket::GetSummaryPrice ( long &  summaryPrice) const

Here is the caller graph for this function:

bool IssuedTicket::GetSummaryTravelledZones ( const std::list< unsigned long > *&  travelledZones) const

Here is the caller graph for this function:

bool IssuedTicket::GetTicketCount ( unsigned short &  ticketCount) const

Here is the caller graph for this function:

bool IssuedTicket::GetTicketNumber ( unsigned long &  ticketNumber) const

Here is the caller graph for this function:

bool IssuedTicket::GetTimeValidity ( unsigned long &  timeValidityStart,
unsigned long &  timeValidityEnd 
) const

Here is the caller graph for this function:

bool IssuedTicket::GetUsedCustomerProfileIndex ( unsigned char &  usedCustomerProfileIndex) const

Here is the caller graph for this function:

bool IssuedTicket::GetVatRate ( long &  vatRate) const

Here is the caller graph for this function:

void IssuedTicket::IsSetTicketFlag ( IssuedTicket::IssuedTicketFlags  flag,
bool &  isSet 
) const

Here is the caller graph for this function:

void IssuedTicket::PrintToLog ( )

Here is the call graph for this function:

Here is the caller graph for this function:

bool IssuedTicket::SetAdjustedTimeTicketPriceAfterRegionalDiscount ( long  adjustedTimeTicketPriceAfterRegionalDiscount) const

'Sell' or 'Extension' price after applying regional or city discount

ERegionCardModule::CalculateAndFillRegionalDiscountForTimeTicketSell

See also
Redmine task #1563

Here is the caller graph for this function:

bool IssuedTicket::SetBulkVat ( long  bulkVat)

Here is the caller graph for this function:

bool IssuedTicket::SetCappingInformationData ( Strojcek::VstupneUdaje::CappingInformationData  cappingInformationData)

Here is the caller graph for this function:

bool IssuedTicket::SetCashPriceRounding ( const long  cashPriceRounding)

Here is the caller graph for this function:

bool IssuedTicket::SetEndBusStopLineOrder ( const unsigned long  endBusStopLineOrder)

Here is the caller graph for this function:

bool IssuedTicket::SetIndexOfAppliedDiscountCoupon ( const long  discountCouponIndex)

Here is the caller graph for this function:

bool IssuedTicket::SetOneWayTicketIndexOnCard ( const long  oneWayTicketIndexOnCard)

Here is the caller graph for this function:

bool IssuedTicket::SetPaymentType ( const EIssueLogicDefines::PaymentType  paymentType)
bool IssuedTicket::SetPriceListRowNumber ( const unsigned short  priceListRow)

Here is the caller graph for this function:

bool IssuedTicket::SetPrinterTemplateID ( long  printerTemplateID)
Note
value is set in the function EPrintModule::PreparePrintData
Parameters
printerTemplateID- issued ticket printer template ID,
See also
EPrintModule::PrepareTemplateID

Here is the caller graph for this function:

bool IssuedTicket::SetRefundPrice ( long  refundPrice)
bool IssuedTicket::SetRepresentativeIssuedTicketType ( IssuedTicketSegment::IssuedTicketSegmentType  issuedTicketType)

Here is the caller graph for this function:

bool IssuedTicket::SetRepresentativeTariffData ( Strojcek::VstupneUdaje::TarifnySystem::ETarifa *  representastiveTariff,
Strojcek::VstupneUdaje::TarifnySystem::ETarifnaSkupina *  representastiveTariffGroup 
)

Here is the caller graph for this function:

bool IssuedTicket::SetStartBusStopLineOrder ( const unsigned long  startBusStopLineOrder)

Here is the caller graph for this function:

bool IssuedTicket::SetSummaryPrice ( const long  summaryPrice)

Here is the caller graph for this function:

bool IssuedTicket::SetSummaryTravelledZones ( const std::list< unsigned long > &  travelledZones)

Here is the caller graph for this function:

bool IssuedTicket::SetTicketCount ( unsigned short  ticketCount)

Here is the caller graph for this function:

bool IssuedTicket::SetTicketFlag ( IssuedTicket::IssuedTicketFlags  flag)

Here is the caller graph for this function:

bool IssuedTicket::SetTicketNumber ( unsigned long  ticketNumber)

Here is the caller graph for this function:

bool IssuedTicket::SetTimeValidity ( const unsigned long  timeValidityStart,
const unsigned long  timeValidityEnd 
)

Here is the caller graph for this function:

bool IssuedTicket::SetUsedCustomerProfileIndex ( const unsigned char  usedCustomerProfileIndex)

Here is the caller graph for this function:

bool IssuedTicket::SetVatRate ( long  vatRate)

Here is the caller graph for this function:


The documentation for this class was generated from the following files: