-
Notifications
You must be signed in to change notification settings - Fork 0
/
S6PrinterData.py
34 lines (27 loc) · 940 Bytes
/
S6PrinterData.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class S6PrinterData(object):
_bit_Facturacion=""
_bit_Slip=""
_bit_Validacion=""
def __init__(self, trama):
if (trama != None):
if (len(trama) > 0):
_arrayParameter=str(trama[1:-1]).split(chr(0X0A))
if (len(_arrayParameter) > 1):
try:
self._setBit_Facturacion(str(_arrayParameter[0][2:]))
self._setBit_Slip(_arrayParameter[1])
self._setBit_Validacion(_arrayParameter[2])
except (ValueError):
return
def Bit_Facturacion(self):
return self._bit_Facturacion
def Bit_Slip(self):
return self._bit_Slip
def Bit_Validacion(self):
return self._bit_Validacion
def _setBit_Facturacion(self, bitFacturacion):
self._bit_Facturacion = bitFacturacion
def _setBit_Slip(self, bitSlip):
self._bit_Slip = bitSlip
def _setBit_Validacion(self, bitValidacion):
self._bit_Validacion = bitValidacion