Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Attributes | List of all members
DeductionBusinessLogic Class Reference

#include <DeductionBusinessLogic.h>

Inheritance diagram for DeductionBusinessLogic:
Inheritance graph
[legend]
Collaboration diagram for DeductionBusinessLogic:
Collaboration graph
[legend]

Public Member Functions

 DeductionBusinessLogic ()
 
virtual ~DeductionBusinessLogic ()
 
void FillInitialTicket (EM::PrinterTemplate::EPrinterTemplate *ticketTemplate)
 FillInitialTicket - fills initial ticket template (ticket header, driver and deduction details, ...) More...
 
void FillFinalTicket (EM::PrinterTemplate::EPrinterTemplate *ticketTemplate, bool preFinalTicket)
 FillFinalTicket - fills final ticket template. More...
 
bool SaveCancelationTicketsBeforeDeductionClose ()
 SaveCancelationTicketsBeforeDeductionClose - iterates over all storno tickets in deduction and stores information about them (ticket number, price) in dataclass member. More...
 
bool GetCurrentDeductionNumber (uint32_t &currentDeductionNumber)
 Gets current deduction number from 'deduction number record'/'ECisloOdpoctu' from statistic interface 'ERootStatistika'. More...
 
bool GetCurrentDeductionNumberFromConfig (uint32_t &currentDeductionNumber)
 Gets number of the current deduction from statistics XML file. More...
 
bool GetLastOpenDeductionNumberFromConfig (uint32_t &lastOpenDeductionNumber)
 Gets number of latest open deduction. If a deduction is open, this number identifies the current deduction. More...
 
bool IsNewMonth ()
 
- Public Member Functions inherited from BusinessLogic
 BusinessLogic (ApplicationDefines::BusinessLogicType businessLogicType, ApplicationDefines::BusinessLogicLifeTimeType businessLogicLifeTimeType)
 
virtual ~BusinessLogic ()
 
ApplicationDefines::BusinessLogicType GetBusinessLogicType () const
 
ApplicationDefines::BusinessLogicLifeTimeType GetBusinessLogicLifeTimeType () const
 

Static Public Attributes

static const
ApplicationDefines::BusinessLogicType 
mBusinessLogicType = ApplicationDefines::DeductionBusinessLogic
 

Constructor & Destructor Documentation

DeductionBusinessLogic::DeductionBusinessLogic ( )
DeductionBusinessLogic::~DeductionBusinessLogic ( )
virtual

Member Function Documentation

void DeductionBusinessLogic::FillFinalTicket ( EM::PrinterTemplate::EPrinterTemplate *  ticketTemplate,
bool  preFinalTicket 
)

FillFinalTicket - fills final ticket template.

Parameters
ticketTemplate- template to be filled
preFinalTicket- whether ticket is pre-final (some fields are printed only on final ticket, not on pre-final)
vehicleIdentificationNumber- value written to vehicle_info template field

Here is the call graph for this function:

Here is the caller graph for this function:

void DeductionBusinessLogic::FillInitialTicket ( EM::PrinterTemplate::EPrinterTemplate *  ticketTemplate)

FillInitialTicket - fills initial ticket template (ticket header, driver and deduction details, ...)

Parameters
ticketTemplate- template to be filled
bool DeductionBusinessLogic::GetCurrentDeductionNumber ( uint32_t &  currentDeductionNumber)

Gets current deduction number from 'deduction number record'/'ECisloOdpoctu' from statistic interface 'ERootStatistika'.

Parameters
currentDeductionNumber
Returns
bool DeductionBusinessLogic::GetCurrentDeductionNumberFromConfig ( uint32_t &  currentDeductionNumber)

Gets number of the current deduction from statistics XML file.

Parameters
currentDeductionNumberoutput parameter where the retrieved value is stored
Returns
true on success, false otherwise
bool DeductionBusinessLogic::GetLastOpenDeductionNumberFromConfig ( uint32_t &  lastOpenDeductionNumber)

Gets number of latest open deduction. If a deduction is open, this number identifies the current deduction.

Parameters
lastOpenDeductionNumberoutput parameter where the retrieved value is stored
Returns
true on success, false otherwise
bool DeductionBusinessLogic::IsNewMonth ( )
bool DeductionBusinessLogic::SaveCancelationTicketsBeforeDeductionClose ( )

SaveCancelationTicketsBeforeDeductionClose - iterates over all storno tickets in deduction and stores information about them (ticket number, price) in dataclass member.

Returns
true if successful, false otherwise (error reading from statistics)

Member Data Documentation

const ApplicationDefines::BusinessLogicType DeductionBusinessLogic::mBusinessLogicType = ApplicationDefines::DeductionBusinessLogic
static

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