Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DailyIdentificationRecordBusinessLogic.h
Go to the documentation of this file.
1 #ifndef DAILYIDENTIFICATIONRECORDBUSINESSLOGIC_H
2 #define DAILYIDENTIFICATIONRECORDBUSINESSLOGIC_H
3 
4 #include <QString>
6 
7 namespace EM
8 {
9  namespace Strojcek
10  {
11  namespace VstupneUdaje
12  {
13  namespace Turnusy
14  {
15  class EDuty;
16  }
17  }
18  }
19 }
20 
22 
24 {
25 public:
27 
29 
32 
38 
44 
50 
56 
62 
63  bool GetDailyIdentificationRecordNumberFromOnlinePlan( const long driverNumber, const long vehicleIdentificationNumber, QList<EM::Strojcek::VstupneUdaje::Turnusy::EDuty *> &foundDailyRecords, unsigned long &foundCommandNumber );
64  bool GetCommandNumberFromOnlinePlan( const long driverNumber, const long vehicleIdentificationNumber, unsigned long &foundCommandNumber );
65 
66  bool IsCommandSuitableForDriverOrVehicle( const long commandNumber, const long driverNumber, const long vehicleIdentificationNumber );
67  EM::Strojcek::VstupneUdaje::Turnusy::EDuty *GetActualValidDuty( const long driverNumber, const long vehicleIdentificationNumber );
68  QList<EM::Strojcek::VstupneUdaje::Turnusy::EDuty *> GetValidDuties( const long driverNumber, const long vehicleIdentificationNumber );
69 
70  bool IsDailyIdentificationRecordOpen( unsigned int &dailyIdentificationRecordNumber ) const;
71  bool OpenDailyIdentificationRecord( const int dailyIdentificationRecordNumber );
73 
75 
76 private:
78 
79  class DataClass;
80  QSharedPointer<DataClass> d;
81 
83 };
84 
85 #endif // DAILYIDENTIFICATIONRECORDBUSINESSLOGIC_H
bool IsDailyIdentificationRecordUsed()
IsDailyIdentificationRecordUsed - Check if daily identification record should be used based on tariff...
Definition: DailyIdentificationRecordBusinessLogic.cpp:70
DailyIdentificationRecordBusinessLogic()
Definition: DailyIdentificationRecordBusinessLogic.cpp:58
bool IsRefueledVolumeRequired()
IsRefueledVolumeRequired - Check if refueled volume should be entered when closing daily identificati...
Definition: DailyIdentificationRecordBusinessLogic.cpp:106
virtual ~DailyIdentificationRecordBusinessLogic()
Definition: DailyIdentificationRecordBusinessLogic.cpp:66
bool IsDailyIdentificationRecordOpen(unsigned int &dailyIdentificationRecordNumber) const
Definition: DailyIdentificationRecordBusinessLogic.cpp:314
Definition: ProjectConfiguration.h:11
static const unsigned UNDEFINED_DAILY_IDENTIFICATION_RECORD_NUMBER
Definition: DailyIdentificationRecordBusinessLogic.h:26
QList< EM::Strojcek::VstupneUdaje::Turnusy::EDuty * > GetValidDuties(const long driverNumber, const long vehicleIdentificationNumber)
Definition: DailyIdentificationRecordBusinessLogic.cpp:255
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
bool GetDailyIdentificationRecordNumberFromOnlinePlan(const long driverNumber, const long vehicleIdentificationNumber, QList< EM::Strojcek::VstupneUdaje::Turnusy::EDuty * > &foundDailyRecords, unsigned long &foundCommandNumber)
Definition: DailyIdentificationRecordBusinessLogic.cpp:160
bool IsCommandSuitableForDriverOrVehicle(const long commandNumber, const long driverNumber, const long vehicleIdentificationNumber)
Definition: DailyIdentificationRecordBusinessLogic.cpp:199
unsigned GetLastOpenDailyIdentificationRecordNumberForRefuellingTicket() const
Definition: DailyIdentificationRecordBusinessLogic.cpp:343
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: DailyIdentificationRecordBusinessLogic.h:28
EM::Strojcek::VstupneUdaje::Turnusy::EDuty * GetActualValidDuty(const long driverNumber, const long vehicleIdentificationNumber)
Definition: DailyIdentificationRecordBusinessLogic.cpp:215
bool GetCommandNumberFromOnlinePlan(const long driverNumber, const long vehicleIdentificationNumber, unsigned long &foundCommandNumber)
Definition: DailyIdentificationRecordBusinessLogic.cpp:180
Definition: DailyIdentificationRecordBusinessLogic.cpp:43
bool CloseDailyIdentificationRecord()
Definition: DailyIdentificationRecordBusinessLogic.cpp:336
bool OpenDailyIdentificationRecord(const int dailyIdentificationRecordNumber)
Definition: DailyIdentificationRecordBusinessLogic.cpp:328
bool IsHeatingValueRequired()
IsHeatingValueRequired - Check if heating value should be entered when closing daily identification r...
Definition: DailyIdentificationRecordBusinessLogic.cpp:124
Definition: AutomaticCardHandlingBusinessLogic.h:6
BusinessLogicType
Definition: ApplicationDefines.h:186
bool IsTachographValueRequired()
IsTachographValueRequired - Check if tachograph value should be entered when closing daily identifica...
Definition: DailyIdentificationRecordBusinessLogic.cpp:88
Definition: DailyIdentificationRecordBusinessLogic.h:23
bool IsAirConditioningValueRequired()
IsAirConditioningValueRequired - Check if air conditioning should be entered when closing daily ident...
Definition: DailyIdentificationRecordBusinessLogic.cpp:142
Definition: PrinterBusinessLogic.h:15