DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ETarifa.h
Go to the documentation of this file.
1 #if !defined(AFX_ETARIFA_H__0D5591C9_29EA_44D8_8FE0_5CB617ECE8B7__INCLUDED_)
2 #define AFX_ETARIFA_H__0D5591C9_29EA_44D8_8FE0_5CB617ECE8B7__INCLUDED_
3 
4 #include "core/common/Node.h"
5 #include "core/common/eplatform.h"
6 #include "dataio/DataIODefines.h"
7 
8 namespace EM
9 {
10  namespace Strojcek
11  {
12  namespace VstupneUdaje
13  {
14  namespace TarifnySystem
15  {
16  class ETarifaTypStlpcaCol;
17  class EVlastnostTarifyHodnotaCol;
18  class ETarifaCol;
19  class ERootTarifnySystem;
20 
21  class DATAIO_API ETarifa : public ENode
22  {
23  public:
25  {
26  OneWaySuburban = 1,
27  OneWayPublicTransport = 2,
28  TimeTicket = 3,
29  Bagage = 4,
30  PurseFilling = 5,
31  CardSell = 6,
32  TimeTicketPublicTransport = 8,
33  TimeTicketInterrupt = 9,
34  BalanceTransfer = 10,
35  CommercialTicketDiscount = 11,
36  CommercialTicketBonus = 12,
37  StudentCard = 13,
38  EmployeeDiscount = 14,
39  TimeTicketODIS = 15,
40  TimeTicketSurcharge = 16,
41  OneWayTicketSurcharge = 17,
42  Provision = 18,
43  CardAppeal = 19,
44  Marker = 20,
45  Dotation = 21,
46  UnpaidExpense = 22,
47  CardUsingFee = 23,
48  Journey = 24,
49  RegistrationTicket = 25,
50  CashPriceRoundingSettlement = 26 // centove vyrovnanie
51  };
52 
53  /*
54  * Enum that indicates values of tariff setting 3 'Platba'
55  */
57  {
58  AllowedPaymentCash = 0x01,
59  AllowedPaymentChipCard = 0x02,
60  AllowedPaymentCoiner = 0x04,
61  AllowedPaymentMarker = 0x08,
62  AllowedPaymentInvoice = 0x10,
63  AllowedPaymentCoupon = 0x20,
64  AllowedPaymentEmvCard = 0x40
65  };
66 
67  ETarifa( ETarifaCol *owner,
68  unsigned short id,
69  const char *nazov,
70  bool zachadzky,
71  unsigned char listokID,
72  unsigned char zlavaID,
73  unsigned char uctovnyDruhID,
74  unsigned char menaID,
75  long cennikID,
76  const char *skratenyNazov );
77  virtual ~ETarifa();
78 
79  ETarifaCol *GetOwner();
80  ETarifaTypStlpcaCol *GetTarifaTypStlpcaCol();
81  EVlastnostTarifyHodnotaCol *GetVlastnostTarifyHodnotaCol();
82 
83  unsigned short GetTariffTicketNumber();
84  unsigned long GetTariffNumber();
85  void SetTariffNumber( unsigned long tariffNumber );
86 
87  char *GetNazov();
88  bool GetZachadzky();
89  unsigned char GetTypListkaID();
90  unsigned char GetTypZlavyID();
91  unsigned char GetUctovnyDruhID();
92  unsigned char GetMenaID();
93  long GetCennikID();
94  char *GetSkratenyNazov();
95  unsigned char GetStatID();
96  unsigned short GetIDS();
97 
98  void SetStatID( unsigned char statID );
99  void SetIDS( unsigned short ids );
100 
101  void SetVlastnostTarifyHodnotaOffset( long offset );
102  long GetVlastnostTarifyHodnotaOffset();
103 
104  ETarifa *GetLeft();
105  ETarifa *GetRight();
106 
107  private:
108  class DataClass;
109  DataClass *d;
110  };
111  }
112  }
113  }
114 }
115 
116 #endif
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
#define DATAIO_API
Definition: DataIODefines.h:10