DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ECestovnyListok.h
Go to the documentation of this file.
1 #if !defined(ECestovnyListok_430D55A5_D5D8_4d4d_A0CB_ED28489D976A__INCLUDED_)
2 #define ECestovnyListok_430D55A5_D5D8_4d4d_A0CB_ED28489D976A__INCLUDED_
3 
4 #include "core/common/eplatform.h"
5 #include "dataio/DataIODefines.h"
6 #include "dataio/dataoutput/EAbstraktnyZaznam.h"
7 
8 namespace EM
9 {
10  namespace Strojcek
11  {
12  namespace StatistikaStrojcek
13  {
14 
15  class ECestovnyListokCol;
16  class ECipovaKarta;
17  class ELinkaSpoj;
18 
19  struct VystupneData
20  {
21  unsigned long velkostZaznamu;
22  unsigned char *data;
23  };
24 
25  class DATAIO_API ECestovnyListok : public EAbstraktnyZaznam
26  {
27  public:
29  {
30  clEJLNastupPAL = 1,
31  clEJLNastupMHD = 2,
32  //clECasovyODIS = 3,
33  //clECasovyPoznan = 4,
34  //clECasovyGdansk = 5,
35  clECasovyMHD = 6,
36  clECasovyPAL = 7,
37  //clEZiackaPreukazka = 8,
38  //clEAktivaciaCL = 9,
39  clEJednorazovyVystup = 10,
40  clEPredajCK = 11,
41  clEVklad = 12,
42  clECasovyJazda = 13,
43  clEJednorazovyNastup = 14,
44  clECasovyUsek = 15,
45  clEOznacovac = 16,
46  clECasovyODIS = 17,
47  clEZmenaPlatnostiCL = 18,
48  clEPlatbaDualnyObeh = 19,
49  };
50 
51  enum Priznaky
52  {
53  prListokZPripojenehoSpoja = 0,
54  prPrestup = 1,
55  // Priznak ak je nastaveny tak sa prenesie konverziou do sck_Zuctovanie do polozky CLCK
56  prKombinovanyCL_JL = 2,
57  prCapping = 3,
58  prOdchylkovaCena = 4,
59  prKombinovanyNastupnyListokEL = 5,
60  prDokupovanyListok = 6,
61  prBezDPH = 7
62  };
63 
64  enum Priznaky2
65  {
66  prStorno = 0,
67  prJL_CL = 1,
68  prFellowPassenger = 2,
69  prCityCard = 3,
70  prBankCard = 4,
71  prNetworkTicket = 5,
72  prLinkaSpoj = 6,
73  prNoAddressTicket = 7
74  };
75 
77  {
78  ctsTarifnaSkupina = 0,
79  ctsPlatbaZPOSTerminala = 4,
80  ctsListokIDS = 5,
81  ctsListokZMincovnika = 6,
82  ctsPrepadMincovnika = 7
83  };
84 
86  {
87  Cash = 0,
88  ChipCard = 1,
89  BankCard = 2,
90  Invoice = 3,
91  Marker = 5,
92  InternetSale = 6,
93  TimeTicketActivation = 7,
94  EventCorrection = 9,
95  EventInternetSale = 10,
96  Coiner = 11,
97  Coupon = 12,
98  AggregationEMVCard = 13
99  };
100 
101  public:
102  ECestovnyListok();
103  ECestovnyListok( ECestovnyListok &listok );
104  virtual ~ECestovnyListok();
105 
106  ECestovnyListok& operator=( ECestovnyListok& listok );
107 
108  long getCena();
109  unsigned long getCisloListka();
110  unsigned short getCisloTarifnehoListka();
111  unsigned char getCisloTarifnejSkupiny();
112  unsigned short getCisloTarify();
113  unsigned long getDatumCas();
114  unsigned short getKontrola();
115  unsigned char getMena();
119  unsigned char getTypPlatby();
120  unsigned char getPasmoPoradie();
121  unsigned short getPocetListkov();
122  unsigned char getPriznaky( ECestovnyListok::Priznaky priznaky );
123  unsigned char getPriznaky();
124  unsigned char getPriznaky2();
125  unsigned long getPovodneCislo();
126  long getCenaHromadnehoListka();
127  unsigned long GetCisloCitacky();
128  unsigned char getCisloStojanu();
129  bool getStorno();
130  unsigned char getTypTS();
131  long getDPH();
132  bool getSpolucestujuci();
133  bool getIsCityCard();
134  bool getIsBankCard();
135  bool getIsNetworkTicket();
136  bool getIsWithoutDPH();
137  unsigned char getBonusType();
138  unsigned char getTrasaCislo();
139  unsigned char getCisloIDS();
140  unsigned char getTypKuponu();
141  bool getIsLinkaSpoj();
142  unsigned short getKm();
143  bool GetNoAddressTicket();
144  bool GetCappingFlag() const;
145  long long GetTransactionDetail();
146 
147  void setCena( long newVal );
148  void setCisloListka( unsigned long newVal );
149  void setCisloTarifnehoListka( unsigned short newVal );
150  void setCisloTarifnejSkupiny( unsigned char newVal );
151  void setCisloTarify( unsigned short newVal );
152  void setDatumCas( unsigned long newVal );
153  void setKontrola( unsigned short newVal );
154  void setMena( unsigned char newVal );
155 
159  void setTypPlatby( unsigned char newVal );
160  void setPasmoPoradie( unsigned char newVal );
161  void setPocetListkov( unsigned short newVal );
162  void setPriznaky( ECestovnyListok::Priznaky priznaky, unsigned char newVal );
163  void setPriznaky( unsigned char newVal );
164  void setPriznaky2( ECestovnyListok::Priznaky2 priznaky2, unsigned char newVal );
165  void setPriznaky2( unsigned char newVal );
166  void setPovodneCislo( unsigned long newVal );
167  void SetCisloCitacky( unsigned long newVal );
168  void setCisloStojanu( unsigned char newVal );
169  void setStorno( bool newVal );
170  void setTypTS( unsigned char newVal );
171  void setSpolucestujuci( bool newVal );
172  void setDPH( long newVal );
173  void setIsCityCard( bool isCityCard );
174  void setIsBankCard( bool isBankCard );
175  void setIsNetworkTicket( bool isNetworkTicket );
176  void setIsWithoutDPH( bool isWithoutDPH );
177  void setCisloIDS( unsigned char newVal );
178  void setTypKuponu( unsigned char newVal );
179  void setIsLinkaSpoj( bool newVal );
180  void setKm( unsigned short km );
181  void SetNoAddressTicket( bool noAddressTicket );
182  void SetTransactionDetail( long long transactionDetail );
183  void setBonusType( unsigned char bonusType );
184  void setTrasaCislo( unsigned char trasaCislo );
185 
186  ECipovaKarta *getCipovaKarta();
187  ELinkaSpoj *getLinkaSpoj();
188  ECestovnyListokCol *getOwner();
189  void setOwner( ECestovnyListokCol *newVal );
190 
191  virtual void fillInLISTOK1( LISTOK1 &listok1 );
192  virtual void fillUpLISTOK1( LISTOK1 &listok1 );
193 
194  void addCipovaKarta( ECipovaKarta *newVal );
195  void addLinkaSpoj( ELinkaSpoj *newVal );
196  virtual VystupneData* SendTicket();
197  virtual void ReceiveTicket( VystupneData *vstupneData );
198 
199  virtual void fillInCK1( CK1 &ck1 );
200  virtual void fillUpCK1( CK1 &ck1 );
201 
202  void fillInLOG_EP( LOG_EP &logEP );
203  void fillUpLOG_EP( LOG_EP &logEP );
204 
205  bool writeLinkaSpoj();
206  bool readLinkaSpoj();
207 
215  bool GetLinkaSpojData( unsigned char*& data, unsigned short& dataSize );
216 
217  bool IsPrepaidTicketSell();
218 
219  virtual short getChksum();
220 
221  private:
222  class DataClass;
223  DataClass *d;
224  };
225  }
226  }
227 }
228 
229 #endif
CisloTarifnejSkupiny
Definition: ECestovnyListok.h:76
unsigned long velkostZaznamu
Definition: ECestovnyListok.h:21
Definition: EStatistikaStruct.h:246
unsigned char * data
Definition: ECestovnyListok.h:22
Definition: EStatistikaStruct.h:105
EPaymentType
Definition: ECestovnyListok.h:85
Priznaky2
Definition: ECestovnyListok.h:64
Definition: ECestovnyListok.h:19
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
InterneCisloListka
Definition: ECestovnyListok.h:28
Definition: EStatistikaStruct.h:311
Priznaky
Definition: ECestovnyListok.h:51
#define DATAIO_API
Definition: DataIODefines.h:10
Definition: ECestovnyListokCol.h:20