Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DeductionBusinessLogic.h
Go to the documentation of this file.
1 #ifndef DEDUCTIONBUSINESSLOGIC_H
2 #define DEDUCTIONBUSINESSLOGIC_H
3 
4 #include <QString>
6 
7 namespace EM
8 {
9  namespace Common
10  {
11  class EDataCol;
12  }
13 
14  namespace PrinterTemplate
15  {
16  class EPrinterTemplate;
17  }
18 
19  namespace Strojcek
20  {
21  namespace StatistikaStrojcek
22  {
23  class EPociatocnyListok;
24  }
25  }
26 }
27 
29 {
30 public:
32 
34  virtual ~DeductionBusinessLogic();
35 
40  void FillInitialTicket( EM::PrinterTemplate::EPrinterTemplate *ticketTemplate );
41 
48  void FillFinalTicket( EM::PrinterTemplate::EPrinterTemplate *ticketTemplate, bool preFinalTicket );
49 
55 
61  bool GetCurrentDeductionNumber( uint32_t &currentDeductionNumber );
62 
68  bool GetCurrentDeductionNumberFromConfig( uint32_t &currentDeductionNumber );
69 
75  bool GetLastOpenDeductionNumberFromConfig( uint32_t &lastOpenDeductionNumber );
76 
77  bool IsNewMonth();
78 
79 private:
81 
82  class DataClass;
83  QScopedPointer<DataClass> d;
84 
86 };
87 
88 #endif // DEDUCTIONBUSINESSLOGIC_H
void FillInitialTicket(EM::PrinterTemplate::EPrinterTemplate *ticketTemplate)
FillInitialTicket - fills initial ticket template (ticket header, driver and deduction details...
Definition: DeductionBusinessLogic.cpp:859
void FillFinalTicket(EM::PrinterTemplate::EPrinterTemplate *ticketTemplate, bool preFinalTicket)
FillFinalTicket - fills final ticket template.
Definition: DeductionBusinessLogic.cpp:932
bool GetCurrentDeductionNumber(uint32_t &currentDeductionNumber)
Gets current deduction number from 'deduction number record'/'ECisloOdpoctu' from statistic interface...
Definition: DeductionBusinessLogic.cpp:1202
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
bool GetLastOpenDeductionNumberFromConfig(uint32_t &lastOpenDeductionNumber)
Gets number of latest open deduction. If a deduction is open, this number identifies the current dedu...
Definition: DeductionBusinessLogic.cpp:1228
bool SaveCancelationTicketsBeforeDeductionClose()
SaveCancelationTicketsBeforeDeductionClose - iterates over all storno tickets in deduction and stores...
Definition: DeductionBusinessLogic.cpp:1103
bool IsNewMonth()
Definition: DeductionBusinessLogic.cpp:1247
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: DeductionBusinessLogic.h:31
DeductionBusinessLogic()
Definition: DeductionBusinessLogic.cpp:848
Definition: BusinessLogic.cpp:3
virtual ~DeductionBusinessLogic()
Definition: DeductionBusinessLogic.cpp:854
Definition: AutomaticCardHandlingBusinessLogic.h:6
BusinessLogicType
Definition: ApplicationDefines.h:186
Definition: DeductionBusinessLogic.h:28
bool GetCurrentDeductionNumberFromConfig(uint32_t &currentDeductionNumber)
Gets number of the current deduction from statistics XML file.
Definition: DeductionBusinessLogic.cpp:1215
Definition: ApplicationDefines.h:191