diff --git a/B4A/AutoBackups/Backup Marquez_Reparto 2024-08-10 21.06.zip b/B4A/AutoBackups/Backup Marquez_Reparto 2024-08-10 21.06.zip
new file mode 100644
index 0000000..84219db
Binary files /dev/null and b/B4A/AutoBackups/Backup Marquez_Reparto 2024-08-10 21.06.zip differ
diff --git a/B4A/AutoBackups/Backup Marquez_Reparto 2024-08-11 17.27.zip b/B4A/AutoBackups/Backup Marquez_Reparto 2024-08-11 17.27.zip
new file mode 100644
index 0000000..9fc7dcc
Binary files /dev/null and b/B4A/AutoBackups/Backup Marquez_Reparto 2024-08-11 17.27.zip differ
diff --git a/B4A/B4XMainPage.bas b/B4A/B4XMainPage.bas
new file mode 100644
index 0000000..a3b40f7
--- /dev/null
+++ b/B4A/B4XMainPage.bas
@@ -0,0 +1,1020 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=9.85
+@EndOfDesignText@
+#Region Shared Files
+'#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
+ 'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
+ '###########################################################################################################
+ '###################### PULL #############################################################
+ 'Ctrl + click ide://run?file=%WINDIR%\System32\cmd.exe&Args=/c&Args=git&Args=pull
+ '###########################################################################################################
+ '###################### PUSH #############################################################
+ 'Ctrl + click ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=github&Args=..\..\
+ '###########################################################################################################
+ '###################### PUSH TORTOISE GIT #########################################################
+ 'Ctrl + click ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=TortoiseGitProc&Args=/command:commit&Args=/path:"./../../"&Args=/closeonend:2
+ '###########################################################################################################
+#End Region
+
+'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
+
+Sub Class_Globals
+ Dim rp As RuntimePermissions
+ Private Root As B4XView
+ Private xui As XUI
+ Private Root As B4XView
+ Public rp As RuntimePermissions
+ Public login As B4XMainPage
+ Public principal As C_Principal
+ Public clientes As C_Clientes
+ Public cliente As C_Cliente
+' Public foto As C_Foto
+ Public productos As C_Productos
+ Public updateAvailable As C_UpdateAvailable
+ Public mapas As C_Mapas
+ Public nuevoCliente As C_NuevoCliente
+ Public ticketsDia As C_TicketsDia
+ Public noVenta As C_NoVenta
+ Public pedidos As C_Pedidos
+ Public buscar As C_Buscar
+' Public historico As C_Historico
+ Public detalleVenta As C_DetalleVenta
+ Public detalle_promo As C_Detalle_Promo
+ Dim reqManager As DBRequestManager
+' Dim ruta As String
+ Dim usuario As String
+ Dim logger As Boolean = True
+ Dim lat_gps, lon_gps As String
+' Dim skmt As SQL
+ Dim usuario As String
+ Dim server As String
+ Dim montoActual, clientesTotal, clientesVenta, clientesRechazo, clientesVisitados, almacen, rutaPreventa, CANTIDADPROD As String
+ Dim ultimaActualizacionGPS As String = 235959
+ Dim fechaRuta As String
+' Public wsServerLink As String = "ws://187.189.244.154:51042/push/b4a_ws2"
+' Public wsServerLink As String = "ws://10.0.0.214:51042/push/b4a_ws2"
+ Dim srvIp As String
+ Dim phn As Phone
+ Dim user As EditText
+ Dim pass As EditText
+ Dim c As Cursor
+ Dim existe As String
+ Dim paso1 As String
+ Private IMEN As Label
+ Dim IMEI As String
+ Private Label1 As Label
+ Dim server As String
+ Private p_principal As Panel
+ Private Entrar As Button
+ Public checklist As C_Cheklist
+ Public tabulador As C_tabulador
+ Dim batt As Int
+ Dim porVisitar, entregas, rechazos, montoEntregado, montoRechazado, visitadostotales As String
+ Private p_appUpdate As Panel
+ Private i_engrane As ImageView
+ Private b_server As Button
+ Private b_apk As Button
+ Private b_envioBD As Button
+ Private b_regesar As Button
+ Private et_server As EditText
+ Private p_serverList As Panel
+ Private lv_server As ListView
+ Public Provider As FileProvider
+ Public rutaBDBackup As String = ""
+ Private B_Can_Monto As Button
+ Private B_Aceptar_Monto As Button
+ Private ET_Add_Monto As EditText
+ Private p_add_monto As Panel
+ Dim sDate, sTime As String
+ Private p_validacion As Panel
+ Private b_cancelarcodigo As Button
+ Private b_aceptar As Button
+ Private et_codigo As EditText
+ Private P_CIEGO As Panel
+ Private b_terpc As Button
+ Private B_PC_ENV As Button
+ Private CLV_PICK_CIEGO As CustomListView
+ Private et_buspc As EditText
+ Dim q_buscar As String
+ Dim d As Cursor
+ Private L_PICK_CIEGO As Label
+ Private ET_PICK_CIEGO As EditText
+ Dim a As Cursor
+ Dim f As Cursor
+ Private b_abono As Button
+ Dim monto_entregadoactual As String
+End Sub
+
+Public Sub Initialize
+' B4XPages.GetManager.LogEvents = True
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ B4XPages.GetManager.LogEvents = True
+ Root.LoadLayout("login")
+ B4XPages.SetTitle(Me, "Izca Reparto")
+ login.Initialize
+ B4XPages.AddPage("Login", login)
+ principal.Initialize
+ B4XPages.AddPage("Principal", principal)
+ clientes.Initialize
+ B4XPages.AddPage("Clientes", clientes)
+ cliente.Initialize
+ B4XPages.AddPage("Cliente", cliente)
+' foto.Initialize
+' B4XPages.AddPage("Foto", foto)
+ productos.Initialize
+ B4XPages.AddPage("Productos", productos)
+ updateAvailable.Initialize
+ B4XPages.AddPage("updateAvailable", updateAvailable)
+ mapas.Initialize
+ B4XPages.AddPage("Mapas", mapas)
+ nuevoCliente.Initialize
+ B4XPages.AddPage("NuevoCliente", nuevoCliente)
+ ticketsDia.Initialize
+ B4XPages.AddPage("TicketsDia", ticketsDia)
+ noVenta.Initialize
+ B4XPages.AddPage("NoVenta", noVenta)
+ pedidos.Initialize
+ B4XPages.AddPage("Pedidos", pedidos)
+ buscar.Initialize
+ B4XPages.AddPage("Buscar", buscar)
+' historico.Initialize
+' B4XPages.AddPage("Historico", historico)
+ detalleVenta.Initialize
+ B4XPages.AddPage("DetalleVenta", detalleVenta)
+ detalle_promo.Initialize
+ B4XPages.AddPage("Detalle_Promo", detalle_promo)
+ tabulador.Initialize
+ B4XPages.AddPage("tabulador", tabulador)
+ checklist.Initialize
+ B4XPages.AddPage("checklist",checklist)
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD3 (CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUMERIC, CAT_GP_ID TEXT, CAT_GP_NOMBRE TEXT, CAT_GP_IMP1 TEXT, CAT_GP_IMP2 TEXT, CAT_GP_PRECIO TEXT, CAT_GP_CLASIF TEXT, CAT_GP_STS TEXT, CAT_GP_TIPO TEXT, CAT_GP_SUBTIPO TEXT, CAT_GP_IMG BLOB)")
+ Subs.agregaColumna("CAT_GUNAPROD3", "CAT_DP_CONVERSION1", "TEXT")
+ Subs.agregaColumna("CAT_GUNAPROD3", "CAT_DP_PRECIO4", "TEXT")
+ Subs.agregaColumna("CAT_GUNAPROD3", "CAT_DP_CANT_MIN_VENTA", "TEXT")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOS (a_usuario TEXT, a_ruta TEXT, a_cliente TEXT, a_abono TEXT, a_fecha TEXT, a_enviado TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS PAGARES (PA_ALMACEN TEXT, PA_RUTA_REP TEXT, PA_RUTAPREV TEXT, PA_FECHA_PREV TEXT, PA_CAPTURA TEXT, PA_MONTO TEXT, PA_USUARIO TEXT, PA_CLIENTE TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS PICK_CIEGO (PC_ID_PROD TEXT, PC_NOM_PROD TEXT, PC_CANT TEXT, PC_ALMACEN TEXT, PC_RUTA TEXT, PC_FECHA TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ENV_MONTO_LIQ (EML_MONTO TEXT, EML_ALMACEN TEXT, EML_RUTA TEXT, EML_USUARIO TEXT, EML_FECHA_PED TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_MONEDAS(VEINTE TEXT, DIEZ TEXT, CINCO TEXT, DOS TEXT, PESO TEXT, CENTAVO TEXT, TOTAL TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_BILLETES(MIL TEXT, QUINIENTOS TEXT, DOCIENTOS TEXT, CIEN TEXT, CINCUENTA TEXT, VEINTE TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_VENTAS2 (HVD_PARCIAL TEXT, HVD_RECHAZO TEXT, HVD_NUM_REGISTRO TEXT, HVD_NUM_TICKET TEXT, HVD_PROID TEXT, HVD_CODPROMO TEXT, HVD_FECHA TEXT, HVD_ESTATUS TEXT, HVD_CLIENTE TEXT, HVD_PRONOMBRE TEXT, HVD_CANT TEXT, HVD_COSTO_TOT TEXT)")
+' Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS VENTAS (V_FECHA TEXT, V_CLIENTE TEXT, V_CLIENTE_ORIG TEXT, V_PRODNOMBRE TEXT, V_PRODID TEXT, V_CANTIDAD TEXT, V_PRECIO TEXT, V_TOTAL TEXT, V_PRODREGISTRO TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RECHAZOS (R_FECHA TEXT, R_CLIENTE TEXT, R_CLI_ORIG TEXT, R_PRODID TEXT, R_CANT TEXT, R_RECHAZO INT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS VENTAS (V_FECHA TEXT, V_CLIENTE TEXT, V_CLI_ORIG TEXT, V_PRODID TEXT, V_CANT TEXT, V_RECHAZO INT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOSP(NOTA TEXT, CLIENTE TEXT, SALDO_PENDIENTE TEXT)")
+' Starter.skmt.ExecNonQuery("DROP TABLE IF EXISTS PAGARES")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECADO_CHECK(CHECADO TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS BLOCKENVIO(ENVIADO TEXT)")
+' Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS PAGARES(TMP_MONTO_PAGARE TEXT, TMP_CLIENTE TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT , POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA_BUENESTADO TEXT, CARROCERIA_MALESTADO TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES_CORRECTO TEXT, LUCES_INCORRECTO TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS_CORRECTO TEXT, CONDICION_PLACAS_INCORRECTO TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST2(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT, POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB, KILIMETRAJE TEXT, RUTA TEXT)")
+ Subs.agregaColumna("REPARTO", "REP_PRODREGISTRO", "TEXT")
+ Subs.agregaColumna("ABONOS","TIPO_PAGO","TEXT")
+ Subs.agregaColumna("ABONOS","CONSECUTIVO","TEXT")
+ Subs.agregaColumna("ABONOS","NUM_TICKET","TEXT")
+ Subs.agregaColumna("ABONOS","RUTA_REP","TEXT")
+ Subs.agregaColumna("NOVENTA", "NV_RUTA", "TEXT")
+ Subs.agregaColumna("kmt_info", "SECUENCIA", "INT")
+ Subs.agregaColumna("kmt_info", "HORAENT", "TEXT")
+ Subs.agregaColumna("REPARTO", "REP_PRODID", "TEXT")
+ Subs.agregaColumna("PEDIDO", "PE_CLIENTEOR", "TEXT")
+ Subs.agregaColumna("PEDIDO", "PE_CAJAS", "TEXT")
+ Subs.agregaColumna("PEDIDO", "PE_REGALO", "TEXT")
+ Subs.agregaColumna("PEDIDO", "PE_BCAJAS", "TEXT")
+ Subs.agregaColumna("PEDIDO", "CONSECUTIVO", "TEXT")
+ Subs.agregaColumna("PEDIDO", "FECHA_PREV", "TEXT")
+ Subs.agregaColumna("PEDIDO", "RUTA_REP", "TEXT")
+ Subs.agregaColumna("REPARTO", "REP_CLI_ORIG", "TEXT")
+ Subs.agregaColumna("REPARTO", "REP_PRECIO", "TEXT")
+ Subs.agregaColumna("REPARTO", "REP_RECHAZO", "INTEGER")
+ Subs.agregaColumna("RECHAZOS", "R_PRECIO", "TEXT")
+ Subs.agregaColumna("VENTAS", "V_PRECIO", "TEXT")
+ Subs.agregaColumna("HIST_VENTAS","PLACA","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","HVD_RECHAZOCANT","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","CONSECUTIVO","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","HVD_RECHAZOCANT","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","ESPROMO","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","HVD_RECHAZOCANTC","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","BCAJAS","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","CANTC","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","BCAJAS_OR","TEXT")
+ Subs.agregaColumna("HIST_VENTAS","CANTC_OR","TEXT")
+ Subs.agregaColumna("CAT_GUNAPROD","CONVERSION","TEXT")
+ Subs.agregaColumna("CAT_GUNAPROD","PRECIOCONVER","TEXT")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTAA (RUTAA TEXT)")
+ Starter.skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS wayPoints (codigo TEXT, indice INT)")
+ Dim server As String = "http://keymon.net:1781"
+' Dim server As String = "http://192.168.100.10:1781"
+' Dim server As String = "http://keymon.lat:9000"
+' server = "http://10.0.0.205:1782"
+' Dim server As String = "http://192.168.100.10:1781"
+' server = "http://11.0.0.44:1782"
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+ LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+ Label1.Text = Application.VersionName
+' Dim P As PhoneId
+ Log("provider")
+ Provider.Initialize
+
+' Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_READ_PHONE_STATE)
+' Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
+' If Result Then
+' IMEN.Text = "" 'P.GetDeviceId
+' IMEI = "" 'P.GetDeviceId
+' End If
+End Sub
+
+Sub B4XPage_Appear
+ If Starter.muestraProgreso = 1 Then
+ muestraProgreso("Descargando actualización")
+ Starter.muestraProgreso = 0
+ End If
+ Subs.centraPanel(p_principal, Root.Width)
+ Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
+' LogColor("Start Tracker1", Colors.red)
+ Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
+ If Result Then
+ If Not(Tracker.Tracking) Then StartService(Tracker)
+' LogColor("Start Tracker", Colors.red)
+ Else
+ ToastMessageShow("No permission", True)
+ Log("Sin permisos")
+ End If
+' LogColor("Start Tracker3", Colors.red)
+ c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ If c.RowCount > 0 Then
+' c.Position=0
+' c=skmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position=0
+ usuario = c.GetString("USUARIO")
+ End If
+ c.Close
+' Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
+' Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
+' If Result Then
+' Log("Con permisos de escritura externa")
+' End If
+
+' Dim r As Reflector
+' Dim androidID As String
+' androidID = r.RunStaticMethod("android.provider.Settings$Secure", "getString", Array As Object(r.GetContext.GetContentResolver, "android_id"),Array As String("android.content.ContentResolver", "java.lang.String"))
+' Log("Android ID: " & androidID)
+
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub Entrar_Click
+ If pass.Text = "YA" Then
+ Starter.skmt.ExecNonQuery("delete from usuarioa")
+ Starter.skmt.ExecNonQuery("delete from VERSION")
+ Starter.skmt.ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)", Array As Object("ROOT", "ROOT"))
+ Starter.skmt.ExecNonQuery("delete from cat_almacen")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)", Array As Object (user.Text))
+ Starter.skmt.ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)", Array As Object ("2.1"))
+' principal.B_REGRESA_Click
+' B4XPages.MainPage.principal.Subir.Visible = True
+ B4XPages.ShowPage("Principal")
+ Else
+ c=Starter.skmt.ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?", Array As String(user.Text))
+ c.Position=0
+ existe = c.GetString("EXISTE1")
+ c.Close
+ 'existe = 1
+ If existe = 0 Then
+ 'skmt.ExecNonQuery("delete from usuarioa")
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "select_usuario_IZCA_REPG"
+ cmd.Parameters = Array As Object(user.Text, pass.Text)
+ reqManager.ExecuteQuery(cmd , 0, "usuario")
+
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "select_version_IZCA"
+ reqManager.ExecuteQuery(cmd , 0, "version")
+ Else
+' principal.B_REGRESA_Click
+ B4XPages.ShowPage("Principal")
+ End If
+ End If
+End Sub
+
+Sub JobDone(Job As HttpJob)
+ If Job.Success = False Then
+ ToastMessageShow("Error: " & Job.ErrorMessage, True)
+ Else
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "version" Then 'query tag
+ For Each records() As Object In result.Rows
+ Starter.skmt.ExecNonQuery("delete from VERSION")
+ Dim CAT_VE_VERSION As String = records(result.Columns.Get("CAT_VE_VERSION"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)", Array As Object (CAT_VE_VERSION))
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "agencia" Then 'query tag
+ For Each records() As Object In result.Rows
+
+ Dim ID_ALMACEN As String = records(result.Columns.Get("ID_ALMACEN"))
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "coords_almacen" Then 'query tag
+ For Each records() As Object In result.Rows
+ Log("Coordenadas del almacen: " & records(result.Columns.Get("CAT_AL_LATITUD")) & "," & records(result.Columns.Get("CAT_AL_LONGITUD")))
+ Private lat, lon As Double
+ lat = 0.0
+ lon = 0.0
+ If IsNumber(records(result.Columns.Get("CAT_AL_LATITUD"))) And IsNumber(records(result.Columns.Get("CAT_AL_LONGITUD"))) Then
+ lat = records(result.Columns.Get("CAT_AL_LATITUD"))
+ lon = records(result.Columns.Get("CAT_AL_LONGITUD"))
+ End If
+ Starter.cedisLocation.Latitude = lat
+ Starter.cedisLocation.Longitude = lon
+ Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("COORDS_ALMACEN"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("COORDS_ALMACEN",lon&","&lat))
+ '19.48118148992086,-99.15295579261536
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "usuario" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim name As String = records(result.Columns.Get("USUARIO"))
+ Dim ID_ALMACEN As String = records(result.Columns.Get("CAT_LO_AGENCIA"))
+ Dim IMEI_BASE As String = records(result.Columns.Get("CAT_LO_IDTELEFONO"))
+ Next
+ paso1 = 1
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "contrasena" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim CAT_PA_PASS As String = records(result.Columns.Get("CAT_PA_PASS"))
+ If CAT_PA_PASS = et_codigo.Text Then
+ Log(CAT_PA_PASS)
+ p_validacion.Visible = False
+ et_codigo.Text = ""
+
+ Subs.panelVisible(P_CIEGO,0,0)
+
+ Else
+ MsgboxAsync("Contraseña incorrecta","Atención")
+ End If
+ Next
+ End If
+ End If
+
+' If Job.JobName = "DBRequest" Then
+' Dim result As DBResult = reqManager.HandleJob(Job)
+' If result.Tag.As(String).IndexOf("PICK_C_") > -1 Then 'query tag
+'' Subs.logJobDoneResultados(result)
+' Private id As String= result.Tag
+' id = id.SubString(id.IndexOf("_")+3)
+' For Each records() As Object In result.Rows
+' Dim CUENTA As String = records(result.Columns.Get("CUENTA"))
+' Log(CUENTA)
+' Log(id)
+' If CUENTA = 0 Then
+' c = Starter.skmt.ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD = ?", Array As String (id))
+' If c.RowCount > 0 Then
+'' For i=0 To c.RowCount -1
+' c.Position=0
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_PICKCIEGO_MAZAPA"
+' cmd.Parameters = Array As Object(c.GetString("PC_ID_PROD"), c.GetString("PC_NOM_PROD"), c.GetString("PC_CANT"), c.GetString("PC_ALMACEN"), c.GetString("PC_RUTA"), c.GetString("PC_FECHA"),"REPARTO")
+' reqManager.ExecuteCommand(cmd , "ins_PC")
+'' Next
+' End If
+' c.Close
+' Else if CUENTA > 0 Then
+' c = Starter.skmt.ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD= ?", Array As String (id))
+' If c.RowCount > 0 Then
+'' For i=0 To c.RowCount -1
+' c.Position = 0
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "update_PICKCIEGO_MAZAPA"
+' Log("FECHA" & c.GetString("PC_FECHA"))
+' cmd.Parameters = Array As Object(c.GetString("PC_CANT"), c.GetString("PC_ID_PROD"), c.GetString("PC_ALMACEN"), c.GetString("PC_RUTA"), c.GetString("PC_FECHA"),"REPARTO")
+' reqManager.ExecuteCommand(cmd, "update_PC")
+'' Next
+' End If
+' c.Close
+' End If
+'
+' Next
+' End If
+' End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "estatus" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim hvd_estatus As String = records(result.Columns.Get("HVD_ESTATUS"))
+ If hvd_estatus = "Liquidado" Then
+ ' ToastMessageShow("rojo val ok 1 cuantosp." , True)
+ MsgboxAsync("La venta ya fue liquidada","Atención")
+ Else
+ enviarmonto
+ End If
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "estatus2" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim hvd_estatus As String = records(result.Columns.Get("HVD_ESTATUS"))
+ If hvd_estatus = "Liquidado" Then
+ ' ToastMessageShow("rojo val ok 1 cuantosp." , True)
+ MsgboxAsync("La venta ya fue liquidada","Atención")
+ Else
+ passaquci
+ End If
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "SelectMontoLiq" Then
+ For Each records() As Object In result.Rows
+ Dim CUENTA As String = records(result.Columns.Get("CUENTA"))
+
+ DateTime.DateFormat = "MM/dd/yyyy"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ Private f As Cursor=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ f.Position=0
+ Private a As Cursor =Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ a.Position = 0
+
+ Private c2 As Cursor
+ c2=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ c2.Position=0
+ If c2.RowCount > 0 Then c2.GetString("USUARIO")
+
+ Log(CUENTA & "----------------------!!")
+ If CUENTA = "0" Then
+
+' c = Starter.skmt.ExecQuery2("SELECT * FROM ENV_MONTO_LIQ WHERE EML_USUARIO = ? AND EML_ALMACEN = ? AND EML_RUTA = ?", Array As String (c2.GetString("USUARIO"), a.GetString("ID_ALMACEN"), f.GetString("RUTAA")))
+' If c.RowCount > 0 Then
+'' For i=0 To c.RowCount -1
+' c.Position=0
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_Monto_Liq_MAZAPArep"
+' cmd.Parameters = Array As Object(c.GetString("EML_MONTO"), c.GetString("EML_ALMACEN"), f.GetString("RUTAA"), c.GetString("EML_USUARIO"), "REPARTO", c.GetString("EML_FECHA_PED"))
+' reqManager.ExecuteCommand(cmd , "ins_Mon_Liq")
+' MsgboxAsync("Monto Enviado", "Atención")
+'' Next
+' End If
+' c.Close
+ Else if CUENTA > "0" Then
+
+' c = Starter.skmt.ExecQuery2("SELECT * FROM ENV_MONTO_LIQ WHERE EML_USUARIO = ? AND EML_ALMACEN = ? AND EML_RUTA = ?", Array As String (c2.GetString("USUARIO"), a.GetString("ID_ALMACEN"), f.GetString("RUTAA")))
+' If c.RowCount > 0 Then
+'' For i=0 To c.RowCount -1
+' c.Position = 0
+' cmd.Initialize
+' cmd.Name = "update_MontoCuenta_MAZAPArep"
+' cmd.Parameters = Array As Object(c.GetString("EML_MONTO"), c.GetString("EML_ALMACEN"), c.GetString("EML_RUTA"), c.GetString("EML_USUARIO"),c.GetString("EML_FECHA_PED"),"REPARTO")
+'
+' Log(c.GetString("EML_MONTO")& " " & c.GetString("EML_ALMACEN")& " " & c.GetString("EML_RUTA")& " " & c.GetString("EML_USUARIO"))
+' reqManager.ExecuteCommand(cmd, "update_MC")
+' MsgboxAsync("Se sobre escribio el Monto", "Atención")
+'' Next
+' End If
+' c2.Close
+' c.Close
+ End If
+ f.Close
+ a.Close
+ Next
+ End If
+ End If
+
+ Job.Release
+ End If
+
+ If paso1 = 1 Then
+ If name = "OKActivo" Then
+ Starter.skmt.ExecNonQuery("delete from usuarioa")
+ Starter.skmt.ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)", Array As Object(user.Text, pass.Text))
+ Starter.skmt.ExecNonQuery("delete from cat_almacen")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)", Array As Object (ID_ALMACEN))
+ B4XPages.ShowPage("Principal")
+ Else If name = "OKExpirado"& IMEI Then
+ Msgbox("Usuario Expirado llamar al administrador","") 'ignore
+ Else If name = "OKCancelado"& IMEI Then
+ Msgbox("Usuario Cancelado llamar al administrador","") 'ignore
+ Else
+ Msgbox("Usuario o password No validos","") 'ignore
+ End If
+ paso1 = 0
+ End If
+End Sub
+
+Private Sub i_engrane_Click
+ p_appUpdate.Width = Root.Width
+ p_appUpdate.Height = Root.Height
+ Subs.centraPanel(p_serverList, Root.Width)
+ Subs.centraBoton(b_server, Root.Width)
+ Subs.centraBoton(b_apk, Root.Width)
+ Subs.centraBoton(b_envioBD, Root.Width)
+ Subs.centraBoton(b_regesar, Root.Width)
+ Subs.centraBoton(b_server, p_serverList.Width)
+ lv_server.Clear
+ lv_server.AddSingleLine("http://keymon.net:1781")
+ If user.Text = "KMTS1" Then lv_server.AddSingleLine("http://10.0.0.205:1782")
+' l_server.Text = Starter.server
+ et_server.Text = server
+ Subs.panelVisible(p_appUpdate, 0, 0)
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+' Log("closreq")
+ If p_appUpdate.Visible Then
+ p_appUpdate.Visible = False
+ Else
+ Sleep(0)
+ ExitApplication
+ End If
+ Return False
+End Sub
+
+Private Sub b_regesar_Click
+ p_principal.Visible = True
+ p_appUpdate.Visible = False
+End Sub
+
+'Enviamos la base de datos por correo o Whatsapp
+Private Sub b_envioBD_Click
+' copiaDB
+' Sleep(1000)
+ Dim FileName As String = "kmt.db"
+ 'copy the shared file to the shared folder
+ Log("xxxxxx:"&Provider.SharedFolder)
+ Sleep(1000)
+ File.Copy(File.DirInternal, FileName, Provider.SharedFolder, FileName)
+ Dim email As Email
+ email.To.Add("soporte@keymonsoft.com")
+ email.Subject = "Base de datos para revisión"
+ email.Attachments.Add(Provider.GetFileUri(FileName))
+' email.Attachments.Add(Provider.GetFileUri(FileName)) 'second attachment
+ Dim in As Intent = email.GetIntent
+ in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION
+ StartActivity(in)
+End Sub
+
+Private Sub b_apk_Click
+ StartService(appUpdater)
+End Sub
+
+Private Sub b_server_Click
+ Log("Guardar servidor")
+ Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("SERVER"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("SERVER",et_server.text))
+ B4XPages.MainPage.server = et_server.text
+ Starter.server = B4XPages.MainPage.server
+ If logger Then Log("Inicializamos reqManager con " & B4XPages.MainPage.server)
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+ LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+ reinicializaReqManager
+ p_appUpdate.Visible = False
+' Entrar.Visible = True
+End Sub
+
+Private Sub lv_server_ItemClick (Position As Int, Value As Object)
+ server = Value
+' l_server.Text = Value
+ et_server.Text = Value
+ reqManager.Initialize(Me, Value)
+ LogColor($"ReqServer = ${Value}"$, Colors.red)
+ ToastMessageShow("Servidor modificado", False)
+End Sub
+
+Sub reinicializaReqManager
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+ If logger Then Log(B4XPages.MainPage.server)
+ LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+End Sub
+
+'appUpdater - Mostramos el anuncio de que se esta descargando el nuevo apk
+Sub muestraProgreso(mensaje As String)
+ ProgressDialogShow(mensaje)
+End Sub
+
+'appUpdater - Ocultamos el anuncio de que se esta descargando el nuevo apk
+Sub ocultaProgreso
+ ProgressDialogHide
+End Sub
+
+Private Sub b_CargarMonto_Click
+
+ c = Starter.skmt.ExecQuery("SELECT * FROM kmt_info")
+ c.Position = 0
+ If c.RowCount < 0 Or c.RowCount = 0 Then
+ MsgboxAsync("No hay ruta cargada, favor de cargar día","Atención")
+ Else
+ Subs.panelVisible(p_add_monto,0,0)
+ End If
+ c.Close
+
+End Sub
+
+Private Sub p_add_monto_Click
+
+End Sub
+
+'Private Sub B_Aceptar_Monto_Click
+' Private f As Cursor=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+' f.Position=0
+' Private a As Cursor =Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+' a.Position = 0
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "select_estatus_MAZAPA"
+' cmd.Parameters = Array As Object(a.GetString("ID_ALMACEN"),f.GetString("RUTAA"))
+' reqManager.ExecuteQuery(cmd , 0, "estatus")
+' f.Close
+' a.Close
+'End Sub
+
+Sub enviarmonto
+
+ DateTime.DateFormat = "MM/dd/yyyy"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+
+ Private f As Cursor=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ f.Position=0
+
+ Private a As Cursor=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ If a.RowCount>0 Then
+ a.Position=0
+ End If
+
+ Private a2 As Cursor = Starter.skmt.ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")
+ If a2.RowCount>0 Then
+ a2.Position=0
+ Dim fecha() As String = Regex.Split(" ", a2.GetString("HVD_FECHA"))
+ Dim fecha2() As String = Regex.Split("-", fecha(0))
+ Dim fecha3 As String = fecha2(2)&"/"&fecha2(1)&"/"&fecha2(0)
+ Log(fecha3)
+ Dim hora() As String = Regex.Split("\.", fecha(1))
+ Log(hora(0))
+ End If
+
+
+
+ Private cI As Cursor
+ Private u As String = "SinUsuario"
+ cI=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ cI.Position=0
+ If cI.RowCount > 0 Then u = cI.GetString("USUARIO")
+ Private g As Cursor = Starter.skmt.ExecQuery("select * from ENV_MONTO_LIQ")
+' If g.RowCount = 0 Then
+' Starter.skmt.ExecNonQuery2("INSERT INTO ENV_MONTO_LIQ VALUES (?,?,?,?,?)", Array As Object(ET_Add_Monto.Text, a.GetString("ID_ALMACEN"), f.GetString("RUTAA"), u, fecha3 & " " & hora(0)))
+' f.Close
+' a.Close
+'
+' c = Starter.skmt.ExecQuery("SELECT * FROM ENV_MONTO_LIQ")
+' If c.RowCount > 0 Then
+' c.Position = 0
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "select_MontoCuenta_MAZAPArep"
+' cmd.Parameters = Array As Object(c.GetString("EML_USUARIO"), c.GetString("EML_ALMACEN"), c.GetString("EML_RUTA"),c.GetString("EML_FECHA_PED"))
+' reqManager.ExecuteQuery(cmd , 0, "SelectMontoLiq")
+' End If
+' c.Close
+' Else
+' Starter.skmt.ExecNonQuery2("UPDATE ENV_MONTO_LIQ SET EML_MONTO = ? WHERE EML_ALMACEN = ? AND EML_RUTA = ? AND EML_USUARIO = ?", Array As String (ET_Add_Monto.Text ,a.GetString("ID_ALMACEN"), f.GetString("RUTAA"), cI.GetString("USUARIO")))
+' f.Close
+' a.Close
+'
+' c = Starter.skmt.ExecQuery("SELECT * FROM ENV_MONTO_LIQ")
+' If c.RowCount > 0 Then
+' c.Position = 0
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "select_MontoCuenta_MAZAPArep"
+' cmd.Parameters = Array As Object(c.GetString("EML_USUARIO"), c.GetString("EML_ALMACEN"), c.GetString("EML_RUTA"),c.GetString("EML_FECHA_PED"))
+' reqManager.ExecuteQuery(cmd , 0, "SelectMontoLiq")
+' End If
+' c.Close
+' End If
+
+ p_add_monto.Visible = False
+
+End Sub
+
+Private Sub B_Can_Monto_Click
+ p_add_monto.Visible = False
+End Sub
+
+Private Sub b_arqueocieego_Click
+ c = Starter.skmt.ExecQuery("SELECT * FROM CAT_GUNAPROD3")
+ If c.RowCount > 0 Then
+ Subs.panelVisible(p_validacion,0,0)
+ Else
+ MsgboxAsync("No hay ruta cargada, favor de cargar día","Atención")
+ End If
+End Sub
+
+Private Sub et_buspc_TextChanged (Old As String, New As String)
+ If New = "" Then
+ CLV_PICK_CIEGO.Clear
+ Else If New.Length >= 3 Then
+ CLV_PICK_CIEGO.Clear
+
+ q_buscar = "%" & et_buspc.Text & "%"
+ Log(q_buscar)
+ c=Starter.skmt.ExecQuery2($"select CAT_GP_NOMBRE, CAT_GP_ID , ifnull(PC_CANT,0) AS PC_CANT FROM CAT_GUNAPROD3 INNER JOIN PICK_CIEGO ON PC_ID_PROD = CAT_GP_ID AND PC_NOM_PROD = CAT_GP_NOMBRE WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"$, Array As String(q_buscar,q_buscar))
+ If c.RowCount > 0 Then
+
+
+ For i = 0 To c.RowCount - 1
+ c.Position = i
+ CLV_PICK_CIEGO.Add(CreateListItem(c.GetString("CAT_GP_ID"), c.GetString("CAT_GP_NOMBRE"), c.GetString("PC_CANT")),i)
+' Log(c.GetString("CAT_GP_ID") & ", " & c.GetString("CAT_GP_NOMBRE") & " ," & c.GetString("PC_CANT"))
+ Next
+ c.Close
+
+ d=Starter.skmt.ExecQuery2($"select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'AND CAT_GP_ID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO)"$, Array As String(q_buscar,q_buscar))
+
+ For i = 0 To d.RowCount - 1
+ d.Position = i
+ CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString("CAT_GP_ID"), d.GetString("CAT_GP_NOMBRE")),i)
+' Log(d.GetString("CAT_GP_ID") & ", " & d.GetString("CAT_GP_NOMBRE"))
+ Next
+ d.Close
+
+ Else If c.RowCount = 0 Then
+ d=Starter.skmt.ExecQuery2($"select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"$, Array As String(q_buscar,q_buscar))
+
+ For i = 0 To d.RowCount - 1
+ d.Position = i
+ CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString("CAT_GP_ID"), d.GetString("CAT_GP_NOMBRE")),i)
+' Log(d.GetString("CAT_GP_ID") & ", " & d.GetString("CAT_GP_NOMBRE"))
+ Next
+ d.Close
+ End If
+ End If
+End Sub
+
+Private Sub B_PC_ENV_Click
+ Dim sDate, sTime As String
+ DateTime.DateFormat = "dd/MM/yyyy"
+ DateTime.TimeFormat = "HH:mm:ss"
+ sDate = DateTime.Date(DateTime.Now)
+ sTime = DateTime.Time(DateTime.Now)
+
+
+ For i = 0 To CLV_PICK_CIEGO.Size - 1
+ ' Retrieve the panel and child views for the current item
+ Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPanel(i)
+ Dim innerPanel As B4XView = itemPanel.GetView(0)
+ Dim editText As B4XView = innerPanel.GetView(1)
+ Dim inputText As String = editText.As(EditText).Text
+
+ ' Check if the input text matches the regex pattern for zeros or if it's empty
+ If Regex.IsMatch("^[0]+$", inputText) Or inputText = "" Then
+ inputText = "0"
+ End If
+
+ ' Retrieve and process the ID label
+ Dim idLabel As B4XView = innerPanel.GetView(0)
+ Dim idText As String = idLabel.As(Label).Text
+ Dim idParts() As String = Regex.Split(CRLF, idText)
+' Log(idParts(1))
+ f=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ f.Position=0
+ Log(f.GetString("RUTAA"))
+ a=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ If a.RowCount>0 Then
+ a.Position=0
+ End If
+ Dim k As Cursor = Starter.skmt.ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")
+ k.Position = 0
+ Dim fechatabulador() As String = Regex.Split(" ", k.GetString("HVD_FECHA"))
+ Dim fechatabulador2() As String = Regex.Split("-", fechatabulador(0))
+ Dim fechatabulador3 As String = fechatabulador2(2)&"/"&fechatabulador2(1)&"/"&fechatabulador2(0)
+ k.Close
+ If inputText <> "" Then
+ c = Starter.skmt.ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?", Array As String (idParts(0)))
+ If c.RowCount = 0 Then
+ ' Insert data into the database
+ Log(f.GetString("RUTAA"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)", Array As String(idParts(0), idParts(1), inputText, a.GetString("ID_ALMACEN"), f.GetString("RUTAA"), fechatabulador3&" "&sTime))
+
+ Else
+ Log(f.GetString("RUTAA"))
+ Starter.skmt.ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ? WHERE PC_ID_PROD = ?" , Array As String(inputText ,idParts(0)))
+ End If
+
+ End If
+ f.Close
+ a.Close
+ Log("Processed item " & i)
+ Next
+ et_buspc.Text = ""
+ CLV_PICK_CIEGO.Clear
+End Sub
+
+Private Sub b_terpc_Click
+ Msgbox2Async("Una vez enviada la información no podras hacer modificaciones","Atención","SI","", "",LoadBitmap(File.DirAssets,"alert2.png"), False)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+ Msgbox2Async("Estas seguro de enviar la información?","Atención","SI","", "NO",LoadBitmap(File.DirAssets,"alert2.png"), False)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+
+ Dim sDate, sTime As String
+ DateTime.DateFormat = "dd/MM/yyyy"
+ DateTime.TimeFormat = "HH:mm:ss"
+ sDate = DateTime.Date(DateTime.Now)
+ sTime = DateTime.Time(DateTime.Now)
+
+ For i = 0 To CLV_PICK_CIEGO.Size - 1
+ ' Retrieve the panel and child views for the current item
+ Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPanel(i)
+ Dim innerPanel As B4XView = itemPanel.GetView(0)
+ Dim editText As B4XView = innerPanel.GetView(1)
+ Dim inputText As String = editText.As(EditText).Text
+
+ ' Check if the input text matches the regex pattern for zeros or if it's empty
+ If Regex.IsMatch("^[0]+$", inputText) Or inputText = "" Then
+ inputText = "0"
+ End If
+
+ ' Retrieve and process the ID label
+ Dim idLabel As B4XView = innerPanel.GetView(0)
+ Dim idText As String = idLabel.As(Label).Text
+ Dim idParts() As String = Regex.Split(CRLF, idText)
+' Log(idParts(1))
+ f=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ f.Position=0
+ Log(f.GetString("RUTAA"))
+
+ a=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ If a.RowCount>0 Then
+ a.Position=0
+ End If
+ Log(a.GetString("ID_ALMACEN"))
+
+ Dim k As Cursor = Starter.skmt.ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")
+ k.Position = 0
+ Dim fechatabulador() As String = Regex.Split(" ", k.GetString("HVD_FECHA"))
+ Dim fechatabulador2() As String = Regex.Split("-", fechatabulador(0))
+ Dim fechatabulador3 As String = fechatabulador2(2)&"/"&fechatabulador2(1)&"/"&fechatabulador2(0)
+ k.Close
+ If inputText <> "" Then
+ c = Starter.skmt.ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?", Array As String (idParts(0)))
+ If c.RowCount = 0 Then
+ ' Insert data into the database
+ Starter.skmt.ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)", Array As String(idParts(0), idParts(1), inputText, a.GetString("ID_ALMACEN"), f.GetString("RUTAA"), fechatabulador3&" "&sTime))
+ Else
+ Starter.skmt.ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ? WHERE PC_ID_PROD = ?" , Array As String(inputText ,idParts(0)))
+ End If
+ End If
+ f.Close
+ a.Close
+ Log("Processed item " & i)
+ Next
+ Log("Finished processing all items")
+ P_CIEGO.Visible = False
+ et_buspc.Text = ""
+ CLV_PICK_CIEGO.Clear
+ c = Starter.skmt.ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO")
+' If c.RowCount > 0 Then
+' For i = 0 To c.RowCount - 1
+' c.Position = i
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "select_HIST_PICKCIEGO_MAZAPA" '
+' cmd.Parameters = Array As Object(c.GetString("PC_ID_PROD"), c.GetString("PC_ALMACEN"), c.GetString("PC_RUTA"), c.GetString("PC_FECHA"),"REPARTO")
+' reqManager.ExecuteQuery(cmd , 0, $"PICK_C_${c.GetString("PC_ID_PROD")}"$)
+' Next
+' End If
+ c.close
+ Else
+
+ End If
+ End If
+End Sub
+
+Private Sub P_CIEGO_Click
+
+End Sub
+
+Private Sub b_aceptar_Click
+ Private f As Cursor=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ f.Position=0
+ Private a As Cursor =Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ a.Position = 0
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "select_estatus_MAZAPA"
+' cmd.Parameters = Array As Object(a.GetString("ID_ALMACEN"),f.GetString("RUTAA"))
+' reqManager.ExecuteQuery(cmd , 0, "estatus2")
+ f.Close
+ a.Close
+' p_validacion.Visible = False
+' et_codigo.Text = ""
+'
+' Subs.panelVisible(P_CIEGO,0,0)
+End Sub
+
+Sub passaquci
+ f=Starter.skmt.ExecQuery("select CAT_CL_RUTA from kmt_info")
+ f.Position=0
+
+ a=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ If a.RowCount>0 Then
+ a.Position=0
+ End If
+ Log(a.GetString("ID_ALMACEN"))
+ Log(f.GetString("CAT_CL_RUTA"))
+
+' If et_codigo.Text = "KMTS1" Then
+' p_validacion.Visible = False
+' et_codigo.Text = ""
+' Subs.panelVisible(P_CIEGO,0,0)
+' Else
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "select_CAT_PASS_ARQUEO_MAZAPA"
+' cmd.Parameters = Array As Object(f.GetString("CAT_CL_RUTA"),a.GetString("ID_ALMACEN"),"REPARTO")
+' reqManager.ExecuteQuery(cmd , 0, "contrasena")
+' f.Close
+' a.Close
+' End If
+End Sub
+
+Private Sub b_cancelarcodigo_Click
+ p_validacion.Visible = False
+End Sub
+
+Private Sub p_validacion_Click
+
+End Sub
+
+Sub CreateListItem(Id_prod As String, Prod As String,cant As String) As Panel
+ Dim pa As B4XView = xui.CreatePanel("")
+ pa.SetLayoutAnimated(0, 0, 0, 1, 10)
+ pa.LoadLayout("PANEL_PICK_CIEGO")
+ pa.Height = 55dip
+ pa.Width = 298dip
+ 'pa.Width = clv_orden.GetBase.Width
+ L_PICK_CIEGO.Text = Id_prod & CRLF & Prod
+ L_PICK_CIEGO.TextSize = 12
+ L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERTICAL, Gravity.CENTER_HORIZONTAL)
+ ET_PICK_CIEGO.Text = cant
+ 'cxc.Id_prod = mostrar3
+ 'Log(pa.Width)
+ Return pa
+End Sub
+
+Sub CreateListItem2(Id_prod As String, Prod As String) As Panel
+ Dim pa As B4XView = xui.CreatePanel("")
+ pa.SetLayoutAnimated(0, 0, 0, 1, 10)
+ pa.LoadLayout("PANEL_PICK_CIEGO")
+ pa.Height = 55dip
+ pa.Width = 298dip
+ 'pa.Width = clv_orden.GetBase.Width
+ L_PICK_CIEGO.Text = Id_prod & CRLF & Prod
+ L_PICK_CIEGO.TextSize = 12
+ L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERTICAL, Gravity.CENTER_HORIZONTAL)
+ 'cxc.Id_prod = mostrar3
+ 'Log(pa.Width)
+ Return pa
+End Sub
+
+Private Sub ImageView1_LongClick
+
+End Sub
+
diff --git a/B4A/B4XUpdateAvailable.bas b/B4A/B4XUpdateAvailable.bas
new file mode 100644
index 0000000..36fa8d1
--- /dev/null
+++ b/B4A/B4XUpdateAvailable.bas
@@ -0,0 +1,24 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=11.5
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
\ No newline at end of file
diff --git a/B4A/BatteryUtilities.bas b/B4A/BatteryUtilities.bas
new file mode 100644
index 0000000..b80fd5a
--- /dev/null
+++ b/B4A/BatteryUtilities.bas
@@ -0,0 +1,125 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=9.95
+@EndOfDesignText@
+'Class module
+Sub Class_Globals
+ Private nativeMe As JavaObject
+End Sub
+
+'Initializes the object.
+Public Sub Initialize
+ nativeMe = Me
+End Sub
+'Return information about the battery status. It returns the following 11 values in an integer Array:
+'0 - EXTRA_LEVEL = current battery level, from 0 To EXTRA_SCALE.
+'1 - EXTRA_SCALE = the maximum battery level possible.
+'2 - EXTRA_HEALTH = the current health constant.
+'3 - EXTRA_ICON_SMALL = the resource ID of a small status bar icon indicating the current battery state.
+'4 - EXTRA_PLUGGED = whether the device is plugged into a Power source; 0 means it is on battery, other constants are different types of Power sources.
+'5 - EXTRA_STATUS = the current status constant.
+'6 - EXTRA_TEMPERATURE = the current battery temperature.
+'7 - EXTRA_VOLTAGE = the current battery voltage level.
+'8 - A value indicating if the battery is being charged or fully charged (If neither it returns 0 Else it returns 1)
+'9 - A value indicating if it is charging via USB (0 = Not USB, 2 = USB)
+'10 - A value indicating if it is charging via AC (0 = Not AC, 1 = AC)
+Public Sub getBatteryInformation () As Int()
+
+ Dim batteryInfo(11) As Int
+ batteryInfo = nativeMe.RunMethod("getBatteryInformation",Null)
+ Return batteryInfo
+End Sub
+
+Public Sub getBatteryTechnolgy() As String
+
+ Dim batterytech As String
+ batterytech = nativeMe.RunMethod("getBatteryTechnology",Null)
+ Return batterytech
+
+End Sub
+
+
+
+#If Java
+
+import android.os.BatteryManager;
+import android.os.Bundle;
+import android.app.Activity;
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.content.IntentFilter;
+
+ public int[] getBatteryInformation() {
+
+ int[] mybat = new int[11];
+
+ Intent batteryIntent = ba.context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
+
+ int level = batteryIntent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
+ mybat[0] = level;
+ int scale = batteryIntent.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
+ mybat[1] = scale;
+ int health = batteryIntent.getIntExtra(BatteryManager.EXTRA_HEALTH,-1);
+ mybat[2] = health;
+ int icon_small = batteryIntent.getIntExtra(BatteryManager.EXTRA_ICON_SMALL,-1);
+ mybat[3] = icon_small;
+ int plugged = batteryIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED,-1);
+ mybat[4] = plugged;
+// boolean present = batteryIntent.getExtras().getBoolean(BatteryManager.EXTRA_PRESENT);
+ int status = batteryIntent.getIntExtra(BatteryManager.EXTRA_STATUS,-1);
+ mybat[5] = status;
+// String technology = batteryIntent.getExtras().getString(BatteryManager.EXTRA_TECHNOLOGY);
+// BA.Log("Technology = " + technology);
+ int temperature = batteryIntent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE,-1);
+ mybat[6] = temperature;
+ int voltage = batteryIntent.getIntExtra(BatteryManager.EXTRA_VOLTAGE,-1);
+ mybat[7] = voltage;
+// int ac = batteryIntent.getIntExtra("plugged",BatteryManager.BATTERY_PLUGGED_AC);
+// mybat[8] = ac;
+// int usb = batteryIntent.getIntExtra("plugged",BatteryManager.BATTERY_PLUGGED_USB);
+// mybat[9] = usb;
+
+ boolean isCharging = status == BatteryManager.BATTERY_STATUS_CHARGING ||
+ status == BatteryManager.BATTERY_STATUS_FULL;
+ mybat[8] = 0;
+ if (isCharging == true) {
+ mybat[8] = 1;
+ }
+
+ // How are we charging?
+ mybat[9] = 0;
+ mybat[10] = 0;
+ int chargePlug = batteryIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
+ boolean usbCharge = chargePlug == BatteryManager.BATTERY_PLUGGED_USB;
+ if (usbCharge == true) {
+ mybat[9] = 2;
+ }
+
+ boolean acCharge = chargePlug == BatteryManager.BATTERY_PLUGGED_AC;
+ if (acCharge == true) {
+ mybat[10] = 1;
+ }
+
+ return mybat;
+ }
+
+
+ public String getBatteryTechnology() {
+
+ Intent batteryIntent = ba.context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
+
+ String technology = batteryIntent.getExtras().getString(BatteryManager.EXTRA_TECHNOLOGY);
+
+ return technology;
+ }
+
+
+
+
+
+
+
+#End If
\ No newline at end of file
diff --git a/B4A/C_Buscar.bas b/B4A/C_Buscar.bas
new file mode 100644
index 0000000..7c45872
--- /dev/null
+++ b/B4A/C_Buscar.bas
@@ -0,0 +1,109 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim c As Cursor
+ Dim ListView1 As ListView
+ Dim b_noventa As Button
+ Private p_principal As Panel
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ Root.LoadLayout("buscar")
+ c=Starter.skmt.ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO")
+ ListView1.Clear
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 10
+ label1.TextColor = Colors.Black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 10
+ label2.TextColor = Colors.Blue
+ ListView1.AddTwoLines(c.GetString("REP_CLIENTE"),c.GetString("REP_PRONOMBRE") &" Cantidad #"& c.GetString("REP_CANT")& " SubTotal $"& c.GetString("REP_COSTO_TOT"))
+ Next
+ End If
+ c.Close
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ p_principal.Width = Root.Width
+ p_principal.Height = Root.Height
+ Subs.centraPanel(p_principal, Root.Width)
+
+ c=Starter.skmt.ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO")
+ ListView1.Clear
+
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 10
+ label1.TextColor = Colors.Black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 10
+ label2.TextColor = Colors.Blue
+ ListView1.AddTwoLines(c.GetString("REP_CLIENTE"),c.GetString("REP_PRONOMBRE") &" Cantidad #"& c.GetString("REP_CANT")& " SubTotal $"& c.GetString("REP_COSTO_TOT"))
+ Next
+ End If
+ c.Close
+End Sub
+
+Sub Regresar_Click
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ ' I want to capture the key here so I return True
+ B4XPages.ShowPage("Principal")
+ 'Return True
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+
+Sub ListView1_ItemLongClick (Position As Int, Value As Object)
+ Starter.skmt.ExecNonQuery("delete from CUENTAA")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object(Value))
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Sub b_noventa_Click
+ c=Starter.skmt.ExecQuery("select NV_CLIENTE,NV_MOTIVO,NV_COMM FROM NOVENTA ORDER BY NV_CLIENTE asc")
+ ListView1.Clear
+
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 10
+ label1.TextColor = Colors.Black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 10
+ label2.TextColor = Colors.Blue
+ ListView1.AddTwoLines(c.GetString("NV_CLIENTE"),"Motivo #"& c.GetString("NV_MOTIVO")& " Comentario $"& c.GetString("NV_COMM"))
+ Next
+ End If
+End Sub
\ No newline at end of file
diff --git a/B4A/C_Cheklist.bas b/B4A/C_Cheklist.bas
new file mode 100644
index 0000000..5445bd3
--- /dev/null
+++ b/B4A/C_Cheklist.bas
@@ -0,0 +1,800 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.5
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Private p_check As Panel
+ Private sv_datos As ScrollView
+
+ Private camEx As CameraExClass
+ Dim frontCamera As Boolean = False
+ Private p_cam As Panel
+ Dim nombrefoto As String = "0"
+ Dim nombrefoto1 As String = "0"
+ Dim nombrefoto2 As String = "0"
+ Dim nombrefoto3 As String = "0"
+ Private p_camara As Panel
+ Private teclado As IME
+ Dim fototomada As String
+ Private ImageView1 As ImageView
+ Private ImageView3 As ImageView
+ Private ImageView2 As ImageView
+ Private ImageView4 As ImageView
+ Private b_foto As Button
+ Dim device As Phone
+ Dim MES1 As ManageExternalStorage
+ Dim x As Int = 0
+ Private rb_docsi1 As RadioButton
+ Private rb_docno1 As RadioButton
+ Private rb_docsi2 As RadioButton
+ Private rb_docno2 As RadioButton
+ Private rb_docsi3 As RadioButton
+ Private rb_docno3 As RadioButton
+ Private rb_docsi4 As RadioButton
+ Private rb_docno4 As RadioButton
+ Private rb_docsi5 As RadioButton
+ Private rb_docno5 As RadioButton
+ Private rb_docsi6 As RadioButton
+ Private rb_docno6 As RadioButton
+ Private rb_docsi7 As RadioButton
+ Private rb_docno7 As RadioButton
+ Private rb_docsi8 As RadioButton
+ Private rb_docno8 As RadioButton
+ Private rb_docsi9 As RadioButton
+ Private rb_docno9 As RadioButton
+ Private rb_docsi10 As RadioButton
+ Private rb_docno10 As RadioButton
+ Private rb_docsi11 As RadioButton
+ Private rb_docno11 As RadioButton
+ Private rb_docsi12 As RadioButton
+ Private rb_docno12 As RadioButton
+ Private rb_docsi13 As RadioButton
+ Private rb_docno13 As RadioButton
+ Private rb_docsi14 As RadioButton
+ Private rb_docno14 As RadioButton
+ Private rb_docsi15 As RadioButton
+ Private rb_docno15 As RadioButton
+ Private rb_docsi16 As RadioButton
+ Private rb_docno16 As RadioButton
+ Private rb_docsi17 As RadioButton
+ Private rb_docno17 As RadioButton
+ Private rb_docsi18 As RadioButton
+ Private rb_docno18 As RadioButton
+ Private rb_docsi19 As RadioButton
+ Private rb_docno19 As RadioButton
+ Private et_carroceria As EditText
+ Private et_luces As EditText
+ Private et_placas As EditText
+ Private et_liquidos As EditText
+
+ Dim p1 As String
+ Dim p2 As String
+ Dim p3 As String
+ Dim p4 As String
+ Dim p5 As String
+ Dim p6 As String
+ Dim p7 As String
+ Dim p8 As String
+ Dim p9 As String
+ Dim p10 As String
+ Dim p11 As String
+ Dim p12 As String
+ Dim p13 As String
+ Dim p14 As String
+ Dim p15 As String
+ Dim p16 As String
+ Dim p17 As String
+ Dim p18 As String
+ Dim p19 As String
+ Private cb_izqdel As B4XComboBox
+ Private cb_derdel As B4XComboBox
+ Private cb_izqatras As B4XComboBox
+ Private cb_deratras As B4XComboBox
+ Dim itemselect1 As String
+ Dim itemselect2 As String
+ Dim itemselect3 As String
+ Dim itemselect4 As String
+ Dim foto1() As Byte
+ Dim foto2() As Byte
+ Dim foto3() As Byte
+ Dim foto4() As Byte
+ Dim c As Cursor
+ Dim reqManager As DBRequestManager
+ Private l_placa As Label
+ Private et_km As EditText
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ Root.LoadLayout("checklist")
+
+ sv_datos.Height = Root.Height
+ sv_datos.Width = Root.Width
+ sv_datos.Panel.LoadLayout("check")
+ sv_datos.Panel.Height = p_check.Height
+ p_check.Width = Root.Width
+ p_camara.Width = Root.Width
+ p_camara.Height = Root.Height
+
+
+ Dim items As List
+ items.Initialize
+ items.Add("100%")
+ items.Add("75%")
+ items.Add("50%")
+ items.Add("25%")
+ cb_deratras.SetItems(items)
+ cb_izqatras.SetItems(items)
+ cb_derdel.SetItems(items)
+ cb_izqdel.SetItems(items)
+ itemselect1 = "100%"
+ itemselect2 = "100%"
+ itemselect3 = "100%"
+ itemselect4 = "100%"
+
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+End Sub
+
+Private Sub B4XPage_Appear
+ c = Starter.skmt.ExecQuery("SELECT PLACA FROM HIST_VENTAS")
+ c.Position = 0
+ Log(c.GetString("PLACA"))
+ l_placa.Text = c.GetString("PLACA")
+ c.Close
+ Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_CAMERA)
+ Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
+ If Result Then
+' camEx.Initialize(p_cam, frontCamera, Me, "Camera1")
+' frontCamera = camEx.Front
+ Log("inicializamos Camara")
+ Else
+ ToastMessageShow("No permission Camara!!!", True)
+ End If
+ MES1.Initialize(Me, "MES1")
+
+ ' get the device SDK version
+ Dim SdkVersion As Int = device.SdkVersion
+
+ ' Choose which permission to request in order to access external storgage
+ If SdkVersion < 30 Then
+ Log("SDK = " & SdkVersion & " : Requesting WRITE_EXTERNAL_STORAGE permission")
+ Dim rp As RuntimePermissions
+ rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE) ' Implicit read capability if granted
+ Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
+ Log($"PERMISSION_WRITE_EXTERNAL_STORAGE = ${Result}"$)
+ Else
+ Log("SDK = " & SdkVersion & " : Requesting MANAGE_EXTERNAL_STORAGE permission")
+ Log("On Entry MANAGE_EXTERNAL_STORAGE = " & MES1.HasPermission)
+ If Not(MES1.HasPermission) Then
+ MsgboxAsync("Esta aplicación requiere acceso a todos los archivos, habilite la opción", "Administrar todos los archivos")
+ Wait For Msgbox_Result(Res As Int)
+ Log("Getting permission")
+ MES1.GetPermission
+ Wait For MES_StorageAvailable
+ End If
+ End If
+ p_camara.Visible = False
+
+
+' Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
+' Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
+' If Result Then
+' Log("conpermisos para escritura")
+' Else
+' ToastMessageShow("No permission Escritura!!!", True)
+' End If
+'
+' Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_READ_EXTERNAL_STORAGE)
+' Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
+' If Result Then
+' Log("conpermisos para escritura")
+' Else
+' ToastMessageShow("No permission Lectura!!!", True)
+' End If
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ If p_camara.visible Then
+ p_camara.visible = False
+ StopCamera2
+ Else
+ B4XPages.ShowPage("principal")
+ End If
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+
+Private Sub InitializeCamera2
+ Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_CAMERA)
+ Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean)
+ If Result Then
+ camEx.Initialize(p_cam, frontCamera, Me, "Camera1")
+ frontCamera = camEx.Front
+ Log("inicializamos Camara")
+ Else
+ ToastMessageShow("No permission Camara!!!", True)
+ End If
+End Sub
+
+Sub Camera1_Ready (Success As Boolean)
+ Log("Camara ready")
+ If Success Then
+ camEx.SetJpegQuality(90)
+ camEx.SetContinuousAutoFocus
+ camEx.CommitParameters
+ camEx.StartPreview
+ Log(camEx.GetPreviewSize)
+ Else
+ ToastMessageShow("Cannot open camera.", True)
+ Log("Cannot open camera")
+ End If
+End Sub
+
+Sub Camera1_PictureTaken (Data()As Byte)
+ If x = 1 Then
+ DateTime.DateFormat="ddMMyyyyHHmmss"
+ nombrefoto = DateTime.Now & "_FOTO1.jpg"
+ teclado.HideKeyboard
+ fototomada = nombrefoto
+
+ Else If x = 2 Then
+ DateTime.DateFormat="ddMMyyyyHHmmss"
+ nombrefoto1 = DateTime.Now & "_FOTO2.jpg"
+ teclado.HideKeyboard
+ fototomada = nombrefoto1
+
+ Else If x = 3 Then
+ DateTime.DateFormat="ddMMyyyyHHmmss"
+ nombrefoto2 = DateTime.Now & "_FOTO3.jpg"
+ teclado.HideKeyboard
+ fototomada = nombrefoto2
+
+ Else If x = 4 Then
+ DateTime.DateFormat="ddMMyyyyHHmmss"
+ nombrefoto3 = DateTime.Now & "_FOTO4.jpg"
+ teclado.HideKeyboard
+ fototomada = nombrefoto3
+
+ End If
+
+ Log("tome foto")
+ Dim filename As String = fototomada
+ Dim Dirp As String = File.DirInternal
+ Dim Dir As String
+ Dim Dir2 As String
+ Try
+ File.MakeDir(Dirp,"/md")
+ Dir = "/md"
+ Log("creado en promotoria " & Dirp & Dir)
+ Catch
+ Dir = ""
+ Log("creado en raiz")
+ End Try
+
+ Try
+ File.MakeDir(Dirp & Dir,"/reduccion")
+ Dir2 = "/reduccion"
+ Log("creado en promotoria " & Dirp & Dir & Dir2)
+ Catch
+ Dir = ""
+ Log("creado en raiz")
+ End Try
+
+ camEx.SavePictureToFile(Data, Dirp&Dir, filename)
+ camEx.StartPreview 'restart preview
+' ToastMessageShow("Picture saved." & CRLF & "File size: " & File.Size(Dir, filename) & Dir &"," & filename, True)
+ Log("Picture saved." & CRLF & "File size: " & File.Size(Dir, filename) & Dir &"," & filename)
+ p_camara.Visible = False
+
+ Log(nombrefoto)
+ Log(nombrefoto1)
+ Log(nombrefoto2)
+ Log(nombrefoto3)
+
+ If nombrefoto <> "0" Then
+ Dim img As B4XBitmap = xui.LoadBitmapResize(File.DirInternal & Dir, filename, 450, 600, True)
+ Dim out As OutputStream = File.OpenOutput(File.DirInternal & Dir & Dir2, filename, True)
+ img.WriteToStream(out, 100, "PNG")
+' foto1 = File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto)
+
+ out.Close
+ ImageView1.Bitmap = LoadBitmap(File.DirInternal & Dir & Dir2,nombrefoto)
+
+ End If
+
+ If nombrefoto1 <> "0" Then
+ Dim img As B4XBitmap = xui.LoadBitmapResize(File.DirInternal & Dir, filename, 450, 600, True)
+ Dim out As OutputStream = File.OpenOutput(File.DirInternal & Dir & Dir2, filename, False)
+ img.WriteToStream(out, 100, "PNG")
+' foto2 = File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto1)
+
+ out.Close
+ ImageView2.Bitmap = LoadBitmap(File.DirInternal & Dir& Dir2,nombrefoto1)
+ End If
+
+ If nombrefoto2 <> "0" Then
+ Dim img As B4XBitmap = xui.LoadBitmapResize(File.DirInternal & Dir, filename, 450, 600, True)
+ Dim out As OutputStream = File.OpenOutput(File.DirInternal & Dir & Dir2, filename, False)
+ img.WriteToStream(out, 100, "PNG")
+' foto3 = File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto2)
+
+ out.Close
+ ImageView3.Bitmap = LoadBitmap(File.DirInternal & Dir& Dir2,nombrefoto2)
+ End If
+
+ If nombrefoto3 <> "0" Then
+ Dim img As B4XBitmap = xui.LoadBitmapResize(File.DirInternal & Dir, filename, 450, 600, True)
+ Dim out As OutputStream = File.OpenOutput(File.DirInternal & Dir & Dir2, filename, False)
+ img.WriteToStream(out, 100, "PNG")
+' foto4 = File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto3)
+
+ out.Close
+ ImageView4.Bitmap = LoadBitmap(File.DirInternal & Dir & Dir2,nombrefoto3)
+ End If
+
+ StopCamera2
+
+End Sub
+
+Private Sub p_camara_Click
+
+End Sub
+
+Private Sub b_foto_Click
+ camEx.TakePicture
+ p_camara.Visible = False
+' StopCamera2
+End Sub
+
+Private Sub StopCamera2
+' Capturing = False
+ If camEx.IsInitialized Then
+ camEx.Release
+ End If
+End Sub
+
+Private Sub ImageView1_Click
+
+ x = 1
+ InitializeCamera2
+ p_camara.Visible = True
+
+End Sub
+
+Private Sub ImageView2_Click
+
+ x = 2
+ InitializeCamera2
+ p_camara.Visible = True
+
+End Sub
+
+Private Sub ImageView3_Click
+
+ x = 3
+ InitializeCamera2
+ p_camara.Visible = True
+
+End Sub
+
+Private Sub ImageView4_Click
+
+ x = 4
+ InitializeCamera2
+ p_camara.Visible = True
+
+End Sub
+
+Private Sub rb_docno1_CheckedChange(Checked As Boolean)
+ p1 = "No"
+End Sub
+
+Private Sub rb_docsi1_CheckedChange(Checked As Boolean)
+ p1 = "Si"
+End Sub
+
+Private Sub rb_docno2_CheckedChange(Checked As Boolean)
+ p2 = "No"
+End Sub
+
+Private Sub rb_docsi2_CheckedChange(Checked As Boolean)
+ p2 = "Si"
+End Sub
+
+Private Sub rb_docno3_CheckedChange(Checked As Boolean)
+ p3 = "No"
+End Sub
+
+Private Sub rb_docsi3_CheckedChange(Checked As Boolean)
+ p3 = "Si"
+End Sub
+
+Private Sub rb_docno4_CheckedChange(Checked As Boolean)
+ p4 = "No"
+End Sub
+
+Private Sub rb_docsi4_CheckedChange(Checked As Boolean)
+ p4 = "Si"
+End Sub
+
+Private Sub rb_docno5_CheckedChange(Checked As Boolean)
+ p5 = "No"
+End Sub
+
+Private Sub rb_docsi5_CheckedChange(Checked As Boolean)
+ p5 = "Si"
+End Sub
+
+Private Sub rb_docno6_CheckedChange(Checked As Boolean)
+ p6 = "No"
+End Sub
+
+Private Sub rb_docsi6_CheckedChange(Checked As Boolean)
+ p6 = "Si"
+End Sub
+
+Private Sub rb_docno7_CheckedChange(Checked As Boolean)
+ p7 = "No"
+End Sub
+
+Private Sub rb_docsi7_CheckedChange(Checked As Boolean)
+ p7 = "Si"
+End Sub
+
+Private Sub rb_docno8_CheckedChange(Checked As Boolean)
+ p8 = "No"
+End Sub
+
+Private Sub rb_docsi8_CheckedChange(Checked As Boolean)
+ p8 = "Si"
+End Sub
+
+Private Sub rb_docno9_CheckedChange(Checked As Boolean)
+ p9 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi9_CheckedChange(Checked As Boolean)
+ p9 = "Correcto"
+End Sub
+
+Private Sub rb_docno11_CheckedChange(Checked As Boolean)
+ p11 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi11_CheckedChange(Checked As Boolean)
+ p11 = "Correcto"
+End Sub
+
+Private Sub rb_docno13_CheckedChange(Checked As Boolean)
+ p13 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi13_CheckedChange(Checked As Boolean)
+ p13 = "Correcto"
+End Sub
+
+Private Sub rb_docno15_CheckedChange(Checked As Boolean)
+ p15 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi15_CheckedChange(Checked As Boolean)
+ p15 = "Correcto"
+End Sub
+
+Private Sub rb_docno16_CheckedChange(Checked As Boolean)
+ p16 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi16_CheckedChange(Checked As Boolean)
+ p16 = "Correcto"
+End Sub
+
+Private Sub rb_docno17_CheckedChange(Checked As Boolean)
+ p17 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi17_CheckedChange(Checked As Boolean)
+ p17 = "Correcto"
+End Sub
+
+Private Sub rb_docno18_CheckedChange(Checked As Boolean)
+ p18 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi18_CheckedChange(Checked As Boolean)
+ p18 = "Correcto"
+End Sub
+
+Private Sub rb_docno19_CheckedChange(Checked As Boolean)
+ p19 = "Incorrecto"
+End Sub
+
+Private Sub rb_docsi19_CheckedChange(Checked As Boolean)
+ p19 = "Correcto"
+End Sub
+
+Private Sub cb_izqdel_SelectedIndexChanged (Index As Int)
+ itemselect1 = cb_izqdel.SelectedItem
+ Log(itemselect1)
+End Sub
+
+Private Sub cb_izqatras_SelectedIndexChanged (Index As Int)
+ itemselect2 = cb_izqatras.SelectedItem
+ Log(itemselect2)
+End Sub
+
+Private Sub cb_derdel_SelectedIndexChanged (Index As Int)
+ itemselect3 = cb_derdel.SelectedItem
+ Log(itemselect3)
+End Sub
+
+Private Sub cb_deratras_SelectedIndexChanged (Index As Int)
+ itemselect4 = cb_deratras.SelectedItem
+ Log(itemselect4)
+End Sub
+
+Private Sub b_guardar_Click
+
+ Dim Dirp As String = File.DirInternal
+ Dim Dir As String
+ Dim Dir2 As String
+ Try
+ File.MakeDir(Dirp,"/md")
+ Dir = "/md"
+ Log("creado en promotoria " & Dirp & Dir)
+ Catch
+ Dir = ""
+ Log("creado en raiz")
+ End Try
+
+ Try
+ File.MakeDir(Dirp & Dir,"/reduccion")
+ Dir2 = "/reduccion"
+ Log("creado en promotoria " & Dirp & Dir & Dir2)
+ Catch
+ Dir = ""
+ Log("creado en raiz")
+ End Try
+
+ DateTime.TimeFormat="HH:mm:ss"
+ DateTime.DateFormat="dd/MM/yyyy"
+ Dim checkdate As String = DateTime.Date(DateTime.Now)
+ Dim checktime As String = DateTime.Time(DateTime.Now)
+ If et_km.Text <> "" Then
+ If rb_docno1.Checked Or rb_docsi1.Checked Then
+ If rb_docno2.Checked Or rb_docsi2.Checked Then
+ If rb_docno3.Checked Or rb_docsi3.Checked Then
+ If rb_docno4.Checked Or rb_docsi4.Checked Then
+ If rb_docno5.Checked Or rb_docsi5.Checked Then
+ If rb_docno6.Checked Or rb_docsi6.Checked Then
+ If rb_docno7.Checked Or rb_docsi7.Checked Then
+ If rb_docno8.Checked Or rb_docsi8.Checked Then
+ If rb_docno9.Checked Or rb_docsi9.Checked Then
+ If (rb_docno9.Checked And et_carroceria.Text <> "") Or (rb_docsi9.Checked And et_carroceria.Text = "") Then
+ If rb_docno11.Checked Or rb_docsi11.Checked Then
+ If (rb_docno11.Checked And et_luces.Text <> "") Or (rb_docsi11.Checked And et_luces.Text = "") Then
+ If rb_docno13.Checked Or rb_docsi13.Checked Then
+ If (rb_docno12.Checked And et_placas.Text <> "") Or (rb_docsi13.Checked And et_placas.Text = "") Then
+ If rb_docno15.Checked Or rb_docsi15.Checked Then
+ If rb_docno16.Checked Or rb_docsi16.Checked Then
+ If rb_docno17.Checked Or rb_docsi17.Checked Then
+ If rb_docno18.Checked Or rb_docsi18.Checked Then
+ If rb_docno19.Checked Or rb_docsi19.Checked Then
+ If et_liquidos.Text <> "" And (rb_docno15.Checked Or rb_docno16.Checked Or rb_docno17.Checked Or rb_docno18.Checked Or rb_docno19.Checked) Or et_liquidos.Text = "" And (rb_docsi15.Checked And rb_docsi16.Checked And rb_docsi17.Checked And rb_docsi18.Checked And rb_docsi19.Checked) Then
+ If nombrefoto <> "0" And nombrefoto1 <> "0" And nombrefoto2 <> "0" And nombrefoto3 <> "0" Then
+ c = Starter.skmt.ExecQuery("SELECT RUTAA FROM RUTAA")
+ c.Position = 0
+ Private rutacheck As String = c.GetString("RUTAA")
+ c.Close
+ Starter.skmt.ExecNonQuery("DELETE FROM CHECKLIST2")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CHECKLIST2(USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE,RUTA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",Array As Object(B4XPages.MainPage.usuario,l_placa.Text,checkdate&" "&checktime,p1,p2,p3,p4,p5,p6,p7,p8,p9,et_carroceria.Text,p11,et_luces.Text,p13,et_placas.Text,itemselect1,itemselect2,itemselect3,itemselect4,p15,p16,p17,p18,p19,et_liquidos.Text,File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto),File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto1),File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto2),File.ReadBytes(File.DirInternal & Dir & Dir2, nombrefoto3), et_km.Text, rutacheck))
+
+
+ mandaPendientes
+
+ rb_docno1.Checked = False
+ rb_docno2.Checked = False
+ rb_docno3.Checked = False
+ rb_docno4.Checked = False
+ rb_docno5.Checked = False
+ rb_docno6.Checked = False
+ rb_docno7.Checked = False
+ rb_docno8.Checked = False
+ rb_docno9.Checked = False
+ rb_docno11.Checked = False
+ rb_docno13.Checked = False
+ rb_docno15.Checked = False
+ rb_docno16.Checked = False
+ rb_docno17.Checked = False
+ rb_docno18.Checked = False
+ rb_docno19.Checked = False
+
+ rb_docsi1.Checked = False
+ rb_docsi2.Checked = False
+ rb_docsi3.Checked = False
+ rb_docsi4.Checked = False
+ rb_docsi5.Checked = False
+ rb_docsi6.Checked = False
+ rb_docsi7.Checked = False
+ rb_docsi8.Checked = False
+ rb_docsi9.Checked = False
+ rb_docsi11.Checked = False
+ rb_docsi13.Checked = False
+ rb_docsi15.Checked = False
+ rb_docsi16.Checked = False
+ rb_docsi17.Checked = False
+ rb_docsi18.Checked = False
+ rb_docsi19.Checked = False
+
+ cb_deratras.SelectedIndex = 0
+ cb_derdel.SelectedIndex = 0
+ cb_izqatras.SelectedIndex = 0
+ cb_izqdel.SelectedIndex = 0
+
+ et_carroceria.Text = ""
+ et_liquidos.Text = ""
+ et_luces.Text = ""
+ et_placas.Text = ""
+
+ ImageView1.Bitmap = LoadBitmap(File.DirAssets,"frontal1.png")
+ ImageView2.Bitmap = LoadBitmap(File.DirAssets,"derecha1.png")
+ ImageView3.Bitmap = LoadBitmap(File.DirAssets,"atras1.png")
+ ImageView4.Bitmap = LoadBitmap(File.DirAssets,"izquierda1.png")
+
+ nombrefoto = "0"
+ nombrefoto1 = "0"
+ nombrefoto2 = "0"
+ nombrefoto3 = "0"
+
+ B4XPages.ShowPage("Principal")
+ Else
+ MsgboxAsync("Favor de tomar todas las fotos","Atención")
+ End If
+ Else
+ MsgboxAsync("Especifica Fugas o detallaes en los liquidos","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Niveles de Liquidos y aire de Fugas","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Niveles de Liquidos y aire de Aire","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Niveles de Liquidos y aire de Frenos","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Niveles de Liquidos y aire de Anticongelante","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Niveles de Liquidos y aire de Aceite","Atención")
+ End If
+ Else
+ MsgboxAsync("Especifica daños en las condiciones de placas","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Conciciones de placas de Correcto","Atención")
+ End If
+ Else
+ MsgboxAsync("Especifica daños en las luces","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Funcionamiento de luces de Correcto","Atención")
+ End If
+ Else
+ MsgboxAsync("Especifica daños en la carrocería","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Carrocería de Buen estado","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Seguridad y refación de Llanta de refacción","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Seguridad y refación de gato","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Seguridad y refación de Triagulo reflectante","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Limpieza unidad interna","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Limpieza unidad externa","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Documentación viegnte de Licencia de conducir","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Documentación viegnte de Póliza de seguro","Atención")
+ End If
+ Else
+ MsgboxAsync("Seleeciona una opción en Documentación viegnte de tarjeta de circulación","Atención")
+ End If
+ Else
+ MsgboxAsync("Captura el kilometraje inicial.","Atención")
+ End If
+
+End Sub
+
+Sub mandaPendientes
+ Log("MandaPendientes")
+ 'PEDIDO (Pendientes)
+ c=Starter.skmt.ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4 FROM CHECKLIST2")
+ Log($"Pedido PENDIENTE: ${c.RowCount}"$)
+ If c.RowCount > 0 Then
+ For i = 0 To c.RowCount -1
+ c.Position=i
+ Dim cmd As DBCommand
+
+ foto1 = c.GetBlob("FOTO1")
+ foto2 = c.GetBlob("FOTO12")
+ foto3 = c.GetBlob("FOTO3")
+ foto4 = c.GetBlob("FOTO4")
+
+ cmd.Initialize
+ cmd.Name = "insert_CHECK_MARDS"
+ cmd.Parameters = Array As Object(C.GetString("USUARIO"),C.GetString("PLACA"),C.GetString("FECHA_CAPTURA"),C.GetString("TARJETA_CIRCULACION"),C.GetString("POLIZA_SEGURO"),C.GetString("LICENCIA_CONDUCIR"),C.GetString("LIMPIA_EXTERNA"),C.GetString("LIMPIA_INTERNA"),C.GetString("TRIANGULO"),C.GetString("GATO"), C.GetString("LLANTA_REFACCION"),C.GetString("CARROCERIA"),c.GetString("CARROCERIA_COMENTARIOS"),c.GetString("LUCES"),c.GetString("LUCES_COMENTARIOS"),c.GetString("CONDICION_PLACAS"),c.GetString("CONDICION_PLACAS_COMENTARIOS"))'c.GetString("CONDICION_PLACAS_INCORRECTO"),c.GetString("CONDICION_PLACAS_COMENTARIOS"),c.GetString("CONDICION_LLANTAS_DEL_DER"),c.GetString("CONDICION_LLANTAS_DEL_IZQ"),c.GetString("CONDICION_LLANTAS_TRASERA_DER"),c.GetString("CONDICION_LLANTAS_TRASERA_IZQ"),c.GetString("ACEITE"),c.GetString("ANTICONGELANTE"),c.GetString("FRENOS"),c.GetString("AIRE"),c.GetString("FUGAS"),c.GetString("COMETARIOS_FUGAS"),foto1,foto2,foto3,foto4,B4XPages.MainPage.principal.ALMACEN)
+ reqManager.ExecuteCommand(cmd , $"ins_checkliPendientes_head_${c.GetString("USUARIO")}"$)
+ Next
+ End If
+End Sub
+
+Sub JobDone(Job As HttpJob)
+ Log("JOBDONE CLIENTE . " & Job.Success)
+ If Job.Success = False Then
+' ToastMessageShow("Error: " & Job.ErrorMessage, True)
+' LogColor("JobDone Error: '" & reqManager.HandleJob(Job).tag, Colors.red) 'Mod por CHV - 211027
+ LogColor("Error: " & Job.tag & " : " & Job.ErrorMessage, Colors.Blue)
+ Else
+ LogColor("JobDone: '" & reqManager.HandleJob(Job).tag & "' - Registros: " & reqManager.HandleJob(Job).Rows.Size, Colors.Green)
+ If Job.JobName = "DBRequest" Then
+ Dim resultado As DBResult = reqManager.HandleJob(Job)
+ If resultado.Tag.As(String).IndexOf("ins_checkliPendientes_head_") > -1 Then
+ Private cliente As String= resultado.Tag
+ cliente = cliente.SubString(cliente.IndexOf("_")+24)
+ Log($"Cliente1:${cliente}"$)
+
+ c=Starter.skmt.ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE, RUTA FROM CHECKLIST2")
+ Log($"Pedido PENDIENTE: ${c.RowCount}"$)
+ If c.RowCount > 0 Then
+ For i = 0 To c.RowCount -1
+ c.Position=i
+ Dim cmd As DBCommand
+
+ foto1 = c.GetBlob("FOTO1")
+ foto2 = c.GetBlob("FOTO12")
+ foto3 = c.GetBlob("FOTO3")
+ foto4 = c.GetBlob("FOTO4")
+
+ cmd.Initialize
+ cmd.Name = "update_CHECK_MARDS"
+ cmd.Parameters = Array As Object(c.GetString("CONDICION_LLANTAS_DEL_DER"),c.GetString("CONDICION_LLANTAS_DEL_IZQ"),c.GetString("CONDICION_LLANTAS_TRASERA_DER"),c.GetString("CONDICION_LLANTAS_TRASERA_IZQ"),c.GetString("ACEITE"),c.GetString("ANTICONGELANTE"),c.GetString("FRENOS"),c.GetString("AIRE"),c.GetString("FUGAS"),c.GetString("COMETARIOS_FUGAS"),foto1,foto2,foto3,foto4,B4XPages.MainPage.principal.ALMACEN, C.GetString("KILIMETRAJE"),C.GetString("RUTA"), C.GetString("USUARIO"),C.GetString("PLACA"),C.GetString("FECHA_CAPTURA"))
+ reqManager.ExecuteCommand(cmd , "update")
+ Next
+ End If
+
+ For Each records() As Object In resultado.Rows
+ For Each k As String In resultado.Columns.Keys
+ Log(resultado.Tag & ": " & k & ": " & records(resultado.Columns.Get(k)))
+ Next
+ Next
+ Starter.skmt.ExecNonQuery("UPDATE CHECADO_CHECK set CHECADO = 1 ")
+ B4XPages.MainPage.principal.checachek
+ End If
+ End If
+
+ Job.Release
+ End If
+
+End Sub
diff --git a/B4A/C_Cliente.bas b/B4A/C_Cliente.bas
new file mode 100644
index 0000000..66bfed1
--- /dev/null
+++ b/B4A/C_Cliente.bas
@@ -0,0 +1,1786 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim g As GPS
+ Dim clie_id As String
+ Dim sDate,sTime As String
+ Dim usuario As String
+ Dim cuenta As String
+ Dim btAdmin As BluetoothAdmin
+ Dim cmp20 As Serial
+ Dim printer As TextWriter
+ Dim PairedDevices As Map
+ Dim L As List
+ Dim TAMANO As Int
+ Dim ESPACIO As Int
+ Dim BLANCO As String
+ Dim impresoraConectada As Boolean = False
+ Dim LONGITUD As String
+ Dim LATITUD As String
+ Dim NOMBRE As String
+ Dim c As Cursor
+ Dim s As Cursor
+ Dim ListView1 As ListView
+ Dim la_cuenta As Label
+ Dim La_nombre As Label
+ Dim la_Calle As Label
+ Dim la_numero As Label
+ Dim la_nint As Label
+ Dim la_edo As Label
+ Dim la_pob As Label
+ Dim la_col As Label
+ Dim la_cp As Label
+ Dim la_zona As Label
+ Dim gest As Button
+ Dim la_saldotot As Label
+ Dim la_saldooper As Label
+ Dim reqManager As DBRequestManager
+ Dim b_noEntrega As Button
+ Dim Label10 As Label
+ Dim Label11 As Label
+ Dim d As Cursor
+ Dim ime As IME
+ Dim Tar As Button
+ Private L_QR As Label
+ Private BT_QR As Button
+ Dim Printer1 As EscPosPrinter
+ Dim la_comm As Label
+ Dim la_actdte As Label
+ Dim la_usuario As Label
+ Dim la_resultado As Label
+ Dim l_entre1 As Label
+ Dim l_entre2 As Label
+ Dim l_atiende As Label
+ Dim l_atiende2 As Label
+ Dim DATOS As Button
+ Dim Guardar As Button
+ Dim NUEVO As Button
+ Private l_total As Label
+ Private HIST As Button
+ Dim PASA_IMP As String
+ Private B_IMP As Button
+ Dim total_cliente As String
+ Dim CREDITO As String
+ Private p_principal As Panel
+ Private B_PASO2 As Button
+ Private L_CANT As Label
+ Dim errorImpresora As Int = 0
+ Dim banderaimp As Int
+ Private l_credi As Label
+ Private l_pagare As Label
+ Private l_montopag As Label
+ Private l_efectivo As Label
+ Private l_montoefec As Label
+ Private p_credito As Panel
+ Private b_acred As Button
+ Private b_cancred As Button
+ Private et_montoacredito As EditText
+ Private Label16 As Label
+ Private l_limite As Label
+ Dim almacen As String
+ Dim fechaprev As String
+ Dim rutaprev As String
+ Dim rutarep As String
+ Dim montopagare As String
+ Private p_abono As Panel
+ Private clv_abonos As CustomListView
+ Private et_abono As EditText
+ Private b_cancelar As Button
+ Private b_abono As Button
+ Private l_montoabonostotal As Label
+ Dim h, j,b, f As Cursor
+ Private l_folio As Label
+ Private l_saldo As Label
+ Private b_cxc As Button
+ Private cb_tipopago As B4XComboBox
+ Dim itemselect As String
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ g.Initialize("GPS")
+' Activity.LoadLayout("info_gral")
+ Root.LoadLayout("cliente")
+ c=Starter.skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_RUTA, CAT_CL_NOMBRE, CAT_CL_ATIENDE1, CAT_CL_ATIENTE2, CAT_CL_TELEFONO, CAT_CL_EMAIL, CAT_CL_CALLE, CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)")
+ s=Starter.skmt.ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")
+ s.Position=0
+ c.Position=0
+ la_cuenta.Text = c.GetString("CAT_CL_CODIGO")
+ La_nombre.Text = c.GetString("CAT_CL_NOMBRE")
+ la_Calle.Text = c.GetString("CAT_CL_CALLE") & c.GetString("CAT_CL_NOEXT")
+ la_col.Text = c.GetString("CAT_CL_COLONIA")
+ la_edo.Text = c.GetString("CAT_CL_EDO")
+ la_cp.Text = c.GetString("CAT_CL_CP")
+ l_entre1.Text = c.GetString("CAT_CL_CALLE1")
+ l_entre2.Text = c.GetString("CAT_CL_CALLE2")
+ If c.GetString("CAT_CL_ATIENDE1") <> Null And c.GetString("CAT_CL_ATIENDE1") <> "null" Then
+ l_atiende.Text = c.GetString("CAT_CL_ATIENDE1")
+ Else
+ l_atiende.Text = " "
+ End If
+ If c.GetString("CAT_CL_ATIENTE2") <> Null And c.GetString("CAT_CL_ATIENTE2") <> "NULL" Then
+ l_atiende2.Text = c.GetString("CAT_CL_ATIENTE2")
+ Log("|"&c.GetString("CAT_CL_ATIENTE2")&"|")
+ Else
+ l_atiende2.Text = " "
+ End If
+ la_saldotot.Text = c.GetString("CAT_CL_TELEFONO")
+ la_saldooper.Text = c.GetString("CAT_CL_EMAIL")
+' l_total.Text = s.GetString("TOTAL_CLIE")
+ btAdmin.Initialize("BlueTeeth")
+ cmp20.Initialize("Printer")
+ reqManager.Initialize(Me, B4XPages.MainPage.SERVER)
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ banderaimp = 0
+ Subs.centraPanel(p_principal, Root.Width)
+ Starter.skmt.Initialize(Starter.ruta,"kmt.db", True)
+ reqManager.Initialize(Me, B4XPages.MainPage.SERVER)
+ c=Starter.skmt.ExecQuery("select CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_BCREDITO from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)")
+ s=Starter.skmt.ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")
+ s.Position=0
+ c.Position=0
+ la_cuenta.Text = c.GetString("CAT_CL_CODIGO")
+ La_nombre.Text = c.GetString("CAT_CL_NOMBRE")
+ NOMBRE = c.GetString("CAT_CL_NOMBRE")
+ LONGITUD = c.GetString("CAT_CL_LONG")
+ LATITUD = c.GetString("CAT_CL_LAT")
+ la_Calle.Text = c.GetString("CAT_CL_CALLE") & c.GetString("CAT_CL_NOEXT")
+ la_col.Text = c.GetString("CAT_CL_COLONIA")
+ la_edo.Text = c.GetString("CAT_CL_EDO")
+ la_cp.Text = c.GetString("CAT_CL_CP")
+ l_entre1.Text = c.GetString("CAT_CL_CALLE1")
+ l_entre2.Text = c.GetString("CAT_CL_CALLE2")
+ If c.GetString("CAT_CL_ATIENDE1") <> Null And c.GetString("CAT_CL_ATIENDE1") <> "null" Then
+ l_atiende.Text = c.GetString("CAT_CL_ATIENDE1")
+ Else
+ l_atiende.Text = " "
+ End If
+ If c.GetString("CAT_CL_ATIENTE2") <> Null And c.GetString("CAT_CL_ATIENTE2") <> "NULL" Then
+ l_atiende2.Text = c.GetString("CAT_CL_ATIENTE2")
+ Else
+ l_atiende2.Text = " "
+ End If
+ la_saldotot.Text = c.GetString("CAT_CL_TELEFONO")
+ la_saldooper.Text = c.GetString("CAT_CL_EMAIL")
+' l_total.Text = s.GetString("TOTAL_CLIE")
+ CREDITO = C.GetString("CAT_CL_BCREDITO")
+
+
+ Private cym As Map = Subs.traeCantYMonto2(Subs.traeCliente)
+ L_CANT.Text = cym.Get("cantidad")
+ l_total.Text = Round2(cym.Get("monto"), 2)
+
+' If CREDITO = "1" Then
+' Msgbox("AVISO","SE TIENE QUE IMPRIMIR PAGARÉ") 'ignore
+' End If
+' Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+' L_CANT.Text = cym.Get("cantidad")
+' l_total.Text = cym.Get("monto")
+ Starter.skmt.ExecNonQuery("UPDATE HIST_VENTAS set ESPROMO = 1 where HVD_CODPROMO = HVD_PROID AND HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ Private vc As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='${Subs.traealmacen}' and HVD_CLIENTE in (select cuenta from cuentaa)"$)
+
+ Private cuenta0 As String = 0
+ Private arti As String = 0
+ If vc.RowCount > 0 Then
+ For i = 0 To vc.RowCount - 1
+ vc.Position = i
+
+
+ cuenta0 = cuenta0 + ((vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT"))*(vc.GetString("HVD_COSTO_TOT")/vc.GetString("HVD_CANT")))
+
+
+
+' Log(vc.GetString("HVD_CANT")&","&vc.GetString("HVD_RECHAZOCANT"))
+ arti = arti + (vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT"))
+' Log(vc.GetString("HVD_CANT") &" - "& vc.GetString("HVD_RECHAZOCANT")&" * "& vc8.GetString("CAT_GP_PRECIO"))
+ Next
+ End If
+' Log(cuenta0)
+
+ Private vc2 As Cursor = Starter.skmt.ExecQuery("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1")
+ Private Cuenta1 As String = 0
+ Private arti1 As String = 0
+ If vc2.RowCount > 0 Then
+ For i = 0 To vc2.RowCount - 1
+ vc2.Position = i
+ Dim preu As Float = NumberFormat2(vc2.GetString("HVD_COSTO_TOT")/vc2.GetString("CANTC"),0,2,2,False)
+ Private vc3 As Cursor = Starter.skmt.ExecQuery($"select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '${vc2.GetString("HVD_PROID")}'"$)
+ If vc3.RowCount > 0 Then
+ vc3.Position = 0
+ Cuenta1 = Cuenta1 + ((vc2.GetString("CANTC")-(vc2.GetString("HVD_RECHAZOCANT")/vc3.GetString("CONVERSION")))*preu)
+ arti1 = arti1 + (vc2.GetString("HVD_CANT") - vc2.GetString("HVD_RECHAZOCANT"))
+ End If
+ Next
+ End If
+' Log(Cuenta1)
+
+ Private vc4 As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID,HVD_PRONOMBRE,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '${Subs.traeAlmacen}'"$)
+ Private Cuenta2 As String = 0
+ Private arti2 As String = 0
+ If vc4.RowCount > 0 Then
+
+ For i = 0 To vc4.RowCount - 1
+ vc4.Position = i
+ If vc4.GetString("HVD_PROID") <> vc4.GetString("HVD_CODPROMO") Then
+ If vc4.GetString("HVD_RECHAZO") = 0 Then
+ Cuenta2 = Cuenta2 + vc4.GetString("HVD_COSTO_TOT")
+ arti2 = arti2 + vc4.GetString("HVD_CANT")
+ Else
+ Private vc5 As Cursor = Starter.skmt.ExecQuery($"select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${vc4.GetString("HVD_PROID")}'"$)
+ If vc5.RowCount > 0 Then
+ vc5.Position= 0
+' Log(vc5.GetString("CAT_GP_PRECIO"))
+ Cuenta2 = Cuenta2 +((vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))*(vc4.GetString("HVD_COSTO_TOT")/vc4.GetString("HVD_CANT")))
+ arti2 = arti2 +(vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))
+ End If
+ End If
+ End If
+
+ Next
+ End If
+' Log(arti2)
+ Subs.centraPanel(p_credito, Root.Width)
+ Private c4 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"$)
+ Private Cuenta3 As String = 0
+ Private arti3 As String = 0
+ If c4.RowCount > 0 Then
+ For i = 0 To c4.RowCount -1
+ c4.Position = i
+ arti3 = arti3 + c4.GetString("PE_CANT")
+ Cuenta3 = Cuenta3 + c4.GetString("PE_COSTO_TOT")
+ Next
+ End If
+ Log(cuenta0)
+ Log(Cuenta1)
+ Log(Cuenta2)
+ Log(Cuenta3)
+
+ l_total.Text = NumberFormat2((cuenta0 + Cuenta1 + Cuenta2 + Cuenta3),0,2,2,True)
+ L_CANT.Text = NumberFormat2((arti + arti1 +arti2 + arti3),0,0,0,True)
+
+' l_total.Text = cuenta + Cuenta1 + Cuenta2
+' L_CANT.Text = arti + arti1 +arti2
+
+ c = Starter.skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?", Array As String ("MACIMP"))
+ If c.RowCount > 0 Then
+ c.Position = 0
+ Starter.MAC_IMPRESORA = c.GetString("CAT_VA_VALOR")
+ End If
+ If Starter.MAC_IMPRESORA = "" Then Starter.MAC_IMPRESORA = "0"
+' Log("|" & Starter.MAC_IMPRESORA & "|")
+ Printer1.Initialize(Me, "Printer1")
+
+ If Printer1.IsConnected = False Then
+' Printer1.Connect
+' Log("1")
+ Else
+ Printer1.DisConnect
+ Printer1.Connect
+ Log("2")
+ End If
+
+
+
+' Dim pag As Cursor = Starter.skmt.ExecQuery("select * FROM PAGARES WHERE TMP_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+' If pag.RowCount > 0 Then
+' pag.Position = 0
+' l_credi.Visible = True
+' l_pagare.Visible = True
+' l_montoefec.Visible = True
+' l_efectivo.Visible = True
+' l_montopag.Visible = True
+' l_montopag.Text = pag.GetString("TMP_MONTO_PAGARE")
+' Dim PAGAREMONTO As Float = cuenta0 + Cuenta1 + Cuenta2 + Cuenta3
+' Dim PAGAREMONTO2 As Float = pag.GetString("TMP_MONTO_PAGARE")
+'' Log
+' If PAGAREMONTO - PAGAREMONTO2 < 0 Then
+' l_montoefec.Text = 0
+' Else
+' l_montoefec.Text = PAGAREMONTO - PAGAREMONTO2
+' End If
+' Else If pag.RowCount = 0 Then
+' l_credi.Visible = False
+' l_pagare.Visible = False
+' l_montoefec.Visible = False
+' l_efectivo.Visible = False
+' l_montopag.Visible = False
+' End If
+
+ c=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ c.Position = 0
+ almacen = c.GetString("ID_ALMACEN")
+ c.Close
+
+
+ If almacen = "3" Or almacen = 3 Or almacen = "5" Or almacen = 5 Then
+ Tar.Visible = False
+ Log("SI AQUI")
+ b = Starter.skmt.ExecQuery("select COUNT(*) AS CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)")
+ b.Position = 0
+ Dim cabonos As String = b.GetString("CLIENTE")
+ If cabonos = 0 Then
+ b_cxc.Visible = False
+ Else
+ b_cxc.Visible = False
+ End If
+ End If
+
+End Sub
+
+Sub Activity_Pause (UserClosed As Boolean)
+
+End Sub
+
+Sub GPS_LocationChanged (Location1 As Location)
+' lat_gps=Location1.ConvertToSeconds(Location1.Latitude)
+' lon_gps=Location1.ConvertToSeconds(Location1.Longitude)
+ Dim sDate,sTime As String
+ DateTime.DateFormat = "MM/dd/yyyy"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ Starter.skmt.ExecNonQuery("DELETE FROM HIST_GPS")
+ Starter.skmt.ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ", Array As Object (sDate & sTime, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps))
+End Sub
+
+Sub ListView1_ItemLongClick (Position As Int, Value As Object)
+
+End Sub
+
+Sub gest_Click
+ c = Starter.skmt.ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ c.Position = 0
+ If c.GetInt("gestion") = 2 Then
+ MsgboxAsync("El cliente ya fue entregado y no se puede realizar modificación","Atención")
+ Else
+
+' If CREDITO = 1 Then
+' Msgbox2Async("Forma de pago","EL CLIENTE PUEDE TENER CREDITO","Parcial","Total","Efectivo",LoadBitmap(File.DirAssets,"alert2.png"),False)
+' Wait For Msgbox_Result (Result As Int)
+' If Result= DialogResponse.POSITIVE Then
+' Log(1)
+' p_credito.Visible = True
+' 'monto
+' c=Starter.skmt.ExecQuery("select sum(HVD_COSTO_TOT) AS MONTO from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_RECHAZO = 0 AND HVD_PARCIAL = 0")
+' c.Position = 0
+' montopagare = c.GetString("MONTO")
+' c.Close
+' l_limite.Text = "Monto de la venta: $" & l_total.Text
+' Else If Result = DialogResponse.NEGATIVE Then
+' Log(2)
+' B_IMP_Click
+' banderaimp = 1
+' Else If Result = DialogResponse.CANCEL Then
+' Log(3)
+' DateTime.DateFormat = "dd/MM/yyyy"
+' DateTime.TimeFormat = "HH:mm:ss"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' 'cliente
+' c=Starter.skmt.ExecQuery("select CUENTA from cuentaa")
+' c.Position = 0
+' cuenta = c.GetString("CUENTA")
+' c.Close
+' 'usuario
+' c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+' c.Position = 0
+' usuario = c.GetString("USUARIO")
+' c.Close
+' 'Almacen
+' c=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+' c.Position = 0
+' almacen = c.GetString("ID_ALMACEN")
+' c.Close
+' 'FECHA PREVENTA
+' c=Starter.skmt.ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+' c.Position = 0
+' fechaprev = c.GetString("HVD_FECHA")
+' c.Close
+' 'RUTAPREVENTA
+' c=Starter.skmt.ExecQuery("select CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+' c.Position = 0
+' rutaprev = c.GetString("CAT_CL_RUTA")
+' c.Close
+' 'RUTA rep
+' c=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+' c.Position = 0
+' rutarep = c.GetString("RUTAA")
+' c.Close
+' 'monto
+' c=Starter.skmt.ExecQuery("select sum(HVD_COSTO_TOT) AS MONTO from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_RECHAZO = 0 AND HVD_PARCIAL = 0")
+' c.Position = 0
+' montopagare = c.GetString("MONTO")
+' c.Close
+' Starter.skmt.ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA_REP, PA_RUTAPREV, PA_FECHA_PREV, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?,?) ", Array As Object (almacen,rutarep,rutaprev,fechaprev,(sDate),montopagare,usuario,cuenta))
+' B_IMP_Click
+' banderaimp = 1
+' End If
+' Else
+ B_IMP_Click
+ banderaimp = 1
+' End If
+ End If
+
+End Sub
+
+Sub Guardado
+ DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.TimeFormat="HHmmss"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c=Starter.skmt.ExecQuery("select CUENTA from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+ c.Close
+ d = Starter.skmt.ExecQuery("SELECT RUTAA FROM RUTAA")
+ d.Position = 0
+ Dim ruta As String = d.GetString("RUTAA")
+ d.Close
+ d = Starter.skmt.ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ d.Position = 0
+ Dim rutapre As String = d.GetString("CAT_CL_RUTA")
+ d.Close
+
+' d = Starter.skmt.ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+' d.Position = 0
+ Dim fechaprev As String = Subs.traefECHAPREV
+' d.Close
+
+ Dim rutaactualizar As String
+ Dim rut As Cursor = Starter.skmt.ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ If rut.RowCount > 0 Then
+ rut.Position = 0
+ rutaactualizar = rut.GetString("CAT_CL_RUTA")
+ End If
+
+ Starter.skmt.ExecNonQuery($"DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) AND NV_RUTA ='${rutaactualizar}' "$)
+ Starter.skmt.ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_RUTA) VALUES(?,?,?,?,?,?,?,?) ", Array As Object (cuenta,sDate &" "& sTime, usuario, "ENTREGA","ENTREGA COMPLETA", B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps,rutaactualizar))
+ Starter.skmt.ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,0)",Array As String (la_cuenta.Text, usuario, sDate &" "&sTime, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps,B4XPages.MainPage.almacen,ruta,rutapre,fechaprev, "ENTREGADO"))
+ Starter.skmt.ExecNonQuery($"UPDATE kmt_info set gestion = 2, HORAENT = '${sDate & " " & sTime}' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '${rutaactualizar}' "$)
+ Starter.skmt.ExecNonQuery("update HIST_VENTAS SET HVD_ESTATUS = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ mandaPendientesreparto
+
+
+' Dim mandamapa As Cursor = Starter.skmt.ExecQuery("SELECT * FROM kmt_info WHERE gestion = 0 and CAT_CL_CODIGO <> 63403")
+' If mandamapa.RowCount > 0 Then
+' StartActivity(MAPA_RUTAS)
+' Else If mandamapa.RowCount = 0 Then
+ B4XPages.ShowPage("Principal")
+' End If
+End Sub
+
+Sub b_noEntrega_Click
+
+ c = Starter.skmt.ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ c.Position = 0
+ If c.GetInt("gestion") = 2 Then
+ MsgboxAsync("El cliente ya fue entregado y no se puede realizar modificación","Atención")
+ Else
+
+ ' skmt.ExecNonQuery("delete from PEDIDO")
+ B4XPages.ShowPage("noVenta")
+ End If
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ ' I want to capture the key here so I return True
+ If p_credito.Visible Then
+ et_montoacredito.Text = ""
+ p_credito.Visible = False
+ Return False
+ Else
+ B4XPages.ShowPage("Clientes")
+ Return False
+ End If
+' B4XPages.ShowPage("Clientes")
+End Sub
+
+Sub Tar_Click
+' StartActivity(colonia2)
+ B4XPages.ShowPage("Productos")
+End Sub
+
+Sub DATOS_Click
+' StartActivity(telefonos)
+End Sub
+
+Sub Guardar_Click
+' Dim mandamapa As Cursor = Starter.skmt.ExecQuery("SELECT * FROM kmt_info WHERE gestion = 0 AND cat_cl_codigo <> 63403")
+' If mandamapa.RowCount > 0 Then
+' StartActivity(MAPA_RUTAS)
+' Else If mandamapa.RowCount = 0 Then
+ B4XPages.ShowPage("Principal")
+' End If
+End Sub
+
+Sub NUEVO_Click
+ StartActivity(MAPA_CLIENTE)
+End Sub
+
+Sub HIST_Click
+
+ c = Starter.skmt.ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ c.Position = 0
+ If c.GetInt("gestion") = 2 Then
+ MsgboxAsync("El cliente ya fue entregado y no se puede realizar modificación","Atención")
+ Else
+
+' B4XPages.MainPage.historico.prodsMap.Initialize
+ '' B4XPages.MainPage.historico.clv_pedido.Clear
+' B4XPages.ShowPage("Historico")
+ B4XPages.MainPage.detalleVenta.prodsMap.Initialize
+' B4XPages.MainPage.historico.clv_pedido.Clear
+ B4XPages.ShowPage("DetalleVenta")
+ End If
+End Sub
+
+Sub B_IMP_Click
+ c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position=0
+ usuario = c.GetString("USUARIO")
+' DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.TimeFormat="HH:mm:ss"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c.Close
+' c=Starter.skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION =?", Array As String ("SUCURSAL"))
+' c.Position = 0
+' sucursal = c.GetString("CAT_VA_VALOR")
+' c.Close
+
+ ProgressDialogShow("Imprimiendo, un momento ...")
+ Printer1.DisConnect
+ If Not(Printer1.IsConnected) Then
+' Log("Conectando a impresora ...")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada)
+ Sleep(1000)
+' Log("++++++ " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect 'Tratamos de reconectar
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ Else
+' Log("conectando 2")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada) Or Not(Printer1.IsConnected)
+ Sleep(1000)
+' Log("****** " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ End If
+
+ TAMANO = 0
+ ESPACIO = 28
+ BLANCO = " "
+' Dim bmp As Bitmap
+' bmp.InitializeResize(File.DirAssets, "mariana.jpg", 192, 250, True) 'ignore
+' Dim myimage As AnImage = Printer1.ImageToBWIMage(bmp)
+
+' myimage = Printer1.DitherImage2D(myimage, 128)
+'
+' myimage= Printer1.PackImage(myimage)
+' Printer1.WriteString(CRLF) ' nudge the Printer1 to show the user something is happening
+' Printer1.WriteString(Printer1.REVERSE)
+'
+' Printer1.PrintImage(myimage)
+' Printer1.WriteString(Printer1.UNREVERSE)
+
+' Printer1.Justify = 1
+ 'Printer1.Initialize(cmp20.OutputStream)
+' Printer1.WriteString("DISTRIBUIDORA ROCHA TULA PACHUCA" & CRLF)
+ Printer1.WriteString("Izca Distribuciones" & CRLF)
+' Printer1.WriteString(sucursal & CRLF)
+ Printer1.WriteString(sDate & CRLF)
+ Printer1.WriteString(sTime & CRLF)
+ Printer1.WriteString("Vendedor:" & usuario & CRLF)
+ Printer1.WriteString("Tienda: " & La_nombre.Text & CRLF)
+ Printer1.WriteString("ID.Cliente: " & la_cuenta.Text & CRLF)
+ Printer1.WriteString("Calle: " & la_Calle.Text & CRLF)
+ Printer1.WriteString("Colonia: " & la_col.Text & CRLF)
+' Printer1.WriteString("C.P.: " & la_cp.Text & CRLF)
+' Printer1.WriteString("Entre calle1: " & l_entre1.Text & CRLF)
+' Printer1.WriteString("Entre Calle2: " & l_entre2.Text & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ c = Starter.skmt.ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ If c.RowCount > 0 Then
+ Printer1.WriteString("------------ENTREGA-----------" & CRLF)
+
+' Printer1.WriteString("--------------------------------" & CRLF)
+ Printer1.WriteString("Cant. Precio Importe" & CRLF)
+
+ Printer1.WriteString("------------------------------" & CRLF)
+ ' aqui es donde esta el pedo de julieta de los descuentos quitar el precio2 pero meter un if para saber si es ruta especial o es normal o que show.
+ s=Starter.skmt.ExecQuery($"select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PROID"$)
+ If S.RowCount>0 Then
+ For i=0 To S.RowCount -1
+ S.Position=i
+ Log(s.GetString("HVD_RECHAZO"))
+ If s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT") > 0 Then
+
+
+ If s.GetString("HVD_CODPROMO") = Subs.traeAlmacen Then
+
+ Printer1.Justify = 0
+ Printer1.WriteString(s.GetString("HVD_PRONOMBRE") & CRLF)
+
+
+ Dim punit As String = NumberFormat2((s.GETSTRING("HVD_COSTO_TOT")/s.GetString("HVD_CANT")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+
+' Private ptot As String = NumberFormat2((punit*s.GetString("HVD_CANT")),0,2,2,False)
+ Private ptot As String = NumberFormat2(( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT")) * punit ),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+' Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT"))& BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString( ptot & CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+
+ Else If s.GetString("HVD_RECHAZO") = 1 Then
+
+ Printer1.Justify = 0
+ Printer1.WriteString(s.GetString("HVD_PRONOMBRE") & CRLF)
+
+ Private vc5 As Cursor = Starter.skmt.ExecQuery($"select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${s.GetString("HVD_PROID")}'"$)
+ vc5.Position = 0
+ Dim punit As String = NumberFormat2((vc5.GetString("CAT_GP_PRECIO")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+ vc5.Close
+
+ Private ptot As String = NumberFormat2(( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT")) * punit ),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+' Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT"))& BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString(ptot& CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+ Printer1.Justify = 0
+ End If
+ End If
+ Next
+ End If
+ End If
+ Printer1.Justify = 0
+ s.Close
+ Printer1.WriteString(" " & CRLF)
+ s=Starter.skmt.ExecQuery($"select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '${Subs.traeAlmacen}' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID"$)
+
+ If S.RowCount>0 Then
+ Printer1.WriteString("-------PROMOS ENTREGA--------" & CRLF)
+ Printer1.WriteString("Cant. Precio Importe" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+
+ For i=0 To S.RowCount -1
+ S.Position=i
+ If s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT") > 0 Then
+
+
+ If s.GetString("HVD_CODPROMO") <> Subs.traeAlmacen Then
+
+ Printer1.Justify = 0
+ If s.GetString("HVD_CODPROMO") = s.GetString("HVD_PROID") Then
+ Printer1.WriteString("* "&s.GetString("HVD_PRONOMBRE") & CRLF)
+ Else
+ Printer1.WriteString(s.GetString("HVD_PRONOMBRE") & CRLF)
+
+ Dim punit As String =NumberFormat2((s.GETSTRING("HVD_COSTO_TOT")/s.GetString("HVD_CANT")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+
+
+ Private ptot As String = NumberFormat2((punit*s.GetString("HVD_CANT")),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+ Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT"))& BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString(ptot & CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+ Printer1.Justify = 0
+ End If
+
+
+
+ Else
+
+ End If
+ End If
+ Next
+ End If
+
+ Printer1.WriteString(" " & CRLF)
+ s=Starter.skmt.ExecQuery($"select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID"$)
+
+ If S.RowCount>0 Then
+ Printer1.WriteString("-----------VENTA------------" & CRLF)
+ Printer1.WriteString("Cant. Precio Importe" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+
+ For i=0 To S.RowCount -1
+ S.Position=i
+
+ Printer1.Justify = 0
+ Printer1.WriteString(s.GetString("PE_PRONOMBRE") & CRLF)
+
+
+ Dim punit As String =NumberFormat2( (s.GETSTRING("PE_COSTO_TOT")/s.GetString("PE_CANT")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+
+ Private ptot As String = NumberFormat2((punit*s.GetString("PE_CANT")),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+ Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( s.GetString("PE_CANT") & BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString(ptot & CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+ Printer1.Justify = 0
+
+ Next
+ End If
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+
+
+ Printer1.WriteString("Total Articulos: " & L_CANT.Text & CRLF)
+ Printer1.WriteString("Total: $" & l_total.Text)
+
+
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+' Printer1.WriteString("ENTREGA EN :" & CRLF)
+' Printer1.WriteString(la_Calle.Text & CRLF)
+ Printer1.WriteString("----ESTE TICKET NO ES UN -----" & CRLF)
+ Printer1.WriteString("--COMPROBANTE FISCAL, SOLO ES-" & CRLF)
+ Printer1.WriteString("--------INFORMATIVO-----------" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Sleep(1000)
+ Printer1.DisConnect
+
+ ProgressDialogHide
+
+ If banderaimp = 1 Then
+ Msgbox2Async("Deseas imprimir de nuevo el ticket?", "ATENCION","SI","", "NO",LoadBitmap(File.DirAssets,"alert2.png"), False)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+ B_IMP_Click
+ Else
+ Guardado
+ End If
+
+' printer.Flush
+ ' printer.Close
+ Else If banderaimp = 0 Then
+ Msgbox2Async("Deseas imprimir de nuevo el ticket?", "ATENCION","SI","", "NO",LoadBitmap(File.DirAssets,"alert2.png"), False)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+ B_IMP_Click
+ End If
+ End If
+
+' Guardado
+End Sub
+
+Sub Printer1_Connected (Success As Boolean)
+' If Logger Then Log("Printer1_Connected")
+ If Success Then
+ ToastMessageShow("Impresora conectada", False)
+ Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("MACIMP"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("MACIMP",Starter.mac_impresora))
+' If logger Then LogColor("Impresora conectada", Colors.Green)
+' B_IMP2.Enabled = True
+ impresoraConectada = True
+ Else
+' Msgbox(Printer1.ConnectedErrorMsg, "Error connecting.") 'ignore
+' ToastMessageShow("Error conectando la impresora", False)
+ LogColor("Error conectando la impresora", Colors.Red)
+ errorImpresora = errorImpresora + 1
+ If errorImpresora > 1 Then
+ Starter.MAC_IMPRESORA = "0"
+ errorImpresora = 0
+ End If
+ End If
+End Sub
+
+Sub Printer1_Error
+ Log("error printer")
+End Sub
+
+Sub Printer_Connected (Success As Boolean)
+ If Success Then
+' B_IMP.Enabled = True
+ PASA_IMP = "1"
+ Else
+' B_IMP.Enabled = False
+ If Msgbox2("", "Printer Error","Reprint","Cancel","",Null) = DialogResponse.POSITIVE Then 'ignore
+ StartPrinter
+ End If
+ End If
+End Sub
+
+Sub StartPrinter
+ Dim PairedDevices As Map
+ Dim L1 As List
+ Dim resimp As Int
+ ToastMessageShow("Printing.....",True)
+ PairedDevices.Initialize
+ Try
+ PairedDevices = cmp20.GetPairedDevices
+ Catch
+ Msgbox("Getting Paired Devices","Printer Error") 'ignore
+ printer.Close
+ cmp20.Disconnect
+ End Try
+
+ If PairedDevices.Size = 0 Then
+ Msgbox("Error Connecting to Printer - Printer Not Found","") 'ignore
+ Return
+ End If
+
+ If PairedDevices.Size = 1 Then
+ Try
+ cmp20.Connect(PairedDevices.Get(PairedDevices.GetKeyAt(0)))
+ Catch
+ Msgbox("Connecting","Printer Error") 'ignore
+ printer.Close
+ cmp20.Disconnect
+ End Try
+ Else
+ L1.Initialize
+ For i = 0 To PairedDevices.Size - 1
+ L1.Add(PairedDevices.GetKeyAt(i))
+ Next
+ resimp = InputList(L1, "Choose device", -1) 'ignore
+ If resimp <> DialogResponse.CANCEL Then
+ cmp20.Connect(PairedDevices.Get(L1.Get(resimp)))
+ End If
+ End If
+End Sub
+
+Sub B_PASO2_Click
+ DateTime.DateFormat = "MM/dd/yyyy"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c=Starter.skmt.ExecQuery("select CUENTA from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+ c.Close
+ Starter.skmt.ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")
+ Starter.skmt.ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON) VALUES(?,?,?,?,?,?,?) ", Array As Object (cuenta,sDate & sTime, usuario, "PASO","PASO ESPERA", B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps))
+
+' Dim mandamapa As Cursor = Starter.skmt.ExecQuery("SELECT * FROM kmt_info WHERE gestion = 0")
+' If mandamapa.RowCount > 0 Then
+' StartActivity(MAPA_RUTAS)
+' Else If mandamapa.RowCount = 0 Then
+ B4XPages.ShowPage("Principal")
+' End If
+End Sub
+
+
+Sub mandaPendientesreparto
+' c=Starter.skmt.ExecQuery("SELECT CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO where ENVIO <> 1")
+' Log($"REPARTO_Cliente PENDIENTE: ${c.RowCount}"$)
+' If c.RowCount>0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+'
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_REPARTO_MARDS"'Ojala no Truene
+' cmd.Parameters = Array As Object(c.GetString("CLIENTE"), c.GetString("USUARIO"), c.GetString("FECHA_PUNTEO"), c.GetString("LATITUD"), c.GetString("LONGITUD"), c.GetString("ALMACEN"), c.GetString("RUTA_REPARTO"), c.GetString("RUTA_PREV"), c.GetString("FECHA_PREVENTA"), c.GetString("MOTIVO"), c.GetString("COMENTARIO"),c.GetString("TIPO"))
+' reqManager.ExecuteCommand(cmd , $"ins_REPARTOPendientes_head_${c.GetString("CLIENTE")}"$)
+'
+' Next
+' End If
+' c.Close
+End Sub
+
+
+
+Sub JobDone(Job As HttpJob)
+ Log(Job.Success)
+ If Job.Success = False Then
+' ToastMessageShow("Error: " & Job.ErrorMessage, True)
+ Else
+ LogColor("JobDone: '" & reqManager.HandleJob(Job).tag & "' - Registros: " & reqManager.HandleJob(Job).Rows.Size, Colors.Green) 'Mod por CHV - 211027
+ If Job.JobName = "DBRequest" Then
+ Dim resultado As DBResult = reqManager.HandleJob(Job)
+ If resultado.Tag.As(String).IndexOf("ins_REPARTOPendientes_head_") > -1 Then
+ Private cliente As String= resultado.Tag
+ cliente = cliente.SubString(cliente.IndexOf("_")+24)
+ Log($"Cliente1:${cliente}"$)
+ Starter.skmt.ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",Array As String ("1", cliente,"1"))
+ For Each records() As Object In resultado.Rows
+ For Each k As String In resultado.Columns.Keys
+ Log(resultado.Tag & ": " & k & ": " & records(resultado.Columns.Get(k)))
+ Next
+ Next
+ End If
+ End If
+ Job.Release
+ End If
+
+End Sub
+
+Private Sub b_acred_Click
+ If et_montoacredito.Text > l_total.Text Then
+ MsgboxAsync("El monto del pagare no puede ser mayor a la venta","Atención")
+ Else
+ DateTime.DateFormat = "dd/MM/yyyy"
+ DateTime.TimeFormat = "HH:mm:ss"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ 'cliente
+ c=Starter.skmt.ExecQuery("select CUENTA from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+ c.Close
+ 'usuario
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+ c.Close
+ 'Almacen
+ c=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ c.Position = 0
+ almacen = c.GetString("ID_ALMACEN")
+ c.Close
+ 'FECHA PREVENTA
+ c=Starter.skmt.ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ c.Position = 0
+ fechaprev = c.GetString("HVD_FECHA")
+ c.Close
+ 'RUTAPREVENTA
+ c=Starter.skmt.ExecQuery("select CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ c.Position = 0
+ rutaprev = c.GetString("CAT_CL_RUTA")
+ c.Close
+ 'RUTA rep
+ c=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ c.Position = 0
+ rutarep = c.GetString("RUTAA")
+ c.Close
+ Starter.skmt.ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA_REP, PA_RUTAPREV, PA_FECHA_PREV, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?,?) ", Array As Object (almacen,rutarep,rutaprev,fechaprev,(sDate),et_montoacredito.Text,usuario,cuenta))
+ et_montoacredito.Text = ""
+ p_credito.Visible = False
+ Guardado
+ End If
+End Sub
+
+Private Sub b_cancred_Click
+ et_montoacredito.Text = ""
+ p_credito.Visible = False
+End Sub
+
+Private Sub p_credito_Click
+
+End Sub
+
+'Private Sub b_cxc_Click
+'
+' h = Starter.skmt.ExecQuery("SELECT CUENTA from CUENTAA")
+' h.Position = 0
+' Log(h.GetString("CUENTA"))
+' j = Starter.skmt.ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?", Array As String(h.GetString("CUENTA")))
+' j.position = 0
+' Log(j.RowCount)
+' If j.RowCount = 0 Then
+'
+' p_abono.Visible = True
+' Dim total As String = 0
+' f = Starter.skmt.ExecQuery("SELECT CUENTA FROM CUENTAA")
+' f.Position = 0
+'
+' d = Starter.skmt.ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? ", Array As String (f.GetString("CUENTA")))
+' clv_abonos.Clear
+' For i = 0 To d.RowCount - 1
+' d.Position = i
+' clv_abonos.Add(CreateListItem(d.GetString("NOTA"),"$ " & d.GetString("SALDO_PENDIENTE")),i)
+' Log(d.GetString("NOTA"))
+' Log(d.GetString("SALDO_PENDIENTE"))
+' total = total + d.GetString("SALDO_PENDIENTE")
+' Log(total)
+' Next
+' l_montoabonostotal.Text = total
+' d.Close
+' f.Close
+'
+' Else If j.RowCount > 0 Then
+' p_abono.Visible = True
+' et_abono.text = j.GetString("a_abono")
+' Dim total As String = 0
+' f = Starter.skmt.ExecQuery("SELECT CUENTA FROM CUENTAA")
+' f.Position = 0
+'
+' d = Starter.skmt.ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? ", Array As String (f.GetString("CUENTA")))
+' clv_abonos.Clear
+' For i = 0 To d.RowCount - 1
+' d.Position = i
+' clv_abonos.Add(CreateListItem(d.GetString("NOTA"),"$ " & d.GetString("SALDO_PENDIENTE")),i)
+' Log(d.GetString("NOTA"))
+' Log(d.GetString("SALDO_PENDIENTE"))
+' total = total + d.GetString("SALDO_PENDIENTE")
+' Log(total)
+' Next
+' l_montoabonostotal.Text = total
+' d.Close
+' f.Close
+'' MsgboxAsync("Este cliente ya tiene un pago capturado","Atención")
+' End If
+' h.Close
+' j.Close
+'
+'
+'End Sub
+
+
+Private Sub b_cxc_Click
+ h = Starter.skmt.ExecQuery("SELECT CUENTA from CUENTAA")
+ h.Position = 0
+ Log(h.GetString("CUENTA"))
+
+
+ Dim Items As List
+ Items.Initialize
+
+ Items.Add("SELECCIONA UNA OPCION")
+ Items.Add("TRANSFERENCIA")
+ Items.Add("EFECTIVO")
+ Items.Add("CHEQUE")
+
+ cb_tipopago.SetItems(Items)
+
+ itemselect= "SELECCIONA UNA OPCION"
+
+ j = Starter.skmt.ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?", Array As String(h.GetString("CUENTA")))
+ j.position = 0
+ Log(j.RowCount)
+ If j.RowCount = 0 Then
+ p_abono.Visible = True
+ p_abono.Height = Root.Height
+ p_abono.Width = Root.Width
+ et_abono.text = ""
+ Dim total As Double = 0
+ f = Starter.skmt.ExecQuery("SELECT CUENTA FROM CUENTAA")
+ f.Position = 0
+ d = Starter.skmt.ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0", Array As String (f.GetString("CUENTA")))
+ clv_abonos.Clear
+ For i = 0 To d.RowCount - 1
+ d.Position = i
+ clv_abonos.Add(CreateListItem(d.GetString("NOTA"),"$ " & d.GetString("SALDO_PENDIENTE")),i)
+ Log(d.GetString("NOTA"))
+ Log(d.GetString("SALDO_PENDIENTE"))
+ total = total + d.GetString("SALDO_PENDIENTE")
+ Log(total)
+ Next
+ d.Close
+ d = Starter.skmt.ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? ", Array As String (f.GetString("CUENTA")))
+ If d.RowCount > 0 Then
+ For i = 0 To d.RowCount - 1
+ d.Position = i
+ clv_abonos.Add(CreateListItem("ABONO","$ " & d.GetString("a_abono")),i)
+ total = total - d.GetString("a_abono")
+ Log(total)
+ Next
+ End If
+ l_montoabonostotal.Text = NumberFormat2(total,0,2,2,False)
+ d.Close
+ f.Close
+ Else If j.RowCount > 0 Then
+ p_abono.Visible = True
+ p_abono.Height = Root.Height
+ p_abono.Width = Root.Width
+ et_abono.text = ""
+ Dim total As Double = 0
+ f = Starter.skmt.ExecQuery("SELECT CUENTA FROM CUENTAA")
+ f.Position = 0
+ d = Starter.skmt.ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0", Array As String (f.GetString("CUENTA")))
+ clv_abonos.Clear
+ For i = 0 To d.RowCount - 1
+ d.Position = i
+ clv_abonos.Add(CreateListItem(d.GetString("NOTA"),"$ " & d.GetString("SALDO_PENDIENTE")),i)
+ Log(d.GetString("NOTA"))
+ Log(d.GetString("SALDO_PENDIENTE"))
+ total = total + d.GetString("SALDO_PENDIENTE")
+ Log(total)
+ Next
+ d.Close
+ d = Starter.skmt.ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? ", Array As String (f.GetString("CUENTA")))
+ If d.RowCount > 0 Then
+ For i = 0 To d.RowCount - 1
+ d.Position = i
+ clv_abonos.Add(CreateListItem("ABONO","$ " & d.GetString("a_abono")),i)
+ total = total - d.GetString("a_abono")
+ Log(total)
+ Next
+ End If
+ l_montoabonostotal.Text = NumberFormat2(total,0,2,2,False)
+ d.Close
+ f.Close
+' MsgboxAsync("Este cliente ya tiene un pago capturado","Atención")
+ End If
+ h.Close
+ j.Close
+End Sub
+
+
+Private Sub p_abono_Click
+
+End Sub
+
+Sub CreateListItem(mostrar As String, mostrar1 As String) As Panel
+ Dim p As B4XView = xui.CreatePanel("")
+ p.SetLayoutAnimated(0, 0, 0, 1, 10)
+ p.LoadLayout("folioabono")
+ p.Height= 32dip
+ p.Width = 80dip
+' p.Width = clv_orden.GetBase.Width
+ l_folio.Text = mostrar
+ l_saldo.Text = mostrar1
+' cxc.Text = mostrar3
+' Log(p.Width)
+ Return p
+End Sub
+
+Private Sub b_cancelar_Click
+ et_abono.Text = ""
+ p_abono.Visible = False
+ ime.HideKeyboard
+End Sub
+
+'Private Sub b_abono_Click
+'' p_abono.Visible = False
+' If et_abono.Text <> "" Then
+' If et_abono.text > l_montoabonostotal.text Then
+' MsgboxAsync("El monto a abonar no puede ser mayor que el monto total","Atención" )
+' Else
+' If et_abono.Text <> "" Then
+'
+' Dim k As Cursor = Starter.skmt.ExecQuery("SELECT CUENTA from CUENTAA")
+' k.Position = 0
+' Log(k.GetString("CUENTA"))
+' Dim y As Cursor = Starter.skmt.ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?", Array As String(k.GetString("CUENTA")))
+' y.position = 0
+'
+' If y.RowCount = 0 Then
+' Msgbox2Async($"¿Seguro que quieres realizar un abono de $${et_abono.text} para este cliente?"$, "Guardar Abono", "Guardar", "Cancelar", "", Null, True)
+' Wait For Msgbox_Result (resultado As Int)
+' If resultado = DialogResponse.POSITIVE Then
+' hazpago
+' End If
+' Else If et_abono.Text > y.GetString("a_abono") Then
+' Msgbox2Async($"¿Seguro que quieres realizar un abono de $${et_abono.text} para este cliente?"$, "Guardar Abono", "Guardar", "Cancelar", "", Null, True)
+' Wait For Msgbox_Result (resultado As Int)
+' If resultado = DialogResponse.POSITIVE Then
+' hazpago
+' End If
+' Else If et_abono.Text = y.GetString("a_abono") Then
+' p_abono.Visible = False
+' et_abono.Text = ""
+' Else If et_abono.Text < y.GetString("a_abono") Then
+' p_abono.Visible = False
+' MsgboxAsync("El pago no puede ser menor al monto capturado.","Atención")
+' et_abono.Text = ""
+' End If
+'
+'
+'
+' End If
+' End If
+' End If
+' ime.HideKeyboard
+'End Sub
+
+Private Sub b_abono_Click
+' p_abono.Visible = False
+ If et_abono.Text <> "" Then
+ If et_abono.text > l_montoabonostotal.text Then
+ MsgboxAsync("El monto a abonar no puede ser mayor que el monto total","Atención" )
+ Else
+ If et_abono.Text <> "" And et_abono.Text > 0 Then
+ If itemselect <> "SELECCIONA UNA OPCION" Then
+
+
+' Dim k As Cursor = Starter.skmt.ExecQuery("SELECT CUENTA from CUENTAA")
+' k.Position = 0
+' Log(k.GetString("CUENTA"))
+' Dim y As Cursor = Starter.skmt.ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?", Array As String(k.GetString("CUENTA")))
+' y.position = 0
+' If y.RowCount = 0 Then
+
+ Dim con As Cursor = Starter.skmt.ExecQuery("SELECT * FROM ABONOS WHERE a_cliente in (SELECT CUENTA FROM CUENTAA)")
+ Private consecutivo As Int = con.RowCount +1
+
+ d = Starter.skmt.ExecQuery("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE in (SELECT CUENTA FROM CUENTAA) AND SALDO_PENDIENTE <> 0")
+
+ For i = 0 To d.RowCount - 1
+ d.Position = i
+ Log(d.GetString("NOTA"))
+ Log(d.GetString("SALDO_PENDIENTE"))
+
+ Next
+
+
+ Dim d5 As Cursor= Starter.skmt.ExecQuery("SELECT RUTAA FROM RUTAA")
+
+ d5.Position = 0
+
+
+
+
+
+ Msgbox2Async($"¿Seguro que quieres realizar un abono de $${et_abono.text} para este cliente?"$, "Guardar Abono", "Guardar", "Cancelar", "", Null, True)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+ p_abono.Visible = False
+ Starter.skmt.ExecNonQuery($"INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha, TIPO_PAGO, CONSECUTIVO, NUM_TICKET, RUTA_REP) VALUES ('${Subs.traeUsuarioDeBD}', '${Subs.traeRuta(Subs.traeCliente)}', '${Subs.traeCliente}' ,'${et_abono.text}', '${Subs.fechaKMT(DateTime.now)}', '${itemselect}', '${consecutivo}', '${d.GetString("NOTA")}' , '${d5.GetString("RUTAA")}')"$)
+ ToastMessageShow("Abono guardado", False)
+ End If
+' Else If et_abono.Text > y.GetString("a_abono") Then
+' Msgbox2Async($"¿Seguro que quieres realizar un abono de $${et_abono.text} para este cliente?"$, "Guardar Abono", "Guardar", "Cancelar", "", Null, True)
+' Wait For Msgbox_Result (resultado As Int)
+' If resultado = DialogResponse.POSITIVE Then
+' imprime_abonopagare
+' End If
+' Else If et_abono.Text = y.GetString("a_abono") Then
+' p_abono.Visible = False
+' et_abono.Text = ""
+' Else If et_abono.Text < y.GetString("a_abono") Then
+' p_abono.Visible = False
+' MsgboxAsync("El pago no puede ser menor al monto capturado.","Atención")
+' et_abono.Text = ""
+' End If
+ d.Close
+ d5.Close
+ Else
+ MsgboxAsync("Por favor selecciona un metodo de pago","Atención")
+ End If
+ End If
+ End If
+ End If
+ ime.HideKeyboard
+End Sub
+
+'Sub hazpago
+' h = Starter.skmt.ExecQuery("SELECT CUENTA from CUENTAA")
+' h.Position = 0
+' Log(h.GetString("CUENTA"))
+' j = Starter.skmt.ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?", Array As String(h.GetString("CUENTA")))
+' j.position = 0
+' If j.RowCount = 0 Then
+' p_abono.Visible = False
+'
+' Starter.skmt.ExecNonQuery($"INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha) VALUES ('${Subs.traeUsuarioDeBD}', '${Subs.traeRuta(Subs.traeCliente)}', '${Subs.traeCliente}' ,'${et_abono.text}', '${Subs.fechaKMT(DateTime.now)}')"$)
+' ToastMessageShow("Abono guardado", False)
+' et_abono.Text = ""
+' Else
+' p_abono.Visible = False
+'
+'' skmt.ExecNonQuery($"INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha) VALUES ('${Subs.traeUsuarioDeBD}', '${Subs.traeRuta(Subs.traeCliente)}', '${Subs.traeCliente}' ,'${et_abono.text}', '${Subs.fechaKMT(DateTime.now)}')"$)
+' Starter.skmt.ExecNonQuery($"UPDATE ABONOS set a_abono = '${et_abono.text}' where a_usuario = '${Subs.traeUsuarioDeBD}' and a_ruta = '${Subs.traeRuta(Subs.traeCliente)}' and a_cliente In (select cuenta from cuentaa)"$)
+' ToastMessageShow("Abono guardado", False)
+' et_abono.Text = ""
+' End If
+'End Sub
+
+Private Sub cb_tipopago_SelectedIndexChanged (Index As Int)
+ itemselect = cb_tipopago.SelectedItem
+End Sub
+
+Sub B_IMP2_Click
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' TAMANO = 0
+' ESPACIO = 21
+' BLANCO = " "
+' CREDITO ="1"
+' If CREDITO = "1" Then
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' printer.Initialize(cmp20.OutputStream)
+' printer.WriteLine("DBC.")
+' printer.WriteLine("RFC: ")
+' printer.WriteLine(sDate)
+' printer.WriteLine(sTime)
+' printer.WriteLine("Tienda: " & La_nombre.Text)
+' s=Starter.skmt.ExecQuery("select SUM(HVD_CANT) AS PC_NOART, SUM(HVD_COSTO_TOT) AS PC_MONTO from HIST_VENTAS where HVD_CLIENTE in (Select CUENTA from cuentaa)")
+' s.Position=0
+' printer.WriteLine("Debo (emos) y pagare (mos) incondicionamelte a la orden de DBC a la cantidad de $" & s.GetString("PC_MONTO") & " PESOS _______________________________________________________________________________________________________________ ")
+' printer.WriteLine("en esta ciudad o en cualquier otra que se requiera de pago, valor recibido a mi entera satisfaccion y que me obligo a cumplir el dia______________________.")
+' printer.WriteLine(" ")
+' printer.WriteLine("Si este pagare no fuera cubiertoa su vencimiento Me (nos) obligo (amos) a pagar intereses moratorios a razon de 3 % mensual")
+' printer.WriteLine(" ")
+' printer.WriteLine(" ")
+' printer.WriteLine(" ")
+' printer.WriteLine(" ")
+' printer.WriteLine(" ")
+' printer.WriteLine(" ")
+' printer.WriteLine(" ")
+' printer.WriteLine("------------------------------")
+' printer.WriteLine(" NOMBRE Y FIRMA ")
+' printer.WriteLine("------------------------------")
+' printer.WriteLine(" ")
+' printer.Flush
+' End If
+
+' printer.Initialize(cmp20.OutputStream)
+' printer.WriteLine("PROFINA")
+' printer.WriteLine("RFC: ")
+' printer.WriteLine("Tel.:")
+' printer.WriteLine(sDate)
+' printer.WriteLine(sTime)
+' printer.WriteLine("Vendedor:" & usuario)
+' printer.WriteLine("Tienda: " & La_nombre.Text)
+' s=Starter.skmt.ExecQuery("select SUM(HVD_CANT) AS PC_NOART, SUM(HVD_COSTO_TOT) AS PC_MONTO from HIST_VENTAS where HVD_CLIENTE in (Select CUENTA from cuentaa)")
+' s.Position=0
+' c=Starter.skmt.ExecQuery("select SUM(PE_CANT) AS PE_CANT, SUM(PE_COSTO_TOT) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")
+' C.Position=0
+'
+' printer.WriteLine("Total : $" & (s.GetString("PC_MONTO") + c.GetString("PE_COSTO_TOT")))
+' s.Close
+' printer.WriteLine("-----------ENTREGA------------")
+' S=Starter.skmt.ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,length(HVD_cant) as L_CANT,HVD_COSTO_TOT,length(HVD_COSTO_TOT) as L_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) ")
+'
+' 's=skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTO_TOT, PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)", Array As String("VENTA"))
+' If S.RowCount>0 Then
+' For i=0 To S.RowCount -1
+' S.Position=i
+' 'If s.GetString("PE_CEDIS") = s.GetString("PE_PROID") Then
+' ' printer.WriteLine(s.GetString("PE_PRONOMBRE"))
+'
+' 'Else
+'
+' printer.WriteLine(s.GetString("HVD_CANT") & " " & s.GetString("HVD_PRONOMBRE"))
+' TAMANO = s.GetLong("L_CANT") + TAMANO
+' 'TAMANO = s.GetLong("L_COSTOU") + TAMANO
+' TAMANO = s.GetLong("L_COSTO_TOT") + TAMANO
+'
+' ESPACIO = ESPACIO - TAMANO
+'
+' For E=0 To ESPACIO -1
+' BLANCO = " " & BLANCO
+' Next
+' printer.WriteLine("$" & s.GETSTRING("HVD_COSTO_TOT") )
+' TAMANO = 0
+' ESPACIO = 21
+' BLANCO = " "
+' 'End If
+' Next
+' End If
+' s.Close
+'
+' s=Starter.skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTO_TOT, PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)", Array As String("VENTA"))
+' If S.RowCount>0 Then
+' For i=0 To S.RowCount -1
+' S.Position=i
+' 'If s.GetString("PE_CEDIS") = s.GetString("PE_PROID") Then
+' ' printer.WriteLine(s.GetString("PE_PRONOMBRE"))
+'
+' 'Else
+'
+' printer.WriteLine(s.GetString("PE_CANT") & " " & s.GetString("PE_PRONOMBRE"))
+' TAMANO = s.GetLong("L_CANT") + TAMANO
+' 'TAMANO = s.GetLong("L_COSTOU") + TAMANO
+' TAMANO = s.GetLong("L_COSTO_TOT") + TAMANO
+'
+' ESPACIO = ESPACIO - TAMANO
+'
+' For E=0 To ESPACIO -1
+' BLANCO = " " & BLANCO
+' Next
+' printer.WriteLine("$" & s.GETSTRING("PE_COSTO_TOT") )
+' TAMANO = 0
+' ESPACIO = 21
+' BLANCO = " "
+' 'End If
+' Next
+' End If
+' s.Close
+' printer.WriteLine("------------------------------")
+' printer.WriteLine("---NO ES UN COMPROBANTE ------")
+' printer.WriteLine("---------FISCAL---------------")
+' printer.WriteLine("---COMPROBANTE DE ENTREGA-----")
+' printer.WriteLine("------------------------------")
+'
+' printer.Flush
+ ' printer.Close
+
+ c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position=0
+ usuario = c.GetString("USUARIO")
+' DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.TimeFormat="HH:mm:ss"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c.Close
+' c=Starter.skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION =?", Array As String ("SUCURSAL"))
+' c.Position = 0
+' sucursal = c.GetString("CAT_VA_VALOR")
+' c.Close
+
+ ProgressDialogShow("Imprimiendo, un momento ...")
+ Printer1.DisConnect
+ If Not(Printer1.IsConnected) Then
+' Log("Conectando a impresora ...")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada)
+ Sleep(1000)
+' Log("++++++ " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect 'Tratamos de reconectar
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ Else
+' Log("conectando 2")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada) Or Not(Printer1.IsConnected)
+ Sleep(1000)
+' Log("****** " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ End If
+
+ TAMANO = 0
+ ESPACIO = 28
+ BLANCO = " "
+' Dim bmp As Bitmap
+' bmp.InitializeResize(File.DirAssets, "mariana.jpg", 192, 250, True) 'ignore
+' Dim myimage As AnImage = Printer1.ImageToBWIMage(bmp)
+
+' myimage = Printer1.DitherImage2D(myimage, 128)
+'
+' myimage= Printer1.PackImage(myimage)
+' Printer1.WriteString(CRLF) ' nudge the Printer1 to show the user something is happening
+' Printer1.WriteString(Printer1.REVERSE)
+'
+' Printer1.PrintImage(myimage)
+' Printer1.WriteString(Printer1.UNREVERSE)
+
+' Printer1.Justify = 1
+ 'Printer1.Initialize(cmp20.OutputStream)
+' Printer1.WriteString("DISTRIBUIDORA ROCHA TULA PACHUCA" & CRLF)
+ Printer1.WriteString("Izca Distribuciones" & CRLF)
+' Printer1.WriteString(sucursal & CRLF)
+ Printer1.WriteString(sDate & CRLF)
+ Printer1.WriteString(sTime & CRLF)
+ Printer1.WriteString("Vendedor:" & usuario & CRLF)
+ Printer1.WriteString("Tienda: " & La_nombre.Text & CRLF)
+ Printer1.WriteString("ID.Cliente: " & la_cuenta.Text & CRLF)
+ Printer1.WriteString("Calle: " & la_Calle.Text & CRLF)
+ Printer1.WriteString("Colonia: " & la_col.Text & CRLF)
+' Printer1.WriteString("C.P.: " & la_cp.Text & CRLF)
+' Printer1.WriteString("Entre calle1: " & l_entre1.Text & CRLF)
+' Printer1.WriteString("Entre Calle2: " & l_entre2.Text & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ c = Starter.skmt.ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ If c.RowCount > 0 Then
+ Printer1.WriteString("------------ENTREGA-----------" & CRLF)
+
+' Printer1.WriteString("--------------------------------" & CRLF)
+ Printer1.WriteString("Cant. Precio Importe" & CRLF)
+
+ Printer1.WriteString("------------------------------" & CRLF)
+ ' aqui es donde esta el pedo de julieta de los descuentos quitar el precio2 pero meter un if para saber si es ruta especial o es normal o que show.
+ s=Starter.skmt.ExecQuery($"select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PROID"$)
+ If S.RowCount>0 Then
+ For i=0 To S.RowCount -1
+ S.Position=i
+ Log(s.GetString("HVD_RECHAZO"))
+ If s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT") > 0 Then
+
+
+ If s.GetString("HVD_CODPROMO") = Subs.traeAlmacen Then
+
+ Printer1.Justify = 0
+ Printer1.WriteString(s.GetString("HVD_PRONOMBRE") & CRLF)
+
+
+ Dim punit As String = NumberFormat2((s.GETSTRING("HVD_COSTO_TOT")/s.GetString("HVD_CANT")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+
+' Private ptot As String = NumberFormat2((punit*s.GetString("HVD_CANT")),0,2,2,False)
+ Private ptot As String = NumberFormat2(( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT")) * punit ),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+' Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT"))& BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString( ptot & CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+
+ Else If s.GetString("HVD_RECHAZO") = 1 Then
+
+ Printer1.Justify = 0
+ Printer1.WriteString(s.GetString("HVD_PRONOMBRE") & CRLF)
+
+ Private vc5 As Cursor = Starter.skmt.ExecQuery($"select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${s.GetString("HVD_PROID")}'"$)
+ vc5.Position = 0
+ Dim punit As String = NumberFormat2((vc5.GetString("CAT_GP_PRECIO")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+ vc5.Close
+
+ Private ptot As String = NumberFormat2(( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT")) * punit ),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+' Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT"))& BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString(ptot& CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+ Printer1.Justify = 0
+ End If
+ End If
+ Next
+ End If
+ End If
+ Printer1.Justify = 0
+ s.Close
+ Printer1.WriteString(" " & CRLF)
+ s=Starter.skmt.ExecQuery($"select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '${Subs.traeAlmacen}' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID"$)
+
+ If S.RowCount>0 Then
+ Printer1.WriteString("-------PROMOS ENTREGA--------" & CRLF)
+ Printer1.WriteString("Cant. Precio Importe" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+
+ For i=0 To S.RowCount -1
+ S.Position=i
+ If s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT") > 0 Then
+
+
+ If s.GetString("HVD_CODPROMO") <> Subs.traeAlmacen Then
+
+ Printer1.Justify = 0
+ If s.GetString("HVD_CODPROMO") = s.GetString("HVD_PROID") Then
+ Printer1.WriteString("* "&s.GetString("HVD_PRONOMBRE") & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Else
+ Printer1.WriteString(s.GetString("HVD_PRONOMBRE") & CRLF)
+
+ Dim punit As String =NumberFormat2((s.GETSTRING("HVD_COSTO_TOT")/s.GetString("HVD_CANT")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+
+
+ Private ptot As String = NumberFormat2((punit*s.GetString("HVD_CANT")),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+ Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( (s.GetString("HVD_CANT") - s.GetString("HVD_RECHAZOCANT"))& BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString(ptot & CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+ Printer1.Justify = 0
+ End If
+
+
+
+ Else
+
+ End If
+ End If
+ Next
+ End If
+
+ Printer1.WriteString(" " & CRLF)
+ s=Starter.skmt.ExecQuery($"select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID"$)
+
+ If S.RowCount>0 Then
+ Printer1.WriteString("-----------VENTA------------" & CRLF)
+ Printer1.WriteString("Cant. Precio Importe" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+
+ For i=0 To S.RowCount -1
+ S.Position=i
+
+ Printer1.Justify = 0
+ Printer1.WriteString(s.GetString("PE_PRONOMBRE") & CRLF)
+
+
+ Dim punit As String =NumberFormat2( (s.GETSTRING("PE_COSTO_TOT")/s.GetString("PE_CANT")),0,2,2,False)
+ TAMANO = punit.Length + TAMANO
+
+ Private ptot As String = NumberFormat2((punit*s.GetString("PE_CANT")),0,2,2,False)
+ TAMANO = ptot.Length + TAMANO
+
+
+ ESPACIO = (ESPACIO - TAMANO)/2
+ Log(ESPACIO)
+ For E=0 To ESPACIO -1
+ BLANCO = " " & BLANCO
+ Next
+ Printer1.Justify = 0
+ Printer1.WriteString( s.GetString("PE_CANT") & BLANCO)
+ Printer1.Justify = 1
+ Printer1.WriteString( punit & BLANCO)
+ Printer1.Justify = 2
+ Printer1.WriteString(ptot & CRLF )
+ TAMANO = 0
+ ESPACIO = 29
+ BLANCO = " "
+ Printer1.Justify = 0
+
+ Next
+ End If
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+
+
+ Printer1.WriteString("Total Articulos: " & L_CANT.Text & CRLF)
+ Printer1.WriteString("Total: $" & l_total.Text)
+
+
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+' Printer1.WriteString("ENTREGA EN :" & CRLF)
+' Printer1.WriteString(la_Calle.Text & CRLF)
+ Printer1.WriteString("----ESTE TICKET NO ES UN -----" & CRLF)
+ Printer1.WriteString("--COMPROBANTE FISCAL, SOLO ES-" & CRLF)
+ Printer1.WriteString("--------INFORMATIVO-----------" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Sleep(1000)
+ Printer1.DisConnect
+
+ ProgressDialogHide
+
+ If banderaimp = 1 Then
+ Msgbox2Async("Deseas imprimir de nuevo el ticket?", "ATENCION","SI","", "NO",LoadBitmap(File.DirAssets,"alert2.png"), False)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+ B_IMP_Click
+ Else
+' Guardado
+ End If
+
+' printer.Flush
+ ' printer.Close
+ Else If banderaimp = 0 Then
+ Msgbox2Async("Deseas imprimir de nuevo el ticket?", "ATENCION","SI","", "NO",LoadBitmap(File.DirAssets,"alert2.png"), False)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+ B_IMP_Click
+ End If
+ End If
+
+' Guardado
+End Sub
\ No newline at end of file
diff --git a/B4A/C_Clientes.bas b/B4A/C_Clientes.bas
new file mode 100644
index 0000000..0a17395
--- /dev/null
+++ b/B4A/C_Clientes.bas
@@ -0,0 +1,687 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim q_buscar As String
+' Dim skmt As SQL
+ Dim entro As String
+ Dim c As Cursor
+ Dim c2 As Cursor
+ Dim ListView1 As ListView
+' Dim gest As Button
+ Dim lfila As Label
+ Dim busca As EditText
+ Private p_colonia As Panel
+' Dim distList As List
+' Dim distMap As Map
+ Dim laRuta As String
+ Private b_GetDirs As Button
+ Private distOrderedMap, clientesMapaO As B4XOrderedMap
+ Private img_getDirs As ImageView
+ Private l_rutaInfo As Label
+ Private b_getRutaInfo As Button
+ Private conMapa As Boolean = False
+ Dim listaWayPoints As List
+ Dim lv1Top As String
+ Private b_limpiarRuta As Button
+ Dim rutaGenerada As Boolean = False
+ Dim rutaacambiar As String
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ Root.LoadLayout("clientes")
+ entro ="2"
+ lv1Top = ListView1.Top
+ clientesMapaO.Initialize
+ Starter.skmt.ExecNonQuery("delete from waypoints")
+ Log("Coordenadas del almacen: " & Starter.cedisLocation.Longitude & "," & Starter.cedisLocation.Latitude)
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ busca.Text = ""
+ b_GetDirs.Visible = False
+' skmt.Initialize(Starter.ruta,"kmt.db", True)
+ entro ="2"
+ ' esto es para rutas se quito por colonia
+ 'SE COMENTA EL SIGUIENTE CODIGO PARA QUE TODAS LAS TIENDAS APAREZCAN.
+ 'c=skmt.ExecQuery("select CAT_CL_COLONIA, count(*) as cuantos from kmt_info where gestion = 0 group by CAT_CL_COLONIA order by CAT_CL_COLONIA asc")
+ p_colonia.Width = Root.Width
+ p_colonia.Height = Root.Height
+ p_colonia.Top = 0
+ p_colonia.Left = 0
+ Subs.centraListView(ListView1, p_colonia.Width)
+ ListView1.Height = p_colonia.Height * 0.75
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ If Not(l_rutaInfo.Visible) Then
+ ListView1.Top = lv1Top
+ Else
+ ListView1.Top = lv1Top + 100
+ End If
+ c=Starter.skmt.ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice")
+ If c.RowCount > 0 Then 'Ya hay waypoints en la base de datos
+ c.Position = 0
+' Log("Ya hay waypoints.")
+ conMapa = True
+' Private t1 As Map
+ ListView1.Clear
+ Dim cs, cs2 As CSBuilder
+ entro = 3
+' Log("Generamos ListView1 en Activity_Resume")
+ For i=0 To c.RowCount -1 'Generamos el listView con la lista ordenada.
+ c.Position=i
+ cs.Initialize
+ cs2.Initialize
+' t1 = Starter.waypointsOrdered.Get(k)
+' c.GetString("codigo")
+' Log(c.GetString("indice"))
+ ListView1.AddTwoLines(cs.Color(Colors.RGB(100,149,237)).Append(c.GetString("codigo")).PopAll, cs2.append(c.GetString("CAT_CL_NOMBRE")).Color(Colors.RGB(100,149,237)).Append(" Calle: ").Pop.Append(c.GetString("CAT_CL_CALLE").Trim & " " & c.GetString("CAT_CL_NOEXT")).PopAll )
+ Next
+ Else
+ generaListViewRutas
+ End If
+ c.Close
+ p_colonia.Width = Root.Width
+ p_colonia.Height = Root.Height
+ Subs.centraEtiqueta(l_rutaInfo, Root.Width)
+ Subs.centraListView(ListView1, p_colonia.Width)
+ ListView1.Height = p_colonia.Height * 0.70
+ Subs.centraEtiqueta(lfila, Root.Width)
+ b_getRutaInfo.Visible = True
+ b_getRutaInfo.BringToFront
+ If Starter.cedisLocation.Latitude = "0" Then
+ Private x As Cursor = Starter.skmt.ExecQuery("select * from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'COORDS_ALMACEN'")
+ If x.RowCount > 0 Then
+ x.Position = 0
+ Private y() As String
+ Starter.cedisLocation.Latitude = Regex.Split(",", x.GetString("CAT_VA_VALOR"))(1)
+ Starter.cedisLocation.Longitude = Regex.Split(",", x.GetString("CAT_VA_VALOR"))(0)
+ End If
+ End If
+ Log(Starter.cedisLocation)
+End Sub
+
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ 'Return True to close, False to cancel
+ Log(entro)
+ If rutaGenerada Or entro = 3 Then ' Si ya generamos el ruteo o entramos a una de las rutas, nos regresamos!
+ b_limpiarRuta_Click
+ l_rutaInfo.Text = ""
+ rutaGenerada = False
+ else if entro = 2 Then ' Si estamos mostrando las rutas, nos regresamos a la principal.
+ B4XPages.ShowPage("Principal")
+ End If
+ Return False
+End Sub
+
+Sub ListView1_ItemClick (Position As Int, Value As Object)
+' Log($"Entro= ${entro}"$)
+ Log(Value)
+ ListView1.Clear
+ Sleep(50)
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ If Not(l_rutaInfo.Visible) Then
+ ListView1.Top = lv1Top
+ Else
+ ListView1.Top = lv1Top + 100
+ End If
+ l_rutaInfo.Visible = False
+ b_GetDirs.Visible = False
+ If entro = "2" Then
+' b_GetDirs.Visible = True
+' img_getDirs.Visible = True
+' b_getRutaInfo.Visible = False
+ Private lrt As String
+ lrt = Value
+ laRuta = lrt.SubString(6) 'Quitamos el texto "Ruta: " para obtener el numero de la ruta.
+ Log($"Original: ${Value} - Mod: |${lrt.SubString(6)}| - laRuta: ${laRuta}"$)
+ rutaacambiar = laRuta
+ c2 = Starter.skmt.ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ", Array As String(laRuta))
+ Private thisLoc As Location
+ Private label1 As Label
+ Private label2 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 15
+ label1.TextColor = Colors.black
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 15
+ label2.TextColor = Colors.black
+ label2.Height = 57dip
+ thisLoc.Initialize
+ If entro = 2 Then ListView1.TwoLinesLayout.ItemHeight = 90dip
+ lfila.text = "Nombre y Calle"
+ distOrderedMap.Initialize
+ If c2.RowCount > 0 Then
+ For i = 0 To c2.RowCount -1 'Generamos mapa de clientes
+ c2.Position = i
+ thisLoc.Latitude = c2.GetString("CAT_CL_LAT")
+ thisLoc.Longitude = c2.GetString("CAT_CL_LONG")
+' Log(Tracker.UUGCoords)
+ Private distancia As Int = Tracker.UUGCoords.DistanceTo(thisLoc) 'Calculamos la distancia de la posicion ACTUAL a la tienda.
+ Private esteCliente As Map = CreateMap("distancia": distancia, "ubicacion": thisLoc.Longitude&","&thisLoc.Latitude, "codigo": c2.GetString("CAT_CL_CODIGO"), "nomDirDist": $"${c2.GetString("CAT_CL_NOMBRE")} CALLE: ${c2.GetString("CAT_CL_CALLE")} ${CRLF}Distancia: $1.1{(distancia/1000)} kms"$)
+ distOrderedMap.Put(distancia, esteCliente)
+ Next
+ distOrderedMap.Keys.Sort(True) 'Ordenamos la mapa de clientes por distancia.
+ ListView1.Clear
+ Private m1 As Map
+ For Each k As Object In distOrderedMap.Keys 'Generamos el listView con el mapa ordenada.
+ m1 = distOrderedMap.Get(k)
+ m1.Get("codigo")
+' Log(m1.Get("nomDirDist"))
+ ListView1.AddTwoLines(m1.Get("codigo"), m1.Get("nomDirDist"))
+ Next
+ End If
+ c2.Close
+ entro = "3"
+ Else If entro = "3" Then
+' LogColor("Guardamos CLIENTE " & Value, Colors.red)
+ Starter.skmt.ExecNonQuery("delete from CUENTAA")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object(Value))
+ B4XPages.ShowPage("Cliente")
+ End If
+End Sub
+
+'Genera el listview que muestra las rutas y clientes a visitar por ruta.
+Sub generaListViewRutas
+ ListView1.Clear
+ Sleep(110)
+ lfila.Text = "RUTA PREVENTA"
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 15
+ label1.TextColor = Colors.Black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 15
+ label2.TextColor = Colors.Black
+ ListView1.TwoLinesLayout.ItemHeight = 60dip
+ c=Starter.skmt.ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc")
+ If c.RowCount>0 Then
+ ListView1.Clear
+ For i=0 To c.RowCount -1
+ c.Position=i
+ ListView1.AddTwoLines("Ruta: " & c.GetString("CAT_CL_RUTA"), "Por visitar: " & c.GetString("cuantos"))
+ Next
+ End If
+ c.Close
+End Sub
+
+Sub Activity_KeyPress (key As Int) As Boolean 'ignore
+ ' BACK key pressed
+ If key=KeyCodes.KEYCODE_BACK Then
+ If entro = 3 And Not(conMapa) Then
+ b_GetDirs.Visible = False
+' StartActivity(Activity_Create(False))
+ B4XPage_Created(Root)
+ Return True
+ End If
+ B4XPages.ShowPage("Principal")
+ Return False
+ 'End If
+ End If
+ ' Returning False signals the system to handle the key
+End Sub
+
+Sub BUSCA_TextChanged (Old As String, New As String)
+ q_buscar = "%" & busca.Text & "%"
+ c2=Starter.skmt.ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where CAT_CL_NOMBRE like ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_CODIGO ", Array As String(q_buscar))
+ ListView1.Clear
+ lfila.text = "Nombre y Calle"
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ If c2.RowCount>0 Then
+ For i=0 To c2.RowCount -1
+ c2.Position=i
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 15
+ label1.TextColor = Colors.Black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 15
+ label2.TextColor = Colors.Black
+ ListView1.AddTwoLines(c2.GetString("CAT_CL_CODIGO"), c2.GetString("CAT_CL_NOMBRE") &" CALLE: "& c2.GetString("CAT_CL_CALLE"))
+ Next
+ End If
+ entro = "3"
+ c2.Close
+End Sub
+
+'Regresa la distancia y tiempo de la ruta entre dos puntos, usa el API del projecto OSRM. (Parte de la funcionalidad OSRM)
+'Para mas información ir a esta liga:
+'http://project-osrm.org/docs/v5.24.0/api/?language=cURL#route-service
+Sub distanciaEntreCoords(id As String, coords1 As String, coords2 As String) As ResumableSub 'ignore
+ Sleep(1050)
+ Private distanciaTotal As String = "0"
+ Private tiempo As String = "0"
+ Dim j As HttpJob
+ j.Initialize("", Me)
+ j.Download("https://router.project-osrm.org/route/v1/driving/"&coords1&";"&coords2&"?overview=false")
+ Wait For (j) JobDone(j As HttpJob)
+ If j.Success Then
+ Dim jp As JSONParser
+ jp.Initialize(j.GetString)
+ Dim m As Map = jp.NextObject
+ Log($"Respuesta: ${m.Get("code")}"$)
+ If m.Get("code") = "Ok" Then
+' Log(m)
+ Dim rutas As List = m.Get("routes")
+ Dim rutas2 As Map = rutas.Get(0)
+' Log(rutas2)
+' Dim legs As List = rutas2.Get("legs")
+' Log(legs)
+ distanciaTotal = rutas2.Get("distance")
+ tiempo = rutas2.Get("duration")
+ Log($"Distancia total: ${distanciaTotal}, Tiempo: ${tiempo}"$ )
+ End If
+ Else
+ Log("Error!")
+ End If
+ j.Release
+ Private r As List
+ r.Initialize
+ r.Add(id)
+ r.Add(distanciaTotal)
+ r.Add(tiempo)
+ Return r
+End Sub
+
+'Regresa la distancia y tiempo estimado de la ruta del repartidor, utiliza el API del projecto OSRM
+'para calcular la distancia y tiempo de la ruta de un mapa de coordenadas a visitar dado. (Parte de la funcionalidad OSRM)
+Sub traeRutaDia(aVisitar As B4XOrderedMap)
+ Private coordsInicio As String = $"${Starter.cedisLocation.Longitude},${Starter.cedisLocation.Latitude}"$
+ Log($"Coordenadas de inicio: ${Starter.cedisLocation.Longitude},${Starter.cedisLocation.Latitude}"$)
+ Private rutaCompleta As String = coordsInicio
+ Private preRuta As String = coordsInicio
+ Private distanciaTotal, distanciaTotal0, tiempo0, tiempo As Double
+ Private masDe100 As Boolean
+ Private m4 As Map
+ Private visitaActual As Int = 0
+ Private cuantosAntes As Int = 0
+ listaWayPoints.Initialize
+ If aVisitar.Keys.Size > 98 Then 'Si los clientes a visitar son mas de 100 entonces hacemos 2 rutas, una inicial con pocas visitas (las que pasen de 100) y la final con el resto ...
+ cuantosAntes = aVisitar.Keys.Size - 98 'Definimos de cuantos clientes va a ser la ruta inicial.
+ preRuta = coordsInicio 'Ponemos las coordenadas de inicio (Las del CEDIS).
+ rutaCompleta = ""
+ masDe100 = True
+ End If
+ Log($"a visitar: ${aVisitar.Keys.Size}"$)
+ For Each k As Object In aVisitar.Keys
+ visitaActual = visitaActual + 1
+ m4 = aVisitar.Get(k)
+' Log($"visitaActual: ${visitaActual} - cuantosAntes: ${cuantosAntes}"$)
+ If visitaActual < cuantosAntes + 2 Then 'Si estas coordenadas son de la ruta inicial las agregamos ...
+ preRuta = preRuta & ";" & m4.Get("coords")
+' LogColor($"PreRuta - visitaActual: ${visitaActual} - coords: ${m4.Get("coords")}"$, Colors.Magenta)
+ End If
+ If visitaActual >= cuantosAntes + 2 Then 'Si estas coordenadas son de la ruta final las agregamos ...
+ rutaCompleta = rutaCompleta & ";" & m4.Get("coords")
+' LogColor($"RutaCompleta - visitaActual: ${visitaActual} - coords: ${m4.Get("coords")} - testRuta Size: ${testRutaCompleta.size}"$, Colors.Green)
+ End If
+ Next
+ rutaCompleta = rutaCompleta & ";" & coordsInicio 'Agregamos las coordenadas del CEDIS al final para que sea viaje ida y vuelta.
+' rutaCompleta = rutaCompleta & ";" & coordsInicio
+ If rutaCompleta.StartsWith(";") Then rutaCompleta = rutaCompleta.SubString(1) 'Si las cooredenadas tienen ";" al principio se lo quitamos.
+' LogColor(preRuta, Colors.magenta)
+' LogColor(rutaCompleta, Colors.Green)
+ ProgressDialogShow2("Calculando distancia y tiempo, un momento por favor.", False)
+ Private tiempoVisitas As Double 'TIMEPO DE 4 MINUTOS PROMEDIO POR TIENDA ESTO SE CAMBIA SEGUN EL CLIENTE
+ tiempoVisitas = aVisitar.Keys.Size * 4 * 60 'Aqui se calcula el tiempo que duran las visitas x 4 mins cada una en segundos.
+ tiempo0 = 0
+ distanciaTotal0 = 0
+ If masDe100 Then 'Si son mas de 100, entonces primero calculamos la ruta inicial.
+ Dim j0 As HttpJob
+ j0.Initialize("trip0", Me)
+ j0.Download("https://router.project-osrm.org/trip/v1/driving/"&preRuta&"?source=first&destination=last&roundtrip=false&geometries=geojson")
+' LogColor("https://router.project-osrm.org/trip/v1/driving/"&preRuta&"?source=first&destination=last&roundtrip=false&geometries=geojson", Colors.Magenta)
+ Wait For (j0) JobDone(j0 As HttpJob)
+ If j0.Success Then
+ Dim jp0 As JSONParser
+ jp0.Initialize(j0.GetString)
+ Dim m0 As Map = jp0.NextObject
+ If m0.Get("code") = "Ok" Then
+ Dim puntos0 As List = m0.Get("waypoints")
+ Private esteWayPoint0 As Map
+ For p = 0 To puntos0.Size -1
+ esteWayPoint0 = puntos0.Get(p)
+' LogColor("WP:" & esteWayPoint0, Colors.magenta)
+' LogColor("WP: " & esteWayPoint0.Get("waypoint_index") & ", loc: " & esteWayPoint0.Get("location") & ", name: " & esteWayPoint0.Get("name"), Colors.Magenta)
+ esteWayPoint0.Remove("hint")
+ esteWayPoint0.Remove("distance")
+ esteWayPoint0.Remove("trips_index")
+ listaWayPoints.Add(esteWayPoint0)
+' LogColor("estewaypoint: "&esteWayPoint0, Colors.Magenta)
+ Next
+ Dim rutas0 As List = m0.Get("trips")
+ Dim rutas20 As Map = rutas0.Get(0)
+' Dim geometry0 As Map = rutas20.Get("geometry")
+' Private coords0 As List = geometry0.Get("coordinates")
+ distanciaTotal0 = rutas20.Get("distance")
+ tiempo0 = rutas20.Get("duration")
+ tiempo0 = ((tiempo0 * 2) ) 'Tiempo X 2 (es muy corto porque no toma encuenta el trafico).
+ Log($"Distancia total ruta inicial: $1.1{distanciaTotal0/1000} kms, tiempo aprox: $1.1{tiempo0/60} mins. ($1.1{tiempo0/60/60} hrs)"$)
+' l_rutaInfo.Text = $"Distancia total: $1.1{distanciaTotal0/1000} kms, tiempo aprox: $1.1{tiempo0/60/60} hrs"$
+ End If
+ Else
+ Log("Error!")
+ End If
+ j0.Release
+ End If
+
+ Dim j As HttpJob
+ j.Initialize("trip", Me) 'Calculamos el resto de la ruta.
+ j.Download("https://router.project-osrm.org/trip/v1/driving/"&rutaCompleta&"?source=first&destination=last&roundtrip=false&geometries=geojson")
+' LogColor("https://router.project-osrm.org/trip/v1/driving/"&rutaCompleta&"?source=first&destination=last&roundtrip=false&geometries=geojson", Colors.Green)
+ Wait For (j) JobDone(j As HttpJob)
+ If j.Success Then
+ Dim jp As JSONParser
+ jp.Initialize(j.GetString)
+ Dim m As Map = jp.NextObject
+ If m.Get("code") = "Ok" Then
+ Dim puntos As List = m.Get("waypoints")
+ Private esteWayPoint As Map
+ Dim twpi As Int
+ For p = 0 To puntos.Size -1
+ esteWayPoint = puntos.Get(p)
+' LogColor("WP:" & esteWayPoint, Colors.green)
+' LogColor("WP: " & esteWayPoint.Get("waypoint_index") & ", loc: " & esteWayPoint.Get("location") & ", name: " & esteWayPoint.Get("name"), Colors.Green)
+ esteWayPoint.Remove("hint")
+ esteWayPoint.Remove("distance")
+ esteWayPoint.Remove("trips_index")
+ twpi = esteWayPoint.Get("waypoint_index")
+ esteWayPoint.Remove("waypoint_index")
+ esteWayPoint.Put("waypoint_index", (twpi + cuantosAntes + 2))
+ listaWayPoints.Add(esteWayPoint)
+' LogColor("estewaypoint: "&esteWayPoint, Colors.Green)
+ Next
+ Dim rutas As List = m.Get("trips")
+ Dim rutas2 As Map = rutas.Get(0)
+ distanciaTotal = rutas2.Get("distance")
+ Log("distancia ruta 2:" & (distanciaTotal) & "|" & rutas2.Get("distance"))
+ distanciaTotal = distanciaTotal + distanciaTotal0
+ tiempo = rutas2.Get("duration")
+ tiempo = (((tiempo + tiempo0) * 2) + tiempoVisitas) 'Tiempo X 2 (es muy corto porque no toma encuenta el trafico) + tiempoVisitas.
+ Log($"Distancia total: $1.1{distanciaTotal/1000} kms, tiempo aprox: $1.1{tiempo/60} mins. ($1.1{tiempo/60/60} hrs)"$)
+ l_rutaInfo.Text = $"Distancia: $1.1{distanciaTotal/1000} kms, tiempo aprox: $1.1{tiempo/60/60} hrs${CRLF}Visitas restantes: ${aVisitar.Keys.Size}"$
+ l_rutaInfo.Width = Root.Width * 0.9
+ Subs.centraEtiqueta(l_rutaInfo, Root.Width)
+ l_rutaInfo.Visible = True
+ l_rutaInfo.BringToFront
+ ListView1.Top = lv1Top + 100
+ End If
+ Else
+ LogColor("**************** Error! ******************", Colors.red)
+ End If
+ j.Release
+ ProgressDialogHide
+' LogColor("clientesMapaO size: " & clientesMapaO.Size & "|" & listaWayPoints.Size, Colors.Blue)
+ Private r As Int = 1
+ Private r1, wps As Map
+ Starter.skmt.ExecNonQuery("delete from waypoints")
+ Log("BORRAMOS WAYPOINTS")
+ For Each k As Object In clientesMapaO.Keys 'Guardamos en la BD el orden de los waypoints para luego generar el listview.
+ If listaWayPoints.Size > 0 Then
+ r1 = clientesMapaO.Get(k)
+ r1.Get("codigo")
+ Log(listaWayPoints.Get(r) & "|" & r1.Get("coords") & "|" & r1.Get("calle"))
+ wps = listaWayPoints.Get(r)
+ Starter.skmt.ExecNonQuery($"update kmt_info set SECUENCIA = ${wps.get("waypoint_index")} where CAT_CL_CODIGO = '${r1.Get("codigo")}'"$)
+ Starter.skmt.ExecNonQuery2("insert into waypoints values (?,?)", Array As Object(r1.Get("codigo"), wps.get("waypoint_index")))
+ r = r + 1
+ End If
+ Next
+ ListView1.Clear
+ Sleep(100)
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 15
+ label2.Height = 100dip
+ ListView1.TwoLinesLayout.ItemHeight = 70dip
+ Dim cs, cs2 As CSBuilder
+ entro = 3
+ Log("Generamos ListView1 en traeRutaDia")
+ 'Traemos las visitas restantes ordenadas por el indice de waypoints (este indice nos indica el orden en la ruta calculada).
+ c=Starter.skmt.ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice")
+ If c.RowCount > 0 Then
+ For i=0 To c.RowCount -1 'Generamos el listView con la lista ordenada.
+ c.Position=i
+ cs.Initialize
+ cs2.Initialize
+ ListView1.AddTwoLines(cs.Color(Colors.RGB(100,149,237)).Append(c.GetString("codigo")).PopAll, cs2.append(c.GetString("CAT_CL_NOMBRE")).Color(Colors.RGB(100,149,237)).Append(" Calle: ").Pop.Append(c.GetString("CAT_CL_CALLE").Trim & " " & c.GetString("CAT_CL_NOEXT")).PopAll )
+ Next
+ End If
+ c.Close
+End Sub
+
+'Calcula distancia y tiempo de la ubicacion ACTUAL a las 8 primeras tiendas de la lista usando el API de OSRM. (Parte de la funcionalidad OSRM)
+Private Sub b_GetDirs_Click
+ ProgressDialogShow("Calculando distancias y tiempos ...")
+ Private m2 As Map
+ Private f As Int = 0
+ For Each k As Object In distOrderedMap.Keys 'Traemos la distancia y tiempo desde OSRM (2 puntos)
+ m2 = distOrderedMap.Get(k)
+ Private distancia2 As String = m2.Get("distancia")
+ Private thisLoc1 As String = m2.Get("ubicacion")
+ Private locActual As String = Tracker.UUGCoords.Longitude&","&Tracker.UUGCoords.Latitude
+ If locActual = "0,0" Then 'Si no tenemos ubicacion actual de GPS, buscamos la ultima guardada en la base de datos.
+ c = Starter.skmt.ExecQuery("select * from hist_gps")
+ If c.RowCount > 0 Then
+ c.Position = 0
+ locActual = c.GetString("hglon") & "," & c.GetString("hglat")
+ End If
+ c.Close
+ End If
+ f = f+1
+ If f < 8 Then
+ If locActual = "0,0" Then 'Si todavia no tenemos ubicacion actual, entonces avisamos.
+ ToastMessageShow("No se pudo obtener la ubicacion actual!!", True)
+ f = 8
+ End If
+ Log($"locActual: ${locActual}, thisLoc1: ${thisLoc1}"$)
+ Wait For(distanciaEntreCoords(distancia2, locActual, thisLoc1)) Complete (r As List)
+ LogColor($"R: ${r.Get(0)} - ${r.Get(1)} - ${r.Get(2)}"$, Colors.Green)
+ Private tId As Int = r.Get(0)
+ Private tMap As Map = distOrderedMap.Get(tId)
+ LogColor("|" & tId & "| - " &distOrderedMap.Get(tId), Colors.Blue)
+ Private tempNDD As String = tMap.Get("nomDirDist")
+ Private indexD As Int = tempNDD.IndexOf("Distancia:")
+ If indexD > -1 Then tempNDD = tempNDD.SubString2(0, indexD)
+ Log(tempNDD)
+ tempNDD = tempNDD & $"Dist: $1.1{(r.Get(1)/1000)} kms, Tiempo aprox: $1.0{((r.Get(2)*2)/60)} min."$ 'Multiplicamos el tiempo X 2 porque el tiempo estimado siempre es muy corto, X2 es mucho mas real con trafico.
+ Private esteCliente As Map = CreateMap("distancia": distancia2, "ubicacion": tMap.Get("ubicacion"), "codigo": tMap.Get("codigo"), "nomDirDist": tempNDD)
+ distOrderedMap.Put(tId, esteCliente)
+ ListView1.Clear
+ Private m3 As Map
+ For Each k As Object In distOrderedMap.Keys 'Generamos el listView con la lista ordenada.
+ m3 = distOrderedMap.Get(k)
+ m3.Get("codigo")
+ ListView1.AddTwoLines(m3.Get("codigo"), m3.Get("nomDirDist"))
+ Next
+ End If
+ Next
+ ProgressDialogHide
+End Sub
+
+'Regresa un mapa (B4XOrderedMap) con todos los clientes que tiene que visitar el repartidor. (Parte de la funcionalidad OSRM)
+Sub traeTodosAVisitar As B4XOrderedMap 'ignore
+ Log("Iniciamos traeTodosAVisitar")
+' If Starter.waypointsOrdered.isInitialized Then Log(Starter.waypointsOrdered.Size)
+' Private rutaCompleta As String = ""
+ Private thisLoc, ubicacionInicial As Location
+ ubicacionInicial = Starter.cedisLocation
+ LogColor(ubicacionInicial, Colors.Gray)
+ c=Starter.skmt.ExecQuery("select sum(gestion) as hayVisitados from kmt_info")
+ If c.RowCount > 0 Then
+ c.Position = 0
+' Log(c.GetString("hayVisitados"))
+ If c.GetString("hayVisitados") > 0 Then ubicacionInicial = Tracker.UUGCoords 'Si ya hay clientes visitados, entonces ya no estamos en el CEDIS y la ubicacion inicial debe de ser la ACTUAL.
+ End If
+ c.Close
+ LogColor(ubicacionInicial, Colors.Red)
+ thisLoc.Initialize
+ clientesMapaO.Clear
+ 'Traemos las rutas asignadas al repartidor.
+ c=Starter.skmt.ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc")
+ If c.RowCount>0 Then
+ 'Traemos los clientes de cada ruta.
+ For i=0 To c.RowCount -1
+ c.Position=i
+' Log($"Renglones ruta: ${c.RowCount} - i=${i} - Ruta: ${c.GetString("CAT_CL_RUTA")}"$)
+ c2=Starter.skmt.ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ", Array As String(c.GetString("CAT_CL_RUTA")))
+ If c2.RowCount>0 Then
+ For j=0 To c2.RowCount -1 'Generamos lista de clientes
+ c2.Position=j
+' Log($"Renglones clientes: ${c2.RowCount} - j=${j} - Ruta: ${c2.GetString("CAT_CL_CODIGO")}"$)
+ thisLoc.Latitude = c2.GetString("CAT_CL_LAT")
+ thisLoc.Longitude = c2.GetString("CAT_CL_LONG")
+ If Not(thisLoc.Latitude = 0.0) And Not(thisLoc.Latitude = 0) Then 'Este IF es para que si las coordenadas no son válidas, entonces no las agregue al mapeo, porque el API de OSRM nos manda error.
+ Private distancia As Int = ubicacionInicial.DistanceTo(thisLoc) 'Calculamos la distancia del cedis a la tienda.
+ If clientesMapaO.ContainsKey(distancia) Then distancia = distancia + 1 'Si por alguna extraña razon hay dos tiendas a la misma distancia del CEDIS, le sumamos 1 para que sea diferente.
+ Private esteCliente As Map = CreateMap("distancia": distancia, "ordenDist": j, "coords": c2.GetString("CAT_CL_LONG")&","&c2.GetString("CAT_CL_LAT"), "codigo": c2.GetString("CAT_CL_CODIGO"), "nombre": c2.GetString("CAT_CL_NOMBRE"), "calle": c2.GetString("CAT_CL_CALLE"))
+ clientesMapaO.Put(distancia, esteCliente)
+ Else
+ ToastMessageShow("Hay tiendas SIN coordenadas, fueron excluidas!!", False)
+ End If
+' Log($"${thisLoc}"$)
+' rutaCompleta = rutaCompleta & ";" & c2.GetString("CAT_CL_LONG")&","&c2.GetString("CAT_CL_LAT")
+ Next
+ End If
+ Next
+ End If
+ clientesMapaO.Keys.Sort(True) 'Ordenamos la lista de clientes por distancia.
+ c.Close
+ c2.Close
+ Log(c.RowCount & " rutas, " & clientesMapaO.Size & " clientes")
+' LogColor(rutaCompleta, Colors.Magenta)
+' Log(clientesMapaO)
+ Return clientesMapaO
+End Sub
+
+'Traemos la ruta de visitas via el API de OSRM usando el sub "traeRutaDia(traeTodosAVisitar)".
+Private Sub b_getRutaInfo_Click
+' traeRutaDia(traeTodosAVisitar)
+ caculaRutaGPS(todosAVisitar)
+End Sub
+
+'Mostramos u ocultamos el boton para borrar los waypoints de la ruta.
+Private Sub b_getRutaInfo_LongClick
+ If b_limpiarRuta.Visible Then
+ b_limpiarRuta.Visible = False
+ Else
+ b_limpiarRuta.Visible = True
+ End If
+End Sub
+
+'Borramos los waypoints de la ruta.
+Private Sub b_limpiarRuta_Click
+ Starter.skmt.ExecNonQuery("delete from waypoints")
+ b_limpiarRuta.Visible = False
+ B4XPage_Appear
+End Sub
+
+Sub caculaRutaGPS(coords As List)
+ Private tmpList As List
+ Dim cs, cs2 As CSBuilder
+ tmpList.Initialize
+ tmpList.AddAll(Array As String("ACTUAL", Tracker.UUGCoords.Longitude, Tracker.UUGCoords.Latitude))
+ coords.InsertAt(0,tmpList)
+ Log("=================================")
+' Log(coords)
+ Private coordsStr As String = ""
+ For Each tienda As List In coords
+' Log(tienda)
+ If coordsStr = "" Then
+ coordsStr = $"${tienda.get(0)},${tienda.get(1)},${tienda.get(2)}"$
+ Else
+ coordsStr = $"${coordsStr};${tienda.get(0)},${tienda.get(1)},${tienda.get(2)}"$
+ End If
+ Next
+ Log(coordsStr)
+ ProgressDialogShow2("Calculando distancia y tiempo, un momento por favor.", False)
+ Dim j As HttpJob
+ j.Initialize("trip", Me) 'Calculamos el resto de la ruta.
+ j.Download($"http://keymon.net:9002/ruteador?m=OSRM&r=${Subs.traeRutaReparto}&a=${Subs.traeAlmacen}&f=CEDIS,${Starter.cedisLocation.Longitude},${Starter.cedisLocation.Latitude}&c=${coordsStr}"$)
+ Log($"http://keymon.net:9002/ruteador?m=OSRM&r=${Subs.traeRutaReparto}&a=${Subs.traeAlmacen}&f=CEDIS,${Starter.cedisLocation.Longitude},${Starter.cedisLocation.Latitude}&c=${coordsStr}"$)
+ Wait For (j) JobDone(j As HttpJob)
+ If j.Success Then
+ Dim jp As JSONParser
+ jp.Initialize(j.GetString)
+ Dim m As Map = jp.NextObject
+ Log(m)
+ If m.Get("code") = "OK" Then
+ Log("===== OK")
+ rutaGenerada = True
+ Dim puntos As Int = m.Get("puntos")
+ Private coords As List = m.Get("coords")
+ Private duration As String = m.Get("duration")
+ Private distance As String = m.Get("distance")
+ Private mensaje As String = m.Get("mensaje")
+ Starter.skmt.ExecNonQuery("delete from waypoints")
+ Starter.skmt.ExecNonQuery("update kmt_info set SECUENCIA = 0")
+ For i = 0 To coords.Size - 1
+ Private ti As Map = coords.Get(i)
+ Starter.skmt.ExecNonQuery($"update kmt_info set SECUENCIA = ${ti.Get("pos")} where CAT_CL_CODIGO = '${ti.Get("id").As(String).SubString(1)}'"$) ' Ponemos la secuencia con el orden del ruteo para poder verla en el mapa.
+ Starter.skmt.ExecNonQuery($"insert into waypoints (codigo, indice) values ('${ti.Get("id").As(String).SubString(1)}', '${ti.Get("pos")}')"$)
+ Next
+ c = Starter.skmt.ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice")
+ If c.RowCount > 0 Then 'Ya hay waypoints en la base de datos.
+ c.Position = 0
+ conMapa = True
+ ListView1.Clear
+ Dim cs, cs2 As CSBuilder
+ entro = 3
+ For i=0 To c.RowCount -1 'Generamos el listView con la lista ordenada.
+ c.Position = i
+ cs.Initialize
+ cs2.Initialize
+ ListView1.AddTwoLines(cs.Color(Colors.RGB(100,149,237)).Append(c.GetString("codigo")).PopAll, cs2.append(c.GetString("CAT_CL_NOMBRE")).Color(Colors.RGB(100,149,237)).Append(" Calle: ").Pop.Append(c.GetString("CAT_CL_CALLE").Trim & " " & c.GetString("CAT_CL_NOEXT")).PopAll )
+ Next
+ End If
+ c.Close
+ Log($"Distancia total: $1.1{distance/1000} kms, tiempo aprox: $1.1{duration/60} mins. ($1.1{duration/60/60} hrs)"$)
+ l_rutaInfo.Text = $"Distancia: $1.1{distance/1000} kms, tiempo aprox: $1.1{duration/60/60} hrs${CRLF}Visitas restantes: ${puntos - 1}"$
+ l_rutaInfo.Width = Root.Width * 0.9
+ Subs.centraEtiqueta(l_rutaInfo, Root.Width)
+ l_rutaInfo.Visible = True
+ l_rutaInfo.BringToFront
+ ListView1.Top = lv1Top + 100
+ End If
+ Else
+ LogColor("**************** Error! ******************", Colors.red)
+ End If
+ j.Release
+ ProgressDialogHide
+End Sub
+
+'Regresa lista de los clientes a visitar y sus coordenadas, iniciando con el cedis.
+Sub todosAVisitar As List
+ Log(laRuta)
+ Log(entro)
+ Private sqlDeRuta As String = ""
+ If entro = 3 Then sqlDeRuta = $"and CAT_CL_RUTA = '${laRuta}'"$
+ Private aVisitar, tmpList As List
+ aVisitar.Initialize
+ Private coords As ResultSet = Starter.skmt.ExecQuery($"select CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 ${sqlDeRuta}"$)
+ Do While coords.NextRow
+ tmpList.Initialize
+ tmpList.AddAll(Array As String(coords.GetString("CAT_CL_CODIGO"), coords.GetString("CAT_CL_LONG"), coords.GetString("CAT_CL_LAT")))
+ aVisitar.Add(tmpList)
+ Loop
+ Log(aVisitar)
+ Return aVisitar
+End Sub
diff --git a/B4A/C_DetalleVenta.bas b/B4A/C_DetalleVenta.bas
new file mode 100644
index 0000000..fe31516
--- /dev/null
+++ b/B4A/C_DetalleVenta.bas
@@ -0,0 +1,1073 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=11.5
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim g As GPS
+ Dim clie_id As String
+ Dim sDate,sTime As String
+ Dim usuario As String
+ Dim c As Cursor
+' Dim ruta As String
+ Dim b_regresar As Button
+ Dim ListView1 As ListView
+ Dim L_CANT As Label
+ Dim L_TOTAL As Label
+ Dim b_borra As Button
+ Dim Existe As String
+ Dim result As String
+ ' Dim lat_gps, lon_gps As String
+ Dim cuantos As String
+ Dim nombre_prod As String
+ Dim cuantos_pedido As String
+ Private Titulo As Label
+ Private P1 As Panel
+ Private lv2 As ListView
+ Private p_principal As Panel
+ Dim clv_pedido As CustomListView
+ Private p_prods As Panel
+ Private l_prodX As Label
+ Private l_pCant As Label
+ Private et_pCant As EditText
+ Dim bmp As Bitmap
+ Dim etCantHasFocus As Boolean = False
+ Dim totalProds As Int = 0
+ Dim totalCompra As Int = 0
+ Dim prodsMap As Map
+ Dim reconstruirPedido As Boolean = False
+ Dim promoABorrar As String
+ Private b_guardar As Button
+ Private b_prodMas As Button
+ Private b_prodMenos As Button
+ Private b_prodMenosC As Button
+ Private l_pCantC As Label
+ Private et_pCantC As EditText
+ Private b_prodMasC As Button
+ Private p_botMasMenC As Panel
+ Private p_botMasMen As Panel
+ Private l_cajas As Label
+ Private l_piezas As Label
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ B4XPages.SetTitle(Me, "Detalle de venta")
+ 'load the layout to Root
+ g.Initialize("GPS")
+ Root.LoadLayout("detalleVenta")
+ b_borra.Visible = False
+ Titulo.Text = "Pedido"
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ Subs.centraPanel(p_principal, Root.Width)
+' b_guardar.Visible = False
+
+' Titulo.Left = Round(p_principal.Width/2)-(Titulo.Width/2)
+ L_CANT.Text =""
+ L_TOTAL.Text=""
+ c=Starter.skmt.ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")
+ C.Position=0
+ Existe = C.GetString("EXISTE")
+ C.Close
+' c=Starter.skmt.ExecQuery("select distinct hist_ventas.hvd_num_registro, HIST_VENTAS.HVD_CLIENTE, HIST_VENTAS.HVD_PRONOMBRE, HIST_VENTAS.HVD_PROID, HIST_VENTAS.HVD_CANT, HIST_VENTAS2.HVD_CANT as HVD_CANT2, HIST_VENTAS.HVD_COSTO_TOT, HIST_VENTAS.HVD_CODPROMO from HIST_VENTAS inner join HIST_VENTAS2 on HIST_VENTAS.HVD_PROID = HIST_VENTAS2.HVD_PROID and HIST_VENTAS.HVD_CLIENTE = HIST_VENTAS2.HVD_CLIENTE WHERE HIST_VENTAS.HVD_CLIENTE IN (Select CUENTA from cuentaa) and HIST_VENTAS.HVD_RECHAZO = 0 order by HIST_VENTAS.HVD_CODPROMO desc, HIST_VENTAS.HVD_PRONOMBRE asc")
+ c=Starter.skmt.ExecQuery("select hvd_num_registro,CONSECUTIVO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO, BCAJAS, CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_rechazo <> 2 and hvd_cant > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")
+ ListView1.Clear
+ clv_pedido.Clear
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 60dip, Root.Width - 50, Root.Height * 0.62) 'Cambiamos el tamaño y posición de la lista de productos
+ clv_pedido.Base_Resize(clv_pedido.GetBase.Width, clv_pedido.GetBase.Height) 'Cambiamos el tamaño del panel interno de la lista para que ajuste al nuevo tamaño.
+' Log("RC1:"&c.RowCount)
+ If c.RowCount>0 Then
+' Log("Usamos HV")
+
+ For i=0 To c.RowCount -1
+ c.Position=i
+
+ Private c4 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '${c.GetString("HVD_PROID")}' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+ If c4.RowCount > 0 Then
+ c4.Position = 0
+ Private cantres As Int = c4.GetString("PE_CANT")
+ Else
+ cantres = 0
+ End If
+
+ If c.GetString("BCAJAS") = "0" Then
+ If c.GetString("HVD_CANT") <> c.GetString("HVD_RECHAZOCANT") Then
+ 'Traemos cantidad de hvd2
+ Private oc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '${c.GetString("HVD_PROID")}' and HVD_NUM_REGISTRO = '${c.GetString("HVD_NUM_REGISTRO")}'"$)
+ Private cant2 As Int = 0
+ If oc.RowCount > 0 Then
+ oc.Position = 0
+ cant2 = oc.GetString("HVD_CANT")
+ End If
+ oc.Close
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 12
+ label1.TextColor = Colors.black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 12
+ label2.TextColor = Colors.black
+ Private bgColor, textColor As Int
+ bgColor = Colors.RGB(177, 200, 249)'azul
+ textColor = Colors.black
+ If c.GetString("HVD_CODPROMO") <> Subs.traeAlmacen Then
+' bgColor = Colors.RGB(255, 212, 163) 'naranja
+ bgColor = Colors.White
+ End If
+' Log($"Agregamos prod a lista1 | ${c.GetString("HVD_CANT")} - ${c.GetString("HVD_CANT2")}"$) 'HVD_CANT2 es la original de la orden.
+' ListView1.AddTwoLines(c.GetString("HVD_PRONOMBRE"),"Cantidad #"& c.GetString("HVD_CANT")& " SubTotal $"& c.GetString("HVD_COSTO_TOT"))
+ clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), Subs.traePrecio2(c.GetString("HVD_PROID"), c.GetString("HVD_CODPROMO"),c.GetString("CONSECUTIVO")), (c.GetString("HVD_CANT") - c.GetString("HVD_RECHAZOCANT")), c.GetString("HVD_RECHAZOCANT")-cantres , clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),Subs.traeCliente,Subs.traeCliente,0,c.GetString("CONSECUTIVO")),i)
+' Log(c.GetString("HVD_CODPROMO"))
+ End If
+ Else If c.GetString("BCAJAS") = "1" Then
+ If c.GetString("HVD_CANT") <> c.GetString("HVD_RECHAZOCANT") Then
+ 'Traemos cantidad de hvd2
+ Private oc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '${c.GetString("HVD_PROID")}' and HVD_NUM_REGISTRO = '${c.GetString("HVD_NUM_REGISTRO")}'"$)
+ Private cant2 As Int = 0
+ If oc.RowCount > 0 Then
+ oc.Position = 0
+ cant2 = oc.GetString("HVD_CANT")
+ End If
+ oc.Close
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 12
+ label1.TextColor = Colors.black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 12
+ label2.TextColor = Colors.black
+ Private bgColor, textColor As Int
+ bgColor = Colors.RGB(177, 200, 249)'azul
+ textColor = Colors.black
+ If c.GetString("HVD_CODPROMO") <> Subs.traeAlmacen Then
+' bgColor = Colors.RGB(255, 212, 163) 'naranja
+ bgColor = Colors.White
+ End If
+' Log($"Agregamos prod a lista1 | ${c.GetString("HVD_CANT")} - ${c.GetString("HVD_CANT2")}"$) 'HVD_CANT2 es la original de la orden.
+' ListView1.AddTwoLines(c.GetString("HVD_PRONOMBRE"),"Cantidad #"& c.GetString("HVD_CANT")& " SubTotal $"& c.GetString("HVD_COSTO_TOT"))
+ clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), (c.GetString("HVD_COSTO_TOT")/c.GetString("CANTC")), ((c.GetString("HVD_CANT") - c.GetString("HVD_RECHAZOCANT"))), c.GetString("HVD_RECHAZOCANT"), clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),Subs.traeCliente,Subs.traeCliente,0,c.GetString("CONSECUTIVO")),i)
+ End If
+ End If
+ Next
+
+' cuentaProds("")
+ End If
+
+ Private c3 As Cursor=Starter.skmt.ExecQuery("Select * from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")
+ If c3.RowCount>0 Then
+ For i= 0 To c3.RowCount -1
+ c3.Position = i
+ If c3.GetString("PE_BCAJAS") = "1" Then
+ Private bgColor, textColor As Int
+ bgColor = Colors.RGB(221, 132, 132)'rosa
+ textColor = Colors.black
+ clv_pedido.Add(CreateListItem2(c3.GetString("PE_PRONOMBRE"),c3.GetString("PE_COSTOU"), c3.GetString("PE_CANT"), 0 , clv_pedido.AsView.Width, 118dip, bmp, c3.GetString("PE_PROID"), bgColor, textColor, Subs.traeAlmacen,Subs.traeCliente, c3.GetString("PE_CLIENTEOR"),1,c3.GetString("CONSECUTIVO")),i)
+ Log("#####################"&c3.GetString("PE_PRONOMBRE")&","& c3.GetString("PE_CANT"))
+ Else
+ Private bgColor, textColor As Int
+ bgColor = Colors.RGB(221, 132, 132)'rosa
+ textColor = Colors.black
+ Log("#####################"&c3.GetString("PE_PRONOMBRE")&","& c3.GetString("PE_CANT"))
+ clv_pedido.Add(CreateListItem(c3.GetString("PE_PRONOMBRE"),c3.GetString("PE_COSTOU"), c3.GetString("PE_CANT"), 0 , clv_pedido.AsView.Width, 118dip, bmp, c3.GetString("PE_PROID"), bgColor, textColor, Subs.traeAlmacen,Subs.traeCliente, c3.GetString("PE_CLIENTEOR"),1, c3.GetString("CONSECUTIVO")),i)
+ End If
+ Next
+ End If
+
+
+ Private vc As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT,HVD_COSTO_TOT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='${Subs.traealmacen}' and HVD_CLIENTE in (select cuenta from cuentaa)"$)
+
+ Private Cuenta As String = 0
+ Private arti As String = 0
+ If vc.RowCount > 0 Then
+ For i = 0 To vc.RowCount - 1
+ vc.Position = i
+ Private cantres As Int = 0
+ Private c4 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '${vc.GetString("HVD_PROID")}' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"$)
+ If c4.RowCount > 0 Then
+ c4.Position = 0
+ cantres = c4.GetString("PE_CANT")
+ Log(c4.GetString("PE_CANT"))
+ Else
+ cantres = 0
+ End If
+' Log(cantres)
+' Log(cantres)
+' Log(vc.GetString("HVD_CANT")&","&vc.GetString("HVD_RECHAZOCANT"))
+ arti = arti + (vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT"))
+ Cuenta = Cuenta + ((vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT") )*(vc.GetString("HVD_COSTO_TOT")/vc.GetString("HVD_CANT")))
+' Log(arti)
+' Log(Cuenta)
+ Next
+ End If
+' Log(Cuenta)
+
+ Private vc2 As Cursor = Starter.skmt.ExecQuery("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1")
+ Private Cuenta1 As String = 0
+ Private arti1 As String = 0
+ If vc2.RowCount > 0 Then
+ For i = 0 To vc2.RowCount - 1
+ vc2.Position = i
+ Dim preu As Float = NumberFormat2(vc2.GetString("HVD_COSTO_TOT")/vc2.GetString("CANTC"),0,2,2,False)
+ Private vc3 As Cursor = Starter.skmt.ExecQuery($"select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '${vc2.GetString("HVD_PROID")}'"$)
+ If vc3.RowCount > 0 Then
+ vc3.Position = 0
+ Cuenta1 = Cuenta1 + ((vc2.GetString("CANTC")-(vc2.GetString("HVD_RECHAZOCANT")/vc3.GetString("CONVERSION")))*preu)
+ arti1 = arti1 + (vc2.GetString("HVD_CANT") - vc2.GetString("HVD_RECHAZOCANT"))
+ End If
+ Next
+ End If
+' Log(Cuenta1)
+
+ Private vc4 As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '${Subs.traeAlmacen}'"$)
+ Private Cuenta2 As String = 0
+ Private arti2 As String = 0
+ If vc4.RowCount > 0 Then
+
+ For i = 0 To vc4.RowCount - 1
+ vc4.Position = i
+ If vc4.GetString("HVD_PROID") <> vc4.GetString("HVD_CODPROMO") Then
+ If vc4.GetString("HVD_RECHAZO") = 0 Then
+ Cuenta2 = Cuenta2 + vc4.GetString("HVD_COSTO_TOT")
+ arti2 = arti2 + vc4.GetString("HVD_CANT")
+ Else
+ Private vc5 As Cursor = Starter.skmt.ExecQuery($"select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${vc4.GetString("HVD_PROID")}'"$)
+ If vc5.RowCount > 0 Then
+ vc5.Position= 0
+' Log(vc5.GetString("CAT_GP_PRECIO"))
+ Cuenta2 = Cuenta2 +((vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))*vc5.GetString("CAT_GP_PRECIO"))
+ arti2 = arti2 +(vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))
+ End If
+ End If
+ End If
+
+ Next
+ End If
+
+
+
+
+ Private c4 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"$)
+ Private Cuenta3 As String = 0
+ Private arti3 As String = 0
+ If c4.RowCount > 0 Then
+ For i = 0 To c4.RowCount -1
+ c4.Position = i
+ arti3 = arti3 + c4.GetString("PE_CANT")
+ Cuenta3 = Cuenta3 + c4.GetString("PE_COSTO_TOT")
+ Next
+ End If
+
+ If Cuenta < 0 Then
+ Cuenta = 0
+ End If
+ If Cuenta1 < 0 Then
+ Cuenta = 0
+ End If
+ If Cuenta2 < 0 Then
+ Cuenta = 0
+ End If
+ If Cuenta3 < 0 Then
+ Cuenta = 0
+ End If
+
+ If arti < 0 Then
+ arti = 0
+ End If
+ If arti1 < 0 Then
+ arti = 0
+ End If
+ If arti2 < 0 Then
+ arti = 0
+ End If
+ If arti3 < 0 Then
+ arti = 0
+ End If
+
+ Log(Cuenta&","&Cuenta1&","&Cuenta2&","&Cuenta3)
+ Log(arti&","&arti1&","&arti2&","&arti3)
+ If Cuenta + Cuenta1 + Cuenta2 + Cuenta3 < 0 Then
+ L_TOTAL.Text = 0
+ Else
+ L_TOTAL.Text = NumberFormat2((Cuenta + Cuenta1 + Cuenta2 + Cuenta3),0,2,2,True)
+ End If
+ If arti + arti1 +arti2 + arti3 < 0 Then
+ L_CANT.Text = 0
+ Else
+ L_CANT.Text = NumberFormat2((arti + arti1 +arti2 + arti3),0,0,0,True)
+ End If
+
+
+End Sub
+
+Sub GPS_LocationChanged (Location1 As Location)
+' lat_gps=Location1.ConvertToSeconds(Location1.Latitude)
+' lon_gps=Location1.ConvertToSeconds(Location1.Longitude)
+End Sub
+
+Sub b_regresar_Click
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ ' I want to capture the key here so I return True
+ B4XPages.ShowPage("Cliente")
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+
+Sub ListView1_ItemLongClick (Position As Int, Value As Object) 'BORRAR
+' nombre_prod = Value
+' result = Msgbox2("Seguro que desa borrar este articulo?","Borrar Articulo", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore
+' If result = DialogResponse.POSITIVE Then
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' c.Position=0
+' If c.GetString("HVD_CANT") > 1 Then
+' b_regresar.Visible =False
+' b_borra.Visible=False
+' P1.Visible =True
+' cuantos_pedido = c.GetString("HVD_CANT")
+' lv2.Clear
+' lv2.SingleLineLayout.Label.TextColor = Colors.Black
+' For i=1 To c.GetString("HVD_CANT")
+' lv2.AddSingleLine(i)
+' Next
+' Else
+' ' skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),Value))
+' c.Close
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT,REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' c.Position=0
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),Value))
+' c.Close
+'
+' 'skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' ' se cambia por update para no borrarlo y tener todos los registros.
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+ '
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' 'quitar esta mamada no es ahi
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' B4XPage_Appear
+' End If
+'
+' End If
+End Sub
+
+Sub lv2_ItemClick (Position As Int, Value As Object) 'BORRAR
+' ' If Value = "Todos" Then
+' ' cuantos = c.GetString("HVD_CANT")
+' 'Else
+' cuantos = Value
+' ' End If
+' If cuantos = cuantos_pedido Then
+' 'Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),nombre_prod))
+' c.Close
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(nombre_prod))
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(nombre_prod))
+' c.Position=0
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),nombre_prod))
+' c.Close
+' 'Starter.skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' ' se cambia por update para no borrarlo y tener todos los registros.
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' 'quitar esta m*m*d* no es ahi
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_RECHAZO = 1, HVD_PARCIAL = 0, HVD_CANT = HVD_CANT - ? where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos, nombre_prod))
+' b_regresar.Visible =True
+' b_borra.Visible=True
+' P1.Visible =False
+' B4XPage_Appear
+' Else
+' ' skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(cuantos,nombre_prod))
+' c.Close
+ '
+' 'modificar tambien esto
+' 'Modificaciones para que solo quite una parte.
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, ?, ? * (HVD_COSTO_TOT/?), HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As Object(cuantos,cuantos,cuantos_pedido, nombre_prod))
+' Starter.skmt.ExecNonQuery2("insert into hist_ventas(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) select HVD_CLIENTE,HVD_PRONOMBRE,?,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, 1, HVD_ESTATUS, 1 from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As Object(cuantos, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_RECHAZO = 0, HVD_PARCIAL = 1, HVD_CANT = HVD_CANT - ? where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_COSTO_TOT = HVD_CANT * (HVD_COSTO_TOT/?) where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos_pedido, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(cuantos,nombre_prod))
+' 'crear nueva tabla para que guarde el resto.
+ '' skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' B4XPage_Appear
+' b_regresar.Visible =True
+' b_borra.Visible=True
+' P1.Visible =False
+' End If
+End Sub
+
+'****************************************************************************
+'***************** PARA EL MAS/MENOS *************************************
+'****************************************************************************
+
+Sub CreateListItem(Text As String, precioU As String, inv As Int, inv2 As Int, Width As Int, Height As Int, img As Bitmap, prodId As String, bc As Int, tc As Int, promo As String, cliente_original As String,clienterecha As String, bandera As String,consecutivo As Int) As Panel
+ Dim p As B4XView = xui.CreatePanel("")
+ Private cs As CSBuilder
+ cs.Initialize
+ p.SetLayoutAnimated(0, 0, 0, Width, Height)
+ p.LoadLayout("prodItem2")
+ p_prods.Color = bc
+ l_prodX.TextColor = tc
+ precioU = $"$1.2{precioU}"$
+ l_prodX.Text = Text&CRLF&"Cant: " & inv2 & " $" & precioU
+ If promo <> "1" And precioU = 0 Then
+ l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).append(Text&CRLF&"Cant: " & inv2 & " $" & precioU).PopAll
+ End If
+ l_prodX.Tag = $"ID: ${prodId}${CRLF}${Text}${CRLF}Precio: $$1.2{precioU}${CRLF}Inv: ${inv} pzs"$
+' l_pCant.Text = 0
+' Log("PRECIO " & Round2(precioU,2)&"| INV "&inv&"| ID "&prodId&"| PROMO "&promo&"| INV2? "&inv2&"| CLIENTE OR NONONO YA NO VA Y UN ESPACIO POR FAVOR "&cliente_original)
+ l_pCant.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&clienterecha&"|"&bandera&"|"&consecutivo
+ et_pCant.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&clienterecha&"|"&bandera&"|"&consecutivo
+ p_prods.Tag = l_pCant.tag
+' Log($"Ponemos la cant en ${inv}"$)
+ l_pCant.Text = inv
+' et_pCant.Text = inv
+' et_pCant.BringToFront
+
+ l_pCant.BringToFront
+ et_pCant.SendToBack
+ p_botMasMenC.Visible = False
+ l_cajas.Visible = False
+' i_prod.Bitmap = img
+ Return p
+End Sub
+
+Sub CreateListItem2(Text As String, precioU As String, inv As Int, inv2 As Int, Width As Int, Height As Int, img As Bitmap, prodId As String, bc As Int, tc As Int, promo As String, cliente_original As String,clienterecha As String, bandera As String,consecutivo As Int) As Panel
+ Dim p As B4XView = xui.CreatePanel("")
+ Private cs As CSBuilder
+ cs.Initialize
+ p.SetLayoutAnimated(0, 0, 0, Width, Height)
+ p.LoadLayout("prodItem2")
+ p_prods.Color = bc
+ l_prodX.TextColor = tc
+ precioU = $"$1.2{precioU}"$
+ l_prodX.Text = Text&CRLF&"Cant: " & inv2 & " $" & precioU
+ '' Log(Text&CRLF&"Cant: " & inv2 & " $" & precioU)
+ If promo <> "1" And precioU = 0 Then
+ l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).append(Text&CRLF&"Cant: " & inv2 & " $" & precioU).PopAll
+ End If
+ l_prodX.Tag = $"ID: ${prodId}${CRLF}${Text}${CRLF}Precio: $$1.2{precioU}${CRLF}Inv: ${inv} pzs"$
+' l_pCant.Text = 0
+ l_pCantC.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&clienterecha&"|"&bandera&"|"&consecutivo
+ et_pCantC.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&clienterecha&"|"&bandera&"|"&consecutivo
+ p_prods.Tag = l_pCantC.tag
+' Log($"Ponemos la cant en ${inv}"$)
+ l_pCantC.Text = NumberFormat2(inv/Subs.traeConversion(prodId),0,0,0,False)
+' et_pCant.Text = inv
+' et_pCant.BringToFront
+
+ l_pCantC.BringToFront
+ et_pCantC.SendToBack
+ p_botMasMen.Visible = False
+ l_piezas.Visible = False
+' i_prod.Bitmap = img
+ Return p
+End Sub
+
+Sub b_prodMenos_Click
+ etCantHasFocus = False
+ Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMenos_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCant As B4XView = pnl.GetView(2).GetView(3)
+' Log(pnl.GetView(2).GetView(0) & "|" & pnl.GetView(2).GetView(1) & "|" & pnl.GetView(2).GetView(2))
+ Dim esteTag As List = Regex.Split("\|", laCant.Tag)
+ Log("LC_TEXT:"&laCant.Text&"|PROMO:"&esteTag.Get(3)&"|LC_TAG:"&laCant.Tag&"|ET:"&esteTag)
+ Private minimoadesc As String
+ Dim minimos As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If minimos.RowCount > 0 Then
+ minimos.Position = 0
+ minimoadesc = minimos.GetString("CAT_DP_CANT_MIN_VENTA")
+ Else
+ minimoadesc = "1"
+ End If
+ minimos.Close
+ '*'${minimoadesc}')
+ minimoadesc = "1"
+ If esteTag.Get(7) = "1" Then
+ If laCant.Text = "" Then laCant.Text = 0
+ laCant.Text = $"$1.0{laCant.Text-1}"$
+ If laCant.Text < 0 Then laCant.Text = 0
+ Private c3 As Cursor = Starter.skmt.ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?", Array As String(esteTag.Get(2),esteTag.Get(8)))
+ If c3.RowCount > 0 Then
+ c3.Position = 0
+ If c3.GetString("PE_CANT") > minimoadesc Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'${minimoadesc}'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'${minimoadesc}'))*'${c2.GetString("CAT_GP_PRECIO")}') WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) and CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ End If
+ Else If c3.GetString("PE_CANT") = minimoadesc Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+' Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-1, PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -1)*'${c2.GetString("CAT_GP_PRECIO")}') WHERE PE_PROID_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa)"$)
+ Starter.skmt.ExecNonQuery($"delete from PEDIDO where PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ End If
+ End If
+
+
+
+ End If
+ B4XPage_Appear
+ Else
+
+ If esteTag.Get(5) = esteTag.Get(6) Then
+ If laCant.Text > 0 Then
+ If esteTag.Get(3) <> Subs.traeAlmacen Then 'Si es PROMO entonces ...
+ Private c2 As Cursor =Starter.skmt.ExecQuery($"select HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_PROID = '${esteTag.Get(2)}' AND HVD_CLIENTE IN (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ c2.Position = 0
+ If c2.GetString("HVD_RECHAZO") = "0" Then
+
+
+ Log("ES PROMO")
+ Log(esteTag.Get(3))
+ result = Msgbox2("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?","Modificar Promoción", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore
+ If result = DialogResponse.POSITIVE Then 'Quitamos esta promo
+ prodsMap.Remove(esteTag.Get(3))
+' c=Starter.skmt.ExecQuery($"select HVD_CODPROMO FROM HIST_VENTAS WHERE HVD_CODPROMO = '${esteTag.Get(2)}' AND HVD_cliente IN (Select CUENTA from cuentaa)"$)
+' For i = 0 To c.RowCount -1
+' c.Position = i
+ LogColor(esteTag.Get(3),Colors.Blue)
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT + 1 WHERE HVD_CODPROMO = '${esteTag.Get(3)}' and HVD_CLIENTE in (Select CUENTA from cuentaa)"$)
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT + 1 WHERE HVD_PROID = '${esteTag.Get(3)}' and HVD_CODPROMO = '${esteTag.Get(3)}' and HVD_CLIENTE in (Select CUENTA from cuentaa)"$)
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_CODPROMO = '${esteTag.Get(3)}' and HVD_CLIENTE in (Select CUENTA from cuentaa)"$)
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_PROID = '${esteTag.Get(3)}' and HVD_CODPROMO = '${esteTag.Get(3)}' and HVD_CLIENTE in (Select CUENTA from cuentaa)"$)
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_CODPROMO = '${Subs.traeAlmacen}' WHERE HVD_cliente in (Select CUENTA from cuentaa) AND HVD_CODPROMO = '${esteTag.Get(3)}'"$)
+' Next
+ c.Close
+ LogColor(prodsMap, Colors.red)
+ reconstruirPedido = True
+ promoABorrar = esteTag.Get(3)
+ B4XPage_Appear
+ End If
+ Else
+ If laCant.Text = "" Then laCant.Text = 0
+ laCant.Text = $"$1.0{laCant.Text-1}"$
+ If laCant.Text < 0 Then laCant.Text = 0
+ Log("NO ES promo")
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'${minimoadesc}') WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+ B4XPage_Appear
+ End If
+ Else
+ If laCant.Text = "" Then laCant.Text = 0
+ laCant.Text = $"$1.0{laCant.Text-1}"$
+ If laCant.Text < 0 Then laCant.Text = 0
+ Log("NO ES promo")
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'${minimoadesc}'), BCAJAS = 0, CANTC = 0 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+ B4XPage_Appear
+ End If
+ End If
+ Else
+
+ If laCant.Text = "" Then laCant.Text = 0
+ laCant.Text = $"$1.0{laCant.Text-1}"$
+ If laCant.Text < 0 Then laCant.Text = 0
+ Log("NO ES promo")
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(6)}'"$)
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+' Starter.skmt.ExecNonQuery2("update PEDIDO set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+
+ Private c3 As Cursor = Starter.skmt.ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?", Array As String(esteTag.Get(2), esteTag.Get(8)))
+ If c3.RowCount > 0 Then
+ c3.Position = 0
+ If c3.GetString("PE_CANT") > 1 Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'${minimoadesc}'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'${minimoadesc}'))*'${c2.GetString("CAT_GP_PRECIO")}') WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ End If
+ Else If c3.GetString("PE_CANT") = 1 Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+ Starter.skmt.ExecNonQuery($"delete from PEDIDO where PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ End If
+ End If
+ End If
+ B4XPage_Appear
+ End If
+ End If
+ Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+ Log("PU: " & preciou)
+' LogColor("estamos aqui mmenos " & laCant.Text& " , " & (preciou * laCant.Text),Colors.Green )
+' If L_CANT.Text - 1 >= 0 Then
+' L_CANT.Text = L_CANT.Text - 1
+' End If
+' b_guardar.Visible = True
+' Subs.prodRechazo(esteTag.Get(5), esteTag.Get(2))
+' Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+' L_CANT.Text = cym.Get("cantidad")
+' L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("-")
+End Sub
+
+Sub b_prodMas_Click
+ etCantHasFocus = False
+' Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMas_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCant As B4XView = pnl.GetView(2).GetView(3)
+' Log(pnl.GetView(2).GetView(1).text&"|"&pnl.GetView(2).GetView(2)&"|"&pnl.GetView(2).GetView(4).text)
+' Log($"precio|stock:${laCant.tag}"$)
+' Log($"Indice: ${index}, cant:${laCant.Text+1}, precioU: ${laCant.tag}"$)
+ Dim esteTag As List = Regex.Split("\|", laCant.Tag)
+ Log("LC_TEXT:"&laCant.Text&"|LC_TAG:"&laCant.Tag&"|ET:"&esteTag)
+ If laCant.Text = "" Then laCant.Text = 0
+
+ Private maxProds = esteTag.Get(1) + esteTag.Get(4) 'Prods disponibles + prods comprados
+
+ LogColor($"++++++++++++++++++++++++++ ${esteTag}"$, Colors.Green)
+' Log(esteTag.get(4))
+
+ Private minimoadesc As String
+ Dim minimos As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If minimos.RowCount > 0 Then
+ minimos.Position = 0
+ minimoadesc = minimos.GetString("CAT_DP_CANT_MIN_VENTA")
+ Else
+ minimoadesc = "1"
+ End If
+ minimos.Close
+ '*'${minimoadesc}')
+ minimoadesc = "1"
+ If esteTag.Get(7) <> "1" Then
+
+
+ If esteTag.Get(5) = esteTag.Get(6) Then
+
+ If laCant.Text + 1 <= maxProds Then
+ Log($"NuevaCant = ${laCant.Text + 1}"$)
+ laCant.Text = $"$1.0{laCant.Text + 1}"$
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+
+ 'checar este por si las dudas
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - (1*'${minimoadesc}') WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+
+ Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))
+' Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+' L_CANT.Text = cym.Get("cantidad")
+' L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("+")
+ B4XPage_Appear
+ End If
+ Else
+
+ If laCant.Text + 1 <= maxProds Then
+ Log($"NuevaCant = ${laCant.Text + 1}"$)
+ laCant.Text = $"$1.0{laCant.Text + 1}"$
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?", Array As String(esteTag.Get(2)))
+ c = Starter.skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?", Array As String(esteTag.Get(2),esteTag.Get(8)))
+ If c.RowCount > 0 Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'${minimoadesc}'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'${minimoadesc}'))*'${c2.GetString("CAT_GP_PRECIO")}') WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ End If
+ Else
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Starter.skmt.ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO) VALUES (?,?,?,?,?,?,?,0,0,?)", Array As String(esteTag.Get(2),c2.GetString("CAT_GP_NOMBRE"),1*minimoadesc,esteTag.Get(5),Subs.traeCliente,c2.GetString("CAT_GP_PRECIO"),c2.GetString("CAT_GP_PRECIO"),esteTag.Get(8)))
+ End If
+ End If
+
+
+ Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))
+' Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+' L_CANT.Text = cym.Get("cantidad")
+' L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("+")
+ B4XPage_Appear
+ End If
+
+ End If
+ End If
+' Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+' Log(preciou)
+' LogColor("estamos aquii mas " & laCant.Text& " , " & (preciou * laCant.Text) ,Colors.Green )
+' b_guardar.Visible = True
+' Log($"Total Prods: ${totalProds}, Total Compra: $$1.2{totalCompra}"$)
+' c = Starter.skmt.ExecQuery($"SELECT HVD_CANT FROM HIST_VENTAS2 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID = '${esteTag.Get(2)}' "$)
+' c.Position = 0
+' Dim cantoriginal As String = 0
+' If c.RowCount > 0 Then
+' cantoriginal = c.GetString("HVD_CANT")
+' End If
+' If cantoriginal <= esteTag.Get(1) Then
+' L_CANT.Text = L_CANT.Text + 1
+' End If
+End Sub
+
+Sub cuentaProds(accion As String)
+ '' Log("Entramos a cuentaProds")
+' Log("*******************************************************")
+' Private cantRechazada As Int = 0
+' If Not(reconstruirPedido) Then
+' Log("*********** CUENTAPRODS - NO RECONSTRUIR")
+' prodsMap.Initialize
+' For i = 0 To clv_pedido.GetSize - 1
+' Private p0 As B4XView = clv_pedido.GetPanel(i)
+' Private p As B4XView = p0.GetView(0)
+' Private cant1 As B4XView = p.GetView(2).GetView(3)
+' If cant1.Text = "" Then cant1.Text = 0
+ '' totalProds = totalProds + cant1.Text
+' Private esteTag As List = Regex.Split("\|", cant1.Tag)
+' Log("-------------------------------------")
+' Log($"ET: ${esteTag}"$)
+' Private esteProd As String = esteTag.Get(2)
+' Private estaCant As Int = cant1.Text
+' Private estaCantOriginal As Int = esteTag.Get(1)
+' Private esteCliente = Subs.traeCliente
+' Private esteProdNombre = Subs.traeNombre(esteProd)
+' Private esteClienteOriginal As Int = esteTag.Get(5)
+' Private fechaReparto As String = Subs.traeFechaReparto
+' Private maxProds = Subs.traeMaxCantidad(esteTag.Get(5), esteTag.Get(2))
+'
+' If cant1.Text > maxProds Then cant1.Text = maxProds
+'
+' cantRechazada = esteTag.Get(4) - cant1.Text
+ '' If accion = "-" Then cantRechazada = Subs.traeCantidadRechazada(esteClienteOriginal, esteProd) + 1
+ '' If accion = "+" Then cantRechazada = Subs.traeCantidadRechazada(esteClienteOriginal, esteProd) - 1
+' Log($"${Subs.traeCantidadRechazada(esteClienteOriginal, esteProd)}, ${Subs.traeCantidadVendida(esteClienteOriginal, esteProd)}"$)
+'
+ '' LogColor($"cantRechazada = ${esteTag.Get(4)} - ${cant1.Text}"$, Colors.Magenta)
+' LogColor($"cantRechazada = ${cantRechazada}"$, Colors.Magenta)
+' Private estePrecio As String = 0
+' If Subs.traePrecio(esteProd, 1) <> Null Then estePrecio = Subs.traePrecio(esteProd, 1) * cantRechazada
+'
+ '' LogColor(esteProd & "|" & cant1.Text & "|" & estaCantOriginal & "|" & cantRechazada & "|" & estePrecio, Colors.red)
+ '' LogColor($"cantRechazada=${cantRechazada} | ${esteProdNombre}"$, Colors.Blue)
+ '' Log($"Ponemos HVD_CANT ${esteProd} en ${cant1.text}"$)
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = ? WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)", Array As String(cant1.Text ,esteProd))
+' Private rr As Cursor = Starter.skmt.ExecQuery($"select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '${esteProd}' and REP_CLIENTE in (Select CUENTA from cuentaa)"$)
+' rr.Position = 0
+ '' Log($"HayRechazo=${rr.GetString("hayRechazo")}"$)
+' If rr.GetString("hayRechazo") = 0 Then
+' Log("INSERTAMOS EN REPARTO")
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ", Array As String(esteCliente, esteProdNombre, 0, estePrecio, fechaReparto, esteProd, estePrecio, esteCliente))
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ", Array As String(esteCliente, esteProdNombre, cantRechazada, 0, fechaReparto, esteProd, estePrecio, esteCliente))
+' Else if esteClienteOriginal = "0" Then 'Actualizamos el rechazo en el cliente actual.
+ '' Log($"Actualizamos REP_CANT=${cantRechazada}"$)
+ '' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = '${cantRechazada}', REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${esteProd}'"$)
+' Else 'Cliente original <> 0 entonces actualizamos el rechazo en el cliente original y NO en el actual.
+' Log($"Actualizamos REP_CANT RECHAZO = ${cantRechazada}"$)
+ '' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = ${cantRechazada}, REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE = '${esteClienteOriginal}' and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${esteProd}'"$)
+ '' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = '${cant1.Text}', REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${esteProd}'"$)
+' End If
+'
+' If cant1.Text > 0 Then
+ '' totalCompra = totalCompra + (esteTag.get(0) * cant1.text)
+ '' Log($"Cant: ${cant1.Text}, Suma: ${totalCompra}"$)
+' Private m As Map
+' m=CreateMap("cant":cant1.Text, "cant2":esteTag.get(4), "precio":esteTag.get(0), "promo":esteTag.get(3), "nombre":Subs.traeNombre(esteTag.Get(2)), "cli_orig":esteTag.get(5))
+ '' LogColor("PUT:" & esteTag.Get(2), Colors.Red)
+' prodsMap.Put(esteTag.Get(2), m)
+' End If
+' Log("-------------------------------------")
+' Next
+' End If
+' Private bgColor, textColor As Int
+ '
+' If reconstruirPedido Then
+' Log("*********** CUENTAPRODS - SI RECONSTRUIR")
+' Private newPromo, newPrecio As String
+' clv_pedido.Clear
+' Log("Usamos PRODSMAP")
+' For Each pr As String In prodsMap.Keys
+' Private pr1 As Map = prodsMap.Get(pr)
+' Log("PPP: " & pr & "|PromoABorrar=" & promoABorrar & "|" & pr1)
+' bgColor = Colors.RGB(177, 200, 249)'azul
+' textColor = Colors.black
+' newPromo = pr1.Get("promo")
+' newPrecio = pr1.Get("precio")
+' Log("AAA: " & newPromo & "|" & promoABorrar)
+' If newPromo = promoABorrar Then
+' newPromo = 1
+' newPrecio = Subs.traePrecio(pr, False) * pr1.Get("cant")
+' 'Ponemos precio SIN promo y sacamos el producto de la promo.
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_COSTO_TOT = ${newPrecio}, HVD_CODPROMO ='${Subs.traeAlmacen}' WHERE HVD_PRONOMBRE = '${pr1.Get("nombre")}' and HVD_cliente in (Select CUENTA from cuentaa)"$)
+' LogColor("CAMBIAMOS PROMO: " & newPromo, Colors.Magenta)
+' End If
+' If newPromo <> "1" Then
+ '' bgColor = Colors.RGB(255, 212, 163) 'naranja
+' bgColor = Colors.White
+' End If
+' Log($"CLI: ${pr1.Get("nombre")}, ${newPrecio}, ${pr1.Get("cant")}, ${pr1.Get("cant2")}"$)
+' clv_pedido.Add(CreateListItem(pr1.Get("nombre"), newPrecio, pr1.Get("cant"), pr1.Get("cant2"), clv_pedido.AsView.Width, 118dip, bmp, pr, bgColor, textColor, newPromo, pr1.Get("cli_orig")), pr1.Get("nombre"))
+' reconstruirPedido = False
+' Next
+' promoABorrar = ""
+' End If
+' Log($"Total Prods: ${totalProds}, Total Compra: $$1.2{totalCompra}"$)
+' LogColor("prodsMap=" & prodsMap, Colors.Green)
+'
+ '
+' LogColor(prodsMap, Colors.Blue)
+' c = Starter.skmt.ExecQuery($"SELECT sum(HVD_CANT) as CANTIDAD FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"$)
+' Dim cantidad1 As String = 0
+' If c.RowCount > 0 Then
+' c.Position = 0
+' cantidad1 = c.GetString("CANTIDAD")
+' L_CANT.Text = Round(cantidad1)
+' End If
+' c.Close
+'
+' Dim totalfinal As String = 0
+' For Each pr As String In prodsMap.Keys
+' Private pr1 As Map = prodsMap.Get(pr)
+ '' LogColor(pr,Colors.Red)
+' Dim x As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_ID = '${pr}'"$)
+' c = Starter.skmt.ExecQuery($"SELECT HVD_CANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID ='${pr}' "$)
+' Dim cantidady As String = 0
+' If c.RowCount >0 Then
+' c.Position = 0
+' cantidady = c.GetString("HVD_CANT")
+' End If
+ '' Log(x.RowCount)
+' If x.RowCount > 0 Then
+' x.Position = 0
+ '' Log(x.GetString("CAT_GP_PRECIO"))
+' Dim preciou As String = x.GetString("CAT_GP_PRECIO")
+' Dim costototalhist As String = preciou * cantidady
+ '' Log("Total ==== "&costototalhist)
+' End If
+' totalfinal = totalfinal + costototalhist
+' x.Close
+' Next
+' L_TOTAL.Text = Round2(totalfinal, 2)
+' c.Close
+'
+' c = Starter.skmt.ExecQuery("select COUNT(*) AS CUANTOS from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")
+' If c.RowCount > 0 Then
+' c.Position = 0
+' If c.GetString("CUANTOS") > 0 Then
+'
+' Dim z As Cursor = Starter.skmt.ExecQuery($"select SUM(REP_CANT) AS CANTIDAD , SUM(REP_PRECIO) AS PRECIO from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE"$)
+' Dim cantidad2 As String = 0
+ '' Log(z.RowCount)
+' If z.RowCount > 0 Then
+' z.Position = 0
+' cantidad2= z.GetString("CANTIDAD")
+ '' LogColor(z.GetString("PRECIO")&" , " & z.GetString("CANTIDAD"), Colors.Magenta)
+ '' Log(cantidad1 &" , "& cantidad2)
+' L_CANT.Text = Round((cantidad1 + cantidad2))
+' End If
+' z.Close
+'
+'
+' End If
+' End If
+'
+'
+'
+End Sub
+
+Private Sub b_guardar_Click
+
+End Sub
+
+
+Private Sub l_pCant_Click
+
+End Sub
+
+Sub p_prods_Click
+ Log(Sender.As(Panel).tag)
+End Sub
+
+Private Sub b_prodMasC_Click
+ etCantHasFocus = False
+' Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMas_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCantc As B4XView = pnl.GetView(3).GetView(3)
+' Log(pnl.GetView(2).GetView(1).text&"|"&pnl.GetView(2).GetView(2)&"|"&pnl.GetView(2).GetView(4).text)
+' Log($"precio|stock:${laCant.tag}"$)
+' Log($"Indice: ${index}, cant:${laCant.Text+1}, precioU: ${laCant.tag}"$)
+ Dim esteTag As List = Regex.Split("\|", laCantc.Tag)
+ Log("LC_TEXT:"&laCantc.Text&"|LC_TAG:"&laCantc.Tag&"|ET:"&esteTag)
+ If laCantc.Text = "" Then laCantc.Text = 0
+
+ Private maxProds As String = (esteTag.Get(1) + esteTag.Get(4))'Prods disponibles + prods comprados
+ LogColor(esteTag.Get(1),Colors.Red)
+ LogColor(esteTag.Get(4),Colors.Red)
+ LogColor($"++++++++++++++++++++++++++ ${esteTag}"$, Colors.Green)
+' Log(esteTag.get(4))
+ Log(maxProds)
+
+' l_pCantC.Tag = Round2(precioU,2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original
+ If esteTag.Get(7) <> "1" Then
+
+
+ If laCantc.Text + 1 <= maxProds Then
+ Log($"NuevaCant = ${laCantc.Text + 1}"$)
+ laCantc.Text = $"$1.0{laCantc.Text + 1}"$
+
+ Log(laCantc.Text)
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * ${Subs.traeConversion(esteTag.Get(2))}) WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa)"$)
+
+' Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))
+' Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+' L_CANT.Text = cym.Get("cantidad")
+' L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("+")
+ B4XPage_Appear
+ End If
+ End If
+End Sub
+
+Private Sub b_prodMenosC_Click
+ etCantHasFocus = False
+ Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMenos_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCantc As B4XView = pnl.GetView(3).GetView(3)
+' Log(pnl.GetView(2).GetView(0) & "|" & pnl.GetView(2).GetView(1) & "|" & pnl.GetView(2).GetView(2))
+ Dim esteTag As List = Regex.Split("\|", laCantc.Tag)
+ Log("LC_TEXT:"&laCantc.Text&"|PROMO:"&esteTag.Get(3)&"|LC_TAG:"&laCantc.Tag&"|ET:"&esteTag)
+ Log(esteTag)
+
+ If esteTag.Get(7) = "1" Then
+ Private c3 As Cursor = Starter.skmt.ExecQuery2("SELECT PE_CAJAS, CONSECUTIVO FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(8)))
+ Log(c3.RowCount)
+ Log(esteTag.Get(8))
+ If c3.RowCount > 0 Then
+ Log("AQUI VEMOS SI ACTUALIZAMOS")
+ c3.Position = 0
+ If c3.GetString("PE_CAJAS") > 1 Then
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '${Subs.traeConversion(esteTag.Get(2))}')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'${Subs.traePrecioC(esteTag.Get(2))}'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${c3.GetString("CONSECUTIVO")}'"$)
+ Else If c3.GetString("PE_CAJAS") = 1 Then
+ Starter.skmt.ExecNonQuery($"delete from PEDIDO where PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${c3.GetString("CONSECUTIVO")}'"$)
+ End If
+ End If
+ Log("entre al if o algo asi ")
+ If laCantc.Text = "" Then laCantc.Text = 0
+ laCantc.Text = laCantc.Text - 1
+ If laCantc.Text < 0 Then laCantc.Text = 0
+ B4XPage_Appear
+
+ Else
+
+
+ If esteTag.Get(5) = esteTag.Get(6) Then
+
+ If laCantc.Text > 0 Then
+ Log("entre al if o algo asi ")
+ If laCantc.Text = "" Then laCantc.Text = 0
+ laCantc.Text = laCantc.Text - 1
+ If laCantc.Text < 0 Then laCantc.Text = 0
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = (IFNULL(HVD_RECHAZOCANT,0) +(1 * ${Subs.traeConversion(esteTag.Get(2))})) WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = (cat_gp_almacen + (1 * ?)) where cat_gp_id = ?", Array As Object(esteTag.Get(2), Subs.traeConversion(esteTag.Get(2))))
+ B4XPage_Appear
+ Else If laCantc.Text = 0 Then
+
+ End If
+
+ Else
+
+ If laCantc.Text > 0 Then
+
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = (IFNULL(HVD_RECHAZOCANT,0) +(1 * ${Subs.traeConversion(esteTag.Get(2))})) WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(6)}'"$)
+ Private c3 As Cursor = Starter.skmt.ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and CONSECUTIVO = ? ", Array As String(esteTag.Get(2),esteTag.Get(8)))
+ If c3.RowCount > 0 Then
+ Log("AQUI VEMOS SI ACTUALIZAMOS")
+ c3.Position = 0
+ If c3.GetString("PE_CAJAS") > 1 Then
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '${Subs.traeConversion(esteTag.Get(2))}')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'${Subs.traePrecioC(esteTag.Get(2))}'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ Else If c3.GetString("PE_CAJAS") = 1 Then
+ Starter.skmt.ExecNonQuery($"delete from PEDIDO where PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(8)}'"$)
+ End If
+ End If
+ Log("entre al if o algo asi ")
+ If laCantc.Text = "" Then laCantc.Text = 0
+ laCantc.Text = laCantc.Text - 1
+ If laCantc.Text < 0 Then laCantc.Text = 0
+ B4XPage_Appear
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = (cat_gp_almacen + (1 * ?)) where cat_gp_id = ?", Array As Object(esteTag.Get(2), Subs.traeConversion(esteTag.Get(2))))
+ Else If laCantc.Text = 0 Then
+
+ End If
+
+ End If
+ End If
+ Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+ Log("PU: " & preciou)
+End Sub
+
+Private Sub l_pCantC_Click
+
+End Sub
+
+Private Sub b_revversar_Click
+ Private c3 As Cursor = Starter.skmt.ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)")
+ If c3.RowCount = 0 Then
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)"$)
+ B4XPage_Appear
+ Else
+ MsgboxAsync("Hay productos que ya se vendieron, no se puede regresar la venta","Atención")
+ End If
+
+
+End Sub
+
diff --git a/B4A/C_Detalle_Promo.bas b/B4A/C_Detalle_Promo.bas
new file mode 100644
index 0000000..0f98bdf
--- /dev/null
+++ b/B4A/C_Detalle_Promo.bas
@@ -0,0 +1,112 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim c As Cursor
+' Dim ruta As String
+ Dim Regresar As Button
+ Dim b As Cursor
+ Dim regalo As String
+ Dim ListView1 As ListView
+ Dim L_CANT As Label
+ Dim L_TOTAL As Label
+ Dim borra As Button
+ Dim Existe As String
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ Root.LoadLayout("detalle_promo")
+ c=Starter.skmt.ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)")
+ ListView1.Clear
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ b=Starter.skmt.ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?", Array As String(C.GetString("CAT_DP_IDPROD")))
+ B.Position =0
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 10
+ label1.TextColor = Colors.White
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 10
+ label2.TextColor = Colors.White
+ If c.GetString("CAT_DP_PRECIO") = 0 Then
+ regalo = "SI"
+ Else
+ regalo = "NO"
+ End If
+ ListView1.AddTwoLines(B.GetString("CAT_GP_NOMBRE"),"Cantidad # "& c.GetString("CAT_DP_PZAS")& " REGALO "& regalo)
+ b.Close
+ Next
+ c.Close
+ End If
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ Starter.skmt.Initialize(Starter.ruta,"kmt.db", True)
+ c=Starter.skmt.ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)")
+ ListView1.Clear
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ b=Starter.skmt.ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?", Array As String(C.GetString("CAT_DP_IDPROD")))
+ B.Position =0
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 10
+ label1.TextColor = Colors.White
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 10
+ label2.TextColor = Colors.White
+ If c.GetString("CAT_DP_PRECIO") = 0 Then
+ regalo = "SI"
+ Else
+ regalo = "NO"
+ End If
+ ListView1.AddTwoLines(B.GetString("CAT_GP_NOMBRE"),"Cantidad # "& c.GetString("CAT_DP_PZAS")& " REGALO "& regalo)
+ b.Close
+ Next
+ c.Close
+ End If
+ 'la_no_ird.Text = c.GetString("PR_CF_SALDO_ACORT")
+End Sub
+
+Sub Activity_Pause (UserClosed As Boolean)
+
+End Sub
+
+Sub Regresar_Click
+' StartActivity(pedidos)
+ B4XPages.ShowPage("")
+End Sub
+
+Sub Activity_KeyPress (key As Int) As Boolean
+ ' BACK key pressed
+ If key=KeyCodes.KEYCODE_BACK Then
+ ' I want to capture the key here so I return True
+' StartActivity(pedidos)
+ B4XPages.ShowPage("")
+ 'Return True
+ End If
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
diff --git a/B4A/C_Foto.bas b/B4A/C_Foto.bas
new file mode 100644
index 0000000..acd0486
--- /dev/null
+++ b/B4A/C_Foto.bas
@@ -0,0 +1,167 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Private frontCamera As Boolean = False
+ Dim g As GPS
+ Private p_camara As Panel
+ Private camEx As CameraExClass
+ Dim btnTakePicture As Button
+ Dim c As Cursor
+ Dim cuenta As String
+ Dim lat_gps As String
+ Dim USUARIO As String
+ Dim MOTIVO As String
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ g.Initialize("GPS")
+ Root.LoadLayout("foto")
+ c=Starter.skmt.ExecQuery("select cuenta from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ InitializeCamera
+End Sub
+
+Private Sub InitializeCamera
+ camEx.Initialize(p_camara, frontCamera, Me, "Camera1")
+ frontCamera = camEx.Front
+End Sub
+
+Sub Activity_Pause (UserClosed As Boolean)
+' camEx.Release
+End Sub
+
+Sub GPS_LocationChanged (Location1 As Location)
+
+End Sub
+
+Sub Camera1_Ready (Success As Boolean)
+ If Success Then
+ camEx.SetJpegQuality(90)
+ camEx.CommitParameters
+ camEx.StartPreview
+ Log(camEx.GetPreviewSize)
+ Else
+ ToastMessageShow("Cannot open camera.", True)
+ End If
+End Sub
+
+Sub btnTakePicture_Click
+ Dim ps As CameraSize
+ ps.Width =640
+ ps.Height =480
+ camEx.SetPictureSize(ps.Width, ps.Height)
+ 'ToastMessageShow(ps.Width & "x" & ps.Height, False)
+ camEx.CommitParameters
+ camEx.TakePicture
+End Sub
+
+Sub btnFocus_Click
+ camEx.FocusAndTakePicture
+End Sub
+
+Sub Camera1_PictureTaken (Data() As Byte)
+ Dim filename As String = "1.jpg"
+ Dim dir As String = File.DirInternal
+
+ camEx.SavePictureToFile(Data, dir, filename)
+ camEx.StartPreview 'restart preview
+ 'Dim out As OutputStream
+ Dim sDate,sTime As String
+ DateTime.DateFormat = "MM/dd/yyyy"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c=Starter.skmt.ExecQuery("select CUENTA from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+ c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position = 0
+ USUARIO = c.GetString("USUARIO")
+ c.Close
+ Starter.skmt.ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")
+ c=Starter.skmt.ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc")
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(c.GetString("HVD_PRONOMBRE")))
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),c.GetString("HVD_PRONOMBRE")))
+ ' ANTES DE MODIFCAR
+ Next
+ End If
+ Starter.skmt.ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO) VALUES(?,?,?,?,?,?,?,?) ", Array As Object (cuenta,sDate & sTime, USUARIO, "CERRADO", B4XPages.MainPage.noVenta.COMENTARIO, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps, Data))
+ Starter.skmt.ExecNonQuery($"UPDATE kmt_info set gestion = 3, HORAENT = '${sDate & " " & sTime}' where CAT_CL_CODIGO In (select cuenta from cuentaa)"$)
+ Starter.skmt.ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Sub ChangeCamera_Click
+ camEx.Release
+ frontCamera = Not(frontCamera)
+ InitializeCamera
+End Sub
+
+Sub btnEffect_Click
+ Dim effects As List = camEx.GetSupportedColorEffects
+ If effects.IsInitialized = False Then
+ ToastMessageShow("Effects not supported.", False)
+ Return
+ End If
+ Dim effect As String = effects.Get((effects.IndexOf(camEx.GetColorEffect) + 1) Mod effects.Size)
+ camEx.SetColorEffect(effect)
+ ToastMessageShow(effect, False)
+ camEx.CommitParameters
+End Sub
+
+Sub btnFlash_Click
+ Dim f() As Float = camEx.GetFocusDistances
+ Log(f(0) & ", " & f(1) & ", " & f(2))
+ Dim flashModes As List = camEx.GetSupportedFlashModes
+ If flashModes.IsInitialized = False Then
+ ToastMessageShow("Flash not supported.", False)
+ Return
+ End If
+ Dim flash As String = flashModes.Get((flashModes.IndexOf(camEx.GetFlashMode) + 1) Mod flashModes.Size)
+ camEx.SetFlashMode(flash)
+ ToastMessageShow(flash, False)
+ camEx.CommitParameters
+End Sub
+
+Sub btnPictureSize_Click
+ Dim pictureSizes() As CameraSize = camEx.GetSupportedPicturesSizes
+ Dim current As CameraSize = camEx.GetPictureSize
+ For i = 0 To pictureSizes.Length - 1
+ If pictureSizes(i).Width = current.Width And pictureSizes(i).Height = current.Height Then Exit
+ Next
+ Dim ps As CameraSize = pictureSizes((i + 1) Mod pictureSizes.Length)
+ camEx.SetPictureSize(ps.Width, ps.Height)
+ ToastMessageShow(ps.Width & "x" & ps.Height & i, False)
+ camEx.CommitParameters
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ ' I want to capture the key here so I return True
+ B4XPages.ShowPage("Cliente")
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+
diff --git a/B4A/C_Historico.bas b/B4A/C_Historico.bas
new file mode 100644
index 0000000..adeba39
--- /dev/null
+++ b/B4A/C_Historico.bas
@@ -0,0 +1,609 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim g As GPS
+ Dim clie_id As String
+ Dim sDate,sTime As String
+ Dim usuario As String
+ Dim c As Cursor
+' Dim ruta As String
+ Dim b_regresar As Button
+ Dim ListView1 As ListView
+ Dim L_CANT As Label
+ Dim L_TOTAL As Label
+ Dim b_borra As Button
+ Dim Existe As String
+ Dim result As String
+ ' Dim lat_gps, lon_gps As String
+ Dim cuantos As String
+ Dim nombre_prod As String
+ Dim cuantos_pedido As String
+ Private Titulo As Label
+ Private P1 As Panel
+ Private lv2 As ListView
+ Private p_principal As Panel
+ Dim clv_pedido As CustomListView
+ Private p_prods As Panel
+ Private l_prodX As Label
+ Private l_pCant As Label
+ Private et_pCant As EditText
+ Dim bmp As Bitmap
+ Dim etCantHasFocus As Boolean = False
+ Dim totalProds As Int = 0
+ Dim totalCompra As Int = 0
+ Dim prodsMap As Map
+ Dim reconstruirPedido As Boolean = False
+ Dim promoABorrar As String
+ Private b_guardar As Button
+ Private b_prodMas As Button
+ Private b_prodMenos As Button
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ g.Initialize("GPS")
+ Root.LoadLayout("historico")
+ b_borra.Visible = False
+ Titulo.Text = "Pedido"
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ Subs.centraPanel(p_principal, Root.Width)
+' b_guardar.Visible = False
+
+' Titulo.Left = Round(p_principal.Width/2)-(Titulo.Width/2)
+ L_CANT.Text =""
+ L_TOTAL.Text=""
+ c=Starter.skmt.ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")
+ C.Position=0
+ Existe = C.GetString("EXISTE")
+ C.Close
+' c=Starter.skmt.ExecQuery("select distinct hist_ventas.hvd_num_registro, HIST_VENTAS.HVD_CLIENTE, HIST_VENTAS.HVD_PRONOMBRE, HIST_VENTAS.HVD_PROID, HIST_VENTAS.HVD_CANT, HIST_VENTAS2.HVD_CANT as HVD_CANT2, HIST_VENTAS.HVD_COSTO_TOT, HIST_VENTAS.HVD_CODPROMO from HIST_VENTAS inner join HIST_VENTAS2 on HIST_VENTAS.HVD_PROID = HIST_VENTAS2.HVD_PROID and HIST_VENTAS.HVD_CLIENTE = HIST_VENTAS2.HVD_CLIENTE WHERE HIST_VENTAS.HVD_CLIENTE IN (Select CUENTA from cuentaa) and HIST_VENTAS.HVD_RECHAZO = 0 order by HIST_VENTAS.HVD_CODPROMO desc, HIST_VENTAS.HVD_PRONOMBRE asc")
+ c=Starter.skmt.ExecQuery("select hvd_num_registro, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 and hvd_cant > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")
+ ListView1.Clear
+ clv_pedido.Clear
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 60dip, Root.Width - 50, Root.Height * 0.62) 'Cambiamos el tamaño y posición de la lista de productos
+ clv_pedido.Base_Resize(clv_pedido.GetBase.Width, clv_pedido.GetBase.Height) 'Cambiamos el tamaño del panel interno de la lista para que ajuste al nuevo tamaño.
+' Log("RC1:"&c.RowCount)
+ If c.RowCount>0 Then
+' Log("Usamos HV")
+ For i=0 To c.RowCount -1
+ c.Position=i
+ 'Traemos cantidad de hvd2
+ Private oc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '${c.GetString("HVD_PROID")}' and HVD_NUM_REGISTRO = '${c.GetString("HVD_NUM_REGISTRO")}'"$)
+ Private cant2 As Int = 0
+ If oc.RowCount > 0 Then
+ oc.Position = 0
+ cant2 = oc.GetString("HVD_CANT")
+ End If
+ oc.Close
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 12
+ label1.TextColor = Colors.black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 12
+ label2.TextColor = Colors.black
+ Private bgColor, textColor As Int
+ bgColor = Colors.RGB(177, 200, 249)'azul
+ textColor = Colors.black
+ If c.GetString("HVD_CODPROMO") <> "1" Then
+' bgColor = Colors.RGB(255, 212, 163) 'naranja
+ bgColor = Colors.White
+ End If
+' Log($"Agregamos prod a lista1 | ${c.GetString("HVD_CANT")} - ${c.GetString("HVD_CANT2")}"$) 'HVD_CANT2 es la original de la orden.
+' ListView1.AddTwoLines(c.GetString("HVD_PRONOMBRE"),"Cantidad #"& c.GetString("HVD_CANT")& " SubTotal $"& c.GetString("HVD_COSTO_TOT"))
+ clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), Subs.traePrecio(c.GetString("HVD_PROID"), c.GetString("HVD_CODPROMO")), c.GetString("HVD_CANT"), 0, clv_pedido.AsView.Width, 50dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),Subs.traeCliente), c.GetString("HVD_PRONOMBRE"))
+ Next
+' cuentaProds("")
+ End If
+ 'Traemos lo vendido
+ Private vc As Cursor = Starter.skmt.ExecQuery("select * from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")
+ Log($"VENTA: ${vc.RowCount}"$)
+ If vc.RowCount > 0 Then
+' Log("Usamos REPARTO")
+' bgColor = Colors.RGB(248,113,113)
+ textColor = Colors.RGB(0,87,142)
+ For i=0 To vc.RowCount -1
+ vc.Position = i
+ Private cantCO As Int = 0
+ 'Traemos la cantidad disponible del cliente original
+ Private cco As Cursor = Starter.skmt.ExecQuery($"select * from REPARTO where REP_CLIENTE = '${vc.GetString("REP_CLI_ORIG")}' and REP_CLI_ORIG = '${vc.GetString("REP_CLI_ORIG")}' and REP_PRODID='${vc.GetString("REP_PRODID")}' and REP_RECHAZO = '1' and REP_CANT > 0"$)
+
+ If cco.RowCount > 0 Then
+ cco.Position = 0
+ cantCO = cco.GetString("REP_CANT") + vc.GetString("REP_CANT")
+ End If
+ cantCO = Subs.traeCantidadRechazada(vc.GetString("REP_CLI_ORIG"), vc.GetString("REP_PRODID"))
+
+' Log($"${vc.GetString("REP_CLI_ORIG")}, ${vc.GetString("REP_CLIENTE")}, ${vc.GetString("REP_PRODID")}, ${vc.GetString("REP_PRONOMBRE")}, ${vc.GetString("REP_RECHAZO")}, ${vc.GetString("REP_CANT")}, ${vc.GetString("REP_PRECIO")}, ${cantCO}, ${cco.GetString("REP_CANT")}, ${vc.GetString("REP_CANT")}"$)
+ clv_pedido.Add(CreateListItem(vc.GetString("REP_PRONOMBRE"), Subs.traePrecio(vc.GetString("REP_PRODID"), Subs.traeAlmacen), vc.GetString("REP_CANT"), cantCO, clv_pedido.AsView.Width, 50dip, bmp, vc.GetString("REP_PRODID"), bgColor, textColor, 1, vc.GetString("REP_CLI_ORIG")), vc.GetString("REP_PRONOMBRE"))
+ Next
+ cco.Close
+ vc.Close
+ End If
+
+ If Existe <> 0 Then
+ c = Starter.skmt.ExecQuery("select SUM(HVD_CANT) AS PC_NOART, SUM(HVD_COSTO_TOT) AS PC_MONTO from HIST_VENTAS where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")
+ C.Position=0
+ L_CANT.Text = c.GetString("PC_NOART")
+ L_TOTAL.Text = Round2(c.GetString("PC_MONTO"), 2)
+ End If
+ c=Starter.skmt.ExecQuery("select count(*) as EXISTE from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")
+ c.Position=0
+ Existe = C.GetString("EXISTE")
+ c.Close
+' c=Starter.skmt.ExecQuery("select PE_PRONOMBRE,PE_COSTO_TOT, PE_CANT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PRONOMBRE asc")
+ 'ListView1.Clear
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+' Log("RC2:" & c.RowCount)
+' If c.RowCount > 0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+' Dim label1 As Label
+' label1 = ListView1.TwoLinesLayout.Label
+' label1.TextSize = 12
+' label1.TextColor = Colors.White
+' Dim label2 As Label
+' label2 = ListView1.TwoLinesLayout.SecondLabel
+' label2.TextSize = 12
+' label2.TextColor = Colors.White
+' Log("Agegamos prod a lista 2")
+' ListView1.AddTwoLines("VENTA" & c.GetString("PE_PRONOMBRE"),"Cantidad #"& c.GetString("PE_CANT")& " SubTotal $"& c.GetString("PE_COSTO_TOT"))
+' 'folio = c.GetString("PE_FOLIO")
+' Next
+' End If
+ If Existe <> 0 Then
+ c=Starter.skmt.ExecQuery("select SUM(PE_CANT) AS PE_CANT, SUM(PE_COSTO_TOT) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")
+ C.Position=0
+ L_CANT.Text = L_CANT.Text + c.GetString("PE_CANT")
+ L_TOTAL.Text = Round2(L_TOTAL.Text + c.GetString("PE_COSTO_TOT"), 2)
+ End If
+ 'la_no_ird.Text = c.GetString("PR_CF_SALDO_ACORT")
+' cuentaProds("")
+ Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+ L_CANT.Text = cym.Get("cantidad")
+ L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+End Sub
+
+Sub GPS_LocationChanged (Location1 As Location)
+' lat_gps=Location1.ConvertToSeconds(Location1.Latitude)
+' lon_gps=Location1.ConvertToSeconds(Location1.Longitude)
+End Sub
+
+Sub b_regresar_Click
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ ' I want to capture the key here so I return True
+ B4XPages.ShowPage("Cliente")
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+
+Sub ListView1_ItemLongClick (Position As Int, Value As Object) 'BORRAR
+' nombre_prod = Value
+' result = Msgbox2("Seguro que desa borrar este articulo?","Borrar Articulo", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore
+' If result = DialogResponse.POSITIVE Then
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' c.Position=0
+' If c.GetString("HVD_CANT") > 1 Then
+' b_regresar.Visible =False
+' b_borra.Visible=False
+' P1.Visible =True
+' cuantos_pedido = c.GetString("HVD_CANT")
+' lv2.Clear
+' lv2.SingleLineLayout.Label.TextColor = Colors.Black
+' For i=1 To c.GetString("HVD_CANT")
+' lv2.AddSingleLine(i)
+' Next
+' Else
+' ' skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),Value))
+' c.Close
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT,REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' c.Position=0
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),Value))
+' c.Close
+'
+' 'skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' ' se cambia por update para no borrarlo y tener todos los registros.
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+'
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' 'quitar esta mamada no es ahi
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' B4XPage_Appear
+' End If
+'
+' End If
+End Sub
+
+Sub lv2_ItemClick (Position As Int, Value As Object) 'BORRAR
+' ' If Value = "Todos" Then
+' ' cuantos = c.GetString("HVD_CANT")
+' 'Else
+' cuantos = Value
+' ' End If
+' If cuantos = cuantos_pedido Then
+' 'Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),nombre_prod))
+' c.Close
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(nombre_prod))
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(nombre_prod))
+' c.Position=0
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),nombre_prod))
+' c.Close
+' 'Starter.skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' ' se cambia por update para no borrarlo y tener todos los registros.
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' 'quitar esta m*m*d* no es ahi
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_RECHAZO = 1, HVD_PARCIAL = 0, HVD_CANT = HVD_CANT - ? where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos, nombre_prod))
+' b_regresar.Visible =True
+' b_borra.Visible=True
+' P1.Visible =False
+' B4XPage_Appear
+' Else
+' ' skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(cuantos,nombre_prod))
+' c.Close
+'
+' 'modificar tambien esto
+' 'Modificaciones para que solo quite una parte.
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, ?, ? * (HVD_COSTO_TOT/?), HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As Object(cuantos,cuantos,cuantos_pedido, nombre_prod))
+' Starter.skmt.ExecNonQuery2("insert into hist_ventas(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) select HVD_CLIENTE,HVD_PRONOMBRE,?,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, 1, HVD_ESTATUS, 1 from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As Object(cuantos, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_RECHAZO = 0, HVD_PARCIAL = 1, HVD_CANT = HVD_CANT - ? where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_COSTO_TOT = HVD_CANT * (HVD_COSTO_TOT/?) where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos_pedido, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(cuantos,nombre_prod))
+' 'crear nueva tabla para que guarde el resto.
+'' skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' B4XPage_Appear
+' b_regresar.Visible =True
+' b_borra.Visible=True
+' P1.Visible =False
+' End If
+End Sub
+
+'****************************************************************************
+'***************** PARA EL MAS/MENOS *************************************
+'****************************************************************************
+
+Sub CreateListItem(Text As String, precioU As String, inv As Int, inv2 As Int, Width As Int, Height As Int, img As Bitmap, prodId As String, bc As Int, tc As Int, promo As String, cliente_original As String) As Panel
+ Dim p As B4XView = xui.CreatePanel("")
+ Private cs As CSBuilder
+ cs.Initialize
+ p.SetLayoutAnimated(0, 0, 0, Width, Height)
+ p.LoadLayout("prodItem")
+ p_prods.Color = bc
+ l_prodX.TextColor = tc
+ precioU = $"$1.2{precioU}"$
+ l_prodX.Text = Text&CRLF&"Cant: " & inv2 & " $" & precioU
+ If promo <> "1" And precioU = 0 Then
+ l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).append(Text&CRLF&"Cant: " & inv2 & " $" & precioU).PopAll
+ End If
+ l_prodX.Tag = $"ID: ${prodId}${CRLF}${Text}${CRLF}Precio: $$1.2{precioU}${CRLF}Inv: ${inv} pzs"$
+' l_pCant.Text = 0
+ l_pCant.Tag = Round2(precioU,2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original
+ et_pCant.Tag = Round2(precioU,2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original
+ p_prods.Tag = l_pCant.tag
+' Log($"Ponemos la cant en ${inv}"$)
+ l_pCant.Text = inv
+' et_pCant.Text = inv
+' et_pCant.BringToFront
+
+ l_pCant.BringToFront
+ et_pCant.SendToBack
+
+' i_prod.Bitmap = img
+ Return p
+End Sub
+
+Sub b_prodMenos_Click
+ etCantHasFocus = False
+ Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMenos_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCant As B4XView = pnl.GetView(2).GetView(3)
+' Log(pnl.GetView(2).GetView(0) & "|" & pnl.GetView(2).GetView(1) & "|" & pnl.GetView(2).GetView(2))
+ Dim esteTag As List = Regex.Split("\|", laCant.Tag)
+ Log("LC_TEXT:"&laCant.Text&"|PROMO:"&esteTag.Get(3)&"|LC_TAG:"&laCant.Tag&"|ET:"&esteTag)
+ If esteTag.Get(3) <> "1" Then 'Si es PROMO entonces ...
+ Log("ES PROMO")
+ result = Msgbox2("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?","Modificar Promoción", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore
+ If result = DialogResponse.POSITIVE Then 'Quitamos esta promo
+ prodsMap.Remove(esteTag.Get(3))
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PROID = '${esteTag.Get(3)}' and HVD_cliente in (Select CUENTA from cuentaa)"$)
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_CODPROMO = '${Subs.traeAlmacen}' WHERE HVD_cliente in (Select CUENTA from cuentaa) AND HVD_CODPROMO = '${esteTag.Get(3)}'"$)
+ LogColor(prodsMap, Colors.red)
+ reconstruirPedido = True
+ promoABorrar = esteTag.Get(3)
+ B4XPage_Appear
+ End If
+ Else
+ If laCant.Text = "" Then laCant.Text = 0
+ laCant.Text = $"$1.0{laCant.Text-1}"$
+ If laCant.Text < 0 Then laCant.Text = 0
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+ End If
+ Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+ Log("PU: " & preciou)
+' LogColor("estamos aqui mmenos " & laCant.Text& " , " & (preciou * laCant.Text),Colors.Green )
+' If L_CANT.Text - 1 >= 0 Then
+' L_CANT.Text = L_CANT.Text - 1
+' End If
+' b_guardar.Visible = True
+ Subs.prodRechazo(esteTag.Get(5), esteTag.Get(2))
+ Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+ L_CANT.Text = cym.Get("cantidad")
+ L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("-")
+End Sub
+
+Sub b_prodMas_Click
+ etCantHasFocus = False
+' Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMas_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCant As B4XView = pnl.GetView(2).GetView(3)
+' Log(pnl.GetView(2).GetView(1).text&"|"&pnl.GetView(2).GetView(2)&"|"&pnl.GetView(2).GetView(4).text)
+' Log($"precio|stock:${laCant.tag}"$)
+' Log($"Indice: ${index}, cant:${laCant.Text+1}, precioU: ${laCant.tag}"$)
+ Dim esteTag As List = Regex.Split("\|", laCant.Tag)
+ Log("LC_TEXT:"&laCant.Text&"|LC_TAG:"&laCant.Tag&"|ET:"&esteTag)
+ If laCant.Text = "" Then laCant.Text = 0
+
+ Private maxProds as string = esteTag.Get(1) + esteTag.Get(4) 'Prods disponibles + prods comprados
+
+ LogColor($"++++++++++++++++++++++++++ ${esteTag}"$, Colors.Green)
+' Log(esteTag.get(4))
+ If laCant.Text + 1 <= maxProds Then
+ Log($"NuevaCant = ${laCant.Text + 1}"$)
+ laCant.Text = $"$1.0{laCant.Text + 1}"$
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+ Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))
+ Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+ L_CANT.Text = cym.Get("cantidad")
+ L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("+")
+ End If
+' Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+' Log(preciou)
+' LogColor("estamos aquii mas " & laCant.Text& " , " & (preciou * laCant.Text) ,Colors.Green )
+' b_guardar.Visible = True
+' Log($"Total Prods: ${totalProds}, Total Compra: $$1.2{totalCompra}"$)
+' c = Starter.skmt.ExecQuery($"SELECT HVD_CANT FROM HIST_VENTAS2 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID = '${esteTag.Get(2)}' "$)
+' c.Position = 0
+' Dim cantoriginal As String = 0
+' If c.RowCount > 0 Then
+' cantoriginal = c.GetString("HVD_CANT")
+' End If
+' If cantoriginal <= esteTag.Get(1) Then
+' L_CANT.Text = L_CANT.Text + 1
+' End If
+End Sub
+
+Sub cuentaProds(accion As String)
+' Log("Entramos a cuentaProds")
+Log("*******************************************************")
+ Private cantRechazada As Int = 0
+ If Not(reconstruirPedido) Then
+ Log("*********** CUENTAPRODS - NO RECONSTRUIR")
+ prodsMap.Initialize
+ For i = 0 To clv_pedido.GetSize - 1
+ Private p0 As B4XView = clv_pedido.GetPanel(i)
+ Private p As B4XView = p0.GetView(0)
+ Private cant1 As B4XView = p.GetView(2).GetView(3)
+ If cant1.Text = "" Then cant1.Text = 0
+' totalProds = totalProds + cant1.Text
+ Private esteTag As List = Regex.Split("\|", cant1.Tag)
+ Log("-------------------------------------")
+ Log($"ET: ${esteTag}"$)
+ Private esteProd As String = esteTag.Get(2)
+ Private estaCant As Int = cant1.Text
+ Private estaCantOriginal As Int = esteTag.Get(1)
+ Private esteCliente = Subs.traeCliente
+ Private esteProdNombre = Subs.traeNombre(esteProd)
+ Private esteClienteOriginal As Int = esteTag.Get(5)
+ Private fechaReparto As String = Subs.traeFechaReparto
+ Private maxProds = Subs.traeMaxCantidad(esteTag.Get(5), esteTag.Get(2))
+
+ If cant1.Text > maxProds Then cant1.Text = maxProds
+
+ cantRechazada = esteTag.Get(4) - cant1.Text
+' If accion = "-" Then cantRechazada = Subs.traeCantidadRechazada(esteClienteOriginal, esteProd) + 1
+' If accion = "+" Then cantRechazada = Subs.traeCantidadRechazada(esteClienteOriginal, esteProd) - 1
+ Log($"${Subs.traeCantidadRechazada(esteClienteOriginal, esteProd)}, ${Subs.traeCantidadVendida(esteClienteOriginal, esteProd)}"$)
+
+' LogColor($"cantRechazada = ${esteTag.Get(4)} - ${cant1.Text}"$, Colors.Magenta)
+ LogColor($"cantRechazada = ${cantRechazada}"$, Colors.Magenta)
+ Private estePrecio As String = 0
+ If Subs.traePrecio(esteProd, 1) <> Null Then estePrecio = Subs.traePrecio(esteProd, Subs.traeAlmacen) * cantRechazada
+
+' LogColor(esteProd & "|" & cant1.Text & "|" & estaCantOriginal & "|" & cantRechazada & "|" & estePrecio, Colors.red)
+' LogColor($"cantRechazada=${cantRechazada} | ${esteProdNombre}"$, Colors.Blue)
+' Log($"Ponemos HVD_CANT ${esteProd} en ${cant1.text}"$)
+ Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = ? WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)", Array As String(cant1.Text ,esteProd))
+ Private rr As Cursor = Starter.skmt.ExecQuery($"select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '${esteProd}' and REP_CLIENTE in (Select CUENTA from cuentaa)"$)
+ rr.Position = 0
+' Log($"HayRechazo=${rr.GetString("hayRechazo")}"$)
+ If rr.GetString("hayRechazo") = 0 Then
+ Log("INSERTAMOS EN REPARTO")
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ", Array As String(esteCliente, esteProdNombre, 0, estePrecio, fechaReparto, esteProd, estePrecio, esteCliente))
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ", Array As String(esteCliente, esteProdNombre, cantRechazada, 0, fechaReparto, esteProd, estePrecio, esteCliente))
+ Else if esteClienteOriginal = "0" Then 'Actualizamos el rechazo en el cliente actual.
+' Log($"Actualizamos REP_CANT=${cantRechazada}"$)
+' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = '${cantRechazada}', REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${esteProd}'"$)
+ Else 'Cliente original <> 0 entonces actualizamos el rechazo en el cliente original y NO en el actual.
+ Log($"Actualizamos REP_CANT RECHAZO = ${cantRechazada}"$)
+' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = ${cantRechazada}, REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE = '${esteClienteOriginal}' and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${esteProd}'"$)
+' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = '${cant1.Text}', REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${esteProd}'"$)
+ End If
+
+ If cant1.Text > 0 Then
+' totalCompra = totalCompra + (esteTag.get(0) * cant1.text)
+' Log($"Cant: ${cant1.Text}, Suma: ${totalCompra}"$)
+ Private m As Map
+ m=CreateMap("cant":cant1.Text, "cant2":esteTag.get(4), "precio":esteTag.get(0), "promo":esteTag.get(3), "nombre":Subs.traeNombre(esteTag.Get(2)), "cli_orig":esteTag.get(5))
+' LogColor("PUT:" & esteTag.Get(2), Colors.Red)
+ prodsMap.Put(esteTag.Get(2), m)
+ End If
+ Log("-------------------------------------")
+ Next
+ End If
+ Private bgColor, textColor As Int
+
+ If reconstruirPedido Then
+ Log("*********** CUENTAPRODS - SI RECONSTRUIR")
+ Private newPromo, newPrecio As String
+ clv_pedido.Clear
+ Log("Usamos PRODSMAP")
+ For Each pr As String In prodsMap.Keys
+ Private pr1 As Map = prodsMap.Get(pr)
+ Log("PPP: " & pr & "|PromoABorrar=" & promoABorrar & "|" & pr1)
+ bgColor = Colors.RGB(177, 200, 249)'azul
+ textColor = Colors.black
+ newPromo = pr1.Get("promo")
+ newPrecio = pr1.Get("precio")
+ Log("AAA: " & newPromo & "|" & promoABorrar)
+ If newPromo = promoABorrar Then
+ newPromo = 1
+ newPrecio = Subs.traePrecio(pr, False) * pr1.Get("cant")
+ 'Ponemos precio SIN promo y sacamos el producto de la promo.
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_COSTO_TOT = ${newPrecio}, HVD_CODPROMO = '${Subs.traeAlmacen}' WHERE HVD_PRONOMBRE = '${pr1.Get("nombre")}' and HVD_cliente in (Select CUENTA from cuentaa)"$)
+ LogColor("CAMBIAMOS PROMO: " & newPromo, Colors.Magenta)
+ End If
+ If newPromo <> "1" Then
+' bgColor = Colors.RGB(255, 212, 163) 'naranja
+ bgColor = Colors.White
+ End If
+ Log($"CLI: ${pr1.Get("nombre")}, ${newPrecio}, ${pr1.Get("cant")}, ${pr1.Get("cant2")}"$)
+ clv_pedido.Add(CreateListItem(pr1.Get("nombre"), newPrecio, pr1.Get("cant"), pr1.Get("cant2"), clv_pedido.AsView.Width, 50dip, bmp, pr, bgColor, textColor, newPromo, pr1.Get("cli_orig")), pr1.Get("nombre"))
+ reconstruirPedido = False
+ Next
+ promoABorrar = ""
+ End If
+ Log($"Total Prods: ${totalProds}, Total Compra: $$1.2{totalCompra}"$)
+ LogColor("prodsMap=" & prodsMap, Colors.Green)
+
+
+ LogColor(prodsMap, Colors.Blue)
+ c = Starter.skmt.ExecQuery($"SELECT sum(HVD_CANT) as CANTIDAD FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"$)
+ Dim cantidad1 As String = 0
+ If c.RowCount > 0 Then
+ c.Position = 0
+ cantidad1 = c.GetString("CANTIDAD")
+ L_CANT.Text = Round(cantidad1)
+ End If
+ c.Close
+
+ Dim totalfinal As String = 0
+ For Each pr As String In prodsMap.Keys
+ Private pr1 As Map = prodsMap.Get(pr)
+' LogColor(pr,Colors.Red)
+ Dim x As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_ID = '${pr}'"$)
+ c = Starter.skmt.ExecQuery($"SELECT HVD_CANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID ='${pr}' "$)
+ Dim cantidady As String = 0
+ If c.RowCount >0 Then
+ c.Position = 0
+ cantidady = c.GetString("HVD_CANT")
+ End If
+' Log(x.RowCount)
+ If x.RowCount > 0 Then
+ x.Position = 0
+' Log(x.GetString("CAT_GP_PRECIO"))
+ Dim preciou As String = x.GetString("CAT_GP_PRECIO")
+ Dim costototalhist As String = preciou * cantidady
+' Log("Total ==== "&costototalhist)
+ End If
+ totalfinal = totalfinal + costototalhist
+ x.Close
+ Next
+ L_TOTAL.Text = Round2(totalfinal, 2)
+ c.Close
+
+ c = Starter.skmt.ExecQuery("select COUNT(*) AS CUANTOS from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")
+ If c.RowCount > 0 Then
+ c.Position = 0
+ If c.GetString("CUANTOS") > 0 Then
+
+ Dim z As Cursor = Starter.skmt.ExecQuery($"select SUM(REP_CANT) AS CANTIDAD , SUM(REP_PRECIO) AS PRECIO from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE"$)
+ Dim cantidad2 As String = 0
+' Log(z.RowCount)
+ If z.RowCount > 0 Then
+ z.Position = 0
+ cantidad2= z.GetString("CANTIDAD")
+' LogColor(z.GetString("PRECIO")&" , " & z.GetString("CANTIDAD"), Colors.Magenta)
+' Log(cantidad1 &" , "& cantidad2)
+ L_CANT.Text = Round((cantidad1 + cantidad2))
+ End If
+ z.Close
+
+
+ End If
+ End If
+
+
+
+End Sub
+
+Private Sub b_guardar_Click
+
+End Sub
+
+
+Private Sub l_pCant_Click
+
+End Sub
+
+Sub p_prods_Click
+ Log(Sender.As(Panel).tag)
+End Sub
\ No newline at end of file
diff --git a/B4A/C_Mapas.bas b/B4A/C_Mapas.bas
new file mode 100644
index 0000000..8371da5
--- /dev/null
+++ b/B4A/C_Mapas.bas
@@ -0,0 +1,24 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
\ No newline at end of file
diff --git a/B4A/C_NoVenta.bas b/B4A/C_NoVenta.bas
new file mode 100644
index 0000000..53bec50
--- /dev/null
+++ b/B4A/C_NoVenta.bas
@@ -0,0 +1,407 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim g As GPS
+ Dim c As Cursor
+ Dim COMENTARIO As String
+ Dim CANCELA As Button
+ Dim GUARDA As Button
+ Dim r_1 As RadioButton
+ Dim r_2 As RadioButton
+ Dim r_3 As RadioButton
+ Dim e_comm As EditText
+ Dim motivo As String
+ Dim cuenta As String
+ Dim usuario As String
+ Dim sDate,sTime As String
+ Dim r_4 As RadioButton
+ Private p_principal As Panel
+ Dim d As Cursor
+ Dim reqManager As DBRequestManager
+ Private cb_reprogramar As CheckBox
+ Dim reprogramar As Int = 0
+ Dim PASA_IMP As String
+ Dim Printer1 As EscPosPrinter
+ Dim impresoraConectada As Boolean = False
+ Dim errorImpresora As Int = 0
+ Dim cmp20 As Serial
+ Dim btAdmin As BluetoothAdmin
+ Dim printer As TextWriter
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ Root.LoadLayout("no_venta")
+ reqManager.Initialize(Me, B4XPages.MainPage.SERVER)
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ Printer1.Initialize(Me, "Printer1")
+
+ If Printer1.IsConnected = False Then
+' Printer1.Connect
+' Log("1")
+ Else
+ Printer1.DisConnect
+ Printer1.Connect
+ Log("2")
+ End If
+ btAdmin.Initialize("BlueTeeth")
+ cmp20.Initialize("Printer")
+
+ reqManager.Initialize(Me, B4XPages.MainPage.SERVER)
+ e_comm.Text=""
+ r_1.Checked = False
+ r_2.Checked = False
+ r_3.Checked = False
+ r_4.Checked = False
+ cb_reprogramar.Checked = False
+End Sub
+
+Sub GPS_LocationChanged (Location1 As Location)
+' lat_gps=Location1.ConvertToSeconds(Location1.Latitude)
+' lon_gps=Location1.ConvertToSeconds(Location1.Longitude)
+End Sub
+
+Sub CANCELA_Click
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Sub GUARDA_Click
+ If r_1.Checked = False And r_2.Checked = False And r_3.Checked = False And r_4.Checked = False Then
+ MsgboxAsync("Selecciona un motivo de rechazo","Atención")
+ Else
+ B_IMP_Click
+
+ End If
+End Sub
+
+
+Sub mandaPendientesreparto
+' c=Starter.skmt.ExecQuery("SELECT CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO where ENVIO <> 1")
+' Log($"REPARTO_Cliente PENDIENTE: ${c.RowCount}"$)
+' If c.RowCount>0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+'
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_REPARTO_MARDS"
+' cmd.Parameters = Array As Object(c.GetString("CLIENTE"), c.GetString("USUARIO"), c.GetString("FECHA_PUNTEO"), c.GetString("LATITUD"), c.GetString("LONGITUD"), c.GetString("ALMACEN"), c.GetString("RUTA_REPARTO"), c.GetString("RUTA_PREV"), c.GetString("FECHA_PREVENTA"), c.GetString("MOTIVO"), c.GetString("COMENTARIO"),c.GetString("TIPO"))
+' reqManager.ExecuteCommand(cmd , $"ins_REPARTOPendientes_head_${c.GetString("CLIENTE")}"$)
+'
+' Next
+' End If
+' c.Close
+End Sub
+
+
+
+Sub JobDone(Job As HttpJob)
+ Log(Job.Success)
+ If Job.Success = False Then
+' ToastMessageShow("Error: " & Job.ErrorMessage, True)
+ Else
+ LogColor("JobDone: '" & reqManager.HandleJob(Job).tag & "' - Registros: " & reqManager.HandleJob(Job).Rows.Size, Colors.Green) 'Mod por CHV - 211027
+ If Job.JobName = "DBRequest" Then
+ Dim resultado As DBResult = reqManager.HandleJob(Job)
+ If resultado.Tag.As(String).IndexOf("ins_REPARTOPendientes_head_") > -1 Then
+ Private cliente As String= resultado.Tag
+ cliente = cliente.SubString(cliente.IndexOf("_")+24)
+ Log($"Cliente1:${cliente}"$)
+ Starter.skmt.ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",Array As String ("1", cliente,"1"))
+ For Each records() As Object In resultado.Rows
+ For Each k As String In resultado.Columns.Keys
+ Log(resultado.Tag & ": " & k & ": " & records(resultado.Columns.Get(k)))
+ Next
+ Next
+ End If
+ End If
+ Job.Release
+ End If
+
+End Sub
+
+Private Sub cb_reprogramar_CheckedChange(Checked As Boolean)
+ If Checked Then
+ reprogramar = 1
+ Else
+ reprogramar = 0
+ End If
+End Sub
+
+
+Sub B_IMP_Click
+ c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position=0
+ usuario = c.GetString("USUARIO")
+' DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.TimeFormat="HH:mm:ss"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c.Close
+' c=Starter.skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION =?", Array As String ("SUCURSAL"))
+' c.Position = 0
+' sucursal = c.GetString("CAT_VA_VALOR")
+' c.Close
+
+ ProgressDialogShow("Imprimiendo, un momento ...")
+ Printer1.DisConnect
+ If Not(Printer1.IsConnected) Then
+' Log("Conectando a impresora ...")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada)
+ Sleep(1000)
+' Log("++++++ " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect 'Tratamos de reconectar
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ Else
+' Log("conectando 2")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada) Or Not(Printer1.IsConnected)
+ Sleep(1000)
+' Log("****** " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ End If
+
+
+ Printer1.WriteString("Izca Distribuciones" & CRLF)
+
+ Printer1.WriteString("Vendedor:" & usuario & CRLF)
+
+
+ Dim clientecur As Cursor = Starter.skmt.ExecQuery("SELECT CAT_CL_NOMBRE FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ clientecur.Position = 0
+
+ Printer1.WriteString("ID.Cliente: " & Subs.traeCliente & CRLF)
+
+ Printer1.WriteString("Tienda: " & clientecur.GetString("CAT_CL_NOMBRE") & CRLF)
+
+ Printer1.WriteString(sDate &" "& sTime & CRLF)
+ If r_1.Checked Then
+ motivo = "CERRADO"
+ Else If r_2.Checked Then
+ motivo = "NO PIDIO"
+ Else If r_3.Checked Then
+ motivo = "CANCELA"
+ Else
+ motivo = "NO ESTA EL ENCARGADO"
+ End If
+ Printer1.WriteString(motivo & CRLF)
+'
+
+
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString("--------INFORMATIVO-----------" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Sleep(1000)
+ Printer1.DisConnect
+
+ ProgressDialogHide
+
+ Msgbox2Async("Deseas imprimir de nuevo el ticket?", "ATENCION","SI","", "NO",LoadBitmap(File.DirAssets,"alert2.png"), False)
+ Wait For Msgbox_Result (resultado As Int)
+ If resultado = DialogResponse.POSITIVE Then
+ B_IMP_Click
+ Else
+ Guardado
+ End If
+End Sub
+
+Sub Guardado
+
+ If r_1.Checked Then
+ motivo = "CERRADO"
+ Else If r_2.Checked Then
+ motivo = "NO PIDIO"
+ Else If r_3.Checked Then
+ motivo = "CANCELA"
+ Else
+ motivo = "NO ESTA EL ENCARGADO"
+ End If
+
+ If motivo <> "CERRADO" Or motivo = "CERRADO" Then
+ DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.TimeFormat="HHmmss"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c=Starter.skmt.ExecQuery("select CUENTA from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+ c.Close
+ Dim rutaactualizar As String
+ Dim rut As Cursor = Starter.skmt.ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ If rut.RowCount > 0 Then
+ rut.Position = 0
+ rutaactualizar = rut.GetString("CAT_CL_RUTA")
+ End If
+ Starter.skmt.ExecNonQuery($"DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) AND NV_RUTA ='${rutaactualizar}' "$)
+ 'Traemos los productos del pedido.
+ c=Starter.skmt.ExecQuery("select HVD_NUM_REGISTRO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_PROID, CAT_GP_PRECIO from HIST_VENTAS2 join CAT_GUNAPROD on CAT_GP_ID = HVD_PROID WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc")
+ If c.RowCount > 0 Then 'Si hay pedido en HIST_VENTAS ...
+
+ 'Revisamos si se le ha agregado venta al pedido.
+ Private esteCliente As String = Subs.traeCliente
+ Private rv As Cursor = Starter.skmt.ExecQuery($"select * from REPARTO where REP_CLIENTE = '${esteCliente}' and REP_CLI_ORIG <> '${esteCliente}' and REP_RECHAZO = 0"$)
+ If rv.RowCount > 0 Then 'Si tenemos venta en el pedido ...
+ For i2=0 To rv.RowCount - 1
+ rv.Position = i2
+ Log($"Actualizamos REPARTO - cliente=${rv.GetString("REP_CLIENTE")}, cliente orignal=${rv.GetString("REP_CLI_ORIG")}, le agregamos ${rv.GetString("REP_CANT")}"$)
+ Starter.skmt.ExecNonQuery($"update REPARTO set REP_CANT = REP_CANT + ${rv.GetString("REP_CANT")} where REP_RECHAZO = '1' and REP_CLIENTE = '${rv.GetString("REP_CLI_ORIG")}' and REP_CLI_ORIG = '${rv.GetString("REP_CLI_ORIG")}'"$)
+ Next
+ End If
+
+ Starter.skmt.ExecNonQuery("delete from reparto where REP_CLIENTE IN (Select CUENTA from cuentaa)")
+ For i=0 To c.RowCount - 1 'Insertamos los productos en REPARTO.
+ c.Position=i
+ Log($"REGISTRO= ${c.GetString("HVD_NUM_REGISTRO")}"$)
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?,?) ", Array As String(c.GetString("HVD_CLIENTE"),c.GetString("HVD_PRONOMBRE"),c.GetString("HVD_CANT"),c.GetString("HVD_COSTO_TOT"),c.GetString("HVD_FECHA"), c.GetString("HVD_PROID"), c.GetString("CAT_GP_PRECIO"), c.GetString("HVD_NUM_REGISTRO"), c.GetString("HVD_CLIENTE")))
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?,?) ", Array As String(c.GetString("HVD_CLIENTE"),c.GetString("HVD_PRONOMBRE"),0,c.GetString("HVD_COSTO_TOT"),c.GetString("HVD_FECHA"), c.GetString("HVD_PROID"), c.GetString("CAT_GP_PRECIO"), c.GetString("HVD_NUM_REGISTRO"), c.GetString("HVD_CLIENTE")))
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),c.GetString("HVD_PRONOMBRE")))
+ Next
+ End If
+
+ Starter.skmt.ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ", Array As Object (cuenta,sDate & sTime, usuario, motivo,e_comm.text, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps,rutaactualizar,reprogramar))
+ Starter.skmt.ExecNonQuery($"UPDATE kmt_info set gestion = 3, HORAENT = '${sDate & " " & sTime}' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '${rutaactualizar}'"$)
+ Starter.skmt.ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)"$)
+ Starter.skmt.ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ d = Starter.skmt.ExecQuery("SELECT RUTAA FROM RUTAA")
+ d.Position = 0
+ Dim ruta As String = d.GetString("RUTAA")
+ d.Close
+ d = Starter.skmt.ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ d.Position = 0
+ Dim rutapre As String = d.GetString("CAT_CL_RUTA")
+ d.Close
+ d = Starter.skmt.ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ d.Position = 0
+ Dim fechaprev As String = d.GetString("HVD_FECHA")
+ d.Close
+ d = Starter.skmt.ExecQuery("SELECT CUENTA FROM CUENTAA")
+ d.Position = 0
+ Starter.skmt.ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",Array As String (cuenta, usuario, sDate &" "&sTime, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps,B4XPages.MainPage.almacen,ruta,rutapre,fechaprev, motivo, e_comm.Text,"NO ENTREGADO"))
+
+' Dim mandamapa As Cursor = Starter.skmt.ExecQuery("SELECT * FROM kmt_info WHERE gestion = 0")
+' If mandamapa.RowCount > 0 Then
+' StartActivity(MAPA_RUTAS)
+' Else If mandamapa.RowCount = 0 Then
+
+ B4XPages.ShowPage("Principal")
+' End If
+ Else
+ COMENTARIO = e_comm.Text
+' B4XPages.ShowPage("Foto")
+' StartActivity(foto)
+ End If
+
+End Sub
+
+Sub Printer1_Connected (Success As Boolean)
+' If Logger Then Log("Printer1_Connected")
+ If Success Then
+ ToastMessageShow("Impresora conectada", False)
+ Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("MACIMP"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("MACIMP",Starter.mac_impresora))
+' If logger Then LogColor("Impresora conectada", Colors.Green)
+' B_IMP2.Enabled = True
+ impresoraConectada = True
+ Else
+' Msgbox(Printer1.ConnectedErrorMsg, "Error connecting.") 'ignore
+' ToastMessageShow("Error conectando la impresora", False)
+ LogColor("Error conectando la impresora", Colors.Red)
+ errorImpresora = errorImpresora + 1
+ If errorImpresora > 1 Then
+ Starter.MAC_IMPRESORA = "0"
+ errorImpresora = 0
+ End If
+ End If
+End Sub
+
+Sub Printer1_Error
+ Log("error printer")
+End Sub
+
+Sub Printer_Connected (Success As Boolean)
+ If Success Then
+' B_IMP.Enabled = True
+ PASA_IMP = "1"
+ Else
+' B_IMP.Enabled = False
+ If Msgbox2("", "Printer Error","Reprint","Cancel","",Null) = DialogResponse.POSITIVE Then 'ignore
+ StartPrinter
+ End If
+ End If
+End Sub
+
+Sub StartPrinter
+ Dim PairedDevices As Map
+ Dim L1 As List
+ Dim resimp As Int
+ ToastMessageShow("Printing.....",True)
+ PairedDevices.Initialize
+ Try
+ PairedDevices = cmp20.GetPairedDevices
+ Catch
+ Msgbox("Getting Paired Devices","Printer Error") 'ignore
+ printer.Close
+ cmp20.Disconnect
+ End Try
+
+ If PairedDevices.Size = 0 Then
+ Msgbox("Error Connecting to Printer - Printer Not Found","") 'ignore
+ Return
+ End If
+
+ If PairedDevices.Size = 1 Then
+ Try
+ cmp20.Connect(PairedDevices.Get(PairedDevices.GetKeyAt(0)))
+ Catch
+ Msgbox("Connecting","Printer Error") 'ignore
+ printer.Close
+ cmp20.Disconnect
+ End Try
+ Else
+ L1.Initialize
+ For i = 0 To PairedDevices.Size - 1
+ L1.Add(PairedDevices.GetKeyAt(i))
+ Next
+ resimp = InputList(L1, "Choose device", -1) 'ignore
+ If resimp <> DialogResponse.CANCEL Then
+ cmp20.Connect(PairedDevices.Get(L1.Get(resimp)))
+ End If
+ End If
+End Sub
\ No newline at end of file
diff --git a/B4A/C_NuevoCliente.bas b/B4A/C_NuevoCliente.bas
new file mode 100644
index 0000000..8371da5
--- /dev/null
+++ b/B4A/C_NuevoCliente.bas
@@ -0,0 +1,24 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
\ No newline at end of file
diff --git a/B4A/C_Pedidos.bas b/B4A/C_Pedidos.bas
new file mode 100644
index 0000000..8371da5
--- /dev/null
+++ b/B4A/C_Pedidos.bas
@@ -0,0 +1,24 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
\ No newline at end of file
diff --git a/B4A/C_Principal.bas b/B4A/C_Principal.bas
new file mode 100644
index 0000000..ae4e92d
--- /dev/null
+++ b/B4A/C_Principal.bas
@@ -0,0 +1,3012 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim reqManager As DBRequestManager
+ Dim conectado As String
+ Dim t1 As Timer
+ Dim sb As StringBuilder
+ Dim PHONE As Phone
+ Dim trabajar As Button
+ Dim c As Cursor
+ Dim d As Cursor
+ Dim b As Cursor
+ Dim e As Cursor
+ Dim f As Cursor
+ Dim f1 As Cursor
+ Dim f2 As Cursor
+ Dim f3 As Cursor
+ Dim F4 As Cursor
+ Dim lv As ListView
+ Dim cargar As Button
+ Dim pendiente As Button
+ Dim foto1() As Byte
+ Dim usuario As String
+ Dim connecta As Button
+ Dim conn As String
+ Dim Subir As Button
+ Dim cmd As DBCommand
+ Dim TOPE As Int
+ Dim COUNT_CLIE As Int
+ Dim fecha As String
+ Dim drop As Double
+ Dim efectiva As Double
+ Dim L As Cursor
+ Dim l_aLiquidar As Label
+ Dim l_cuantosc As Label
+ Dim l_montoSalida As Label
+' Dim l_efectiva As Label
+ Dim l_ctast As Label
+ Dim BUSCA As Button
+ Dim Cuantos As String
+ Dim l_cuantosn As Label
+ Dim e_ruta As EditText
+ Dim l_porvisitar As Label
+ Dim b_mapa As Button
+ Dim l_ruta As Label
+ Dim ALMACEN As String
+ Private img2 As ImageView
+ Dim Listo1 As String
+ Dim Listo2 As String
+ Dim Listo3 As String
+ Dim Listo4 As String
+ Dim Listo5 As String
+ Dim EJECUTANDO As String
+ Dim RES As String
+ Dim inve As String
+ Dim cuantos_pedidosc As String
+ Dim cuantos_pedido As String
+ Dim cuantos_noventa As String
+ Dim datos_iguales As String
+ Dim p As PhoneId
+ Dim imei As String
+
+ Private inv As Button
+' Private cambios As Label
+ Private L_MONTOE As Label
+ Private B_CLIEPROD As Button
+ Private ListView1 As ListView
+ Private B_REGRESA As Button
+ Private Panel1 As Panel
+ Dim ESTATUS As String
+ Dim batterystatus(11) As Int
+ Private bu As BatteryUtilities
+ Dim RUTA_T As String
+ Dim reqs As List
+ '''''' MAPA RUTAS
+ Private Btn_Ubicar_Ru As Button
+ Dim cargo As String
+ Private p_principal As Panel
+ Dim ime As IME
+ Private b_tabulador As Button
+
+ Private l_rutasP As Label
+ Private l_rechazo As Label
+ Private Label9 As Label
+ Dim cp As Cursor
+ Private b_check As Button
+ Private b_rechazos As Button
+ Private p_prod As Panel
+ Private b_regreso As Button
+ Private lv_prod_Prin As ListView
+ Private b_venta_emp As Button
+
+ ''para la carga --- mover a los demas clientes
+ Dim t8 As Timer
+ Private B_carga As Button
+ Private P_carga As Panel
+ Private L_carga As Label
+ Private PB_carga As ProgressBar
+ Private PB_carga2 As ProgressBar
+ Private l_carga2 As Label
+ 'fin carga
+
+ Dim btAdmin As BluetoothAdmin
+ Dim cmp20 As Serial
+ Dim printer As TextWriter
+ Dim TAMANO As Int
+ Dim ESPACIO As Int
+ Dim BLANCO As String
+ Dim Printer1 As EscPosPrinter
+ Dim impresoraConectada As Boolean = False
+ Dim errorImpresora As Int = 0
+ Private inventario As ImageView
+ Dim PASA_IMP As String
+ Private b_imp_inventario As Button
+
+ Dim s As Cursor
+ Private PrinterIsReady As Boolean = False
+ Private LastConnectionAttempt As Long = 0
+ Private b_impresion_rec As Button
+ Private L_clientes_visit As Label
+ Private l_clientes_recha As Label
+ Private l_clientes_visitados As Label
+ Private l_numtickets As Label
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ Root.LoadLayout("principal")
+ EJECUTANDO=1
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+' LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+' Dim ruta As String
+ img2.Visible =False
+ DateTime.DateFormat = "MM/dd/yyyy"
+ fecha=DateTime.Date(DateTime.Now)
+' skmt.Initialize(Starter.ruta,"kmt.db", True)
+ b=Starter.skmt.ExecQuery("Select count(*) as CUANTOS from pedido_cliente")
+ b.Position=0
+ Cuantos = b.GetString("CUANTOS")
+ d=Starter.skmt.ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000")
+ D.Position=0
+ b.Close
+ e=Starter.skmt.ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")
+ e.Position=0
+ If Cuantos = 0 Then
+ l_aLiquidar.Text = 0
+ l_cuantosc.Text = 0
+ l_cuantosn.Text = 0
+ drop = 0
+ l_montoSalida.Text = 0
+ efectiva = 0
+' l_efectiva.text = 0
+ l_ctast.Text = d.GetString("TOTAL_VISITAR")
+ l_porvisitar.Text = e.GetString("POR_VISITAR")
+ Else
+' c=Starter.skmt.ExecQuery("select sum(pc_monto) as MONTO_DIA, count(pc_cliente) AS CLIENTES_DIA from pedido_cliente")
+' b=Starter.skmt.ExecQuery("select count(*) as CUANTOS from noventa")
+' 'where pc_fecha = ?", Array As String(fecha)
+' C.Position=0
+' b.Position=0
+' l_aLiquidar.Text = c.GetString("MONTO_DIA")
+' l_cuantosc.Text = c.GetString("CLIENTES_DIA")
+' l_cuantosn.Text = b.GetString("CUANTOS")
+'' drop = c.GetString("MONTO_DIA") / c.GetString("CLIENTES_DIA")
+ '' l_montoSalida.Text = Round2(drop,2)
+'' efectiva = c.GetString("CLIENTES_DIA") / e.GetString("POR_VISITAR")
+'' l_efectiva.text = Round2(efectiva * 100, 2)
+' l_ctast.Text = d.GetString("TOTAL_VISITAR")
+' l_porvisitar.Text = e.GetString("POR_VISITAR")
+' b.Close
+' c.Close
+ End If
+ b=Starter.skmt.ExecQuery("select id_almacen from CAT_ALMACEN")
+ If b.RowCount > 0 Then
+' Log("Traemos almacen ..." & B4XPages.MainPage.server)
+ b.Position = 0
+' Log(b.GetString("ID_ALMACEN"))
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "select_coords_almacen_mards"
+ cmd.Parameters = Array As Object(b.GetString("ID_ALMACEN"))
+ reqManager.ExecuteQuery(cmd , 0, "coords_almacen")
+ End If
+ B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB
+ btAdmin.Initialize("BlueTeeth")
+ cmp20.Initialize("Printer")
+End Sub
+
+Sub B4XPage_Appear
+
+ Private c As Cursor = Starter.skmt.ExecQuery("SELECT * FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ If c.RowCount > 0 Then
+ Starter.skmt.ExecNonQuery("delete from NOVENTA where NV_MOTIVO <> 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ End If
+
+ Private c As Cursor = Starter.skmt.ExecQuery("SELECT * FROM NOVENTA")
+ If c.RowCount > 0 Then
+ Starter.skmt.ExecNonQuery("Update kmt_info set gestion = 2 WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA')")
+ End If
+ Private c As Cursor = Starter.skmt.ExecQuery("SELECT NV_CLIENTE FROM NOVENTA")
+ If c.RowCount > 0 Then
+ Starter.skmt.ExecNonQuery("Update kmt_info set gestion = 3 WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO <> 'ENTREGA')")
+ End If
+
+ b_check.visible = False
+ Subs.centraPanel(p_principal, Root.Width)
+' c=Starter.skmt.ExecQuery("select noversion from version")
+' c.Position=0
+' If c.RowCount > 0 And c.GetString("NOVERSION") <> "2.1" Then
+' ToastMessageShow("EXISTE UNA NUEVA VERSION, ACTUALIZA POR FAVOR." , True)
+' cargar.Visible = False
+' Subir.Visible = False
+' connecta.Visible = False
+' trabajar.Visible = False
+' BUSCA.Visible = False
+' inv.Visible = False
+' End If
+' c.Close
+ If EJECUTANDO = 0 Then
+ Listo1 = 0
+ Listo2 = 0
+ Listo3 = 0
+ Listo4 = 0
+ Listo5 = 0
+ inve = 0
+ img2.Visible =False
+ End If
+ l_ruta.Text = 0
+ f=Starter.skmt.ExecQuery("select rutaa from rutaa")
+ If f.RowCount > 0 Then
+ f.Position = 0
+ l_ruta.Text = f.GetString("RUTAA")
+ End If
+ f.Close
+ If l_ruta.Text = 0 Then
+ l_ruta.Text = 0
+ l_rutasP.Text = 0
+ l_numtickets.Text = 0
+ Else
+ f=Starter.skmt.ExecQuery("select distinct CAT_CL_RUTA from kmt_info WHERE CAT_CL_RUTA <> 1000 order by CAT_CL_RUTA")
+' f.Position=0
+ l_rutasP.Text = ""
+ For i = 0 To f.RowCount - 1
+ f.Position = i
+ If i = 0 Then
+ l_rutasP.Text = f.GetString("CAT_CL_RUTA")
+ Else
+ l_rutasP.Text = l_rutasP.Text & ", " & f.GetString("CAT_CL_RUTA")
+ End If
+ Next
+ f.Close
+
+ Dim numticks As Cursor = Starter.skmt.ExecQuery("select COUNT(distinct HVD_NUM_TICKET) AS TICKET from HIST_VENTAS")
+ numticks.Position = 0
+ l_numtickets.Text = numticks.GetInt("TICKET")
+ End If
+ DateTime.DateFormat = "MM/dd/yyyy"
+ fecha=DateTime.Date(DateTime.Now)
+ b=Starter.skmt.ExecQuery("Select count(*) as CUANTOS from kmt_info")
+ b.Position=0
+ If b.RowCount > 0 Then Cuantos = b.GetString("CUANTOS")
+ d=Starter.skmt.ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000")
+ D.Position=0
+ b.Close
+ e=Starter.skmt.ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")
+ e.Position=0
+' f=Starter.skmt.ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info")
+' f.Position=0
+' l_ruta.Text = 0
+' If f.RowCount > 0 Then l_ruta.Text = f.GetString("CAT_CL_RUTA")
+' f.Close
+' f=Starter.skmt.ExecQuery("select CAT_CL_RUTA from kmt_info")
+' f.Position=0
+' If f.RowCount > 0 Then l_ruta.Text = f.GetString("CAT_CL_RUTA")
+' f.Close
+
+ cargar.Visible = False
+ Subir.Visible = False
+ connecta.Visible = True
+
+ If Cuantos = 0 Then
+ l_aLiquidar.Text = 0
+ l_cuantosc.Text = 0
+ l_cuantosn.Text = 0
+ drop = 0
+ l_montoSalida.Text = 0
+ efectiva = 0
+' l_efectiva.text = 0
+' cambios.Text = 0
+ L_MONTOE.Text = 0
+ l_ctast.Text = 0
+ If d.RowCount > 0 Then l_ctast.Text = d.GetString("TOTAL_VISITAR")
+ l_porvisitar.Text = 0
+ If e.RowCount > 0 Then l_porvisitar.Text = e.GetString("POR_VISITAR")
+ d.Close
+ e.Close
+ Else
+ c=Starter.skmt.ExecQuery("select sum(hvd_costo_tot) as MONTO_DIA from hist_ventas where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_ESTATUS = 1 ")
+ f1=Starter.skmt.ExecQuery("select sum(hvd_costo_tot) as MONTO_TOTAL_DIA from hist_ventas2 where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_RECHAZO = 0")
+ f2=Starter.skmt.ExecQuery("select sum(REP_COSTO_TOT) as MONTO_REC_DIA FROM REPARTO where REP_cliente in (Select cat_cl_codigo from kmt_info)")
+' b=Starter.skmt.ExecQuery("select count(*) as CUANTOS from noventa where nv_cliente in (select cat_cl_codigo from kmt_info where gestion = 3)")
+ b=Starter.skmt.ExecQuery("select count(DISTINCT NV_CLIENTE) as CUANTOS from noventa where nv_motivo <> 'ENTREGA' and NV_CLIENTE <> 63403")
+' L=Starter.skmt.ExecQuery("select count(*) as CLIENTES_DIA from noventa where nv_cliente in (select cat_cl_codigo from kmt_info where gestion = 2)")
+ L=Starter.skmt.ExecQuery("select count(DISTINCT NV_CLIENTE) as CLIENTES_DIA from noventa where nv_motivo = 'ENTREGA' and NV_CLIENTE <> 63403")
+ f2.Position=0
+' F4=Starter.skmt.execqUery("select count(*) as CUANTOS FROM PEDIDO")
+' F4.Position = 0
+ Private MONTO_REC_DIA = 0
+ If f2.GetString("MONTO_REC_DIA") <> Null Then MONTO_REC_DIA = f2.GetString("MONTO_REC_DIA")
+' If F4.GetString("CUANTOS") > 0 Then
+' f3=Starter.skmt.execqUery("select sum(pe_costo_tot) as MONTO_VENTA FROM PEDIDO")
+' f3.Position=0
+'' Log(MONTO_REC_DIA & " - " & f3.GetString("MONTO_VENTA"))
+' l_efectiva.text = to_number_vb(MONTO_REC_DIA - f3.GetString("MONTO_VENTA")) & "..."
+' f3.Close
+' Else
+' l_efectiva.text = to_number_vb(MONTO_REC_DIA) & ".."
+' End If
+' F4.Close
+ C.Position = 0
+ b.Position = 0
+ L.Position = 0
+ f1.Position = 0
+ l_aLiquidar.Text = 0
+ If f1.RowCount > 0 Then l_aLiquidar.Text = to_number_vb (f1.GetString("MONTO_TOTAL_DIA"))
+ L_MONTOE.Text = 0
+' If C.RowCount > 0 Then L_MONTOE.Text = to_number_vb (C.GetString("MONTO_DIA"))
+ l_cuantosc.Text = 0
+ If L.RowCount > 0 Then l_cuantosc.Text = L.GetString("CLIENTES_DIA")
+ l_cuantosn.Text = 0
+ If b.RowCount > 0 Then l_cuantosn.Text = b.GetString("CUANTOS")
+ 'drop = c.GetString("MONTO_DIA") / c.GetString("CLIENTES_DIA")
+ If f1.GetString("MONTO_TOTAL_DIA") <> Null Then l_montoSalida.Text = Round2(f1.GetString("MONTO_TOTAL_DIA"), 2)
+ 'efectiva = c.GetString("CLIENTES_DIA") / e.GetString("POR_VISITAR")
+ l_ctast.Text = 0
+ If d.RowCount > 0 Then l_ctast.Text = d.GetString("TOTAL_VISITAR")
+ l_porvisitar.Text = 0
+ If e.RowCount > 0 Then l_porvisitar.Text = e.GetString("POR_VISITAR")
+ c.Close
+ b.Close
+' c=Starter.skmt.ExecQuery2("select count(*) as CUANTOS from CAT_VARIABLES where CAT_VA_DESCRIPCION = ? ", Array As String("CAMBIOS"))
+' c.Position = 0
+' If c.GetString("CUANTOS") = 0 Then
+'' cambios.Text = 0
+' Else
+' B=Starter.skmt.ExecQuery("select CAT_VA_VALOR from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'CAMBIOS'")
+' B.Position = 0
+'' cambios.Text = b.GetString("CAT_VA_VALOR")
+' b.Close
+' End If
+ c.Close
+ End If
+ c=Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ C.Position =0
+ ALMACEN = 0
+ If C.RowCount > 0 Then ALMACEN = C.GetString("ID_ALMACEN")
+ B4XPages.MainPage.almacen = ALMACEN
+ C.Close
+ c=Starter.skmt.ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS")
+ ' HACER ESTO PARA EL FORANEO
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_gps_actual_REP"
+ cmd.Parameters = Array As Object(c.GetString("hgdate"),c.GetString("hglat"),c.GetString("hglon"),usuario )
+ Next
+ End If
+ 'Para traer la bateria
+ bu.Initialize
+ batterystatus = bu.BatteryInformation
+' LogColor($"Bateria STATUS=${batterystatus(0)}, ${batterystatus(1)}, ${batterystatus(4)}, BATT: ${Starter.batt}"$, Colors.Red)
+ B4XPages.MainPage.batt = batterystatus(0)
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+ c.Close
+ c=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ c.Position = 0
+ RUTA_T = 0
+ If c.RowCount > 0 Then RUTA_T = c.GetString("RUTAA")
+ B4XPages.MainPage.rutaPreventa = RUTA_T
+ c.Close
+ reqs.Initialize
+
+ Private rc As Cursor = Starter.skmt.ExecQuery($"select * from REPARTO where REP_RECHAZO = "1" and REP_CANT > 0"$)
+' Log($"RECHAZOS=${rc.RowCount}"$)
+ If rc.RowCount > 0 Then
+ Starter.skmt.ExecNonQuery($"delete from RECHAZOS"$)
+ For i3=0 To rc.RowCount -1 'Copiamos los rechazos de REPARTO a RECHAZOS.
+ rc.Position = i3
+' Log($"delete from RECHAZOS where R_CLIENTE = '${rc.GetString("REP_CLIENTE")}' and R_CLI_ORIG = '${rc.GetString("REP_CLI_ORIG")}' and R_RECHAZO = '1' and R_PRODID = '${rc.GetString("REP_PRODID")}'"$)
+' Starter.skmt.ExecNonQuery($"delete from RECHAZOS where R_CLIENTE = '${rc.GetString("REP_CLIENTE")}' and R_CLI_ORIG = '${rc.GetString("REP_CLI_ORIG")}' and R_RECHAZO = '1' and R_PRODID = '${rc.GetString("REP_PRODID")}'"$)
+ Starter.skmt.ExecNonQuery($"insert into RECHAZOS(R_FECHA, R_CLIENTE, R_CLI_ORIG, R_PRODID, R_CANT, R_RECHAZO, R_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '${rc.GetString("REP_CLIENTE")}' and REP_CLI_ORIG = '${rc.GetString("REP_CLI_ORIG")}' and REP_PRODID = '${rc.GetString("REP_PRODID")}' and REP_RECHAZO = '1' and REP_CANT > 0"$)
+ Next
+ End If
+ Private vc As Cursor = Starter.skmt.ExecQuery($"select * from REPARTO where REP_RECHAZO = "0" and REP_CANT > 0"$)
+' Log($"VENTAS=${vc.RowCount}"$)
+ If vc.RowCount > 0 Then
+ Starter.skmt.ExecNonQuery($"delete from VENTAS"$)
+ For i4=0 To vc.RowCount -1 'Copiamos las ventas de REPARTO a VENTAS.
+ vc.Position = i4
+' Log($"delete from VENTAS where V_CLIENTE = '${vc.GetString("REP_CLIENTE")}' and V_CLI_ORIG = '${vc.GetString("REP_CLI_ORIG")}' and V_RECHAZO = '1' and V_PRODID = '${vc.GetString("REP_PRODID")}'"$)
+' Starter.skmt.ExecNonQuery($"delete from VENTAS where V_CLIENTE = '${vc.GetString("REP_CLIENTE")}' and V_CLI_ORIG = '${vc.GetString("REP_CLI_ORIG")}' and V_RECHAZO = '0' and V_PRODID = '${vc.GetString("REP_PRODID")}'"$)
+ Starter.skmt.ExecNonQuery($"insert into VENTAS(V_FECHA, V_CLIENTE, V_CLI_ORIG, V_PRODID, V_CANT, V_RECHAZO, V_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '${vc.GetString("REP_CLIENTE")}' and REP_CLI_ORIG = '${vc.GetString("REP_CLI_ORIG")}' and REP_PRODID = '${vc.GetString("REP_PRODID")}' and REP_RECHAZO = '0' and REP_CANT > 0"$)
+ Next
+ End If
+ Starter.ENVIA_ULTIMA_GPS
+
+' Log($"ENTREGADOS: ${Subs.traeEntregados}"$)
+' Log($"RECHAZADOS: ${Subs.traeRechazados}"$)
+' Log($"VENDIDOS: ${Subs.traeVendidos}"$)
+ Dim entMap As Map = Subs.traeEntregados
+ Dim rechMap As Map = Subs.traeRechazados
+ Dim vendMap As Map = Subs.traeVendidos
+ l_aLiquidar.Text = entMap.Get("monto") + vendMap.Get("monto")
+
+ Dim cancelrecha As Cursor = Starter.skmt.ExecQuery("SELECT ifnull(HVD_RECHAZOCANT,0), HVD_RECHAZO, CONSECUTIVO FROM HIST_VENTAS")
+ If cancelrecha.RowCount > 0 Then
+ For h54 = 0 To cancelrecha.RowCount - 1
+ cancelrecha.Position = h54
+ Starter.skmt.ExecNonQuery2("Update HIST_VENTAS set HVD_RECHAZO = '0' WHERE CONSECUTIVO = ? and (HVD_RECHAZOCANT = 0 OR HVD_RECHAZOCANT IS NULL)" , Array As String(cancelrecha.GetString("CONSECUTIVO")))
+ Next
+ End If
+ cancelrecha.Close
+
+
+ ''' RECHAZO - VENTA
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ORDER BY HVD_PROID "$)
+
+ Private rescant As String = 0
+ If r5.RowCount > 0 Then
+ For j4 = 0 To r5.RowCount -1
+ r5.Position = j4
+ Private r6 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '${r5.GetString("HVD_CLIENTE")}' AND PE_PROID = '${r5.GetString("HVD_PROID")}' AND CONSECUTIVO = '${r5.GetString("CONSECUTIVO")}' "$)
+ Dim totalcantped As String
+ If r6.RowCount > 0 Then
+ r6.Position = 0
+ totalcantped = r6.GetString("PE_CANT")
+ Else
+
+ totalcantped = 0
+ End If
+
+ Log(r5.GetString("HVD_RECHAZOCANT") &" - "& totalcantped)
+ rescant = rescant + ((r5.GetString("HVD_COSTO_TOT")/(r5.GetString("HVD_CANT")))*((r5.GetString("HVD_RECHAZOCANT") - totalcantped)))
+' Log(rescant)
+ r6.Close
+ Next
+ End If
+ If rescant = "NaN" Then rescant = 0
+ LogColor(rescant,Colors.Red)
+ r5.Close
+
+
+
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "$)
+
+' Private r5 As Cursor = Starter.skmt.ExecQuery($"select * from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "$)
+
+ Private rescant2 As Double = 0
+ If r5.RowCount > 0 Then
+ For j5 = 0 To r5.RowCount -1
+ r5.Position = j5
+ Private r6 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '${r5.GetString("HVD_CLIENTE")}' AND PE_PROID = '${r5.GetString("HVD_PROID")}' AND CONSECUTIVO = '${r5.GetString("CONSECUTIVO")}'"$)
+ r6.Position = 0
+' Log(r6.GetString("PE_CANT"))
+ rescant2 = rescant2 + ((r5.GetString("HVD_COSTO_TOT")/(r5.GetString("CANTC")))*((r5.GetString("HVD_RECHAZOCANT") - r6.GetString("PE_CANT"))/Subs.traeConversion(r5.GetString("HVD_PROID"))))
+ rescant2 = NumberFormat2(rescant2, 0, 2, 2, False)
+ r6.Close
+ Next
+ End If
+ If rescant2 = "NaN" Then rescant2 = 0
+ Log(rescant2)
+ r5.Close
+ '''FIN RECHAZO - VENTA
+
+
+ '''RECHAZO
+ Private r5r As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' "$)
+
+ Private rescantr As String = 0
+ If r5r.RowCount > 0 Then
+ For j4r = 0 To r5r.RowCount -1
+ r5r.Position = j4r
+ Private r6r As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '${r5r.GetString("HVD_CLIENTE")}' AND PE_PROID = '${r5r.GetString("HVD_PROID")}' AND CONSECUTIVO = '${r5r.GetString("CONSECUTIVO")}' "$)
+ r6r.Position = 0
+' LogColor(r5.GetString("HVD_COSTO_TOT")&" / "& r5.GetString("HVD_CANT")&" * "&r5.GetString("HVD_RECHAZOCANT")&" - "&r6.GetString("PE_CANT"),Colors.Blue)
+' LogColor(r6.GetString("PE_CANT"),Colors.Blue)
+ rescantr = rescantr + ((r5r.GetString("HVD_COSTO_TOT")/(r5r.GetString("HVD_CANT")))*(r5r.GetString("HVD_RECHAZOCANT")))
+ r6r.Close
+ Next
+ End If
+ If rescantr = "NaN" Then rescantr = 0
+' LogColor(rescant,Colors.Red)
+ r5r.Close
+
+ Log(rescantr)
+
+ Private r5r As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "$)
+
+' Private r5 As Cursor = Starter.skmt.ExecQuery($"select * from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "$)
+
+ Private rescant2r As String = 0
+ If r5r.RowCount > 0 Then
+ For j5r = 0 To r5r.RowCount -1
+ r5r.Position = j5r
+ Private r6r As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '${r5r.GetString("HVD_CLIENTE")}' AND PE_PROID = '${r5r.GetString("HVD_PROID")}' AND CONSECUTIVO = '${r5r.GetString("CONSECUTIVO")}'"$)
+ r6r.Position = 0
+' Log(r6.GetString("PE_CANT"))
+ rescant2r = rescant2r + ((r5r.GetString("HVD_COSTO_TOT")/(r5r.GetString("CANTC")))*((r5r.GetString("HVD_RECHAZOCANT"))/Subs.traeConversion(r5r.GetString("HVD_PROID"))))
+ r6r.Close
+ Next
+ End If
+ If rescant2r = "NaN" Then rescant2r = 0
+' Log(rescant2)
+ r5r.Close
+ Log(rescant2r)
+ Log(rescant2r+rescantr)
+
+ '''' FIN RECHAZO
+
+ '''''
+
+' Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' "$)
+' Private rescant3 As Double = 0
+' If r5.RowCount > 0 Then
+' r5.Position = 0
+' rescant3 = r5.GetString("HVD_COSTO_TOT")
+'
+' End If
+' Log(NumberFormat2(rescant3, 0, 2, 2, False))
+' r5.Close
+
+ Private r55 As Cursor = Starter.skmt.ExecQuery($"select HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' "$)
+ Private rescant3 As Double
+ If r55.RowCount > 0 Then
+ For r75 = 0 To r55.RowCount -1
+ r55.Position = r75
+ rescant3 = rescant3 + r55.GetString("HVD_COSTO_TOT")
+ rescant3 = NumberFormat2(rescant3, 0, 2, 2, False)
+
+ Next
+ End If
+ Log(rescant3)
+ r55.Close
+
+
+
+
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '1' "$)
+ Private rescant4 As Double
+ If r5.RowCount > 0 Then
+ r5.Position = 0
+ rescant4 = r5.GetString("HVD_COSTO_TOT")
+ End If
+ Log(rescant4)
+ r5.Close
+
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT from PEDIDO "$)
+ Private rescant5 As Double
+ If r5.RowCount > 0 Then
+ r5.Position = 0
+ rescant5 = r5.GetString("PE_COSTO_TOT")
+ End If
+ Log(rescant5)
+ r5.Close
+
+
+
+ '''
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' "$)
+ Private rescant6 As Double
+ If r5.RowCount > 0 Then
+ For j4 = 0 To r5.RowCount -1
+ r5.Position = j4
+ Private r6 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '${r5.GetString("HVD_CLIENTE")}' AND PE_PROID = '${r5.GetString("HVD_PROID")}' AND CONSECUTIVO = '${r5.GetString("CONSECUTIVO")}' "$)
+ r6.Position = 0
+' LogColor(r5.GetString("HVD_COSTO_TOT")&" / "& r5.GetString("HVD_CANT")&" * "&r5.GetString("HVD_RECHAZOCANT")&" - "&r6.GetString("PE_CANT"),Colors.Blue)
+' LogColor(r6.GetString("PE_CANT"),Colors.Blue)
+ rescant6 = rescant6 + ((r5.GetString("HVD_COSTO_TOT")/(r5.GetString("HVD_CANT")))*(r5.GetString("HVD_CANT")- r5.GetString("HVD_RECHAZOCANT")))
+' Log(rescant6)
+ r6.Close
+ Next
+ End If
+ If rescant6 = "NaN" Then rescant6 = 0
+ LogColor(rescant6,Colors.Red)
+ r5.Close
+
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "$)
+ Private rescant7 As Double
+ If r5.RowCount > 0 Then
+ For j5 = 0 To r5.RowCount -1
+ r5.Position = j5
+ Private r6 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '${r5.GetString("HVD_CLIENTE")}' AND PE_PROID = '${r5.GetString("HVD_PROID")}' AND CONSECUTIVO = '${r5.GetString("CONSECUTIVO")}'"$)
+ r6.Position = 0
+' Log(r6.GetString("PE_CANT"))
+ rescant7 = rescant7 + ((r5.GetString("HVD_COSTO_TOT")/(r5.GetString("CANTC")))*((r5.GetString("HVD_CANT") - r5.GetString("HVD_RECHAZOCANT") )/Subs.traeConversion(r5.GetString("HVD_PROID"))))
+ r6.Close
+ Next
+ End If
+ If rescant7 = "NaN" Then rescant7 = 0
+ Log(rescant7)
+ r5.Close
+
+
+ Private r55 As Cursor = Starter.skmt.ExecQuery($"select HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2)"$)
+ Private rescant10 As Double
+ Private pztotal As Int
+ If r55.RowCount > 0 Then
+ For r75 = 0 To r55.RowCount -1
+ r55.Position = r75
+ rescant10 = rescant10 + r55.GetString("HVD_COSTO_TOT")
+ rescant10 = NumberFormat2(rescant10, 0, 2, 2, False)
+ pztotal = pztotal + r55.GetString("HVD_CANT")
+ Next
+ End If
+ Log(rescant10)
+ r55.Close
+
+' Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '1' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2) "$)
+' Private pztotal1 As Int
+' Private rescant11 As Double
+' If r5.RowCount > 0 Then
+' r5.Position = 0
+' rescant11 = r5.GetString("HVD_COSTO_TOT")
+' pztotal1 = pztotal1 + r55.GetString("HVD_CANT")
+' End If
+' Log(rescant11)
+' r5.Close
+
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT, IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO "$)
+ Private pztotal2 As Int
+ Private rescant11 As Double
+ If r5.RowCount > 0 Then
+ r5.Position = 0
+ rescant11 = r5.GetString("PE_COSTO_TOT")
+ pztotal2 = pztotal2 + r5.GetString("PE_CANT")
+ End If
+ Log(rescant11)
+ r5.Close
+ ''
+ Private r5 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2) "$)
+ Private pztotal3 As Int
+ Private rescant12 As Double
+ If r5.RowCount > 0 Then
+ For j4 = 0 To r5.RowCount -1
+ r5.Position = j4
+ Private r6 As Cursor = Starter.skmt.ExecQuery($"select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '${r5.GetString("HVD_CLIENTE")}' AND PE_PROID = '${r5.GetString("HVD_PROID")}' AND CONSECUTIVO = '${r5.GetString("CONSECUTIVO")}' "$)
+ r6.Position = 0
+ LogColor(r5.GetString("HVD_COSTO_TOT")&" / "& r5.GetString("HVD_CANT")&" * "&r5.GetString("HVD_RECHAZOCANT")&" - "&r6.GetString("PE_CANT"),Colors.Blue)
+ LogColor(r6.GetString("PE_CANT"),Colors.Blue)
+ rescant12 = rescant12 + ((r5.GetString("HVD_COSTO_TOT")/(r5.GetString("HVD_CANT")))*(r5.GetString("HVD_CANT")- r5.GetString("HVD_RECHAZOCANT")))
+ pztotal3 = pztotal3 + (r5.GetString("HVD_CANT")- r5.GetString("HVD_RECHAZOCANT"))
+ Log(rescant12)
+ r6.Close
+ Next
+ End If
+ If rescant12 = "NaN" Then rescant12 = 0
+ LogColor(rescant12,Colors.Red)
+ r5.Close
+
+ l_rechazo.text = NumberFormat2((rescant + rescant2),0,2,2,False)
+ L_MONTOE.Text = NumberFormat2((rescant3 + rescant4 + rescant5 + rescant6 + rescant7),0,2,2,False)
+
+
+ Dim g8 As Cursor = Starter.skmt.ExecQuery("SELECT IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT FROM HIST_VENTAS")
+ g8.Position = 0
+ Dim g11 As Cursor = Starter.skmt.ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion <> 0")
+ g11.Position = 0
+ Dim g12 As Cursor = Starter.skmt.ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 2")
+ g12.Position = 0
+ Dim g13 As Cursor = Starter.skmt.ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 3")
+ g13.Position = 0
+
+ B4XPages.MainPage.monto_entregadoactual = NumberFormat2((rescant10 + rescant11 + rescant12 ),0,2,2,False)
+' B4XPages.MainPage.clientesVisitados = NumberFormat2((rescant10 + rescant11 + rescant12 ),0,2,2,False)
+ B4XPages.MainPage.clientesVisitados = L_MONTOE.Text
+ B4XPages.MainPage.clientesVenta = l_cuantosc.Text
+ B4XPages.MainPage.clientesRechazo = l_cuantosn.Text
+ B4XPages.MainPage.clientestotal = l_porvisitar.Text
+ B4XPages.MainPage.montoActual = Round2(g8.GetString("HVD_COSTO_TOT"), 2)
+ B4XPages.MainPage.porVisitar = l_ctast.text
+ B4XPages.MainPage.visitadostotales = g11.GetString("cuenta")
+
+ B4XPages.MainPage.entregas = g12.GetString("cuenta")
+ B4XPages.MainPage.rechazos = g13.GetString("cuenta")
+ B4XPages.MainPage.montoEntregado = L_MONTOE.text
+ B4XPages.MainPage.montoRechazado = l_rechazo.text
+
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+' LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+
+ If l_ctast.Text = 0 And l_porvisitar.Text <> 0 Then
+ Label9.Visible = True
+ L_MONTOE.Visible = True
+
+ '' hacer validacion su hay rechazo
+' c=Starter.skmt.ExecQuery("select * from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")
+' If c.RowCount > 0 Then
+' b_venta_emp.Visible = True
+' Else
+' b_venta_emp.Visible = False
+' End If
+ b_venta_emp.Visible = False
+ Else
+ Label9.Visible = False
+ L_MONTOE.Visible = False
+ b_venta_emp.Visible = False
+ End If
+
+ If l_ruta.Text = 0 Then
+ b_imp_inventario.Visible = False
+ Else
+ b_imp_inventario.Visible = True
+ End If
+' If l_ctast.Text = 0 Then
+'
+' Else
+' StartActivity(MAPA_RUTAS)
+' End If
+
+ c = Starter.skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?", Array As String ("MACIMP"))
+ If c.RowCount > 0 Then
+ c.Position = 0
+ Starter.MAC_IMPRESORA = c.GetString("CAT_VA_VALOR")
+ End If
+ If Starter.MAC_IMPRESORA = "" Then Starter.MAC_IMPRESORA = "0"
+' Log("|" & Starter.MAC_IMPRESORA & "|")
+ Printer1.Initialize(Me, "Printer1")
+ If Printer1.IsConnected = False Then
+' Printer1.Connect
+' Log("1")
+ Else
+ Printer1.DisConnect
+ Printer1.Connect
+ Log("2")
+ End If
+
+' checachek
+End Sub
+
+Sub checachek
+ b = Starter.skmt.ExecQuery("SELECT CHECADO FROM CHECADO_CHECK")
+ If b.RowCount > 0 Then
+ b.Position = 0
+ If b.GetString("CHECADO") = 0 Then
+ b_check.Visible = True
+ Else If b.GetString("CHECADO") = 1 Then
+ b_check.Visible =False
+ End If
+ b.Close
+ End If
+End Sub
+
+Sub IsConnectedToInternet As Boolean 'ignore
+ Dim r As Reflector
+ r.Target = r.GetContext
+ r.Target = r.RunMethod2("getSystemService", "connectivity", "java.lang.String")
+ r.Target = r.RunMethod("getActiveNetworkInfo")
+ If r.Target <> Null Then
+ Return r.RunMethod("isConnectedOrConnecting")
+ End If
+ Return False
+End Sub
+
+Sub to_number_vb (valor As Object) As String
+ Dim valstring As Int
+ Dim valstring2 As String = valor
+ valstring2.Replace(":","")
+ Try
+ valstring =valstring2.Replace(":","")
+ Return valstring
+ Catch
+ Return 0
+ End Try
+End Sub
+
+Sub trabajar_Click
+ If b_check.Visible = True Then
+ MsgboxAsync("Favor de hacer el checklist.","Atención")
+ Else
+
+ B4XPages.ShowPage("Clientes")
+ End If
+
+End Sub
+
+Sub Subir_Click
+ If Not(IsConnectedToInternet) Then MsgboxAsync("No hay conexión a conexión a Internet", "Revisa tu conexión")
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+ c.Close
+
+ c = Starter.skmt.ExecQuery("SELECT * FROM BLOCKENVIO")
+ If c.RowCount = 0 Then
+ Starter.skmt.ExecNonQuery2("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)", Array As Object (1))
+ envioinfo
+ Else
+ envioinfo
+ End If
+ c.Close
+
+' cmd.Initialize
+' cmd.Name = "select_estatus_MAZAPA"
+' cmd.Parameters = Array As Object(ALMACEN,e_ruta.text)
+' reqManager.ExecuteQuery(cmd , 0, "estatus")
+End Sub
+
+Sub envioinfo
+
+
+
+ ' NOVENTA
+ c = Starter.skmt.ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO, NV_REPROGRAMAR FROM NOVENTA")
+ D=Starter.skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ foto1 = c.GetBlob("NV_FOTO")
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_reparto_REPG_IZCA"
+ cmd.Parameters = Array As Object(C.GetString("NV_CLIENTE"),C.GetString("NV_FECHA"),C.GetString("NV_USER"),C.GetString("NV_MOTIVO"),C.GetString("NV_COMM"),C.GetString("NV_LAT"),C.GetString("NV_LON"), ALMACEN, l_ruta.Text, C.GetString("NV_REPROGRAMAR"))
+ reqManager.ExecuteCommand(cmd , "inst_noventa_")
+ Next
+ c.Close
+ End If
+ d.Position=0
+ cuantos_noventa = D.GetString("CUANTOS_NOVENTA")
+ d.Close
+
+ 'Buscamos ordenes a reprogramar.
+ Dim r As Cursor =Starter.skmt.ExecQuery("select * from noventa where nv_reprogramar = 1")
+ If r.RowCount > 0 Then
+ For rx = 0 To r.RowCount - 1
+ r.Position = rx
+ Dim o As Cursor = Starter.skmt.ExecQuery2("select HVD_FECHA, CAT_CL_RUTA FROM HIST_VENTAS INNER JOIN kmt_info on HVD_CLIENTE = cat_cl_codigo WHERE HVD_CLIENTE = ?",Array As String(r.GetString("NV_CLIENTE")))
+ If o.RowCount > 0 Then
+ o.Position = 0
+ Log("Enviamos reprogramados: " & r.RowCount)
+
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_reparto_reprogramar3_IZCA"
+ cmd.Parameters = Array As Object(r.GetString("NV_CLIENTE"),r.GetString("NV_REPROGRAMAR"),o.GetString("HVD_FECHA"),o.GetString("CAT_CL_RUTA"),ALMACEN)
+ reqManager.ExecuteCommand(cmd , "ins_reprogramar")
+ End If
+ Next
+ End If
+ r.Close
+
+ 'PAGARES.
+ Dim pa As Cursor =Starter.skmt.ExecQuery("select * from PAGARES")
+ If pa.RowCount > 0 Then
+ For pag = 0 To pa.RowCount - 1
+ pa.Position = pag
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_reparto_PAGARES_IZCA2"
+ Dim fechaenvio() As String
+ fechaenvio = Regex.Split(" ",pa.GetString("PA_FECHA_PREV"))
+' Log(fechaenvio(0))
+ Dim fechaenvio1() As String
+ fechaenvio1 = Regex.Split("/",fechaenvio(0))
+ Dim fechaano As String = fechaenvio1(2).SubString(2)
+ Dim fechareal As String = fechaenvio1(0)&"/"&fechaenvio1(1)&"/"&fechaano
+' Log(fechareal)
+
+ Dim fechacap() As String
+ fechacap = Regex.Split("/",pa.GetString("PA_CAPTURA"))
+ Dim fechacapano As String = fechacap(2).SubString(2)
+ Dim fechacapreal As String = fechacap(0)&"/"&fechacap(1)&"/"&fechacapano
+
+ cmd.Parameters = Array As Object(pa.GetString("PA_CLIENTE"),pa.GetString("PA_MONTO"),fechacapreal,pa.GetString("PA_ALMACEN"),pa.GetString("PA_RUTAPREV"),pa.GetString("PA_RUTA_REP"),fechareal,pa.GetString("PA_USUARIO"))
+ reqManager.ExecuteCommand(cmd , "ins_pagares")
+ Next
+ End If
+ pa.Close
+
+ 'ABONOS
+ Dim ab As Cursor = Starter.skmt.ExecQuery($"SELECT * from ABONOS where a_enviado is null"$)
+ Log(ab.RowCount)
+ If ab.RowCount > 0 Then
+ For i=0 To ab.RowCount -1
+ ab.Position = i
+
+ Dim c58 As Cursor = Starter.skmt.ExecQuery($"SELECT * from HIST_VENTAS"$)
+ If c58.RowCount > 0 Then
+ c58.Position = 0
+
+ Private fechapre As String = c58.GetString("HVD_FECHA")
+ End If
+
+
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_abono_IZCAREP2"
+ cmd.Parameters = Array As Object( ab.GetString("a_usuario"), ab.GetString("a_ruta"), ab.GetString("a_cliente"), ab.GetString("a_abono"), ab.GetString("a_fecha"),ALMACEN,"REPARTO", ab.GetString("TIPO_PAGO"), ab.GetString("CONSECUTIVO"), ab.GetString("NUM_TICKET"), ab.GetString("RUTA_REP"), fechapre)
+ reqManager.ExecuteCommand(cmd , $"ins_abonosPendientes_${ab.GetString("a_cliente")}"$)
+ Log($"ins_abonosPendientes_${ab.GetString("a_cliente")}"$)
+ Next
+ End If
+ ab.Close
+
+
+ c=Starter.skmt.ExecQuery("SELECT * FROM hist_ventas WHERE HVD_RECHAZO = 1 ")
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_rep_hist_ventas_REPG2_IZCA"
+ Dim restarechazos As Int = c.GetString("HVD_CANT")-c.GetString("HVD_RECHAZOCANT")
+ Dim costorechazos As Double= NumberFormat2((C.GetString("HVD_COSTO_TOT") / c.GetString("HVD_CANT")), 0,2,2,False)
+ If restarechazos = 0 Then
+ cmd.Parameters = Array As Object(C.GetString("HVD_CLIENTE"),C.GetString("HVD_PRONOMBRE"),C.GetString("HVD_RECHAZOCANT"),(costorechazos*c.GetString("HVD_RECHAZOCANT")),C.GetString("HVD_CODPROMO"),C.GetString("HVD_PROID"),C.GetString("HVD_NUM_TICKET"),C.GetString("HVD_NUM_REGISTRO"),1,"", ALMACEN, costorechazos)
+ Else
+
+ cmd.Parameters = Array As Object(C.GetString("HVD_CLIENTE"),C.GetString("HVD_PRONOMBRE"),C.GetString("HVD_RECHAZOCANT"),(costorechazos*c.GetString("HVD_RECHAZOCANT")),C.GetString("HVD_CODPROMO"),C.GetString("HVD_PROID"),C.GetString("HVD_NUM_TICKET"),C.GetString("HVD_NUM_REGISTRO"),"",1, ALMACEN,costorechazos)
+ End If
+ reqManager.ExecuteCommand(cmd , "inst_noventa")
+ Next
+ c.Close
+ End If
+
+' pedido
+ c=Starter.skmt.ExecQuery("SELECT PE_TIPO, PE_RUTA, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_CLIENTEOR, PE_CAJAS, PE_BCAJAS, CONSECUTIVO, FECHA_PREV, RUTA_REP, PE_REGALO FROM PEDIDO")
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_pedido_REP_IZCA"
+ cmd.Parameters = Array As Object(c.GetString("PE_TIPO"), c.GetString("PE_RUTA"), c.GetString("PE_CEDIS"), c.GetString("PE_COSTO_TOT"), c.GetString("PE_COSTOU"), c.GetString("PE_CANT"), c.GetString("PE_PRONOMBRE"), c.GetString("PE_PROID"), c.GetString("PE_CLIENTE"), c.GetString("PE_FECHA"), c.GetString("PE_USUARIO"), c.GetString("PE_CLIENTEOR"), c.GetString("PE_CAJAS"), c.GetString("PE_BCAJAS"), c.GetString("CONSECUTIVO"), c.GetString("FECHA_PREV"), c.GetString("RUTA_REP"), c.GetString("PE_REGALO"))
+ reqManager.ExecuteCommand(cmd , "ins_pedido_Inmtex")
+ Next
+ c.Close
+ End If
+
+
+'' reqManager.Initialize(Me, "http://187.189.244.154:1787") 'Para el servidor de pruebas.
+' c = Starter.skmt.ExecQuery("SELECT * from reparto")
+' If c.RowCount > 0 Then
+' Private folio As String = Subs.hmsKMT
+' For i=0 To c.RowCount -1
+' c.Position=i
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insertMardsReparto"
+' cmd.Parameters = Array As Object(folio, C.GetString("REP_FECHA"), C.GetString("REP_CLIENTE"), C.GetString("REP_CLI_ORIG"), C.GetString("REP_PRODID"), C.GetString("REP_PRONOMBRE"), C.GetString("REP_PRODREGISTRO"), C.GetString("REP_CANT"), C.GetString("REP_PRECIO"), C.GetString("REP_COSTO_TOT"), C.GetString("REP_RECHAZO"),ALMACEN,l_ruta.Text)
+' reqManager.ExecuteCommand(cmd , "ins_reparto")
+' Next
+' c.Close
+' End If
+
+' c = Starter.skmt.ExecQuery("SELECT * from rechazos")
+' If c.RowCount > 0 Then
+' Private folio As String = Subs.hmsKMT
+' For i=0 To c.RowCount -1
+' c.Position=i
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insertMardsRechazos"
+' cmd.Parameters = Array As Object(folio, C.GetString("R_FECHA"), C.GetString("R_CLIENTE"), C.GetString("R_CLI_ORIG"), C.GetString("R_PRODID"), C.GetString("R_CANT"), C.GetString("R_RECHAZO"),ALMACEN,l_ruta.Text)
+' reqManager.ExecuteCommand(cmd , "ins_rechazos")
+' Next
+' c.Close
+' End If
+' c = Starter.skmt.ExecQuery("SELECT * from ventas")
+' If c.RowCount > 0 Then
+' Private folio As String = Subs.hmsKMT
+' For i=0 To c.RowCount -1
+' c.Position=i
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insertMardsVentas"
+' cmd.Parameters = Array As Object(folio, C.GetString("V_FECHA"), C.GetString("V_CLIENTE"), C.GetString("V_CLI_ORIG"), C.GetString("V_PRODID"), C.GetString("V_CANT"), C.GetString("V_RECHAZO"),ALMACEN,l_ruta.Text)
+' reqManager.ExecuteCommand(cmd , "ins_ventas")
+' Next
+' c.Close
+' End If
+
+
+ c=Starter.skmt.ExecQuery("SELECT CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO")
+ Log($"REPARTO_Cliente PENDIENTE: ${c.RowCount}"$)
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_REPARTO_IZCA"
+ cmd.Parameters = Array As Object(c.GetString("CLIENTE"), c.GetString("USUARIO"), c.GetString("FECHA_PUNTEO"), c.GetString("LATITUD"), c.GetString("LONGITUD"), c.GetString("ALMACEN"), c.GetString("RUTA_REPARTO"), c.GetString("RUTA_PREV"), c.GetString("FECHA_PREVENTA"), c.GetString("MOTIVO"), c.GetString("COMENTARIO"),c.GetString("TIPO"))
+ reqManager.ExecuteCommand(cmd , $"ins_REPARTOPendientes_head_${c.GetString("CLIENTE")}"$)
+
+ Next
+ End If
+ c.Close
+
+ 'TABULADOR
+ c = Starter.skmt.ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS")
+ d = Starter.skmt.ExecQuery("SELECT RUTAA FROM RUTAA")
+ b = Starter.skmt.ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")
+ f = Starter.skmt.ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")
+ d.Position = 0
+ b.Position = 0
+ f.Position = 0
+ If c.RowCount > 0 Then
+ For i = 0 To c.RowCount - 1
+ c.Position=i
+ Dim cmd As DBCommand
+ Dim fechatabulador() As String = Regex.Split(" ", f.GetString("HVD_FECHA"))
+' Dim fechatabulador2() As String = Regex.Split(" ", fechatabulador(0))
+ Dim fechatabulador3 As String = fechatabulador(0)
+ cmd.Initialize
+ cmd.Name = "insert_tabulador_monedas_IZCA"
+ cmd.Parameters = Array As Object(d.GetString("RUTAA"), b.GetString("ID_ALMACEN"),c.GetString("VEINTE"),c.GetString("DIEZ"),c.GetString("CINCO"),c.GetString("DOS"),c.GetString("PESO"),c.GetString("CENTAVO"),fechatabulador3)
+ reqManager.ExecuteCommand(cmd , "ins_tabulador_mon")
+ Next
+ c.Close
+ d.Close
+ b.Close
+ f.Close
+ End If
+
+' c = Starter.skmt.ExecQuery("SELECT IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_CLIENTE, HVD_PROID, HVD_FECHA, HVD_CODPROMO, HVD_NUM_TICKET, HVD_CANT, CONSECUTIVO, BCAJAS, CANTC FROM HIST_VENTAS")
+' If c.RowCount > 0 Then
+' For i=0 To c.RowCount -1
+' c.Position = i
+' Log(c.GetString("HVD_CLIENTE"))
+' Private d4 As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO = '${c.GetString("HVD_CLIENTE")}'"$)
+' d4.Position = 0
+' Log(d4.GetString("CAT_CL_RUTA"))
+' Private d5 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '${c.GetString("HVD_CLIENTE")}' AND PE_PROID = '${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+' d5.Position = 0
+' Private restacant As String = d5.GetString("PE_CANT")
+' d5.Close
+'
+' Dim fecha1() As String = Regex.Split(" ", c.GetString("HVD_FECHA"))
+' Dim fecha2() As String = Regex.Split("-", fecha1(0))
+' Dim fecha3 As String = fecha2(2)&"/"&fecha2(1)&"/"&fecha2(0)
+' Log(fecha3)
+' Dim hora() As String = Regex.Split("\.", fecha1(1))
+' Log(hora(0))
+'
+' Dim sDate, sTime As String
+' DateTime.DateFormat = "dd/MM/yyyy"
+' DateTime.TimeFormat = "HH:mm:ss"
+' sDate = DateTime.Date(DateTime.Now)
+' sTime = DateTime.Time(DateTime.Now)
+' If c.GetString("HVD_RECHAZOCANT") <> "0" Then
+' Log((c.GetString("HVD_RECHAZOCANT")-restacant))
+' cmd.Initialize
+' cmd.Name = "update_HVD_MAZAPArep2"
+' cmd.Parameters = Array As String(c.GetString("HVD_RECHAZOCANT"),c.GetString("BCAJAS"), c.GetString("CANTC"),sDate& " "& sTime,1, c.GetString("HVD_CLIENTE"), c.GetString("HVD_PROID"),fecha3&" "&hora(0), d4.GetString("CAT_CL_RUTA"),ALMACEN,l_ruta.Text,c.GetString("HVD_CODPROMO"),c.GetString("HVD_NUM_TICKET"), c.GetString("HVD_CANT"))
+' reqManager.ExecuteCommand(cmd, "update_hvd")
+' Else
+' cmd.Initialize
+' cmd.Name = "update_HVD_MAZAPArep2"
+' Log( c.GetString("CANTC")& c.GetString("HVD_CLIENTE")& c.GetString("HVD_PROID")&fecha3&" "&hora(0)& d4.GetString("CAT_CL_RUTA")&ALMACEN&l_ruta.Text&c.GetString("HVD_CODPROMO")&c.GetString("HVD_NUM_TICKET")& c.GetString("HVD_CANT"))
+' cmd.Parameters = Array As String("",c.GetString("BCAJAS"), c.GetString("CANTC"),"","", c.GetString("HVD_CLIENTE"), c.GetString("HVD_PROID"),fecha3&" "&hora(0), d4.GetString("CAT_CL_RUTA"),ALMACEN,l_ruta.Text,c.GetString("HVD_CODPROMO"),c.GetString("HVD_NUM_TICKET"), c.GetString("HVD_CANT"))
+' reqManager.ExecuteCommand(cmd, "update_hvd")
+' End If
+' d4.Close
+' Next
+' End If
+' c.Close
+
+
+ c = Starter.skmt.ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES")
+ d = Starter.skmt.ExecQuery("SELECT RUTAA FROM RUTAA")
+ b = Starter.skmt.ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")
+ f = Starter.skmt.ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")
+ d.Position = 0
+ b.Position = 0
+ f.Position = 0
+ If c.RowCount > 0 Then
+ For i = 0 To c.RowCount - 1
+ c.Position=i
+ Dim cmd As DBCommand
+' Dim fechatabulador() As String = Regex.Split(" ", f.GetString("HVD_FECHA"))
+' Dim fechatabulador2() As String = Regex.Split("-", fechatabulador(0))
+' Dim fechatabulador3 As String = fechatabulador2(1)&"/"&fechatabulador2(2)&"/"&fechatabulador2(0)
+
+ Dim fechatabulador() As String = Regex.Split(" ", f.GetString("HVD_FECHA"))
+' Dim fechatabulador2() As String = Regex.Split(" ", fechatabulador(0))
+ Dim fechatabulador3 As String = fechatabulador(0)
+
+ cmd.Initialize
+ cmd.Name = "insert_tabulador_billetes_IZCA"
+ cmd.Parameters = Array As Object(b.GetString("ID_ALMACEN"), d.GetString("RUTAA"),c.GetString("MIL"),c.GetString("QUINIENTOS"),c.GetString("DOCIENTOS"),c.GetString("CIEN"),c.GetString("CINCUENTA"),c.GetString("VEINTE"),fechatabulador3)
+ reqManager.ExecuteCommand(cmd , "ins_tabulador_bill")
+ Next
+ c.Close
+ d.Close
+ b.Close
+ f.Close
+ End If
+ 'FIN TABULADOR
+
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_drop_rep_IZCA2"
+ cmd.Parameters = Array As Object(Subs.dameUsuarioDeDB, l_ruta.Text, ALMACEN, l_ctast.text, Subs.traeEntregados, Subs.traeRechazados, "ENVIO",Application.VersionName)
+ reqManager.ExecuteCommand(cmd , "inst_drop")
+ ToastMessageShow("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "& l_ruta.text , True)
+End Sub
+
+Sub cargar_Click
+ Dim pedidodiaanterior As Boolean = False
+ Dim cp As Cursor = Starter.skmt.ExecQuery("select * from NOVENTA")
+ If cp.RowCount > 0 Then
+ cp.Position = 0
+ Private fecha As String = cp.GetString("NV_FECHA")
+ Log(cp.GetString("NV_FECHA"))
+ Dim fecha2() As String = Regex.Split(" ",fecha)
+ Log(fecha2(0))
+ Dim fecha3() As String = Regex.Split("/",fecha2(0))
+ DateTime.DateFormat = "yyyyMMdd"
+ DateTime.TimeFormat = ""
+ Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1)
+ Log(dia)
+ Dim dia2 As String = DateTime.Date(DateTime.Now)
+ Log(dia & " , " & dia2)
+ If dia < dia2 Then
+ pedidodiaanterior = True
+ End If
+ End If
+ If Not (pedidodiaanterior) Then
+ P_carga.Visible = True
+ P_carga.Width = Root.Width
+ P_carga.Height = Root.Height
+ l_carga2.Text = "CARGANDO"
+ L_carga.Text = "CARGANDO"
+ PB_carga.Progress = 0
+ PB_carga2.Progress = 0
+ Log("CUMPLE")
+ EJECUTANDO = 1
+ reqs.Initialize
+ TOPE = 0
+ LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_drop_rep_IZCA2"
+ cmd.Parameters = Array As Object(Subs.dameUsuarioDeDB, l_ruta.Text, ALMACEN, l_ctast.text, Subs.traeEntregados, Subs.traeRechazados, "CARGA",Application.VersionName)
+ reqManager.ExecuteCommand(cmd , "inst_drop")
+' reqs.Add("inst_noventa")
+
+ Starter.skmt.ExecNonQuery("delete from kmt_info")
+ Starter.skmt.ExecNonQuery("delete from cod_result")
+ Starter.skmt.ExecNonQuery("delete from hist_gest")
+ Starter.skmt.ExecNonQuery("delete from CAT_DETALLES_PAQ")
+ Starter.skmt.ExecNonQuery("delete from telefonos")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod3")
+' Starter.skmt.ExecNonQuery("delete from VENTAS")
+ Starter.skmt.ExecNonQuery("delete from PUNTEO_GPS")
+ If l_ruta.Text = "0" Then '
+ Log("********************* No hay ruta, BORRAMOS TODO")
+ Starter.skmt.ExecNonQuery("delete from REPARTO")
+ Starter.skmt.ExecNonQuery("delete from HIST_VENTAS")
+ Starter.skmt.ExecNonQuery("delete from HIST_VENTAS2")
+ Starter.skmt.ExecNonQuery("delete from NOVENTA")
+ Starter.skmt.ExecNonQuery("DELETE FROM ABONOSP")
+ Else
+ Log("********************* Hay ruta, NO BORRAMOS TODO")
+ End If
+
+ ' NUEVOS CLIENTES
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+
+ cmd.Initialize
+ cmd.Name = "select_punteo_re_REPG_IZCA"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN,ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "punteo")
+ Log($"Pedimos Punteo"$)
+ reqs.Add("punteo")
+
+ cmd.Initialize
+ cmd.Name = "select_almacen_IZCA_re_REPG2"
+ cmd.Parameters = Array As Object(ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "gunaprod")
+ Log($"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.text}"$)
+ reqs.Add("gunaprod")
+
+' cmd.Initialize
+' cmd.Name = "select_abonosp_IZCAREP"
+' cmd.Parameters = Array As Object(ALMACEN, e_ruta.text, ALMACEN)
+' reqManager.ExecuteQuery(cmd , 0, "select_abonosp")
+
+ cmd.Initialize
+ cmd.Name = "select_cliente_IZCA_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN,ALMACEN,e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "kmt_datos")
+ Log($"Pedimos kmt_datos"$)
+ reqs.Add("kmt_datos")
+
+ cmd.Initialize
+ cmd.Name = "select_ventad2_IZCA_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "hist_datos")
+ Log($"Pedimos hist_datos"$)
+ reqs.Add("hist_datos")
+
+ cmd.Initialize
+ cmd.Name = "select_coords_almacen_IZCA"
+ cmd.Parameters = Array As Object(ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "coords_almacen")
+
+ cmd.Initialize
+ cmd.Name = "select_cat_gunaprod3_IZCA"
+ cmd.Parameters = Array As Object(ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "gunaprod3")
+
+' cmd.Initialize
+' cmd.Name = "select_pagares_MAZAPA"
+' cmd.Parameters = Array As Object(e_ruta.text,ALMACEN)
+' reqManager.ExecuteQuery(cmd , 0, "PAGARES")
+
+' c=Starter.skmt.ExecQuery("SELECT REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA FROM REPARTO")
+' If c.RowCount > 0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_reparto_rechazo_REPG"
+' cmd.Parameters = Array As Object(C.GetString("REP_CLIENTE"),C.GetString("REP_PRONOMBRE"),C.GetString("REP_CANT"),C.GetString("REP_COSTO_TOT"),C.GetString("REP_FECHA"), ALMACEN)
+' reqManager.ExecuteCommand(cmd , "inst_noventa")
+' reqs.Add("inst_noventa")
+' Next
+' End If
+' c.Close
+
+ ' NOVENTA
+' c=Starter.skmt.ExecQuery("SELECT NV_CLIENTE, NV_FECHA, NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO FROM NOVENTA")
+' If c.RowCount > 0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+' foto1 = c.GetBlob("NV_FOTO")
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_reparto_REPG"
+' cmd.Parameters = Array As Object(C.GetString("NV_CLIENTE"),C.GetString("NV_FECHA"),C.GetString("NV_USER"),C.GetString("NV_MOTIVO"),C.GetString("NV_COMM"),C.GetString("NV_LAT"),C.GetString("NV_LON"), ALMACEN, l_ruta.Text, foto1)
+' reqManager.ExecuteCommand(cmd , "inst_noventa")
+' reqs.Add("inst_noventa")
+' Next
+' End If
+' c.Close
+
+ D=Starter.skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")
+ d.Position=0
+ cuantos_noventa = D.GetString("CUANTOS_NOVENTA")
+ d.Close
+ cargar.Visible = False
+ Subir.Visible = False
+ connecta.Visible = True
+ inv.Visible = False
+ ToastMessageShow("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias" , True)
+' ProgressDialogShow2("Descargando rutas, espere un momento.", False)
+ If Not(IsConnectedToInternet) Then MsgboxAsync("No hay conexión a Internet", "Revisa tu conexión")
+
+
+ Else
+ Log("XXXX")
+ MsgboxAsync("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente.","Atención")
+ End If
+
+End Sub
+
+Sub cargar____Click
+ Dim pedidodiaanterior As Boolean = False
+ Dim cp As Cursor = Starter.skmt.ExecQuery("select * from NOVENTA")
+ If cp.RowCount > 0 Then
+ cp.Position = 0
+ Private fecha As String = cp.GetString("NV_FECHA")
+ Log(cp.GetString("NV_FECHA"))
+ Dim fecha2() As String = Regex.Split(" ",fecha)
+ Log(fecha2(0))
+ Dim fecha3() As String = Regex.Split("/",fecha2(0))
+ DateTime.DateFormat = "yyyyMMdd"
+ DateTime.TimeFormat = ""
+ Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1)
+ Log(dia)
+ Dim dia2 As String = DateTime.Date(DateTime.Now)
+ Log(dia & " , " & dia2)
+ If dia < dia2 Then
+ pedidodiaanterior = True
+ End If
+ End If
+ If Not (pedidodiaanterior) Then
+ Log("CUMPLE")
+ EJECUTANDO = 1
+ reqs.Initialize
+ TOPE = 0
+ LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+ reqManager.Initialize(Me, B4XPages.MainPage.server)
+
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "insert_drop_rep_IZCA2"
+ cmd.Parameters = Array As Object(Subs.dameUsuarioDeDB, l_ruta.Text, ALMACEN, l_ctast.text, Subs.traeEntregados, Subs.traeRechazados, "CARGA",Application.VersionName)
+ reqManager.ExecuteCommand(cmd , "inst_drop")
+' reqs.Add("inst_noventa")
+
+ Starter.skmt.ExecNonQuery("delete from kmt_info")
+ Starter.skmt.ExecNonQuery("delete from cod_result")
+ Starter.skmt.ExecNonQuery("delete from hist_gest")
+ Starter.skmt.ExecNonQuery("delete from CAT_DETALLES_PAQ")
+ Starter.skmt.ExecNonQuery("delete from telefonos")
+' Starter.skmt.ExecNonQuery("delete from VENTAS")
+ Starter.skmt.ExecNonQuery("delete from PUNTEO_GPS")
+ If l_ruta.Text = "0" Then '
+ Log("********************* No hay ruta, BORRAMOS TODO")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod3")
+ Starter.skmt.ExecNonQuery("delete from REPARTO")
+ Starter.skmt.ExecNonQuery("delete from HIST_VENTAS")
+ Starter.skmt.ExecNonQuery("delete from HIST_VENTAS2")
+ Starter.skmt.ExecNonQuery("delete from NOVENTA")
+ Else
+ Log("********************* Hay ruta, NO BORRAMOS TODO")
+ End If
+
+ ' NUEVOS CLIENTES
+ c=Starter.skmt.ExecQuery("select usuario from usuarioa")
+ c.Position = 0
+ usuario = c.GetString("USUARIO")
+
+ cmd.Initialize
+ cmd.Name = "select_punteo_mards_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN,ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "punteo")
+ Log($"Pedimos Punteo"$)
+ reqs.Add("punteo")
+
+
+ cmd.Initialize
+ cmd.Name = "select_almacen_mards_re_REPG"
+ cmd.Parameters = Array As Object(ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "gunaprod")
+ Log($"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.text}"$)
+ reqs.Add("gunaprod")
+
+
+
+ cmd.Initialize
+ cmd.Name = "select_cliente_mards_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN,ALMACEN,e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "kmt_datos")
+ Log($"Pedimos kmt_datos"$)
+ reqs.Add("kmt_datos")
+
+ cmd.Initialize
+ cmd.Name = "select_ventad_mards_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "hist_datos")
+ Log($"Pedimos hist_datos"$)
+ reqs.Add("hist_datos")
+
+' cmd.Initialize
+' cmd.Name = "select_coords_almacen_MAZAPA"
+' cmd.Parameters = Array As Object(ALMACEN)
+' reqManager.ExecuteQuery(cmd , 0, "coords_almacen")
+'
+' cmd.Initialize
+' cmd.Name = "select_cat_gunaprod3_MAZAPA"
+' cmd.Parameters = Array As Object(ALMACEN)
+' reqManager.ExecuteQuery(cmd , 0, "gunaprod3")
+'
+' cmd.Initialize
+' cmd.Name = "select_pagares_MAZAPA"
+' cmd.Parameters = Array As Object(e_ruta.text,ALMACEN)
+' reqManager.ExecuteQuery(cmd , 0, "PAGARES")
+
+ If ALMACEN = "32" Then
+ ALMACEN = "33"
+ cargo = 2
+ cmd.Initialize
+ cmd.Name = "select_punteo_mards_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN,ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "punteo")
+ reqs.Add("punteo")
+
+ cmd.Initialize
+ cmd.Name = "select_almacen_mards_re_REPG"
+ cmd.Parameters = Array As Object(ALMACEN, e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "gunaprod")
+ reqs.Add("gunaprod")
+
+ cmd.Initialize
+ cmd.Name = "select_cliente_mards_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN,ALMACEN,e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "kmt_datos")
+ reqs.Add("kmt_datos")
+
+ cmd.Initialize
+ cmd.Name = "select_ventad_mards_re_REPG"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "hist_datos")
+ reqs.Add("hist_datos")
+' reparto rechazo REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT
+ End If
+
+' c=Starter.skmt.ExecQuery("SELECT REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA FROM REPARTO")
+' If c.RowCount > 0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_reparto_rechazo_REPG"
+' cmd.Parameters = Array As Object(C.GetString("REP_CLIENTE"),C.GetString("REP_PRONOMBRE"),C.GetString("REP_CANT"),C.GetString("REP_COSTO_TOT"),C.GetString("REP_FECHA"), ALMACEN)
+' reqManager.ExecuteCommand(cmd , "inst_noventa")
+' reqs.Add("inst_noventa")
+' Next
+' End If
+' c.Close
+
+ ' NOVENTA
+' c=Starter.skmt.ExecQuery("SELECT NV_CLIENTE, NV_FECHA, NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO FROM NOVENTA")
+' If c.RowCount > 0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+' foto1 = c.GetBlob("NV_FOTO")
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_reparto_REPG"
+' cmd.Parameters = Array As Object(C.GetString("NV_CLIENTE"),C.GetString("NV_FECHA"),C.GetString("NV_USER"),C.GetString("NV_MOTIVO"),C.GetString("NV_COMM"),C.GetString("NV_LAT"),C.GetString("NV_LON"), ALMACEN, l_ruta.Text, foto1)
+' reqManager.ExecuteCommand(cmd , "inst_noventa")
+' reqs.Add("inst_noventa")
+' Next
+' End If
+' c.Close
+
+ D=Starter.skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")
+ d.Position=0
+ cuantos_noventa = D.GetString("CUANTOS_NOVENTA")
+ d.Close
+ cargar.Visible = False
+ Subir.Visible = False
+ connecta.Visible = True
+ inv.Visible = False
+ ToastMessageShow("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias" , True)
+ ProgressDialogShow2("Descargando rutas, espere un momento.", False)
+ If Not(IsConnectedToInternet) Then MsgboxAsync("No hay conexión a Internet", "Revisa tu conexión")
+
+
+ Else
+ Log("XXXX")
+ MsgboxAsync("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente.","Atención")
+ End If
+
+End Sub
+
+Sub JobDone(Job As HttpJob)
+' Private r As DBResult = reqManager.HandleJob(Job)
+ If Job.Success = False Then
+ LogColor("** " & Job.Tag & " Error: " & Job.ErrorMessage, Colors.Red) ' Mod by CHV - 211023
+ 'ToastMessageShow("Error: " & Job.ErrorMessage, True)
+ Else
+ LogColor("JobDone: '" & reqManager.HandleJob(Job).tag & "' - Registros: " & reqManager.HandleJob(Job).Rows.Size, Colors.Green) 'Mod por CHV - 211023
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "kmt_datos" Then 'query tag
+ If reqs.IndexOf("kmt_datos") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("kmt_datos"))
+' Log(reqs.Size)
+ End If
+ Starter.skmt.BeginTransaction
+' If reqManager.HandleJob(Job).Rows.Size > 0 Then
+ For Each records() As Object In result.Rows
+ Dim CAT_CL_CODIGO As String = records(result.Columns.Get("CAT_CL_CODIGO"))
+ Dim CAT_CL_RUTA As String = records(result.Columns.Get("CAT_CL_RUTA"))
+ Dim CAT_CL_NOMBRE As String = records(result.Columns.Get("CAT_CL_NOMBRE"))
+ Dim CAT_CL_ATIENDE1 As String = records(result.Columns.Get("CAT_CL_ATIENDE1"))
+ Dim CAT_CL_ATIENTE2 As String = records(result.Columns.Get("CAT_CL_ATIENTE2"))
+ Dim CAT_CL_TELEFONO As String = records(result.Columns.Get("CAT_CL_TELEFONO"))
+ Dim CAT_CL_EMAIL As String = records(result.Columns.Get("CAT_CL_EMAIL"))
+ Dim CAT_CL_CALLE As String = records(result.Columns.Get("CAT_CL_CALLE"))
+ Dim CAT_CL_NOEXT As String = records(result.Columns.Get("CAT_CL_NOEXT"))
+ Dim CAT_CL_NOINT As String = records(result.Columns.Get("CAT_CL_NOINT"))
+ Dim CAT_CL_CALLE1 As String = records(result.Columns.Get("CAT_CL_CALLE1"))
+ Dim CAT_CL_CALLE2 As String = records(result.Columns.Get("CAT_CL_CALLE2"))
+ Dim CAT_CL_COLONIA As String = records(result.Columns.Get("CAT_CL_COLONIA"))
+ Dim CAT_CL_MUNI As String = records(result.Columns.Get("CAT_CL_MUNI"))
+ Dim CAT_CL_EDO As String = records(result.Columns.Get("CAT_CL_EDO"))
+ Dim CAT_CL_CP As String = records(result.Columns.Get("CAT_CL_CP"))
+ Dim CAT_CL_LONG As String = records(result.Columns.Get("CAT_CL_LONG"))
+ Dim CAT_CL_LAT As String = records(result.Columns.Get("CAT_CL_LAT"))
+ Dim CAT_CL_BCREDITO As String = records(result.Columns.Get("CAT_CL_BCREDITO"))
+' Dim CAT_CL_SECUENCIA As String = records(result.Columns.Get("CAT_CL_SECUENCIA"))
+' Log(" ++ insert into kmt_info: "&CAT_CL_RUTA&","&CAT_CL_CODIGO&","&CAT_CL_RUTA&","&CAT_CL_NOMBRE)
+ Starter.skmt.ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0)", Array As Object (CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO))
+ Next
+' Starter.skmt.ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion,SECUENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?)", Array As Object (63403,1000, "VENTA RECHAZO","","","","","","","","","","","","","","-98.8357694","19.6906052","0","1"))
+' End If
+ Starter.skmt.TransactionSuccessful
+ Starter.skmt.EndTransaction
+ Listo1 = 1
+ If Listo1 = 1 And Listo3 = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible = False
+ EJECUTANDO=0
+ End If
+
+ ''para la carga --- mover a los demas clientes
+ t8.Initialize("t8", 20000) ' 1000 = 1 second
+ t8.Enabled = True
+ 'fin carga
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "select_abonosp" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim NOTA As String = records(result.Columns.Get("NOTA"))
+ Dim CLIENTE As String = records(result.Columns.Get("CLIENTE"))
+ Dim SALDO_PENDIENTE As String = records(result.Columns.Get("SALDO_PENDIENTE"))
+' Dim DIA_VENCIMIENTO As String = records(result.Columns.Get("DIA_VENCIMIENTO"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE) VALUES (?,?,?)", Array As Object (NOTA, CLIENTE,SALDO_PENDIENTE))
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "CONTEO_DATOS" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim DETALLE As String = records(result.Columns.Get("DETALE"))
+ Dim CONTEO_CAT As String = records(result.Columns.Get("CONTEO_CAT"))
+
+
+ Next
+
+ Dim clientes As Cursor = Starter.skmt.ExecQuery("select count(*) as clientes from kmt_info")
+ clientes.Position = 0
+
+ Dim detalleventa As Cursor = Starter.skmt.ExecQuery("select count(*) as detalle from hist_ventas")
+ detalleventa.Position = 0
+
+ Log(CONTEO_CAT)
+ Log(clientes.GetString("clientes"))
+ If clientes.GetString("clientes") = CONTEO_CAT Then
+ PB_carga2.Progress = 100
+ l_carga2.Text = "LISTO"
+ Else
+' cargar_Click
+ End If
+
+ Log(DETALLE)
+ Log(detalleventa.GetString("detalle"))
+ If detalleventa.GetString("detalle") = DETALLE Then
+ PB_carga.Progress = 100
+ L_carga.Text = "LISTO"
+ Else
+' cargar_Click
+ End If
+
+ clientes.Close
+ detalleventa.Close
+
+ End If
+ End If
+
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "gunaprod3" Then 'query tag
+ If reqs.IndexOf("gunaprod3") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("gunaprod3"))
+ Log(reqs.Size)
+ End If
+ Starter.skmt.BeginTransaction
+ For Each records() As Object In result.Rows
+ Dim CAT_GP_ID As String = records(result.Columns.Get("CAT_GP_ID"))
+ Dim CAT_GP_NOMBRE As String = records(result.Columns.Get("CAT_GP_NOMBRE"))
+ Dim CAT_GP_IMP1 As String = records(result.Columns.Get("CAT_GP_IMP1"))
+ Dim CAT_GP_IMP2 As String = records(result.Columns.Get("CAT_GP_IMP2"))
+ Dim CAT_GP_PRECIO As String = records(result.Columns.Get("CAT_GP_PRECIO"))
+ Dim CAT_GP_CLASIF As String = records(result.Columns.Get("CAT_GP_CLASIF"))
+ Dim CAT_GP_STS As String = records(result.Columns.Get("CAT_GP_STS"))
+ Dim CAT_GP_TIPO As String = records(result.Columns.Get("CAT_GP_TIPO"))
+ Dim CAT_GP_SUBTIPO As String = records(result.Columns.Get("CAT_GP_SUBTIPO"))
+ Dim CAT_GP_IMG() As Byte = records(result.Columns.Get("CAT_GP_IMG"))
+ Dim CAT_GP_ALMACEN As Int = records(result.Columns.Get("CAT_GP_ALMACEN"))
+ ' Dim CAT_GP_DEV As String = records(RESULT.Columns.Get("CAT_GP_DEV"))
+ Dim CAT_GP_TIPOPROD As Int = records(result.Columns.Get("CAT_GP_TIPOPROD"))
+ Dim CAT_GP_INICIATIVA As Int = records(result.Columns.Get("CAT_GP_INICIATIVA"))
+ Dim CAT_DP_PRECIO4 As Float = records(result.Columns.Get("CAT_DP_PRECIO4"))
+ Dim CAT_DP_CONVERSION1 As Int = records(result.Columns.Get("CAT_DP_CONVERSION1"))
+' Dim CAT_DP_CANT_MIN_VENTA As Int = records(result.Columns.Get("CAT_DP_CANT_MIN_VENTA"))
+' CAT_GP_INICIATIVA = 5
+' skmt.ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_DEV) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object (CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG, CAT_GP_ALMACEN,CAT_GP_DEV))
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_GUNAPROD3(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_DP_PRECIO4,CAT_DP_CONVERSION1) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object (CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG, CAT_GP_ALMACEN,CAT_GP_TIPOPROD, CAT_GP_INICIATIVA,CAT_DP_PRECIO4,CAT_DP_CONVERSION1))
+ Next
+ Starter.skmt.TransactionSuccessful
+ Starter.skmt.EndTransaction
+ Listo2=1
+ If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And Listo4 = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible = False
+ EJECUTANDO=0
+ End If
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "gunaprod" Then 'query tag
+ Log("Entramos a GUNA_PROD<---------------------------------")
+ If reqs.IndexOf("gunaprod") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("gunaprod"))
+ Log(reqs.Size)
+ End If
+ Starter.skmt.BeginTransaction
+ For Each records() As Object In result.Rows
+ Dim CAT_GP_ID As String = records(result.Columns.Get("CAT_DP_ID"))
+ Dim CAT_GP_NOMBRE As String = records(result.Columns.Get("CAT_DP_NOMBRE"))
+ Dim CAT_GP_IMP1 As String = records(result.Columns.Get("CAT_DP_IMP1"))
+ Dim CAT_GP_IMP2 As String = records(result.Columns.Get("CAT_DP_IMP2"))
+ Dim CAT_GP_PRECIO As String = records(result.Columns.Get("CAT_DP_PRECIO"))
+ Dim CAT_GP_CLASIF As String = records(result.Columns.Get("CAT_DP_CLASIF"))
+ Dim CAT_GP_STS As String = records(result.Columns.Get("CAT_DP_STS"))
+ Dim CAT_GP_TIPO As String = records(result.Columns.Get("CAT_DP_TIPO"))
+ Dim CAT_GP_SUBTIPO As String = records(result.Columns.Get("CAT_DP_SUBTIPO"))
+ Dim CONVERSION As String = 0'records(result.Columns.Get("CAT_DP_CONVERSION1"))
+ Dim PRECIOCONVER As String = 0' records(result.Columns.Get("CAT_DP_PRECIO4"))
+ Dim CAT_GP_IMG() As Byte = records(result.Columns.Get("CAT_DP_IMG"))
+ 'Dim CAT_GP_ALMACEN As Int = records(RESULT.Columns.Get("CAT_GP_ALMACEN"))
+ ' Dim CAT_GP_DEV As String = records(RESULT.Columns.Get("CAT_GP_DEV"))
+ ' skmt.ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_DEV) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object (CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG, CAT_GP_ALMACEN,CAT_GP_DEV))
+' Log(" ++ insert into CAT_GUNAPROD: "&CAT_GP_ID&","&CAT_GP_NOMBRE&","&CAT_GP_IMP1)
+ Log(CAT_GP_NOMBRE & "<-------------------------------------")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CONVERSION,PRECIOCONVER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As Object (CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG, 0,CONVERSION,PRECIOCONVER))
+ Next
+ Starter.skmt.TransactionSuccessful
+ Starter.skmt.EndTransaction
+ Listo2=1
+ If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And Listo4 = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible = False
+ EJECUTANDO=0
+ End If
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "gunaprodp" Then 'query tag
+ If reqs.IndexOf("gunaprodp") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("gunaprodp"))
+ Log(reqs.Size)
+ End If
+ For Each records() As Object In result.Rows
+ Dim CAT_GP_ID As String = records(result.Columns.Get("CAT_GP_ID"))
+ Dim CAT_GP_NOMBRE As String = records(result.Columns.Get("CAT_GP_NOMBRE"))
+ Dim CAT_GP_IMP1 As String = records(result.Columns.Get("CAT_GP_IMP1"))
+ Dim CAT_GP_IMP2 As String = records(result.Columns.Get("CAT_GP_IMP2"))
+ Dim CAT_GP_PRECIO As String = records(result.Columns.Get("CAT_GP_PRECIO"))
+ Dim CAT_GP_CLASIF As String = records(result.Columns.Get("CAT_GP_CLASIF"))
+ Dim CAT_GP_STS As String = records(result.Columns.Get("CAT_GP_STS"))
+ Dim CAT_GP_TIPO As String = records(result.Columns.Get("CAT_GP_TIPO"))
+ Dim CAT_GP_SUBTIPO As String = records(result.Columns.Get("CAT_GP_SUBTIPO"))
+ Dim CAT_GP_IMG() As Byte = records(result.Columns.Get("CAT_GP_IMG"))
+ 'Dim CAT_GP_ALMACEN As Int = records(RESULT.Columns.Get("CAT_GP_ALMACEN"))
+' Log(" ++ insert into CAT_GUNAPROD: "&CAT_GP_ID&","&CAT_GP_NOMBRE&","&CAT_GP_IMP1)
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN) VALUES (?,?,?,?,?,?,?,?,?,?,?)", Array As Object (CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG, 0))
+ Next
+ Listo4=1
+ If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And Listo4 = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible = False
+ EJECUTANDO=0
+ Else If Listo4 = 1 And Listo3 = 1 And inve = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible = False
+ EJECUTANDO=0
+ End If
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "detallepaq" Then 'query tag
+ If reqs.IndexOf("detallepaq") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("detallepaq"))
+ Log(reqs.Size)
+ End If
+ For Each records() As Object In result.Rows
+ Dim CAT_DP_ALMACEN As String = records(result.Columns.Get("CAT_DP_ALMACEN"))
+ Dim CAT_DP_ID As String = records(result.Columns.Get("CAT_DP_ID"))
+ Dim CAT_DP_IDPROD As String = records(result.Columns.Get("CAT_DP_IDPROD"))
+ Dim CAT_DP_TIPO As String = records(result.Columns.Get("CAT_DP_TIPO"))
+ Dim CAT_DP_PZAS As String = records(result.Columns.Get("CAT_DP_PZAS"))
+ Dim CAT_DP_USUARIO As String = records(result.Columns.Get("CAT_DP_USUARIO"))
+ Dim CAT_DP_FECHA As String = records(result.Columns.Get("CAT_DP_FECHA"))
+ Dim CAT_DP_REGALO As String = records(result.Columns.Get("CAT_DP_REGALO"))
+ Dim CAT_DP_CLASIF As String = records(result.Columns.Get("CAT_DP_CLASIF"))
+ Dim CAT_DP_PRECIO As String = records(result.Columns.Get("CAT_DP_PRECIO"))
+ Dim CAT_DP_PRECIO_SIMPTOS As String = records(result.Columns.Get("CAT_DP_PRECIO_SIMPTOS"))
+' Log(" ++ insert into CAT_DETALLES_PAQ: "&CAT_DP_ALMACEN&","&CAT_DP_ID&","&CAT_DP_IDPROD)
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_DETALLES_PAQ(CAT_DP_ALMACEN,CAT_DP_ID,CAT_DP_IDPROD,CAT_DP_TIPO,CAT_DP_PZAS,CAT_DP_USUARIO,CAT_DP_FECHA,CAT_DP_REGALO,CAT_DP_CLASIF,CAT_DP_PRECIO,CAT_DP_PRECIO_SIMPTOS) VALUES (?,?,?,?,?,?,?,?,?,?,?)", Array As Object (CAT_DP_ALMACEN,CAT_DP_ID,CAT_DP_IDPROD,CAT_DP_TIPO,CAT_DP_PZAS,CAT_DP_USUARIO,CAT_DP_FECHA,CAT_DP_REGALO,CAT_DP_CLASIF,CAT_DP_PRECIO,CAT_DP_PRECIO_SIMPTOS))
+ Next
+ Listo3 =1
+ If Listo1 = 1 And Listo2 = 1 And Listo3 = 1 And Listo4 = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible=False
+ EJECUTANDO = 0
+ Else If Listo4 = 1 And Listo3 = 1 And inve = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible = False
+ EJECUTANDO = 0
+ End If
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "estatus" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim hvd_estatus As String = records(result.Columns.Get("HVD_ESTATUS"))
+ If hvd_estatus = "Liquidado" Then
+ ' ToastMessageShow("rojo val ok 1 cuantosp." , True)
+ MsgboxAsync("La venta ya fue liquidada","Atención")
+ Else
+ envioinfo
+ End If
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "punteo" Then 'query tag
+ If reqs.IndexOf("punteo") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("punteo"))
+' Log(reqs.Size)
+ End If
+ If reqs.IndexOf("punteo") > 0 Then
+ reqs.RemoveAt(reqs.IndexOf("punteo"))
+ Log(reqs.Size)
+ End If
+ Starter.skmt.BeginTransaction
+ For Each records() As Object In result.Rows
+ Dim HV_CLIENTE As String = records(result.Columns.Get("HV_CLIENTE"))
+ Dim HV_LONG As String = records(result.Columns.Get("HV_LONG"))
+ Dim HV_LAT As String = records(result.Columns.Get("HV_LAT"))
+' Log(" ++ insert into PUNTEO_GPS: "&HV_CLIENTE&","&HV_LONG)
+ Starter.skmt.ExecNonQuery2("INSERT INTO PUNTEO_GPS(HV_CLIENTE, HV_LONG, HV_LAT) VALUES (?,?,?)", Array As Object (HV_CLIENTE, HV_LONG, HV_LAT))
+ Next
+ Starter.skmt.TransactionSuccessful
+ Starter.skmt.EndTransaction
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "hist_datos" Then 'query tag
+ If reqs.IndexOf("hist_datos") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("hist_datos"))
+' Log(reqs.Size)
+ End If
+ Log(l_ruta.text)
+ Log($"******** Insertamos HV - ${result.Rows.Size}"$)
+ Starter.skmt.BeginTransaction
+ Dim consecutivo As Int= 0
+ For Each records() As Object In result.Rows
+ Dim HVD_CLIENTE As String = records(result.Columns.Get("HVD_CLIENTE"))
+ Dim HVD_PRONOMBRE As String = records(result.Columns.Get("HVD_PRONOMBRE"))
+ Dim HVD_CANT As String = records(result.Columns.Get("HVD_CANT"))
+ Dim HVD_COSTO_TOT As String = records(result.Columns.Get("HVD_COSTO_TOT"))
+ Dim HVD_FECHA As String = records(result.Columns.Get("HVD_FECHA"))
+ Dim HVD_CODPROMO As String = records(result.Columns.Get("HVD_CODPROMO"))
+ Dim HVD_PROID As String = records(result.Columns.Get("HVD_PROID"))
+ Dim HVD_NUM_TICKET As String = records(result.Columns.Get("HVD_NUM_TICKET"))
+ Dim HVD_NUM_REGISTRO As String = records(result.Columns.Get("HVD_NUM_REGISTRO"))
+ Dim HVD_RECHAZO As String = records(result.Columns.Get("HVD_RECHAZO"))
+' Dim HVD_PLACA As String = records(result.Columns.Get("HVD_PLACA"))
+ Dim bcajas As String = 0 ' records(result.Columns.Get("HVD_BCAJAS"))
+ Dim cantc As String = 0 'records(result.Columns.Get("HVD_CANTC"))
+' Log(" ++ insert into HIST_VENTAS: "&HVD_CLIENTE&","&HVD_PRONOMBRE&","&HVD_CANT)
+ consecutivo = consecutivo +1
+ Log(HVD_PRONOMBRE & ", " & HVD_CANT & ", " &HVD_CLIENTE)
+ If l_ruta.Text = "0" Then 'Si no hay ruta cargada, guardamos todos los clientes
+ Log("No hay ruta, guardamos todos")
+ Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, bcajas,cantc,consecutivo,bcajas,cantc))
+ Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO))
+ Else 'Si ya hay ruta cargada, solo guardamos los clientes nuevos.
+' Log("Hay ruta, guardamos los nuevos")
+ Private tc As Cursor = Starter.skmt.ExecQuery($"select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '${HVD_CLIENTE}' and HVD_PROID = '${HVD_PROID}' AND HVD_CANT = '${HVD_CANT}' AND HVD_CODPROMO = '${HVD_CODPROMO}' "$)
+ If tc.RowCount = 0 Then
+ Log($"Guardamos ${HVD_CLIENTE}"$)
+ Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, bcajas,cantc,consecutivo,bcajas,cantc))
+ Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO))
+ End If
+ End If
+ Next
+ Starter.skmt.TransactionSuccessful
+ Starter.skmt.EndTransaction
+ Log($"******** Terminamos HV - ${result.Rows.Size}"$)
+' f2=Starter.skmt.ExecQuery2("select COUNT(*) as CAMBIOS from hist_ventas where SUBSTR(HVD_PRONOMBRE,1,6) =?", Array As String("CAMBIO"))
+' f2.Position = 0
+' If f2.GetString("CAMBIOS") > 0 Then
+' f1=Starter.skmt.ExecQuery2("select sum(HVD_CANT) as CAMBIOS from hist_ventas where SUBSTR(HVD_PRONOMBRE,1,6) =?", Array As String("CAMBIO"))
+' f1.Position = 0
+' Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION =?", Array As Object("CAMBIOS"))
+' Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES VALUES(?,?)", Array As Object("CAMBIOS",f1.GetString("CAMBIOS")))
+' f1.Close
+' Else
+' Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION =?", Array As Object("CAMBIOS"))
+' Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES VALUES(?,?)", Array As Object("CAMBIOS","0"))
+' End If
+' f2.Close
+ Listo3 =1
+ If Listo1 = 1 And Listo3 = 1 Then
+ ToastMessageShow("Datos Actualizados." , True)
+ B4XPage_Appear
+ img2.Visible = False
+ EJECUTANDO = 0
+ End If
+ End If
+
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "variables" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim Cat_Va_Descripcion As String = records(result.Columns.Get("CAT_VA_DESCRIPCION"))
+ Dim Cat_Va_Valor As String = records(result.Columns.Get("CAT_VA_VALOR"))
+' Log(" ++ insert into CAT_VARIABLES: "&Cat_Va_Descripcion&","&Cat_Va_Valor)
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object (Cat_Va_Descripcion, Cat_Va_Valor))
+ Next
+ End If
+ End If
+
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "PAGARES" Then 'query tag
+ For Each records() As Object In result.Rows
+
+ Dim TMP_MONTO_PAGARE As String = records(result.Columns.Get("TMP_MONTO_PAGARE"))
+ Dim TMP_CLIENTE As String = records(result.Columns.Get("TMP_CLIENTE"))
+' Log(" ++ insert into CAT_VARIABLES: "&Cat_Va_Descripcion&","&Cat_Va_Valor)
+ Starter.skmt.ExecNonQuery2("INSERT INTO PAGARES(TMP_MONTO_PAGARE, TMP_CLIENTE) VALUES (?,?)", Array As Object (TMP_MONTO_PAGARE, TMP_CLIENTE))
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "valida_pedido" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim CUANTOSP As Int = records(result.Columns.Get("CUANTOSP"))
+ If cuantos_pedido = CUANTOSP Then
+ ' ToastMessageShow("rojo val ok 1 cuantosp." , True)
+ datos_iguales = "ok"
+ Else
+ ToastMessageShow("No se cargo bien la info P. Sync Nuevamente" & CUANTOSP & " " & cuantos_pedido, True)
+ End If
+ Next
+ End If
+ End If
+
+
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "valida_pedidoc" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim CUANTOSC As Int = records(result.Columns.Get("CUANTOSC"))
+ If cuantos_pedidosc = CUANTOSC Then
+ ' ToastMessageShow("rojo val ok 1 cuantosp." , True)
+ datos_iguales = "ok"
+ Else
+ ToastMessageShow("No se cargo bien la info C. Sync Nuevamente" & CUANTOSC & " " & cuantos_pedidosc, True)
+ End If
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "valida_noventa" Then 'query tag
+ For Each records() As Object In result.Rows
+ Dim CUANTOSN As Int = records(result.Columns.Get("CUANTOSN"))
+ If cuantos_noventa = CUANTOSN Then
+ ' ToastMessageShow("rojo val ok 1 cuantosp." , True)
+ datos_iguales = "ok"
+ Else
+ ToastMessageShow("No se cargo bien la info N. Sync Nuevamente" & CUANTOSN & " " & cuantos_noventa, True)
+ End If
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "insert_pedido" Then 'query tag
+ ToastMessageShow("Datos Actualizados." , True)
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "version" Then 'query tag
+ For Each records() As Object In result.Rows
+ Starter.skmt.ExecNonQuery("delete from VERSION")
+ Dim CAT_VE_VERSION As String = records(result.Columns.Get("CAT_VE_VERSION"))
+' Log(" ++ insert into VERSION: "&CAT_VE_VERSION)
+ Starter.skmt.ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)", Array As Object (CAT_VE_VERSION))
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "count_cli" Then 'query tag
+ For Each records() As Object In result.Rows
+ COUNT_CLIE = records(result.Columns.Get("COUNT_CLIE"))
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "ruta" Then 'query tag
+ If reqs.IndexOf("ruta") > -1 Then
+ reqs.RemoveAt(reqs.IndexOf("ruta"))
+ Log(reqs.Size)
+ End If
+ For Each records() As Object In result.Rows
+ Dim VALIDO As String = records(result.Columns.Get("VALIDO"))
+' Log("VALIDO= " & VALIDO)
+ If VALIDO = "OK" Then
+ If l_ctast.Text = "0" Then
+ Subir.Visible = True
+ Else If l_ctast.Text <> "0" Then
+ Subir.Visible = False
+ End If
+ cargar.Visible = True
+ If Subs.dameUsuarioDeDB = "ROOT" Then Subir.Visible = True
+ connecta.Visible = False
+ Starter.skmt.ExecNonQuery("DELETE FROM RUTAA")
+' Log(" ++ insert into RUTAA: "&e_ruta.Text)
+ Starter.skmt.ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)", Array As Object (e_ruta.TEXT))
+ B4XPages.MainPage.rutaPreventa = e_ruta.TEXT
+ If conn = "1" Then
+ ToastMessageShow("Existe Conexión con el Servidor." , True)
+ End If
+ Else
+ MsgboxAsync("La ruta no esta asignada a este usuario","Atención")
+ cargar.Visible = False
+ Subir.Visible = False
+ inv.Visible = False
+ connecta.Visible = False
+ End If
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then 'Traemos las coordenadas del CEDIS. (Parte de la funcionalidad OSRM)
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "coords_almacen" Then 'query tag
+ For Each records() As Object In result.Rows
+ Log("Coordenadas del almacen: " & records(result.Columns.Get("CAT_AL_LATITUD")) & "," & records(result.Columns.Get("CAT_AL_LONGITUD")))
+ Private lat, lon As Double
+ lat = 0.0
+ lon = 0.0
+ If IsNumber(records(result.Columns.Get("CAT_AL_LATITUD"))) And IsNumber(records(result.Columns.Get("CAT_AL_LONGITUD"))) Then
+ lat = records(result.Columns.Get("CAT_AL_LATITUD"))
+ lon = records(result.Columns.Get("CAT_AL_LONGITUD"))
+ End If
+ Starter.cedisLocation.Latitude = lat
+ Starter.cedisLocation.Longitude = lon
+ Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("COORDS_ALMACEN"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("COORDS_ALMACEN",lon&","&lat))
+ '19.48118148992086,-99.15295579261536
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "ins_reparto" Then 'query tag
+ For Each records() As Object In result.Rows
+ For Each k As String In result.Columns.Keys
+ Log(k & ": " & records(result.Columns.Get(k)))
+ Next
+ Next
+ End If
+ End If
+
+ If Job.JobName = "DBRequest" Then
+ Dim result As DBResult = reqManager.HandleJob(Job)
+ If result.Tag = "ins_rechazos" Then 'query tag
+ For Each records() As Object In result.Rows
+ For Each k As String In result.Columns.Keys
+ Log(k & ": " & records(result.Columns.Get(k)))
+ Next
+ Next
+ End If
+ End If
+ Job.Release
+
+ End If
+ If reqs.Size = 0 Then
+
+
+
+' ProgressDialogHide
+
+ c = Starter.skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM CHECADO_CHECK")
+ c.Position = 0
+ If c.GetString("CUANTOS") = 0 Then
+ Starter.skmt.ExecNonQuery2("insert into CHECADO_CHECK (CHECADO) VALUES(?)", Array As String("0"))
+
+ Else If c.GetString("CUANTOS") = 1 Then
+
+ End If
+ c.Close
+' Log(reqs.size)
+' Log("Terminamos lo descarga de ruta!")
+ End If
+
+
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ If Panel1.visible Then
+ Log("PANEL1 VISIBLE")
+ B_REGRESA_Click
+ Else If p_prod.Visible Then
+ p_prod.Visible = False
+ Else
+ B4XPages.ShowPage("Login")
+ End If
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+
+Sub connecta_Click
+ LogColor($"ReqServer = ${B4XPages.MainPage.server}"$, Colors.red)
+ If Not(IsConnectedToInternet) Then MsgboxAsync("No hay conexión a conexión a Internet", "Revisa tu conexión")
+ If e_ruta.Text <> "" Then
+ imei = "" 'p.GetDeviceId
+ conn = "1"
+ ime.HideKeyboard
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "select_version_IZCA"
+ reqManager.ExecuteQuery(cmd , 0, "version")
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "select_ruta_re_REPG_IZCA2"
+ cmd.Parameters = Array As Object(ALMACEN, e_ruta.text, usuario)
+
+ Log($"${ALMACEN}, ${e_ruta.text}, ${usuario}"$)
+ reqManager.ExecuteQuery(cmd , 0, "ruta")
+ ToastMessageShow("Validando Conexión." , True)
+ Starter.skmt.ExecNonQuery("DELETE FROM RUTAA")
+ Starter.skmt.ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)", Array As Object (e_ruta.TEXT))
+ B4XPages.MainPage.rutaPreventa = e_ruta.TEXT
+ End If
+End Sub
+
+Sub BUSCA_Click
+ If b_check.Visible = True Then
+ MsgboxAsync("Favor de hacer el checklist.","Atención")
+ Else
+' StartActivity(BUSCAR)
+ B4XPages.ShowPage("Buscar")
+ End If
+End Sub
+
+Sub b_mapa_Click
+' StartActivity(mapas)
+ B4XPages.ShowPage("mapas")
+End Sub
+
+Sub e_ruta_EnterPressed
+ If e_ruta.Text = "FIN DIA" Then
+ RES = Msgbox2("Seguro que desea hacer el cierre todos los datos se borraran?","Cierre", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore
+ If RES = DialogResponse.POSITIVE Then
+
+ e_ruta.Text = ""
+ Starter.skmt.ExecNonQuery("delete from PICK_CIEGO")
+ Starter.skmt.ExecNonQuery("delete from pedido_cliente")
+ Starter.skmt.ExecNonQuery("delete from PAGARES")
+ Starter.skmt.ExecNonQuery("delete from CHECADO_CHECK")
+ Starter.skmt.ExecNonQuery("delete from CHECKLIST2")
+ Starter.skmt.ExecNonQuery("delete from pedido")
+ Starter.skmt.ExecNonQuery("delete from noventa")
+ Starter.skmt.ExecNonQuery("delete from clie_act")
+ Starter.skmt.ExecNonQuery("delete from kmt_info")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod3")
+ Starter.skmt.ExecNonQuery("delete from CAT_DETALLES_PAQ")
+ Starter.skmt.ExecNonQuery("delete from HIST_VENTAS")
+ Starter.skmt.ExecNonQuery("delete from REPARTO")
+ Starter.skmt.ExecNonQuery("DELETE FROM TABULADOR_MONEDAS")
+ Starter.skmt.ExecNonQuery("DELETE FROM TABULADOR_BILLETES")
+ Starter.skmt.ExecNonQuery("DELETE FROM RUTAA")
+ Starter.skmt.ExecNonQuery("DELETE FROM ABONOSP")
+ Starter.skmt.ExecNonQuery("DELETE FROM ABONOS")
+ Starter.skmt.ExecNonQuery("DELETE FROM BLOCKENVIO")
+ B4XPage_Appear
+ End If
+' Starter.waypointsOrdered.Clear
+ Starter.skmt.ExecNonQuery("delete from waypoints")
+ End If
+End Sub
+
+Sub inv_Click
+ ToastMessageShow("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias" , True)
+End Sub
+
+Sub t1_tick
+ cmd.Initialize
+ cmd.Name = "select_cuantos_pedido"
+ cmd.Parameters = Array As Object(ALMACEN,l_ruta.text)
+ reqManager.ExecuteQuery(cmd , 0, "valida_pedido")
+
+ cmd.Initialize
+ cmd.Name = "select_cuantos_noventa_mards"
+ cmd.Parameters = Array As Object(ALMACEN,l_ruta.text)
+ reqManager.ExecuteQuery(cmd , 0, "valida_noventa")
+
+ cmd.Initialize
+ cmd.Name = "select_cuantos_pedidoc"
+ cmd.Parameters = Array As Object(ALMACEN,l_ruta.text)
+ reqManager.ExecuteQuery(cmd , 0, "valida_pedidoc")
+ img2.Visible=False
+ t1.Enabled = False
+End Sub
+
+Sub B_CLIEPROD_Click
+ If b_check.Visible = True Then
+ MsgboxAsync("Favor de hacer el checklist.","Atención")
+ Else
+ BUSCA.Visible = True
+ connecta.Visible = False
+ trabajar.Visible = True
+ B_CLIEPROD.Visible = True
+ Panel1.Visible = True
+ Panel1.BringToFront
+ Panel1.Width = Root.Width
+ Panel1.Height = Root.Height
+ B_REGRESA.Top = Panel1.Height - B_REGRESA.Height
+ Btn_Ubicar_Ru.Visible=True
+
+ Dim ch As Cursor = Starter.skmt.ExecQuery("select count(*) as visit from kmt_info WHERE gestion = 2")
+ ch.Position = 0
+ L_clientes_visit.Text = ch.GetInt("visit")
+
+ Dim ch1 As Cursor = Starter.skmt.ExecQuery("select count(*) as rechazo from kmt_info WHERE gestion = 3")
+ ch1.Position = 0
+ l_clientes_recha.Text = ch1.GetInt("rechazo")
+ l_clientes_visitados.Text = ch1.GetInt("rechazo") + ch.GetInt("visit")
+
+ c=Starter.skmt.ExecQuery("select * from kmt_info WHERE gestion <> 0 order by HORAENT")
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ ListView1.Clear
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 16
+ label1.TextColor = Colors.Black
+ Dim label2 As Label
+ label2 = ListView1.TwoLinesLayout.SecondLabel
+ label2.TextSize = 16
+ label2.TextColor = Colors.Black
+
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ If c.GetString("gestion") = "2" Then
+ ESTATUS = "ENTREGADO"
+ Log("entrega")
+ ELSE IF c.GetString("gestion") = "3" Then
+ Log("no entrega")
+ ESTATUS = "RECHAZADO"
+ Else
+ ESTATUS = "SIN ESTATUS"
+ End If
+
+
+
+ If ESTATUS = "ENTREGADO" Then
+ Private vc As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='${Subs.traealmacen}' and HVD_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}'"$)
+
+ Private cuenta0 As String = 0
+ Private arti As String = 0
+ If vc.RowCount > 0 Then
+ For a = 0 To vc.RowCount - 1
+ vc.Position = a
+' Log(vc.GetString("HVD_CANT")&","&vc.GetString("HVD_RECHAZOCANT"))
+ arti = arti + (vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT"))
+ cuenta0 = cuenta0 + ((vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT"))*(vc.GetString("HVD_COSTO_TOT")/vc.GetString("HVD_CANT")))
+ Next
+ End If
+' Log(cuenta0)
+
+ Private vc2 As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}' AND BCAJAS = 1"$)
+ Private Cuenta1 As String = 0
+ Private arti1 As String = 0
+ If vc2.RowCount > 0 Then
+ For h = 0 To vc2.RowCount - 1
+ vc2.Position = h
+ Dim preu As Float = NumberFormat2(vc2.GetString("HVD_COSTO_TOT")/vc2.GetString("CANTC"),0,2,2,False)
+ Private vc3 As Cursor = Starter.skmt.ExecQuery($"select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '${vc2.GetString("HVD_PROID")}'"$)
+ If vc3.RowCount > 0 Then
+ vc3.Position = 0
+ Cuenta1 = Cuenta1 + ((vc2.GetString("CANTC")-(vc2.GetString("HVD_RECHAZOCANT")/vc3.GetString("CONVERSION")))*preu)
+ arti1 = arti1 + (vc2.GetString("HVD_CANT") - vc2.GetString("HVD_RECHAZOCANT"))
+ End If
+ Next
+ End If
+' Log(Cuenta1)
+
+ Private vc4 As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}' AND BCAJAS = 0 and HVD_CODPROMO <> '${Subs.traeAlmacen}'"$)
+ Private Cuenta2 As String = 0
+ Private arti2 As String = 0
+ If vc4.RowCount > 0 Then
+
+ For k = 0 To vc4.RowCount - 1
+ vc4.Position = k
+ If vc4.GetString("HVD_PROID") <> vc4.GetString("HVD_CODPROMO") Then
+ If vc4.GetString("HVD_RECHAZO") = 0 Then
+ Cuenta2 = Cuenta2 + vc4.GetString("HVD_COSTO_TOT")
+ arti2 = arti2 + vc4.GetString("HVD_CANT")
+ Else
+ Private vc5 As Cursor = Starter.skmt.ExecQuery($"select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${vc4.GetString("HVD_PROID")}'"$)
+ If vc5.RowCount > 0 Then
+ vc5.Position= 0
+' Log(vc5.GetString("CAT_GP_PRECIO"))
+ Cuenta2 = Cuenta2 +((vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))*vc5.GetString("CAT_GP_PRECIO"))
+ arti2 = arti2 +(vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))
+ End If
+ End If
+ End If
+
+ Next
+ End If
+' Log(arti2)
+
+ Private c4 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}'"$)
+ Private Cuenta3 As String = 0
+ Private arti3 As String = 0
+ If c4.RowCount > 0 Then
+ For x = 0 To c4.RowCount -1
+ c4.Position = x
+ arti3 = arti3 + c4.GetString("PE_CANT")
+ Cuenta3 = Cuenta3 + c4.GetString("PE_COSTO_TOT")
+ Next
+ End If
+
+
+ Private TOTALMONTO As String = cuenta0 + Cuenta1 + Cuenta2 + Cuenta3
+ Private TOTALcantidad As String = arti + arti1 +arti2 + arti3
+
+ ListView1.AddTwoLines(c.GetString("CAT_CL_CODIGO")&" - " &c.GetString("CAT_CL_NOMBRE"), "Articulos :"& TOTALcantidad &" Monto :"& NumberFormat2(TOTALMONTO,0,2,2,True) & " " & ESTATUS )
+ Log("si entre2")
+
+ Else If ESTATUS = "RECHAZADO" Then
+
+ Private vc As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO, HVD_COSTO_TOT from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='${Subs.traealmacen}' and HVD_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}'"$)
+
+ Private cuenta0 As String = 0
+ Private arti As String = 0
+ If vc.RowCount > 0 Then
+ For a = 0 To vc.RowCount - 1
+ vc.Position = a
+ Dim preu As Float = NumberFormat2(vc.GetString("HVD_COSTO_TOT")/vc.GetString("HVD_CANT"),0,2,2,False)
+' Log(vc.GetString("HVD_CANT")&","&vc.GetString("HVD_RECHAZOCANT"))
+ arti = arti + (vc.GetString("HVD_RECHAZOCANT"))
+ cuenta0 = cuenta0 + ((vc.GetString("HVD_RECHAZOCANT"))*preu)
+ Next
+ End If
+' Log(cuenta0)
+
+ Private vc2 As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}' AND BCAJAS = 1"$)
+ Private Cuenta1 As String = 0
+ Private arti1 As String = 0
+ If vc2.RowCount > 0 Then
+ For h = 0 To vc2.RowCount - 1
+ vc2.Position = h
+ Dim preu As Float = NumberFormat2(vc2.GetString("HVD_COSTO_TOT")/vc2.GetString("CANTC"),0,2,2,False)
+ Private vc3 As Cursor = Starter.skmt.ExecQuery($"select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '${vc2.GetString("HVD_PROID")}'"$)
+ If vc3.RowCount > 0 Then
+ vc3.Position = 0
+ Cuenta1 = Cuenta1 + ((vc2.GetString("HVD_RECHAZOCANT")/vc3.GetString("CONVERSION"))*preu)
+ arti1 = arti1 + (vc2.GetString("HVD_RECHAZOCANT"))
+ End If
+ Next
+ End If
+' Log(Cuenta1)
+
+ Private vc4 As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}' AND BCAJAS = 0 and HVD_CODPROMO <> '${Subs.traeAlmacen}'"$)
+ Private Cuenta2 As String = 0
+ Private arti2 As String = 0
+ If vc4.RowCount > 0 Then
+
+ For k = 0 To vc4.RowCount - 1
+ vc4.Position = k
+ If vc4.GetString("HVD_PROID") <> vc4.GetString("HVD_CODPROMO") Then
+ If vc4.GetString("HVD_RECHAZO") = 0 Then
+ Cuenta2 = Cuenta2 + vc4.GetString("HVD_COSTO_TOT")
+ arti2 = arti2 + vc4.GetString("HVD_RECHAZOCANT")
+ Else
+ Private vc5 As Cursor = Starter.skmt.ExecQuery($"select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${vc4.GetString("HVD_PROID")}'"$)
+ If vc5.RowCount > 0 Then
+ vc5.Position= 0
+' Log(vc5.GetString("CAT_GP_PRECIO"))
+ Cuenta2 = Cuenta2 +(( vc4.GetString("HVD_RECHAZOCANT"))*vc5.GetString("CAT_GP_PRECIO"))
+ arti2 = arti2 +(vc4.GetString("HVD_RECHAZOCANT"))
+ End If
+ End If
+ End If
+
+ Next
+ End If
+' Log(arti2)
+
+ Private c4 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '${c.GetString("CAT_CL_CODIGO")}'"$)
+ Private Cuenta3 As String = 0
+ Private arti3 As String = 0
+ If c4.RowCount > 0 Then
+ For x = 0 To c4.RowCount -1
+ c4.Position = x
+ arti3 = arti3 + c4.GetString("PE_CANT")
+ Cuenta3 = Cuenta3 + c4.GetString("PE_COSTO_TOT")
+ Next
+ End If
+
+
+ Private TOTALMONTO As String = cuenta0 + Cuenta1 + Cuenta2 + Cuenta3
+ Private TOTALcantidad As String = arti + arti1 +arti2 + arti3
+
+ Log("si entre")
+ ListView1.AddTwoLines(c.GetString("CAT_CL_CODIGO")&" - " &c.GetString("CAT_CL_NOMBRE"), "Articulos :"& TOTALcantidad &" Monto :"& NumberFormat2(TOTALMONTO,0,2,2,True) & " " & ESTATUS )
+ End If
+ Next
+ End If
+
+
+
+
+
+' c=skmt.ExecQuery("select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_ESTATUS from HIST_VENTAS ORDER BY HVD_PRONOMBRE")
+'
+' ListView1.Clear
+' Dim label1 As Label
+' label1 = ListView1.TwoLinesLayout.Label
+' label1.TextSize = 10
+' label1.TextColor = Colors.Black
+' Dim label2 As Label
+' label2 = ListView1.TwoLinesLayout.SecondLabel
+' label2.TextSize = 10
+' label2.TextColor = Colors.Black
+'
+' If c.RowCount>0 Then
+' For i=0 To c.RowCount -1
+' c.Position=i
+' If c.GetString("HVD_ESTATUS") = "0" Then
+' ESTATUS = "SIN ENTREGAR"
+' ELSE IF c.GetString("HVD_ESTATUS") = "1" Then
+' ESTATUS = "ENTREGADO"
+' ELSE IF c.GetString("HVD_ESTATUS") = "2" Then
+' ESTATUS = "RECHAZADO"
+' Else
+' ESTATUS = "SIN ESTATUS"
+' End If
+' ListView1.AddTwoLines(c.GetString("HVD_PRONOMBRE") & " " & c.GetString("HVD_CLIENTE") , c.GetString("HVD_CANT") & " " & ESTATUS )
+' Next
+' End If
+End If
+End Sub
+
+Sub B_REGRESA_Click
+ Log("B_REGRESA_Click")
+ BUSCA.Visible = False
+ connecta.Visible = True
+ trabajar.Visible = True
+ B_CLIEPROD.Visible = True
+ Panel1.Visible = False
+ Btn_Ubicar_Ru.Visible=True
+End Sub
+
+''''''''''''''''''''''''''''MAPA RUTAS
+Sub Btn_Ubicar_Ru_Click
+ If b_check.Visible = True Then
+ MsgboxAsync("Favor de hacer el checklist.","Atención")
+ Else
+
+ StartActivity(MAPA_RUTAS)
+ End If
+End Sub
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Private Sub b_tabulador_Click
+ If b_check.Visible = True Then
+ MsgboxAsync("Favor de hacer el checklist.","Atención")
+ Else
+ B4XPages.ShowPage("tabulador")
+ End If
+End Sub
+
+Private Sub b_check_Click
+
+ B4XPages.ShowPage("checklist")
+
+End Sub
+
+Private Sub ListView1_ItemClick (Position As Int, Value As Object)
+ Log(Value)
+
+ Dim clieasing() As String = Regex.Split(" ", Value)
+ Log(clieasing(0))
+
+ Starter.skmt.ExecNonQuery("delete from CUENTAA")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object(clieasing(0)))
+ B4XPages.ShowPage("Cliente")
+ Panel1.Visible = False
+End Sub
+
+Private Sub b_rechazos_Click
+ Dim label1 As Label
+ label1 = lv_prod_Prin.SingleLineLayout.Label
+ label1.TextSize = 14
+ p_prod.Width = Root.Width
+ p_prod.Height = Root.Height
+' b_regreso.Left = (p_prod.Width - b_regreso.Width) / 4
+' b_impresion_rec.Left = (p_prod.Width - b_impresion_rec.Width) / 4
+ b_regreso.Top = p_prod.Height - b_regreso.Height
+ b_impresion_rec.Top = p_prod.Height - b_impresion_rec.Height
+
+ p_prod.Visible = True
+ p_prod.BringToFront
+
+ If l_ctast.Text = "0" Then
+ b_impresion_rec.Enabled = True
+ Else If l_ctast.Text <> "0" Then
+ b_impresion_rec.Enabled = False
+ End If
+
+
+ Private c As Cursor = Starter.skmt.ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")
+
+ lv_prod_Prin.SingleLineLayout.Label.TextColor = Colors.Black
+ lv_prod_Prin.Clear
+ If c.RowCount > 0 Then
+ For i = 0 To c.RowCount - 1
+ c.Position = i
+ Dim itemText As String
+
+ Private c3 As Cursor=Starter.skmt.ExecQuery($"select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='${c.GetString("HVD_PROID")}'"$)
+ Private resta As String = 0
+
+ If c3.RowCount > 0 Then
+ c3.Position = 0
+ resta = c3.GetString("PE_CANT")
+ Else
+ resta = 0
+ End If
+ If ( c.GetInt("HVD_RECHAZOCANT") - resta) <= 0 Then
+
+ Else
+ itemText = $"${c.GetString("HVD_PRONOMBRE")} ${CRLF}Inventario: ${(c.GetInt("HVD_RECHAZOCANT") - resta)}"$
+ lv_prod_Prin.AddSingleLine(itemText)
+ End If
+
+
+ Next
+ Else
+ lv_prod_Prin.AddSingleLine("No hay datos disponibles.")
+ End If
+ c.Close
+
+
+End Sub
+
+Private Sub b_regreso_Click
+ p_prod.Visible = False
+End Sub
+
+Private Sub p_prod_Click
+
+End Sub
+
+Private Sub b_venta_emp_Click
+ Starter.skmt.ExecNonQuery("delete from CUENTAA")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object("63403"))
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+'Private Sub connecta_LongClick
+' Dim ab As Cursor = Starter.skmt.ExecQuery($"SELECT * from ABONOS where a_enviado is null"$)
+' Log(ab.RowCount)
+' If ab.RowCount > 0 Then
+' For i=0 To ab.RowCount -1
+' ab.Position = i
+'
+' Dim c58 As Cursor = Starter.skmt.ExecQuery($"SELECT * from HIST_VENTAS"$)
+' If c58.RowCount > 0 Then
+' c58.Position = 0
+'
+' Private fechapre As String = c58.GetString("HVD_FECHA")
+' End If
+'
+'
+' Dim cmd As DBCommand
+' cmd.Initialize
+' cmd.Name = "insert_abono_IZCAREP2"
+' cmd.Parameters = Array As Object( ab.GetString("a_usuario"), ab.GetString("a_ruta"), ab.GetString("a_cliente"), ab.GetString("a_abono"), ab.GetString("a_fecha"),ALMACEN,"REPARTO", ab.GetString("TIPO_PAGO"), ab.GetString("CONSECUTIVO"), ab.GetString("NUM_TICKET"), ab.GetString("RUTA_REP"), fechapre)
+' reqManager.ExecuteCommand(cmd , $"ins_abonosPendientes_${ab.GetString("a_cliente")}"$)
+' Log($"ins_abonosPendientes_${ab.GetString("a_cliente")}"$)
+' Next
+' End If
+' ab.Close
+'End Sub
+
+
+''para la carga --- mover a los demas clientes
+Sub t8_tick
+ cmd.Initialize
+ cmd.Name = "select_conteo_izca"
+ cmd.Parameters = Array As Object(e_ruta.text, ALMACEN)
+ reqManager.ExecuteQuery(cmd , 0, "CONTEO_DATOS")
+ l_carga2.Text = "VALIDANDO"
+ L_carga.Text = "VALIDANDO"
+ PB_carga.Progress = 50
+ PB_carga2.Progress = 50
+ t8.Enabled = False
+End Sub
+
+Private Sub P_carga_Click
+
+End Sub
+
+Private Sub B_carga_Click
+ If L_carga.Text = "LISTO" And l_carga2.Text = "LISTO" Then
+ P_carga.Visible = False
+ Else
+ Dim checagestion As Cursor = Starter.skmt.ExecQuery("SELECT * FROM NOVENTA")
+ If checagestion.RowCount = 0 Then
+ P_carga.Visible = False
+ e_ruta.Text = ""
+ Starter.skmt.ExecNonQuery("delete from PICK_CIEGO")
+ Starter.skmt.ExecNonQuery("delete from pedido_cliente")
+ Starter.skmt.ExecNonQuery("delete from PAGARES")
+ Starter.skmt.ExecNonQuery("delete from CHECADO_CHECK")
+ Starter.skmt.ExecNonQuery("delete from CHECKLIST2")
+ Starter.skmt.ExecNonQuery("delete from pedido")
+ Starter.skmt.ExecNonQuery("delete from noventa")
+ Starter.skmt.ExecNonQuery("delete from clie_act")
+ Starter.skmt.ExecNonQuery("delete from kmt_info")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod")
+ Starter.skmt.ExecNonQuery("delete from cat_gunaprod3")
+ Starter.skmt.ExecNonQuery("delete from CAT_DETALLES_PAQ")
+ Starter.skmt.ExecNonQuery("delete from HIST_VENTAS")
+ Starter.skmt.ExecNonQuery("delete from REPARTO")
+ Starter.skmt.ExecNonQuery("DELETE FROM TABULADOR_MONEDAS")
+ Starter.skmt.ExecNonQuery("DELETE FROM TABULADOR_BILLETES")
+ Starter.skmt.ExecNonQuery("DELETE FROM RUTAA")
+ Starter.skmt.ExecNonQuery("DELETE FROM ABONOSP")
+ Starter.skmt.ExecNonQuery("DELETE FROM ABONOS")
+ Starter.skmt.ExecNonQuery("DELETE FROM BLOCKENVIO")
+ B4XPage_Appear
+ MsgboxAsync("No se cargo bien la informacion, favor de cargar día nuevamente","Atención")
+ Else
+ MsgboxAsync("No se cargo bien la informacion, favor de cargar día nuevamente","Atención")
+ P_carga.Visible = False
+ End If
+ End If
+End Sub
+'fin carga
+
+'
+'Sub Printer1_Connected (Success As Boolean)
+'' If Logger Then Log("Printer1_Connected")
+' If Success Then
+' ToastMessageShow("Impresora conectada", False)
+' Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("MACIMP"))
+' Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("MACIMP",Starter.mac_impresora))
+' LogColor("Impresora conectada", Colors.Green)
+'' B_IMP2.Enabled = True
+' impresoraConectada = True
+' Else
+'' Msgbox(Printer1.ConnectedErrorMsg, "Error connecting.") 'ignore
+'' ToastMessageShow("Error conectando la impresora", False)
+' LogColor("Error conectando la impresora", Colors.Red)
+' errorImpresora = errorImpresora + 1
+' If errorImpresora > 1 Then
+' Starter.MAC_IMPRESORA = "0"
+' errorImpresora = 0
+' End If
+' End If
+'End Sub
+'
+'Sub Printer_Connected (Success As Boolean)
+' If Success Then
+' inventario.Enabled = True
+' PASA_IMP = "1"
+' Else
+' inventario.Enabled = False
+' If Msgbox2("", "Printer Error","Reprint","Cancel","",Null) = DialogResponse.POSITIVE Then 'ignore
+' StartPrinter
+' End If
+' End If
+'End Sub
+''
+'Sub StartPrinter
+' Dim PairedDevices As Map
+' Dim L1 As List
+' Dim resimp As Int
+' ToastMessageShow("Printing.....",True)
+' PairedDevices.Initialize
+' Try
+' PairedDevices = cmp20.GetPairedDevices
+' Catch
+' Msgbox("Getting Paired Devices","Printer Error") 'ignore
+' printer.Close
+' cmp20.Disconnect
+' End Try
+' If PairedDevices.Size = 0 Then
+' Msgbox("Error Connecting to Printer - Printer Not Found","") 'ignore
+' Return
+' End If
+' If PairedDevices.Size = 1 Then
+' Try
+' 'FLEOS
+' cmp20.ConnectInsecure(btAdmin,PairedDevices.Get(PairedDevices.GetKeyAt(0)),1)
+' 'cmp20.Connect(PairedDevices.Get(PairedDevices.GetKeyAt(0)))
+' Catch
+' Msgbox("Connecting","Printer Error") 'ignore
+' printer.Close
+' cmp20.Disconnect
+' End Try
+' Else
+' L1.Initialize
+' For i = 0 To PairedDevices.Size - 1
+' L1.Add(PairedDevices.GetKeyAt(i))
+' Next
+' resimp = InputList(L, "Choose device", -1) 'ignore
+' If resimp <> DialogResponse.CANCEL Then
+' cmp20.Connect(PairedDevices.Get(L1.Get(resimp)))
+' End If
+' End If
+'End Sub
+
+
+Sub Printer1_Connected (Success As Boolean)
+' If Logger Then Log("Printer1_Connected")
+ If Success Then
+ ToastMessageShow("Impresora conectada", False)
+ Starter.skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?", Array As Object ("MACIMP"))
+ Starter.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("MACIMP",Starter.mac_impresora))
+' If logger Then LogColor("Impresora conectada", Colors.Green)
+' B_IMP2.Enabled = True
+ impresoraConectada = True
+ Else
+' Msgbox(Printer1.ConnectedErrorMsg, "Error connecting.") 'ignore
+' ToastMessageShow("Error conectando la impresora", False)
+ LogColor("Error conectando la impresora", Colors.Red)
+ errorImpresora = errorImpresora + 1
+ If errorImpresora > 1 Then
+ Starter.MAC_IMPRESORA = "0"
+ errorImpresora = 0
+ End If
+ End If
+End Sub
+
+Sub Printer1_Error
+ Log("error printer")
+End Sub
+
+Sub Printer_Connected (Success As Boolean)
+ If Success Then
+' B_IMP.Enabled = True
+ PASA_IMP = "1"
+ Else
+' B_IMP.Enabled = False
+ If Msgbox2("", "Printer Error","Reprint","Cancel","",Null) = DialogResponse.POSITIVE Then 'ignore
+ StartPrinter
+ End If
+ End If
+End Sub
+
+Sub StartPrinter
+ Dim PairedDevices As Map
+ Dim L1 As List
+ Dim resimp As Int
+ ToastMessageShow("Printing.....",True)
+ PairedDevices.Initialize
+ Try
+ PairedDevices = cmp20.GetPairedDevices
+ Catch
+ Msgbox("Getting Paired Devices","Printer Error") 'ignore
+ printer.Close
+ cmp20.Disconnect
+ End Try
+
+ If PairedDevices.Size = 0 Then
+ Msgbox("Error Connecting to Printer - Printer Not Found","") 'ignore
+ Return
+ End If
+
+ If PairedDevices.Size = 1 Then
+ Try
+ cmp20.Connect(PairedDevices.Get(PairedDevices.GetKeyAt(0)))
+ Catch
+ Msgbox("Connecting","Printer Error") 'ignore
+ printer.Close
+ cmp20.Disconnect
+ End Try
+ Else
+ L1.Initialize
+ For i = 0 To PairedDevices.Size - 1
+ L1.Add(PairedDevices.GetKeyAt(i))
+ Next
+ resimp = InputList(L1, "Choose device", -1) 'ignore
+ If resimp <> DialogResponse.CANCEL Then
+ cmp20.Connect(PairedDevices.Get(L1.Get(resimp)))
+ End If
+ End If
+End Sub
+
+Private Sub b_imp_inventario_Click
+' ProgressDialogShow("Imprimiendo, un momento ...")
+' Printer1.DisConnect
+' If Not(Printer1.IsConnected) Then
+'' Log("Conectando a impresora ...")
+' Printer1.Connect
+' Private cont As Int = 0
+' Do While Not(impresoraConectada)
+' Sleep(1000)
+'' Log("++++++ " & cont)
+' cont = cont + 1
+' If cont = 2 Then Printer1.Connect 'Tratamos de reconectar
+' If cont > 3 Then impresoraConectada = True
+' Loop
+' Sleep(500)
+' impresoraConectada = False
+' Else
+'' Log("conectando 2")
+' Printer1.Connect
+' Private cont As Int = 0
+' Do While Not(impresoraConectada) Or Not(Printer1.IsConnected)
+' Sleep(1000)
+'' Log("****** " & cont)
+' cont = cont + 1
+' If cont = 2 Then Printer1.Connect
+' If cont > 3 Then impresoraConectada = True
+' Loop
+' Sleep(500)
+' impresoraConectada = False
+' End If
+
+ ProgressDialogShow("Imprimiendo, un momento ...")
+ Printer1.DisConnect
+ If Not(Printer1.IsConnected) Then
+' If logger Then Log("conectando 1")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada)
+ Sleep(1000)
+ cont = cont + 1
+ If cont = 7 Then Printer1.Connect 'Tratamos de reconectar
+ If cont > 15 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ Else
+' If logger Then Log("conectando 2")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada) Or Not(Printer1.IsConnected)
+ Sleep(1000)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect
+ If cont > 4 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ End If
+
+ TAMANO = 0
+ ESPACIO = 28
+ BLANCO = " "
+ Dim bmp As Bitmap
+ Printer1.Justify= 1
+ bmp.InitializeResize(File.DirAssets, "inventarios.jpg", 92, 92, True) 'ignore
+ Dim myimage As AnImage = Printer1.ImageToBWIMage(bmp)
+ myimage = Printer1.DitherImage2D(myimage, 128)
+ myimage= Printer1.PackImage(myimage)
+ Printer1.WriteString(CRLF) ' nudge the printer to show the user something is happening
+ Printer1.WriteString(CRLF) ' nudge the printer to show the user something is happening
+ Printer1.WriteString(Printer1.REVERSE)
+ Printer1.PrintImage(myimage)
+ Printer1.WriteString(Printer1.UNREVERSE)
+ Printer1.WriteString(" " & CRLF)
+ Private c As Cursor = Starter.skmt.ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, HVD_PROID from HIST_VENTAS WHERE HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")
+ lv_prod_Prin.SingleLineLayout.Label.TextColor = Colors.White
+ lv_prod_Prin.Clear
+ Printer1.Justify = 0
+ Dim sDate, sTime As String
+ DateTime.DateFormat = "dd/MM/yyyy"
+ DateTime.TimeFormat = "HH:mm:ss"
+ sDate = DateTime.Date(DateTime.Now)
+ sTime = DateTime.Time(DateTime.Now)
+ Printer1.WriteString("Fecha: " &sDate & CRLF)
+ Printer1.WriteString("Hora: " &sTime & CRLF)
+ Printer1.WriteString("Ruta: " & l_ruta.Text & CRLF)
+ Printer1.WriteString("Usuario: " & Subs.dameUsuarioDeDB & CRLF)
+' Printer1.WriteString("----------INVENTARIO----------" & CRLF)
+ Printer1.WriteString("--------------------------------" & CRLF)
+ If c.RowCount > 0 Then
+ For i = 0 To c.RowCount - 1
+ c.Position = i
+
+ Printer1.WriteString("-----------INVENTARIO-----------" & CRLF)
+ Printer1.WriteString("--------------------------------" & CRLF)
+ Printer1.WriteString("Cant. Producto" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+ For i=0 To c.RowCount -1
+ c.Position=i
+
+
+ Printer1.Justify = 0
+ Printer1.WriteString( (c.GetString("HVD_CANT"))&"- ")
+ Printer1.Justify = 0
+ Dim firstChar As String = c.GetString("HVD_PRONOMBRE").SubString2(0, 1) ' Obtiene el primer carácter
+ Dim productoinven As String
+
+ ' Verificar si el primer carácter es un número
+ If Asc(firstChar) >= Asc("0") And Asc(firstChar) <= Asc("9") Then
+ ' Es un número - tomar a partir del 4to carácter
+ productoinven = c.GetString("HVD_PRONOMBRE").SubString(4)
+ Else
+' Es una letra u otro carácter - tomar completo
+ productoinven = c.GetString("HVD_PRONOMBRE")
+ End If
+
+' Log(productoinven)
+ Printer1.WriteString(productoinven)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+
+
+ Next
+
+ Next
+ End If
+ c.Close
+
+ Dim sumainv As Cursor = Starter.skmt.ExecQuery("SELECT SUM(HVD_CANT) AS CANTIDAD FROM HIST_VENTAS WHERE HVD_CODPROMO <> HVD_PROID")
+ sumainv.Position = 0
+
+ Printer1.WriteString("------------------------------" & CRLF)
+ Printer1.WriteString("Total piezas: " & sumainv.GetString("CANTIDAD")& CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+ Printer1.Justify = 0
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Sleep(1000)
+ Printer1.DisConnect
+ ProgressDialogHide
+End Sub
+
+
+Private Sub b_impresion_rec_Click
+ Dim totalentrega As Int
+ Dim totalrechazo As Int
+ Dim totalpiezas As Int
+ Dim sDate, sTime As String
+ c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position=0
+ usuario = c.GetString("USUARIO")
+' DateTime.DateFormat = "MM/dd/yyyy"
+ DateTime.DateFormat = "dd/MM/yyyy"
+ DateTime.TimeFormat="HH:mm:ss"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c.Close
+' c=Starter.skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION =?", Array As String ("SUCURSAL"))
+' c.Position = 0
+' sucursal = c.GetString("CAT_VA_VALOR")
+' c.Close
+
+ ProgressDialogShow("Imprimiendo, un momento ...")
+ Printer1.DisConnect
+ If Not(Printer1.IsConnected) Then
+' Log("Conectando a impresora ...")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada)
+ Sleep(1000)
+' Log("++++++ " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect 'Tratamos de reconectar
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ Else
+' Log("conectando 2")
+ Printer1.Connect
+ Private cont As Int = 0
+ Do While Not(impresoraConectada) Or Not(Printer1.IsConnected)
+ Sleep(1000)
+' Log("****** " & cont)
+ cont = cont + 1
+ If cont = 2 Then Printer1.Connect
+ If cont > 3 Then impresoraConectada = True
+ Loop
+ Sleep(500)
+ impresoraConectada = False
+ End If
+
+ TAMANO = 0
+ ESPACIO = 28
+ BLANCO = " "
+
+ Printer1.WriteString("Izca Distribuciones" & CRLF)
+ Printer1.WriteString(sDate & " " &sTime & CRLF)
+
+ Printer1.WriteString("------------ENTREGA-----------" & CRLF)
+ Private c As Cursor = Starter.skmt.ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, (IFNULL(SUM(HVD_CANT), 0) - IFNULL(SUM(HVD_RECHAZOCANT), 0)) as total, HVD_PROID from HIST_VENTAS where HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")
+ If c.RowCount > 0 Then
+ For i = 0 To c.RowCount - 1
+ c.Position = i
+
+
+ Private c3 As Cursor=Starter.skmt.ExecQuery($"select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='${c.GetString("HVD_PROID")}'"$)
+ Private resta As String = 0
+
+ If c3.RowCount > 0 Then
+ c3.Position = 0
+ resta = c3.GetString("PE_CANT")
+ Else
+ resta = 0
+ End If
+ Printer1.Justify = 0
+ Printer1.WriteString(c.GetString("HVD_PRONOMBRE") & CRLF)
+ Printer1.Justify = 0
+ Printer1.WriteString("TP: "& c.GetInt("HVD_CANT")&" ")
+ Printer1.Justify = 1
+ Printer1.WriteString(" TE: " & (c.GetInt("total") + resta)&" ")
+ Printer1.Justify = 2
+ Printer1.WriteString(" TR: " & (c.GetInt("HVD_RECHAZOCANT") - resta)&" ")
+ Printer1.Justify = 0
+ Printer1.WriteString(" " & CRLF)
+' itemText2 = $"${c.GetString("HVD_PRONOMBRE")} ${CRLF} TP: ${(c.GetInt("HVD_CANT"))} TE: ${( c.GetInt("total") + resta)} TR: ${(c.GetInt("HVD_RECHAZOCANT") - resta)}"$
+ totalentrega = totalentrega + c.GetInt("total") + resta
+ totalrechazo = totalrechazo + c.GetInt("HVD_RECHAZOCANT") - resta
+ totalpiezas = totalpiezas + c.GetInt("HVD_CANT")
+' Log(itemText2)
+
+ Next
+ End If
+ c.Close
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+
+ Printer1.WriteString("Total Piezas: "& totalpiezas & CRLF)
+ Printer1.WriteString("Total Entrega: "& totalentrega & CRLF)
+ Printer1.WriteString("Total Rechazo: "& totalrechazo & CRLF)
+
+
+ Printer1.WriteString("------------------------------" & CRLF)
+ Printer1.WriteString("------------------------------" & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Printer1.WriteString(" " & CRLF)
+ Sleep(1000)
+ Printer1.DisConnect
+
+ ProgressDialogHide
+End Sub
+
diff --git a/B4A/C_Productos.bas b/B4A/C_Productos.bas
new file mode 100644
index 0000000..b769872
--- /dev/null
+++ b/B4A/C_Productos.bas
@@ -0,0 +1,1108 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Dim g As GPS
+ Dim clie_id As String
+ Dim sDate,sTime As String
+ Dim usuario As String
+ Dim c As Cursor
+' Dim ruta As String
+ Dim b_regresar As Button
+ Dim ListView1 As ListView
+ Dim L_CANT As Label
+ Dim L_TOTAL As Label
+ Dim b_borra As Button
+ Dim Existe As String
+ Dim result As String
+ ' Dim lat_gps, lon_gps As String
+ Dim cuantos As String
+ Dim nombre_prod As String
+ Dim cuantos_pedido As String
+ Private Titulo As Label
+ Private P1 As Panel
+ Private lv2 As ListView
+ Private p_principal As Panel
+ Dim clv_pedido As CustomListView
+ Private p_prods As Panel
+ Private l_prodX As Label
+ Private l_pCant As Label
+ Private et_pCant As EditText
+ Dim bmp As Bitmap
+ Dim etCantHasFocus As Boolean = False
+ Dim totalProds As Int = 0
+ Dim totalCompra As Int = 0
+ Dim prodsMap As Map
+ Dim reconstruirPedido As Boolean = False
+ Dim promoABorrar As String
+ Private b_guardar As Button
+ Private b_prodMas As Button
+ Private b_prodMenos As Button
+ Private b_prodMenosC As Button
+ Private l_pCantC As Label
+ Private et_pCantC As EditText
+ Private b_prodMasC As Button
+ Private p_botMasMenC As Panel
+ Private p_botMasMen As Panel
+ Private b_revversar As Button
+ Private Label2 As Label
+ Private Label3 As Label
+ Private l_piezas As Label
+ Private l_cajas As Label
+
+ Private l_cajas As Label
+ Private l_piezas As Label
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ B4XPages.SetTitle(Me, "Productos")
+ 'load the layout to Root
+ g.Initialize("GPS")
+ Root.LoadLayout("detalleVenta")
+ b_borra.Visible = False
+ Titulo.Text = "Pedido"
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
+
+Sub B4XPage_Appear
+ Label2.Visible = False
+ Label3.Visible = False
+ L_TOTAL.Visible = False
+ L_CANT.Visible = False
+ b_revversar.Visible = False
+ Subs.centraPanel(p_principal, Root.Width)
+' b_guardar.Visible = False
+
+' Titulo.Left = Round(p_principal.Width/2)-(Titulo.Width/2)
+ L_CANT.Text =""
+ L_TOTAL.Text=""
+ c=Starter.skmt.ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")
+ C.Position=0
+ Existe = C.GetString("EXISTE")
+ C.Close
+' c=Starter.skmt.ExecQuery("select distinct hist_ventas.hvd_num_registro, HIST_VENTAS.HVD_CLIENTE, HIST_VENTAS.HVD_PRONOMBRE, HIST_VENTAS.HVD_PROID, HIST_VENTAS.HVD_CANT, HIST_VENTAS2.HVD_CANT as HVD_CANT2, HIST_VENTAS.HVD_COSTO_TOT, HIST_VENTAS.HVD_CODPROMO from HIST_VENTAS inner join HIST_VENTAS2 on HIST_VENTAS.HVD_PROID = HIST_VENTAS2.HVD_PROID and HIST_VENTAS.HVD_CLIENTE = HIST_VENTAS2.HVD_CLIENTE WHERE HIST_VENTAS.HVD_CLIENTE IN (Select CUENTA from cuentaa) and HIST_VENTAS.HVD_RECHAZO = 0 order by HIST_VENTAS.HVD_CODPROMO desc, HIST_VENTAS.HVD_PRONOMBRE asc")
+
+
+ c=Starter.skmt.ExecQuery("select * from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")
+' Private c2 As Cursor=Starter.skmt.ExecQuery("select from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+
+ ListView1.Clear
+ clv_pedido.Clear
+ Subs.SetDivider(ListView1, Colors.LightGray, 2)
+ clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 60dip, Root.Width - 50, Root.Height * 0.62) 'Cambiamos el tamaño y posición de la lista de productos
+ clv_pedido.Base_Resize(clv_pedido.GetBase.Width, clv_pedido.GetBase.Height) 'Cambiamos el tamaño del panel interno de la lista para que ajuste al nuevo tamaño.
+' Log("RC1:"&c.RowCount)
+ If c.RowCount>0 Then
+' Log("Usamos HV")
+
+ For i=0 To c.RowCount -1
+ c.Position=i
+' Log(c.GetString("HVD_PROID"))
+ If c.GetString("BCAJAS") = "0" Then
+' Log("AQUI1")
+' If c.GetString("HVD_CANT") <> c.GetString("HVD_RECHAZOCANT") Then
+' 'Traemos cantidad de hvd2
+' Private oc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '${c.GetString("HVD_PROID")}' and HVD_NUM_REGISTRO = '${c.GetString("HVD_NUM_REGISTRO")}'"$)
+' Private cant2 As Int = 0
+' If oc.RowCount > 0 Then
+' oc.Position = 0
+' cant2 = oc.GetString("HVD_CANT")
+' End If
+' oc.Close
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 12
+ label1.TextColor = Colors.black
+ Dim Label2 As Label
+ Label2 = ListView1.TwoLinesLayout.SecondLabel
+ Label2.TextSize = 12
+ Label2.TextColor = Colors.black
+ Private bgColor, textColor As Int
+ bgColor = Colors.RGB(177, 200, 249)'azul
+ textColor = Colors.black
+ If c.GetString("HVD_CODPROMO") <> Subs.traeAlmacen Then
+' bgColor = Colors.RGB(255, 212, 163) 'naranja
+ bgColor = Colors.White
+ End If
+' Log($"Agregamos prod a lista1 | ${c.GetString("HVD_CANT")} - ${c.GetString("HVD_CANT2")}"$) 'HVD_CANT2 es la original de la orden.
+' ListView1.AddTwoLines(c.GetString("HVD_PRONOMBRE"),"Cantidad #"& c.GetString("HVD_CANT")& " SubTotal $"& c.GetString("HVD_COSTO_TOT"))
+
+ 'aqui selecciono lo que esta en pedido del cliente actual
+ Private c2 As Cursor=Starter.skmt.ExecQuery($"select IFNULL(PE_CANT,0) AS PE_CANT, CONSECUTIVO, PE_BCAJAS from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID ='${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+
+ 'aqui veo cuanto se ha vendido del rechazo del cliente original en el hist_ventas
+ Private d5 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '${c.GetString("HVD_CLIENTE")}' AND PE_PROID = '${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+ d5.Position = 0
+ Private restacant As String = d5.GetString("PE_CANT")
+ d5.Close
+
+ If (c.GetString("HVD_RECHAZOCANT")-restacant) <> "0" Then
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+
+ Private c3 As Cursor=Starter.skmt.ExecQuery($"select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '${c.GetString("HVD_CLIENTE")}' AND PE_PROID ='${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+ Private resta As String = 0
+
+ If c3.RowCount > 0 Then
+' For i = 0 To c3.RowCount - 1
+ c3.Position = 0
+ resta = c3.GetString("PE_CANT")
+' Next
+ Else
+ resta = 0
+ End If
+
+ Dim preciocat As Cursor = Starter.skmt.ExecQuery($"select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '${c.GetString("HVD_PROID")}'"$)
+ If preciocat.RowCount > 0 Then
+ preciocat.Position = 0
+ Dim preciofull As String = preciocat.GetString("CAT_GP_PRECIO")
+ End If
+ preciocat.Close
+ Log(c.GetString("HVD_CODPROMO"))
+ Log(Subs.traeAlmacen)
+
+
+ If c.GetString("HVD_CODPROMO") = Subs.traeAlmacen Then
+ clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), Subs.traePrecio2(c.GetString("HVD_PROID"), c.GetString("HVD_CODPROMO"),c.GetString("CONSECUTIVO")), c2.GetString("PE_CANT"), c.GetString("HVD_RECHAZOCANT")-c2.GetString("PE_CANT") -resta, clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+ Else
+ Log("aqui arriba")
+ clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), preciofull, c2.GetString("PE_CANT"), c.GetString("HVD_RECHAZOCANT")-c2.GetString("PE_CANT") -resta, clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+ End If
+' clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), Subs.traePrecio2(c.GetString("HVD_PROID"), c.GetString("HVD_CODPROMO"),c.GetString("CONSECUTIVO")), c2.GetString("PE_CANT"), c.GetString("HVD_RECHAZOCANT")-c2.GetString("PE_CANT") -resta, clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+' Log("ENTRE A PEDIDO")
+ Else iF c2.RowCount = 0 Then
+ Private c3 As Cursor=Starter.skmt.ExecQuery($"select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '${c.GetString("HVD_CLIENTE")}' AND PE_PROID ='${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+ Private resta As String = 0
+
+ If c3.RowCount > 0 Then
+' For i = 0 To c3.RowCount - 1
+ c3.Position = 0
+ resta = c3.GetString("PE_CANT")
+' Next
+ Else
+ resta = 0
+
+ End If
+
+ Dim preciocat As Cursor = Starter.skmt.ExecQuery($"select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '${c.GetString("HVD_PROID")}'"$)
+ If preciocat.RowCount > 0 Then
+ preciocat.Position = 0
+ Dim preciofull As String = preciocat.GetString("CAT_GP_PRECIO")
+ End If
+ preciocat.Close
+ Log(c.GetString("HVD_CODPROMO"))
+ Log(Subs.traeAlmacen)
+
+ If c.GetString("HVD_CODPROMO") = Subs.traeAlmacen Then
+ clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), Subs.traePrecio2(c.GetString("HVD_PROID"), c.GetString("HVD_CODPROMO"),c.GetString("CONSECUTIVO")), 0, c.GetString("HVD_RECHAZOCANT") -resta, clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+ Else
+ Log("aqui abajo")
+ clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), preciofull, 0, c.GetString("HVD_RECHAZOCANT") -resta, clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+
+ End If
+' clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), Subs.traePrecio2(c.GetString("HVD_PROID"), c.GetString("HVD_CODPROMO"),c.GetString("CONSECUTIVO")), 0, c.GetString("HVD_RECHAZOCANT") -resta, clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+' Log("ENTRE A HIST")
+ End If
+ End If
+ c2.Close
+' Log(c.GetString("HVD_CODPROMO"))
+' End If
+ Else If c.GetString("BCAJAS") = "1" Then
+ Log("AQUI1")
+' If c.GetString("HVD_CANT") <> c.GetString("HVD_RECHAZOCANT") Then
+ 'Traemos cantidad de hvd2
+ Private oc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '${c.GetString("HVD_PROID")}' and HVD_NUM_REGISTRO = '${c.GetString("HVD_NUM_REGISTRO")}'"$)
+ Private cant2 As Int = 0
+ If oc.RowCount > 0 Then
+ oc.Position = 0
+ cant2 = oc.GetString("HVD_CANT")
+ End If
+ oc.Close
+ Dim label1 As Label
+ label1 = ListView1.TwoLinesLayout.Label
+ label1.TextSize = 12
+ label1.TextColor = Colors.black
+ Dim Label2 As Label
+ Label2 = ListView1.TwoLinesLayout.SecondLabel
+ Label2.TextSize = 12
+ Label2.TextColor = Colors.black
+ Private bgColor, textColor As Int
+ bgColor = Colors.RGB(177, 200, 249)'azul
+ textColor = Colors.black
+ If c.GetString("HVD_CODPROMO") <> Subs.traeAlmacen Then
+' bgColor = Colors.RGB(255, 212, 163) 'naranja
+ bgColor = Colors.White
+ End If
+' Log($"Agregamos prod a lista1 | ${c.GetString("HVD_CANT")} - ${c.GetString("HVD_CANT2")}"$) 'HVD_CANT2 es la original de la orden.
+' ListView1.AddTwoLines(c.GetString("HVD_PRONOMBRE"),"Cantidad #"& c.GetString("HVD_CANT")& " SubTotal $"& c.GetString("HVD_COSTO_TOT"))
+
+ Private c2 As Cursor=Starter.skmt.ExecQuery($"select * from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"$)
+
+ Private d5 As Cursor = Starter.skmt.ExecQuery($"SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '${c.GetString("HVD_CLIENTE")}' AND PE_PROID = '${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+ d5.Position = 0
+ Private restacant As String = d5.GetString("PE_CANT")
+ d5.Close
+
+ If (c.GetString("HVD_RECHAZOCANT")-restacant) <> "0" Then
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+ Log("SI ENTRO A PONER CAJAS BIEN ")
+ Log(c2.GetString("PE_CAJAS"))
+ Private c3 As Cursor=Starter.skmt.ExecQuery($"select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '${c.GetString("HVD_CLIENTE")}' AND PE_PROID ='${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+ Private resta As String = 0
+
+ If c3.RowCount > 0 Then
+' For i = 0 To c3.RowCount - 1
+ c3.Position = 0
+ resta = c3.GetString("PE_CANT")
+' Next
+ Else
+ resta = 0
+ End If
+ Private puc As String = c.GetString("HVD_COSTO_TOT")/c.GetString("CANTC")
+ LogColor((restacant/Subs.traeConversion(c.GetString("HVD_PROID"))),Colors.Green)
+ clv_pedido.Add(CreateListItem2(c.GetString("HVD_PRONOMBRE"), puc, (restacant/Subs.traeConversion(c.GetString("HVD_PROID"))), ((c.GetString("HVD_RECHAZOCANT")- restacant-resta)/Subs.traeConversion(c.GetString("HVD_PROID"))), clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+ Else
+ Log("NO ENTRO A PONER CAJAS BIEN ")
+ Private c3 As Cursor=Starter.skmt.ExecQuery($"select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '${c.GetString("HVD_CLIENTE")}' AND PE_PROID ='${c.GetString("HVD_PROID")}' AND CONSECUTIVO = '${c.GetString("CONSECUTIVO")}'"$)
+ Private resta As String = 0
+
+ If c3.RowCount > 0 Then
+' For i = 0 To c3.RowCount - 1
+ c3.Position = 0
+ resta = c3.GetString("PE_CANT")
+' Next
+ Else
+ resta = 0
+ End If
+ LogColor(resta,Colors.Green)
+ Private puc As String = c.GetString("HVD_COSTO_TOT")/c.GetString("CANTC")
+' clv_pedido.Add(CreateListItem(c.GetString("HVD_PRONOMBRE"), Subs.traePrecio(c.GetString("HVD_PROID"), c.GetString("HVD_CODPROMO")), 0, c.GetString("HVD_RECHAZOCANT") , clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE")),i)
+ clv_pedido.Add(CreateListItem2(c.GetString("HVD_PRONOMBRE"), puc, 0, ((c.GetString("HVD_RECHAZOCANT")-resta)/Subs.traeConversion(c.GetString("HVD_PROID"))), clv_pedido.AsView.Width, 118dip, bmp, c.GetString("HVD_PROID"), bgColor, textColor, c.GetString("HVD_CODPROMO"),c.GetString("HVD_CLIENTE"),c.GetString("CONSECUTIVO")),i)
+ End If
+ End If
+ c2.Close
+' End If
+ End If
+ Next
+
+' cuentaProds("")
+ End If
+
+' Private vc As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='${Subs.traealmacen}' and HVD_CLIENTE in (select cuenta from cuentaa)"$)
+'
+' Private Cuenta As String = 0
+' Private arti As String = 0
+' If vc.RowCount > 0 Then
+' For i = 0 To vc.RowCount - 1
+' vc.Position = i
+'' Log(vc.GetString("HVD_CANT")&","&vc.GetString("HVD_RECHAZOCANT"))
+' arti = arti + (vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT"))
+' Cuenta = Cuenta + ((vc.GetString("HVD_CANT") - vc.GetString("HVD_RECHAZOCANT"))*vc.GetString("CAT_GP_PRECIO"))
+' Next
+' End If
+'' Log(Cuenta)
+'
+' Private vc2 As Cursor = Starter.skmt.ExecQuery("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1")
+' Private Cuenta1 As String = 0
+' Private arti1 As String = 0
+' If vc2.RowCount > 0 Then
+' For i = 0 To vc2.RowCount - 1
+' vc2.Position = i
+' Dim preu As Float = NumberFormat2(vc2.GetString("HVD_COSTO_TOT")/vc2.GetString("CANTC"),0,2,2,False)
+' Private vc3 As Cursor = Starter.skmt.ExecQuery($"select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '${vc2.GetString("HVD_PROID")}'"$)
+' If vc3.RowCount > 0 Then
+' vc3.Position = 0
+' Cuenta1 = Cuenta1 + ((vc2.GetString("CANTC")-(vc2.GetString("HVD_RECHAZOCANT")/vc3.GetString("CONVERSION")))*preu)
+' arti1 = arti1 + (vc2.GetString("HVD_CANT") - vc2.GetString("HVD_RECHAZOCANT"))
+' End If
+' Next
+' End If
+'' Log(Cuenta1)
+'
+' Private vc4 As Cursor = Starter.skmt.ExecQuery($"select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '${Subs.traeAlmacen}'"$)
+' Private Cuenta2 As String = 0
+' Private arti2 As String = 0
+' If vc4.RowCount > 0 Then
+'
+' For i = 0 To vc4.RowCount - 1
+' vc4.Position = i
+' If vc4.GetString("HVD_PROID") <> vc4.GetString("HVD_CODPROMO") Then
+' If vc4.GetString("HVD_RECHAZO") = 0 Then
+' Cuenta2 = vc4.GetString("HVD_COSTO_TOT")
+' arti2 = vc4.GetString("HVD_CANT")
+' Else
+' Private vc5 As Cursor = Starter.skmt.ExecQuery($"select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${vc4.GetString("HVD_PROID")}'"$)
+' If vc5.RowCount > 0 Then
+' vc5.Position= 0
+'' Log(vc5.GetString("CAT_GP_PRECIO"))
+' Cuenta2 = Cuenta2 +((vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))*vc5.GetString("CAT_GP_PRECIO"))
+' arti2 = arti2 +(vc4.GetString("HVD_CANT")- vc4.GetString("HVD_RECHAZOCANT"))
+' End If
+' End If
+' End If
+'
+' Next
+' End If
+'' Log(Cuenta)
+'
+' L_TOTAL.Text = Cuenta + Cuenta1 + Cuenta2
+' L_CANT.Text = arti + arti1 +arti2
+
+
+End Sub
+
+Sub GPS_LocationChanged (Location1 As Location)
+' lat_gps=Location1.ConvertToSeconds(Location1.Latitude)
+' lon_gps=Location1.ConvertToSeconds(Location1.Longitude)
+End Sub
+
+Sub b_regresar_Click
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Private Sub B4XPage_CloseRequest As ResumableSub
+ ' BACK key pressed
+ ' I want to capture the key here so I return True
+ B4XPages.ShowPage("Cliente")
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+
+Sub ListView1_ItemLongClick (Position As Int, Value As Object) 'BORRAR
+' nombre_prod = Value
+' result = Msgbox2("Seguro que desa borrar este articulo?","Borrar Articulo", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore
+' If result = DialogResponse.POSITIVE Then
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' c.Position=0
+' If c.GetString("HVD_CANT") > 1 Then
+' b_regresar.Visible =False
+' b_borra.Visible=False
+' P1.Visible =True
+' cuantos_pedido = c.GetString("HVD_CANT")
+' lv2.Clear
+' lv2.SingleLineLayout.Label.TextColor = Colors.Black
+' For i=1 To c.GetString("HVD_CANT")
+' lv2.AddSingleLine(i)
+' Next
+' Else
+' ' skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),Value))
+' c.Close
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT,REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' c.Position=0
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),Value))
+' c.Close
+'
+' 'skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' ' se cambia por update para no borrarlo y tener todos los registros.
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+ '
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' 'quitar esta mamada no es ahi
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' B4XPage_Appear
+' End If
+'
+' End If
+End Sub
+
+Sub lv2_ItemClick (Position As Int, Value As Object) 'BORRAR
+' ' If Value = "Todos" Then
+' ' cuantos = c.GetString("HVD_CANT")
+' 'Else
+' cuantos = Value
+' ' End If
+' If cuantos = cuantos_pedido Then
+' 'Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),nombre_prod))
+' c.Close
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(nombre_prod))
+' c=Starter.skmt.ExecQuery2("select HVD_CANT FROM hist_ventas where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(nombre_prod))
+' c.Position=0
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),nombre_prod))
+' c.Close
+' 'Starter.skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' ' se cambia por update para no borrarlo y tener todos los registros.
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As String(Value))
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' 'quitar esta m*m*d* no es ahi
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_RECHAZO = 1, HVD_PARCIAL = 0, HVD_CANT = HVD_CANT - ? where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos, nombre_prod))
+' b_regresar.Visible =True
+' b_borra.Visible=True
+' P1.Visible =False
+' B4XPage_Appear
+' Else
+' ' skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(cuantos,nombre_prod))
+' c.Close
+ '
+' 'modificar tambien esto
+' 'Modificaciones para que solo quite una parte.
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_CLI_ORIG) select HVD_CLIENTE, HVD_PRONOMBRE, ?, ? * (HVD_COSTO_TOT/?), HVD_FECHA, HVD_CLIENTE from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As Object(cuantos,cuantos,cuantos_pedido, nombre_prod))
+' Starter.skmt.ExecNonQuery2("insert into hist_ventas(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) select HVD_CLIENTE,HVD_PRONOMBRE,?,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, 1, HVD_ESTATUS, 1 from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As Object(cuantos, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_RECHAZO = 0, HVD_PARCIAL = 1, HVD_CANT = HVD_CANT - ? where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update hist_Ventas set HVD_COSTO_TOT = HVD_CANT * (HVD_COSTO_TOT/?) where HVD_pronombre = ? and HVD_cliente in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ", Array As Object(cuantos_pedido, nombre_prod))
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(cuantos,nombre_prod))
+' 'crear nueva tabla para que guarde el resto.
+ '' skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(Value))
+' DateTime.DateFormat = "MM/dd/yyyy"
+' sDate=DateTime.Date(DateTime.Now)
+' sTime=DateTime.Time(DateTime.Now)
+' c=Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+' c.Position=0
+' clie_id = c.GetString("CUENTA")
+' c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+' c.Position=0
+' usuario = c.GetString("USUARIO")
+' Starter.skmt.ExecNonQuery("UPDATE kmt_info set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)")
+' B4XPage_Appear
+' b_regresar.Visible =True
+' b_borra.Visible=True
+' P1.Visible =False
+' End If
+End Sub
+
+'****************************************************************************
+'***************** PARA EL MAS/MENOS *************************************
+'****************************************************************************
+
+Sub CreateListItem(Text As String, precioU As String, inv As Int, inv2 As Int, Width As Int, Height As Int, img As Bitmap, prodId As String, bc As Int, tc As Int, promo As String, cliente_original As String,consecutivo As Int) As Panel
+ Dim p As B4XView = xui.CreatePanel("")
+ Private cs As CSBuilder
+ cs.Initialize
+ p.SetLayoutAnimated(0, 0, 0, Width, Height)
+ p.LoadLayout("prodItem2")
+ p_prods.Color = bc
+ l_prodX.TextColor = tc
+ precioU = $"$1.2{precioU}"$
+ l_prodX.Text = Text&CRLF&"Cant: " & inv2 & " $" & precioU
+ If promo <> "1" And precioU = 0 Then
+ l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).append(Text&CRLF&"Cant: " & inv2 & " $" & precioU).PopAll
+ End If
+ l_prodX.Tag = $"ID: ${prodId}${CRLF}${Text}${CRLF}Precio: $$1.2{precioU}${CRLF}Inv: ${inv} pzs"$
+' l_pCant.Text = 0
+' Log("PRECIO " & Round2(precioU,2)&"| INV "&inv&"| ID "&prodId&"| PROMO "&promo&"| INV2? "&inv2&"| CLIENTE OR NONONO YA NO VA Y UN ESPACIO POR FAVOR "&cliente_original)
+ l_pCant.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&consecutivo
+ et_pCant.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&consecutivo
+ p_prods.Tag = l_pCant.tag
+' Log($"Ponemos la cant en ${inv}"$)
+ l_pCant.Text = inv
+' et_pCant.Text = inv
+' et_pCant.BringToFront
+
+ l_pCant.BringToFront
+ et_pCant.SendToBack
+ p_botMasMenC.Visible = False
+ l_cajas.Visible = False
+' i_prod.Bitmap = img
+ Return p
+End Sub
+
+Sub CreateListItem2(Text As String, precioU As String, inv As Int, inv2 As Int, Width As Int, Height As Int, img As Bitmap, prodId As String, bc As Int, tc As Int, promo As String, cliente_original As String,consecutivo As Int) As Panel
+ Dim p As B4XView = xui.CreatePanel("")
+ Private cs As CSBuilder
+ cs.Initialize
+ p.SetLayoutAnimated(0, 0, 0, Width, Height)
+ p.LoadLayout("prodItem2")
+ p_prods.Color = bc
+ l_prodX.TextColor = tc
+ precioU = $"$1.2{precioU}"$
+ l_prodX.Text = Text&CRLF&"Cant: " & inv2 & " $" & precioU
+ If promo <> "1" And precioU = 0 Then
+ l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).append(Text&CRLF&"Cant: " & inv2 & " $" & precioU).PopAll
+ End If
+
+ Log(inv&" inventario 1")
+ Log(inv2&" inventario 2")
+ l_prodX.Tag = $"ID: ${prodId}${CRLF}${Text}${CRLF}Precio: $$1.2{precioU}${CRLF}Inv: ${inv} pzs"$
+' l_pCant.Text = 0
+ l_pCantC.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&consecutivo
+ et_pCantC.Tag = Round2(precioU.Replace(",",""),2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original&"|"&consecutivo
+ p_prods.Tag = l_pCantC.tag
+' Log($"Ponemos la cant en ${inv}"$)
+ l_pCantC.Text = NumberFormat2(inv,0,0,0,False)
+' et_pCant.Text = inv
+' et_pCant.BringToFront
+
+ l_pCantC.BringToFront
+ et_pCantC.SendToBack
+ p_botMasMen.Visible = False
+ l_piezas.Visible = False
+' i_prod.Bitmap = img
+ Return p
+End Sub
+
+Sub b_prodMenos_Click
+ etCantHasFocus = False
+ Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMenos_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCant As B4XView = pnl.GetView(2).GetView(3)
+' Log(pnl.GetView(2).GetView(0) & "|" & pnl.GetView(2).GetView(1) & "|" & pnl.GetView(2).GetView(2))
+ Dim esteTag As List = Regex.Split("\|", laCant.Tag)
+ Log("LC_TEXT:"&laCant.Text&"|PROMO:"&esteTag.Get(3)&"|LC_TAG:"&laCant.Tag&"|ET:"&esteTag)
+
+ Private minimoadesc As String
+ Dim minimos As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If minimos.RowCount > 0 Then
+ minimos.Position = 0
+ minimoadesc = minimos.GetString("CAT_DP_CANT_MIN_VENTA")
+ Else
+ minimoadesc = "1"
+ End If
+ minimos.Close
+ '*'${minimoadesc}')
+ minimoadesc = "1"
+ If laCant.Text > 0 Then
+' If esteTag.Get(3) <> Subs.traeAlmacen Then 'Si es PROMO entonces ...
+' Private c2 As Cursor =Starter.skmt.ExecQuery($"select HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_PROID = '${esteTag.Get(2)}' AND HVD_CLIENTE IN (Select CUENTA from cuentaa)"$)
+' c2.Position = 0
+' If c2.GetString("HVD_RECHAZO") = "0" Then
+'
+'
+' Log("ES PROMO")
+' result = Msgbox2("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?","Modificar Promoción", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore
+' If result = DialogResponse.POSITIVE Then 'Quitamos esta promo
+' prodsMap.Remove(esteTag.Get(3))
+'' c=Starter.skmt.ExecQuery($"select HVD_CODPROMO FROM HIST_VENTAS WHERE HVD_CODPROMO = '${esteTag.Get(2)}' AND HVD_cliente IN (Select CUENTA from cuentaa)"$)
+'' For i = 0 To c.RowCount -1
+'' c.Position = i
+' LogColor(esteTag.Get(3),Colors.Blue)
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT + 1 WHERE HVD_CODPROMO = '${esteTag.Get(3)}' and HVD_CLIENTE = '${esteTag.Get(5)}'"$)
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT + 1 WHERE HVD_PROID = '${esteTag.Get(3)}' and HVD_CODPROMO = '${esteTag.Get(3)}' and HVD_CLIENTE in (Select CUENTA from cuentaa)"$)
+'' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_CODPROMO = '${Subs.traeAlmacen}' WHERE HVD_cliente in (Select CUENTA from cuentaa) AND HVD_CODPROMO = '${esteTag.Get(3)}'"$)
+'' Next
+' c.Close
+' LogColor(prodsMap, Colors.red)
+' reconstruirPedido = True
+' promoABorrar = esteTag.Get(3)
+' B4XPage_Appear
+' End If
+' Else
+' If laCant.Text = "" Then laCant.Text = 0
+' laCant.Text = $"$1.0{laCant.Text-1}"$
+' If laCant.Text < 0 Then laCant.Text = 0
+' Log("NO ES promo")
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa)"$)
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+' B4XPage_Appear
+' End If
+' Else
+ If laCant.Text = "" Then laCant.Text = 0
+ laCant.Text = $"$1.0{laCant.Text-(1*minimoadesc)}"$
+ If laCant.Text < 0 Then laCant.Text = 0
+ Log("NO ES promo")
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+' Starter.skmt.ExecNonQuery2("update PEDIDO set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?", Array As Object(esteTag.Get(2)))
+
+ Private c3 As Cursor = Starter.skmt.ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c3.RowCount > 0 Then
+ c3.Position = 0
+ If c3.GetString("PE_CANT")> minimoadesc Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'${minimoadesc}'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'${minimoadesc}'))*'${c2.GetString("CAT_GP_PRECIO")}') WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ End If
+ Else If c3.GetString("PE_CANT") = minimoadesc Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+' Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-1, PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -1)*'${c2.GetString("CAT_GP_PRECIO")}') WHERE PE_PROID_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa)"$)
+ Starter.skmt.ExecNonQuery($"delete from PEDIDO where PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ End If
+ End If
+
+
+
+ End If
+ B4XPage_Appear
+'' End If
+ End If
+ Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+ Log("PU: " & preciou)
+' LogColor("estamos aqui mmenos " & laCant.Text& " , " & (preciou * laCant.Text),Colors.Green )
+' If L_CANT.Text - 1 >= 0 Then
+' L_CANT.Text = L_CANT.Text - 1
+' End If
+' b_guardar.Visible = True
+' Subs.prodRechazo(esteTag.Get(5), esteTag.Get(2))
+' Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+' L_CANT.Text = cym.Get("cantidad")
+' L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("-")
+End Sub
+
+Sub b_prodMas_Click
+ etCantHasFocus = False
+ Dim sDate, sTime As String
+ DateTime.DateFormat = "dd/MM/yyyy"
+ DateTime.TimeFormat = "HH:mm:ss"
+ sDate = DateTime.Date(DateTime.Now)
+ sTime = DateTime.Time(DateTime.Now)
+' Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMas_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCant As B4XView = pnl.GetView(2).GetView(3)
+' Log(pnl.GetView(2).GetView(1).text&"|"&pnl.GetView(2).GetView(2)&"|"&pnl.GetView(2).GetView(4).text)
+' Log($"precio|stock:${laCant.tag}"$)
+' Log($"Indice: ${index}, cant:${laCant.Text+1}, precioU: ${laCant.tag}"$)
+ Dim esteTag As List = Regex.Split("\|", laCant.Tag)
+ Log("LC_TEXT:"&laCant.Text&"|LC_TAG:"&laCant.Tag&"|ET:"&esteTag)
+ If laCant.Text = "" Then laCant.Text = 0
+
+ Private maxProds = esteTag.Get(1) + esteTag.Get(4) 'Prods disponibles + prods comprados
+
+ Private minimoadesc As String
+ Dim minimos As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?", Array As String(esteTag.Get(2)))
+ If minimos.RowCount > 0 Then
+ minimos.Position = 0
+ minimoadesc = minimos.GetString("CAT_DP_CANT_MIN_VENTA")
+ Else
+ minimoadesc = "1"
+ End If
+ minimos.Close
+ minimoadesc = "1"
+ '*'${minimoadesc}')
+
+ LogColor($"++++++++++++++++++++++++++ ${esteTag}"$, Colors.Green)
+ Log(esteTag.get(4))
+ If esteTag.Get(4) = "0" Then
+
+ Else
+ If laCant.Text + 1 <= maxProds Then
+ Log($"NuevaCant = ${laCant.Text + 1}"$)
+ laCant.Text = $"$1.0{laCant.Text + 1}"$
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?", Array As String(esteTag.Get(2)))
+ c = Starter.skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c.RowCount > 0 Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+
+ Dim preciocat As Cursor = Starter.skmt.ExecQuery($"select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '${c2.GetString("HVD_PROID")}'"$)
+ If preciocat.RowCount > 0 Then
+ preciocat.Position = 0
+ Dim preciofull As String = preciocat.GetString("CAT_GP_PRECIO")
+ End If
+ preciocat.Close
+
+ If c2.GetString("HVD_CODPROMO") = Subs.traeAlmacen Then
+ Private pup As String = c2.GetString("HVD_COSTO_TOT")/c2.GetString("HVD_CANT")
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'${minimoadesc}'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'${minimoadesc}'))*'${pup}') WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ Else
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'${minimoadesc}'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'${minimoadesc}'))*'${preciofull}') WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ End If
+
+ End If
+ Else
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+
+ Dim preciocat As Cursor = Starter.skmt.ExecQuery($"select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '${c2.GetString("HVD_PROID")}'"$)
+ If preciocat.RowCount > 0 Then
+ preciocat.Position = 0
+ Dim preciofull As String = preciocat.GetString("CAT_GP_PRECIO")
+ End If
+ preciocat.Close
+
+ Dim precioreg As Cursor = Starter.skmt.ExecQuery($"select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS WHERE HVD_PROID = '${c2.GetString("HVD_PROID")}' AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ If precioreg.RowCount > 0 Then
+ precioreg.Position = 0
+ Dim precioregalo As String = precioreg.GetString("HVD_COSTO_TOT")/precioreg.GetString("HVD_CANT")
+ If precioregalo < 1 Then
+ Dim esregalo As String = 1
+ Else
+ Dim esregalo As String = 0
+ End If
+ End If
+ precioreg.Close
+
+ If c2.GetString("HVD_CODPROMO") = Subs.traeAlmacen Then
+ Private pup As String = c2.GetString("HVD_COSTO_TOT")/c2.GetString("HVD_CANT")
+
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - 1 WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Log("algo1")
+ Starter.skmt.ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)", Array As String(esteTag.Get(2),c2.GetString("HVD_PRONOMBRE"),1*minimoadesc,esteTag.Get(5),Subs.traeCliente,(pup*minimoadesc),(pup*minimoadesc),esteTag.Get(6),Subs.traerUTAPREV,"PREVENTA",Subs.traeAlmacen, sDate & " " & sTime, Subs.traeUsuario,Subs.traefECHAPREV, Subs.traeRutaReparto,esregalo))
+ Else
+ Log("|" & preciofull& "|")
+ Log("|" & minimoadesc& "|")
+' Log("minimoadesc")
+
+
+ Log(esteTag.Get(2))
+ Log(c2.GetString("HVD_PRONOMBRE"))
+ Log((1*minimoadesc))
+ Log(esteTag.Get(5))
+ Log(Subs.traeCliente)
+ Log((preciofull*minimoadesc))
+ Log(esteTag.Get(6))
+ Log(Subs.traerUTAPREV)
+ Log(Subs.traeAlmacen)
+ Log(sDate & " " & sTime)
+ Log(Subs.traeUsuario)
+ Log(Subs.traefECHAPREV)
+ Log(Subs.traeRutaReparto)
+ Log(esregalo)
+
+' Log(esteTag.Get(2)&"|"& c2.GetString("HVD_PRONOMBRE")&"|"& (1*minimoadesc) &"|"& esteTag.Get(5) &"|"& Subs.traeCliente &"|"& (preciofull*minimoadesc) &"|"& (preciofull*minimoadesc) &"|"& esteTag.Get(6) &"|"& Subs.traerUTAPREV &"|"& "PREVENTA" &"|"& Subs.traeAlmacen &"|"& sDate & " " & sTime &"|"& Subs.traeUsuario &"|"& Subs.traefECHAPREV &"|"& Subs.traeRutaReparto &"|"& esregalo)
+ Starter.skmt.ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)", Array As String(esteTag.Get(2),c2.GetString("HVD_PRONOMBRE"),1*minimoadesc,esteTag.Get(5),Subs.traeCliente,(preciofull*minimoadesc),(preciofull*minimoadesc),esteTag.Get(6),Subs.traerUTAPREV,"PREVENTA",Subs.traeAlmacen, sDate & " " & sTime, Subs.traeUsuario,Subs.traefECHAPREV, Subs.traeRutaReparto,esregalo))
+ End If
+
+ End If
+ End If
+
+
+ Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))
+' Private cym As Map = Subs.traemosCantYMonto(clv_pedido)
+' L_CANT.Text = cym.Get("cantidad")
+' L_TOTAL.Text = Round2(cym.Get("monto"), 2)
+' cuentaProds("+")
+ B4XPage_Appear
+ End If
+ End If
+' Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+' Log(preciou)
+' LogColor("estamos aquii mas " & laCant.Text& " , " & (preciou * laCant.Text) ,Colors.Green )
+' b_guardar.Visible = True
+' Log($"Total Prods: ${totalProds}, Total Compra: $$1.2{totalCompra}"$)
+' c = Starter.skmt.ExecQuery($"SELECT HVD_CANT FROM HIST_VENTAS2 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID = '${esteTag.Get(2)}' "$)
+' c.Position = 0
+' Dim cantoriginal As String = 0
+' If c.RowCount > 0 Then
+' cantoriginal = c.GetString("HVD_CANT")
+' End If
+' If cantoriginal <= esteTag.Get(1) Then
+' L_CANT.Text = L_CANT.Text + 1
+' End If
+End Sub
+
+
+Private Sub b_prodMasC_Click
+ etCantHasFocus = False
+' Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMas_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCantc As B4XView = pnl.GetView(3).GetView(3)
+ LogColor(laCantc.Text&"-----------------------------",Colors.Blue)
+' Log(pnl.GetView(2).GetView(1).text&"|"&pnl.GetView(2).GetView(2)&"|"&pnl.GetView(2).GetView(4).text)
+' Log($"precio|stock:${laCant.tag}"$)
+' Log($"Indice: ${index}, cant:${laCant.Text+1}, precioU: ${laCant.tag}"$)
+ Dim esteTag As List = Regex.Split("\|", laCantc.Tag)
+ Log("LC_TEXT:"&laCantc.Text&"|LC_TAG:"&laCantc.Tag&"|ET:"&esteTag)
+ If laCantc.Text = "" Then laCantc.Text = 0
+
+ Private maxProds As String = (esteTag.Get(1) + esteTag.Get(4))'Prods disponibles + prods comprados
+ LogColor(esteTag.Get(1),Colors.Red)
+ LogColor(esteTag.Get(4),Colors.Red)
+ LogColor($"++++++++++++++++++++++++++ ${esteTag}"$, Colors.Green)
+' Log(esteTag.get(4))
+ Log(maxProds)
+
+' l_pCantC.Tag = Round2(precioU,2)&"|"&inv&"|"&prodId&"|"&promo&"|"&inv2&"|"&cliente_original
+ Log(esteTag.Get(4))
+ If esteTag.Get(4) = "0" Then
+
+ Else
+ If laCantc.Text + 1 <= maxProds Then
+ Log($"NuevaCant = ${laCantc.Text + 1}"$)
+' laCantc.Text = NumberFormat2(laCantc.Text + 1,0,0,0,False)
+ laCantc.Text = $"$1.0{laCantc.Text + 1}"$
+ LogColor(esteTag,Colors.Magenta)
+
+ LogColor(laCantc.Text,Colors.Red)
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * ${Subs.traeConversion(esteTag.Get(2))}) WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente in (Select CUENTA from cuentaa)"$)
+
+ c = Starter.skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c.RowCount > 0 Then
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+ Private puc As String = c2.GetString("HVD_COSTO_TOT")/c2.GetString("CANTC")
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT =(IFNULL(HVD_RECHAZOCANT,0) -(1 * ${Subs.traeConversion(esteTag.Get(2))}) ) WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)+(1 * '${Subs.traeConversion(esteTag.Get(2))}')), PE_COSTO_TOT= (IFNULL(PE_CAJAS,0)+1)*'${puc}', PE_CAJAS= IFNULL(PE_CAJAS,0) + 1 WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ B4XPage_Appear
+ Log("aqui2")
+ End If
+ Else
+ Private c2 As Cursor = Starter.skmt.ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c2.RowCount > 0 Then
+ c2.Position = 0
+ Private puc As String = c2.GetString("HVD_COSTO_TOT")/c2.GetString("CANTC")
+ Log(puc)
+
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * ${Subs.traeConversion(esteTag.Get(2))}) WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Starter.skmt.ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,1,1,?,?,?,?,?,?,?,?,?)", Array As String(esteTag.Get(2),c2.GetString("HVD_PRONOMBRE"),Subs.traeConversion(esteTag.Get(2)),esteTag.Get(5),Subs.traeCliente,puc,puc,esteTag.Get(6),Subs.traerUTAPREV,"PREVENTA",Subs.traeAlmacen, sDate & " " & sTime, Subs.traeUsuario,Subs.traefECHAPREV, Subs.traeRutaReparto,0))
+ B4XPage_Appear
+ End If
+ End If
+
+ End If
+ End If
+End Sub
+
+Private Sub b_prodMenosC_Click
+ etCantHasFocus = False
+ Log("etCantHasFocus=" & etCantHasFocus)
+ LogColor("b_prodMenos_Click", Colors.Magenta)
+ Dim index As Int = clv_pedido.GetItemFromView(Sender)
+ Dim pnl0 As B4XView = clv_pedido.GetPanel(index)
+ Dim pnl As B4XView = pnl0.GetView(0)
+ Dim laCantc As B4XView = pnl.GetView(3).GetView(3)
+' Log(pnl.GetView(2).GetView(0) & "|" & pnl.GetView(2).GetView(1) & "|" & pnl.GetView(2).GetView(2))
+ Dim esteTag As List = Regex.Split("\|", laCantc.Tag)
+ Log("LC_TEXT:"&laCantc.Text&"|PROMO:"&esteTag.Get(3)&"|LC_TAG:"&laCantc.Tag&"|ET:"&esteTag)
+
+
+
+ If laCantc.Text > 0 Then
+
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = (IFNULL(HVD_RECHAZOCANT,0) +(1 * ${Subs.traeConversion(esteTag.Get(2))})) WHERE HVD_PROID = '${esteTag.Get(2)}' and HVD_cliente = '${esteTag.Get(5)}'"$)
+ Private c3 As Cursor = Starter.skmt.ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ", Array As String(esteTag.Get(2), esteTag.Get(6)))
+ If c3.RowCount > 0 Then
+ c3.Position = 0
+ If c3.GetString("PE_CAJAS") > 1 Then
+ Starter.skmt.ExecNonQuery($"update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '${Subs.traeConversion(esteTag.Get(2))}')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'${Subs.traePrecioC(esteTag.Get(2))}'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ Else If c3.GetString("PE_CAJAS") = 1 Then
+ Starter.skmt.ExecNonQuery($"delete from PEDIDO where PE_PROID = '${esteTag.Get(2)}' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '${esteTag.Get(6)}'"$)
+ End If
+ End If
+ Log("entre al if o algo asi ")
+ If laCantc.Text = "" Then laCantc.Text = 0
+ laCantc.Text = laCantc.Text - 1
+ If laCantc.Text < 0 Then laCantc.Text = 0
+ B4XPage_Appear
+' Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = (cat_gp_almacen + (1 * ?)) where cat_gp_id = ?", Array As Object(esteTag.Get(2), Subs.traeConversion(esteTag.Get(2))))
+ Else If laCantc.Text = 0 Then
+
+ End If
+
+ Dim preciou As Float = esteTag.Get(0)/esteTag.Get(1)
+ Log("PU: " & preciou)
+End Sub
+
+Private Sub l_pCantC_Click
+
+End Sub
+
+Private Sub b_revversar_Click
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0 WHERE HVD_cliente in (Select CUENTA from cuentaa)"$)
+ B4XPage_Appear
+End Sub
+
+Sub cuentaProds(accion As String)
+ '' Log("Entramos a cuentaProds")
+' Log("*******************************************************")
+' Private cantRechazada As Int = 0
+' If Not(reconstruirPedido) Then
+' Log("*********** CUENTAPRODS - NO RECONSTRUIR")
+' prodsMap.Initialize
+' For i = 0 To clv_pedido.GetSize - 1
+' Private p0 As B4XView = clv_pedido.GetPanel(i)
+' Private p As B4XView = p0.GetView(0)
+' Private cant1 As B4XView = p.GetView(2).GetView(3)
+' If cant1.Text = "" Then cant1.Text = 0
+ '' totalProds = totalProds + cant1.Text
+' Private esteTag As List = Regex.Split("\|", cant1.Tag)
+' Log("-------------------------------------")
+' Log($"ET: ${esteTag}"$)
+' Private esteProd As String = esteTag.Get(2)
+' Private estaCant As Int = cant1.Text
+' Private estaCantOriginal As Int = esteTag.Get(1)
+' Private esteCliente = Subs.traeCliente
+' Private esteProdNombre = Subs.traeNombre(esteProd)
+' Private esteClienteOriginal As Int = esteTag.Get(5)
+' Private fechaReparto As String = Subs.traeFechaReparto
+' Private maxProds = Subs.traeMaxCantidad(esteTag.Get(5), esteTag.Get(2))
+'
+' If cant1.Text > maxProds Then cant1.Text = maxProds
+'
+' cantRechazada = esteTag.Get(4) - cant1.Text
+ '' If accion = "-" Then cantRechazada = Subs.traeCantidadRechazada(esteClienteOriginal, esteProd) + 1
+ '' If accion = "+" Then cantRechazada = Subs.traeCantidadRechazada(esteClienteOriginal, esteProd) - 1
+' Log($"${Subs.traeCantidadRechazada(esteClienteOriginal, esteProd)}, ${Subs.traeCantidadVendida(esteClienteOriginal, esteProd)}"$)
+'
+ '' LogColor($"cantRechazada = ${esteTag.Get(4)} - ${cant1.Text}"$, Colors.Magenta)
+' LogColor($"cantRechazada = ${cantRechazada}"$, Colors.Magenta)
+' Private estePrecio As String = 0
+' If Subs.traePrecio(esteProd, 1) <> Null Then estePrecio = Subs.traePrecio(esteProd, 1) * cantRechazada
+'
+ '' LogColor(esteProd & "|" & cant1.Text & "|" & estaCantOriginal & "|" & cantRechazada & "|" & estePrecio, Colors.red)
+ '' LogColor($"cantRechazada=${cantRechazada} | ${esteProdNombre}"$, Colors.Blue)
+ '' Log($"Ponemos HVD_CANT ${esteProd} en ${cant1.text}"$)
+' Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = ? WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)", Array As String(cant1.Text ,esteProd))
+' Private rr As Cursor = Starter.skmt.ExecQuery($"select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '${esteProd}' and REP_CLIENTE in (Select CUENTA from cuentaa)"$)
+' rr.Position = 0
+ '' Log($"HayRechazo=${rr.GetString("hayRechazo")}"$)
+' If rr.GetString("hayRechazo") = 0 Then
+' Log("INSERTAMOS EN REPARTO")
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ", Array As String(esteCliente, esteProdNombre, 0, estePrecio, fechaReparto, esteProd, estePrecio, esteCliente))
+' Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ", Array As String(esteCliente, esteProdNombre, cantRechazada, 0, fechaReparto, esteProd, estePrecio, esteCliente))
+' Else if esteClienteOriginal = "0" Then 'Actualizamos el rechazo en el cliente actual.
+ '' Log($"Actualizamos REP_CANT=${cantRechazada}"$)
+ '' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = '${cantRechazada}', REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${esteProd}'"$)
+' Else 'Cliente original <> 0 entonces actualizamos el rechazo en el cliente original y NO en el actual.
+' Log($"Actualizamos REP_CANT RECHAZO = ${cantRechazada}"$)
+ '' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = ${cantRechazada}, REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE = '${esteClienteOriginal}' and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${esteProd}'"$)
+ '' Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = '${cant1.Text}', REP_PRECIO = '${estePrecio}', REP_COSTO_TOT = '${estePrecio * cantRechazada}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${esteClienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${esteProd}'"$)
+' End If
+'
+' If cant1.Text > 0 Then
+ '' totalCompra = totalCompra + (esteTag.get(0) * cant1.text)
+ '' Log($"Cant: ${cant1.Text}, Suma: ${totalCompra}"$)
+' Private m As Map
+' m=CreateMap("cant":cant1.Text, "cant2":esteTag.get(4), "precio":esteTag.get(0), "promo":esteTag.get(3), "nombre":Subs.traeNombre(esteTag.Get(2)), "cli_orig":esteTag.get(5))
+ '' LogColor("PUT:" & esteTag.Get(2), Colors.Red)
+' prodsMap.Put(esteTag.Get(2), m)
+' End If
+' Log("-------------------------------------")
+' Next
+' End If
+' Private bgColor, textColor As Int
+ '
+' If reconstruirPedido Then
+' Log("*********** CUENTAPRODS - SI RECONSTRUIR")
+' Private newPromo, newPrecio As String
+' clv_pedido.Clear
+' Log("Usamos PRODSMAP")
+' For Each pr As String In prodsMap.Keys
+' Private pr1 As Map = prodsMap.Get(pr)
+' Log("PPP: " & pr & "|PromoABorrar=" & promoABorrar & "|" & pr1)
+' bgColor = Colors.RGB(177, 200, 249)'azul
+' textColor = Colors.black
+' newPromo = pr1.Get("promo")
+' newPrecio = pr1.Get("precio")
+' Log("AAA: " & newPromo & "|" & promoABorrar)
+' If newPromo = promoABorrar Then
+' newPromo = 1
+' newPrecio = Subs.traePrecio(pr, False) * pr1.Get("cant")
+' 'Ponemos precio SIN promo y sacamos el producto de la promo.
+' Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_COSTO_TOT = ${newPrecio}, HVD_CODPROMO ='${Subs.traeAlmacen}' WHERE HVD_PRONOMBRE = '${pr1.Get("nombre")}' and HVD_cliente in (Select CUENTA from cuentaa)"$)
+' LogColor("CAMBIAMOS PROMO: " & newPromo, Colors.Magenta)
+' End If
+' If newPromo <> "1" Then
+ '' bgColor = Colors.RGB(255, 212, 163) 'naranja
+' bgColor = Colors.White
+' End If
+' Log($"CLI: ${pr1.Get("nombre")}, ${newPrecio}, ${pr1.Get("cant")}, ${pr1.Get("cant2")}"$)
+' clv_pedido.Add(CreateListItem(pr1.Get("nombre"), newPrecio, pr1.Get("cant"), pr1.Get("cant2"), clv_pedido.AsView.Width, 118dip, bmp, pr, bgColor, textColor, newPromo, pr1.Get("cli_orig")), pr1.Get("nombre"))
+' reconstruirPedido = False
+' Next
+' promoABorrar = ""
+' End If
+' Log($"Total Prods: ${totalProds}, Total Compra: $$1.2{totalCompra}"$)
+' LogColor("prodsMap=" & prodsMap, Colors.Green)
+'
+ '
+' LogColor(prodsMap, Colors.Blue)
+' c = Starter.skmt.ExecQuery($"SELECT sum(HVD_CANT) as CANTIDAD FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"$)
+' Dim cantidad1 As String = 0
+' If c.RowCount > 0 Then
+' c.Position = 0
+' cantidad1 = c.GetString("CANTIDAD")
+' L_CANT.Text = Round(cantidad1)
+' End If
+' c.Close
+'
+' Dim totalfinal As String = 0
+' For Each pr As String In prodsMap.Keys
+' Private pr1 As Map = prodsMap.Get(pr)
+ '' LogColor(pr,Colors.Red)
+' Dim x As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_ID = '${pr}'"$)
+' c = Starter.skmt.ExecQuery($"SELECT HVD_CANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID ='${pr}' "$)
+' Dim cantidady As String = 0
+' If c.RowCount >0 Then
+' c.Position = 0
+' cantidady = c.GetString("HVD_CANT")
+' End If
+ '' Log(x.RowCount)
+' If x.RowCount > 0 Then
+' x.Position = 0
+ '' Log(x.GetString("CAT_GP_PRECIO"))
+' Dim preciou As String = x.GetString("CAT_GP_PRECIO")
+' Dim costototalhist As String = preciou * cantidady
+ '' Log("Total ==== "&costototalhist)
+' End If
+' totalfinal = totalfinal + costototalhist
+' x.Close
+' Next
+' L_TOTAL.Text = Round2(totalfinal, 2)
+' c.Close
+'
+' c = Starter.skmt.ExecQuery("select COUNT(*) AS CUANTOS from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")
+' If c.RowCount > 0 Then
+' c.Position = 0
+' If c.GetString("CUANTOS") > 0 Then
+'
+' Dim z As Cursor = Starter.skmt.ExecQuery($"select SUM(REP_CANT) AS CANTIDAD , SUM(REP_PRECIO) AS PRECIO from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE"$)
+' Dim cantidad2 As String = 0
+ '' Log(z.RowCount)
+' If z.RowCount > 0 Then
+' z.Position = 0
+' cantidad2= z.GetString("CANTIDAD")
+ '' LogColor(z.GetString("PRECIO")&" , " & z.GetString("CANTIDAD"), Colors.Magenta)
+ '' Log(cantidad1 &" , "& cantidad2)
+' L_CANT.Text = Round((cantidad1 + cantidad2))
+' End If
+' z.Close
+'
+'
+' End If
+' End If
+'
+'
+'
+End Sub
+
+Private Sub b_guardar_Click
+
+End Sub
+
+
+Private Sub l_pCant_Click
+
+End Sub
+
+Sub p_prods_Click
+ Log(Sender.As(Panel).tag)
+End Sub
\ No newline at end of file
diff --git a/B4A/C_TicketsDia.bas b/B4A/C_TicketsDia.bas
new file mode 100644
index 0000000..8371da5
--- /dev/null
+++ b/B4A/C_TicketsDia.bas
@@ -0,0 +1,24 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
\ No newline at end of file
diff --git a/B4A/C_UpdateAvailable.bas b/B4A/C_UpdateAvailable.bas
new file mode 100644
index 0000000..62c83f8
--- /dev/null
+++ b/B4A/C_UpdateAvailable.bas
@@ -0,0 +1,74 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=11.5
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ Root.Color = Colors.Transparent
+End Sub
+
+Sub B4XPage_Appear
+ Try
+ Do While Not(CanRequestPackageInstalls)
+ MsgboxAsync($"Por favor permita que ${Application.PackageName} instale actualizaciones"$, "Instalar actualización")
+ Wait For Msgbox_Result(Result As Int)
+ Dim in As Intent
+ in.Initialize("android.settings.MANAGE_UNKNOWN_APP_SOURCES", "package:" & Application.PackageName)
+ StartActivity(in)
+ Loop
+ Catch
+ Log("updateAvailable() Error - " & LastException.Message)
+ End Try
+ If appUpdater.newApp.update Then
+ ofreceActualizacion
+ Else
+ sinActualizacion
+ End If
+End Sub
+
+'////////////////////////////////////////////////////////////////////////////////////////////
+'//// Esta es una actividad usada por el servicio appUpdater para mostrar notificaciones
+'//// cuando hay alguna actualizacion de apk.
+'////////////////////////////////////////////////////////////////////////////////////////////
+
+
+public Sub CanRequestPackageInstalls As Boolean
+ ' // https://www.b4x.com/android/forum/threads/version-safe-apk-installation.87667/#content
+ Dim ctxt As JavaObject
+ ctxt.InitializeContext
+ Dim PackageManager As JavaObject = ctxt.RunMethod("getPackageManager", Null)
+ Return PackageManager.RunMethod("canRequestPackageInstalls", Null)
+End Sub
+
+Sub ofreceActualizacion
+ If Msgbox2(appUpdater.newApp.newMsg,"Actualización disponible","Si","","No",Null) = DialogResponse.Positive Then 'ignore
+' StartService(DownloadService)
+ CallSubDelayed(appUpdater, "download_newApk")
+' ToastMessageShow("Descargando actualización", True)
+ End If
+ B4XPages.MainPage.ocultaProgreso
+ StartActivity(Main)
+' Activity.Finish
+ B4XPages.ShowPage("Login")
+End Sub
+
+Sub sinActualizacion
+ Msgbox(appUpdater.newApp.okMsg, "Aplicación al corriente") 'ignore
+' StartActivity(Main)
+ B4XPages.MainPage.ocultaProgreso
+ B4XPages.ShowPage("Login")
+End Sub
\ No newline at end of file
diff --git a/B4A/C_tabulador.bas b/B4A/C_tabulador.bas
new file mode 100644
index 0000000..d752b11
--- /dev/null
+++ b/B4A/C_tabulador.bas
@@ -0,0 +1,134 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.2
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+ Private et_mil As EditText
+ Private et_quinientos As EditText
+ Private et_docientos As EditText
+ Private et_cien As EditText
+ Private et_cincuenta As EditText
+ Private et_veinte As EditText
+ Private et_m_veinte As EditText
+ Private et_m_diez As EditText
+ Private et_m_cinco As EditText
+ Private et_m_dos As EditText
+ Private et_m_peso As EditText
+ Private et_m_centavo As EditText
+ Private b_calcular As Button
+ Private b_guardar As Button
+ Private l_total As Label
+ Dim sum_billetes As Int
+ Dim sum_monedas As Float
+ Dim total As Float
+ Dim c As Cursor
+ Dim d As Cursor
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+ Root.LoadLayout("tabulador")
+End Sub
+
+Sub B4XPage_Appear
+ d = Starter.skmt.ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS")
+ c = Starter.skmt.ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES")
+ c.Position = 0
+ d.Position = 0
+ If c.RowCount > 0 And d.RowCount > 0 Then
+ Log("TABULADR CON RESUKTADO")
+ et_mil.Text = c.GetString("MIL")
+ et_quinientos.Text = c.GetString("QUINIENTOS")
+ et_docientos.Text = c.GetString("DOCIENTOS")
+ et_cien.Text = c.GetString("CIEN")
+ et_cincuenta.Text = c.GetString("CINCUENTA")
+ et_veinte.Text = c.GetString("VEINTE")
+ et_m_veinte.Text = d.GetString("VEINTE")
+ et_m_diez.Text = d.GetString("DIEZ")
+ et_m_cinco.Text = d.GetString("CINCO")
+ et_m_dos.Text = d.GetString("DOS")
+ et_m_peso.Text = d.GetString("PESO")
+ et_m_centavo.Text = d.GetString("CENTAVO")
+ l_total.Text = d.GetString("TOTAL")
+ else If c.RowCount = 0 And d.RowCount = 0 Then
+ Log("TABULADR SIN RESUKTADO")
+ et_mil.Text = ""
+ et_quinientos.Text = ""
+ et_docientos.Text = ""
+ et_cien.Text = ""
+ et_cincuenta.Text = ""
+ et_veinte.Text = ""
+ et_m_veinte.Text = ""
+ et_m_diez.Text = ""
+ et_m_cinco.Text = ""
+ et_m_dos.Text = ""
+ et_m_peso.Text = ""
+ et_m_centavo.Text = ""
+ l_total.Text = ""
+ End If
+ c.Close
+ d.Close
+End Sub
+
+Private Sub b_guardar_Click
+ b_calcular_Click
+ Starter.skmt.ExecNonQuery("DELETE FROM TABULADOR_MONEDAS")
+ Starter.skmt.ExecNonQuery("DELETE FROM TABULADOR_BILLETES")
+ Starter.skmt.ExecNonQuery2("INSERT INTO TABULADOR_BILLETES (MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE) VALUES (?,?,?,?,?,?)", Array As Object(et_mil.Text,et_quinientos.Text,et_docientos.Text,et_cien.Text,et_cincuenta.Text,et_veinte.Text))
+ Starter.skmt.ExecNonQuery2("INSERT INTO TABULADOR_MONEDAS (VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL) VALUES (?,?,?,?,?,?,?)", Array As Object(et_m_veinte.Text,et_m_diez.Text,et_m_cinco.Text,et_m_dos.Text,et_m_peso.Text,et_m_centavo.Text,l_total.Text))
+ B4XPages.ShowPage("Principal")
+End Sub
+
+Private Sub b_calcular_Click
+ If et_mil.Text = "" Then
+ et_mil.Text = 0
+ End If
+ If et_quinientos.Text = "" Then
+ et_quinientos.Text = 0
+ End If
+ If et_docientos.Text = "" Then
+ et_docientos.Text = 0
+ End If
+ If et_cien.Text = "" Then
+ et_cien.Text = 0
+ End If
+ If et_cincuenta.Text = "" Then
+ et_cincuenta.Text = 0
+ End If
+ If et_veinte.Text = "" Then
+ et_veinte.Text = 0
+ End If
+ If et_m_veinte.Text = "" Then
+ et_m_veinte.Text = 0
+ End If
+ If et_m_diez.Text = "" Then
+ et_m_diez.Text = 0
+ End If
+ If et_m_cinco.Text = "" Then
+ et_m_cinco.Text = 0
+ End If
+ If et_m_dos.Text = "" Then
+ et_m_dos.Text = 0
+ End If
+ If et_m_peso.Text = "" Then
+ et_m_peso.Text = 0
+ End If
+ If et_m_centavo.Text = "" Then
+ et_m_centavo.Text = 0
+ End If
+ sum_billetes = (et_mil.Text * 1000) + (et_quinientos.Text * 500) + (et_docientos.Text * 200) + ( et_cien.Text * 100 ) + ( et_cincuenta.Text * 50 ) + ( et_veinte.Text * 20 )
+ sum_monedas = (et_m_veinte.Text * 20) + ( et_m_diez.Text * 10 ) + ( et_m_cinco.Text * 5 ) + ( et_m_dos.Text * 2 ) + ( et_m_peso.Text * 1 ) + ( et_m_centavo.Text * 0.50 )
+ total = sum_billetes + sum_monedas
+ l_total.Text = Round2(total, 2)
+End Sub
\ No newline at end of file
diff --git a/B4A/CameraExClass.bas b/B4A/CameraExClass.bas
new file mode 100644
index 0000000..1743551
--- /dev/null
+++ b/B4A/CameraExClass.bas
@@ -0,0 +1,290 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=7.01
+@EndOfDesignText@
+
+'Class module
+'version 1.20
+'See this page for the list of constants:
+'http://developer.android.com/intl/fr/reference/android/hardware/Camera.Parameters.html
+'Note that you should use the constant values instead of the names.
+Sub Class_Globals
+ Private nativeCam As Object
+ Private cam As Camera
+ Private r As Reflector
+ Private target As Object
+ Private event As String
+ Public Front As Boolean
+ Type CameraInfoAndId (CameraInfo As Object, Id As Int)
+ Type CameraSize (Width As Int, Height As Int)
+ Private parameters As Object
+End Sub
+
+Public Sub Initialize (Panel1 As Panel, FrontCamera As Boolean, TargetModule As Object, EventName As String)
+ target = TargetModule
+ event = EventName
+ Front = FrontCamera
+ Dim id As Int
+ id = FindCamera(Front).id
+ If id = -1 Then
+ Front = Not(Front) 'try different camera
+ id = FindCamera(Front).id
+ If id = -1 Then
+ ToastMessageShow("No camera found.", True)
+ Return
+ End If
+ End If
+ cam.Initialize2(Panel1, "camera", id)
+End Sub
+
+Private Sub FindCamera (frontCamera As Boolean) As CameraInfoAndId
+ Dim ci As CameraInfoAndId
+ Dim cameraInfo As Object
+ Dim cameraValue As Int
+ If frontCamera Then cameraValue = 1 Else cameraValue = 0
+ cameraInfo = r.CreateObject("android.hardware.Camera$CameraInfo")
+ Dim numberOfCameras As Int = r.RunStaticMethod("android.hardware.Camera", "getNumberOfCameras", Null, Null)
+ For i = 0 To numberOfCameras - 1
+ r.RunStaticMethod("android.hardware.Camera", "getCameraInfo", Array As Object(i, cameraInfo), _
+ Array As String("java.lang.int", "android.hardware.Camera$CameraInfo"))
+ r.target = cameraInfo
+ If r.GetField("facing") = cameraValue Then
+ ci.cameraInfo = r.target
+ ci.Id = i
+ Return ci
+ End If
+ Next
+ ci.id = -1
+ Return ci
+End Sub
+
+Private Sub SetDisplayOrientation
+ r.target = r.GetActivity
+ r.target = r.RunMethod("getWindowManager")
+ r.target = r.RunMethod("getDefaultDisplay")
+ r.target = r.RunMethod("getRotation")
+ Dim previewResult, result, degrees As Int = r.target * 90
+ Dim ci As CameraInfoAndId = FindCamera(Front)
+ r.target = ci.CameraInfo
+ Dim orientation As Int = r.GetField("orientation")
+ If Front Then
+ previewResult = (orientation + degrees) Mod 360
+ result = previewResult
+ previewResult = (360 - previewResult) Mod 360
+ Else
+ previewResult = (orientation - degrees + 360) Mod 360
+ result = previewResult
+ Log(previewResult)
+ End If
+ r.target = nativeCam
+ r.RunMethod2("setDisplayOrientation", previewResult, "java.lang.int")
+ r.target = parameters
+ r.RunMethod2("setRotation", result, "java.lang.int")
+ CommitParameters
+End Sub
+
+Private Sub Camera_Ready (Success As Boolean)
+ If Success Then
+ r.target = cam
+ nativeCam = r.GetField("camera")
+ r.target = nativeCam
+ parameters = r.RunMethod("getParameters")
+ SetDisplayOrientation
+ Else
+ Log("success = false, " & LastException)
+ End If
+ CallSub2(target, event & "_ready", Success)
+End Sub
+
+Sub Camera_Preview (Data() As Byte)
+ If SubExists(target, event & "_preview") Then
+ CallSub2(target, event & "_preview", Data)
+ End If
+End Sub
+Public Sub TakePicture
+ cam.TakePicture
+End Sub
+
+Private Sub Camera_PictureTaken (Data() As Byte)
+ CallSub2(target, event & "_PictureTaken", Data)
+End Sub
+
+Public Sub StartPreview
+ cam.StartPreview
+End Sub
+
+Public Sub StopPreview
+ cam.StopPreview
+End Sub
+
+Public Sub Release
+ cam.Release
+End Sub
+
+'Saves the data received from PictureTaken event
+Public Sub SavePictureToFile(Data() As Byte, Dir As String, FileName As String)
+ Dim out As OutputStream = File.OpenOutput(Dir, FileName, False)
+ out.WriteBytes(Data, 0, Data.Length)
+ out.Close
+End Sub
+
+Public Sub SetParameter(Key As String, Value As String)
+ r.target = parameters
+ r.RunMethod3("set", Key, "java.lang.String", Value, "java.lang.String")
+End Sub
+
+Public Sub GetParameter(Key As String) As String
+ r.target = parameters
+ Return r.RunMethod2("get", Key, "java.lang.String")
+End Sub
+
+Public Sub CommitParameters
+ Try
+ r.target = nativeCam
+ r.RunMethod4("setParameters", Array As Object(parameters), Array As String("android.hardware.Camera$Parameters"))
+ Catch
+ ToastMessageShow("Error setting parameters.", True)
+ Log(LastException)
+ End Try
+End Sub
+
+Public Sub GetColorEffect As String
+ Return GetParameter("effect")
+End Sub
+
+Public Sub SetColorEffect(Effect As String)
+ SetParameter("effect", Effect)
+End Sub
+
+Public Sub GetSupportedPicturesSizes As CameraSize()
+ r.target = parameters
+ Dim list1 As List = r.RunMethod("getSupportedPictureSizes")
+ Dim cs(list1.Size) As CameraSize
+ For i = 0 To list1.Size - 1
+ r.target = list1.Get(i)
+ cs(i).Width = r.GetField("width")
+ cs(i).Height = r.GetField("height")
+ Next
+ Return cs
+End Sub
+
+Public Sub SetPictureSize(Width As Int, Height As Int)
+ r.target = parameters
+ r.RunMethod3("setPictureSize", Width, "java.lang.int", Height, "java.lang.int")
+End Sub
+
+Public Sub SetJpegQuality(Quality As Int)
+ r.target = parameters
+ r.RunMethod2("setJpegQuality", Quality, "java.lang.int")
+End Sub
+
+Public Sub SetFlashMode(Mode As String)
+ r.target = parameters
+ r.RunMethod2("setFlashMode", Mode, "java.lang.String")
+End Sub
+
+Public Sub GetFlashMode As String
+ r.target = parameters
+ Return r.RunMethod("getFlashMode")
+End Sub
+
+Public Sub GetSupportedFlashModes As List
+ r.target = parameters
+ Return r.RunMethod("getSupportedFlashModes")
+End Sub
+
+Public Sub GetSupportedColorEffects As List
+ r.target = parameters
+ Return r.RunMethod("getSupportedColorEffects")
+End Sub
+
+Public Sub GetPreviewSize As CameraSize
+ r.target = parameters
+ r.target = r.RunMethod("getPreviewSize")
+ Dim cs As CameraSize
+ cs.Width = r.GetField("width")
+ cs.Height = r.GetField("height")
+ Return cs
+End Sub
+
+Public Sub GetPictureSize As CameraSize
+ r.target = parameters
+ r.target = r.RunMethod("getPictureSize")
+ Dim cs As CameraSize
+ cs.Width = r.GetField("width")
+ cs.Height = r.GetField("height")
+ Return cs
+End Sub
+
+'Converts a preview image formatted in YUV format to JPEG.
+'Note that you should not save every preview image as it will slow down the whole process.
+Public Sub PreviewImageToJpeg(data() As Byte, quality As Int) As Byte()
+ Dim size, previewFormat As Object
+ r.target = parameters
+ size = r.RunMethod("getPreviewSize")
+ previewFormat = r.RunMethod("getPreviewFormat")
+ r.target = size
+ Dim width = r.GetField("width"), height = r.GetField("height") As Int
+ Dim yuvImage As Object = r.CreateObject2("android.graphics.YuvImage", _
+ Array As Object(data, previewFormat, width, height, Null), _
+ Array As String("[B", "java.lang.int", "java.lang.int", "java.lang.int", "[I"))
+ r.target = yuvImage
+ Dim rect1 As Rect
+ rect1.Initialize(0, 0, r.RunMethod("getWidth"), r.RunMethod("getHeight"))
+ Dim out As OutputStream
+ out.InitializeToBytesArray(100)
+ r.RunMethod4("compressToJpeg", Array As Object(rect1, quality, out), _
+ Array As String("android.graphics.Rect", "java.lang.int", "java.io.OutputStream"))
+ Return out.ToBytesArray
+End Sub
+
+Public Sub GetSupportedFocusModes As List
+ r.target = parameters
+ Return r.RunMethod("getSupportedFocusModes")
+End Sub
+
+Public Sub SetContinuousAutoFocus
+ Dim modes As List = GetSupportedFocusModes
+ If modes.IndexOf("continuous-picture") > -1 Then
+ SetFocusMode("continuous-picture")
+ Else If modes.IndexOf("continuous-video") > -1 Then
+ SetFocusMode("continuous-video")
+ Else
+ Log("Continuous focus mode is not available")
+ End If
+End Sub
+
+Public Sub SetFocusMode(Mode As String)
+ r.target = parameters
+ r.RunMethod2("setFocusMode", Mode, "java.lang.String")
+End Sub
+
+Public Sub GetFocusDistances As Float()
+ Dim F(3) As Float
+ r.target = parameters
+ r.RunMethod4("getFocusDistances", Array As Object(F), Array As String("[F"))
+ Return F
+End Sub
+'This method should only be called if you need to immediately release the camera.
+'For example if you need to start another application that depends on the camera.
+Public Sub CloseNow
+ cam.Release
+ r.target = cam
+ r.RunMethod2("releaseCameras", True, "java.lang.boolean")
+End Sub
+'Calls AutoFocus and then takes the picture if focus was successfull.
+Public Sub FocusAndTakePicture
+ cam.AutoFocus
+End Sub
+Private Sub Camera_FocusDone (Success As Boolean)
+ If Success Then
+ TakePicture
+ Else
+ Log("AutoFocus error.")
+ End If
+End Sub
+
+
+
diff --git a/B4A/DBRequestManager.bas b/B4A/DBRequestManager.bas
new file mode 100644
index 0000000..b3d83a1
--- /dev/null
+++ b/B4A/DBRequestManager.bas
@@ -0,0 +1,272 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=7.01
+@EndOfDesignText@
+'Class module
+Sub Class_Globals
+ Private mTarget As Object
+ Type DBResult (Tag As Object, Columns As Map, Rows As List)
+ Type DBCommand (Name As String, Parameters() As Object)
+ Private link As String
+ Private bc As ByteConverter
+ Private T_NULL = 0, T_STRING = 1, T_SHORT = 2, T_INT = 3, T_LONG = 4, T_FLOAT = 5 _
+ ,T_DOUBLE = 6, T_BOOLEAN = 7, T_BLOB = 8 As Byte
+ Private VERSION As Float = 0.9
+ Private tempArray(1) As Object
+ Dim jobTagAnterior As String = "" 'Mod por CHV - 211023
+End Sub
+
+'Target - The module that handles JobDone (usually Me).
+'ConnectorLink - URL of the Java server.
+Public Sub Initialize (Target As Object, ConnectorLink As String)
+ mTarget = Target
+ link = ConnectorLink
+End Sub
+
+'Sends a query request.
+'Command - Query name and parameters.
+'Limit - Maximum rows to return or 0 for no limit.
+'Tag - An object that will be returned in the result.
+Public Sub ExecuteQuery(Command As DBCommand, Limit As Int, Tag As Object)
+ Dim j As HttpJob
+ Dim ms As OutputStream
+ Dim out2 As OutputStream = StartJob(j,ms, Tag)
+
+ WriteObject(Command.Name, out2)
+ WriteInt(Limit, out2)
+ WriteList(Command.Parameters, out2)
+ out2.Close
+ j.PostBytes(link & "?method=query", ms.ToBytesArray)
+End Sub
+
+'Executes a batch of (non-select) commands.
+'ListOfCommands - List of the commands that will be executes.
+'Tag - An object that will be returned in the result.
+Public Sub ExecuteBatch(ListOfCommands As List, Tag As Object)
+ Dim j As HttpJob
+ Dim ms As OutputStream
+ Dim out2 As OutputStream = StartJob(j,ms, Tag)
+ WriteInt(ListOfCommands.Size, out2)
+ For Each Command As DBCommand In ListOfCommands
+ WriteObject(Command.Name, out2)
+ WriteList(Command.Parameters, out2)
+ Next
+ out2.Close
+ j.PostBytes(link & "?method=batch", ms.ToBytesArray)
+End Sub
+
+'Similar to ExecuteBatch. Sends a single command.
+Public Sub ExecuteCommand(Command As DBCommand, Tag As Object)
+ ExecuteBatch(Array As DBCommand(Command), Tag)
+End Sub
+
+Private Sub StartJob(j As HttpJob, MemoryStream As OutputStream, Tag As Object) As OutputStream
+ j.Initialize("DBRequest", mTarget)
+ j.Tag = Tag
+ MemoryStream.InitializeToBytesArray(0)
+ Dim compress As CompressedStreams
+ Dim out As OutputStream = compress.WrapOutputStream(MemoryStream, "gzip")
+ WriteObject(VERSION, out)
+ Return out
+End Sub
+
+Private Sub WriteList(Parameters As List, out As OutputStream)
+ Dim data() As Byte
+ If Parameters = Null Or Parameters.IsInitialized = False Then
+ Dim Parameters As List
+ Parameters.Initialize
+ End If
+ data = bc.IntsToBytes(Array As Int(Parameters.Size))
+ out.WriteBytes(data, 0, data.Length)
+ For Each o As Object In Parameters
+ WriteObject(o, out)
+ Next
+End Sub
+
+Private Sub WriteObject(o As Object, out As OutputStream)
+ Dim data() As Byte
+ tempArray(0) = o
+ If tempArray(0) = Null Then
+ out.WriteBytes(Array As Byte(T_NULL), 0, 1)
+ Else If tempArray(0) Is Short Then
+ out.WriteBytes(Array As Byte(T_SHORT), 0, 1)
+ data = bc.ShortsToBytes(Array As Short(o))
+ Else If tempArray(0) Is Int Then
+ out.WriteBytes(Array As Byte(T_INT), 0, 1)
+ data = bc.IntsToBytes(Array As Int(o))
+ Else If tempArray(0) Is Float Then
+ out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)
+ data = bc.FloatsToBytes(Array As Float(o))
+ Else If tempArray(0) Is Double Then
+ out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)
+ data = bc.DoublesToBytes(Array As Double(o))
+ Else If tempArray(0) Is Long Then
+ out.WriteBytes(Array As Byte(T_LONG), 0, 1)
+ data = bc.LongsToBytes(Array As Long(o))
+ Else If tempArray(0) Is Boolean Then
+ out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)
+ Dim b As Boolean = 0
+ Dim data(1) As Byte
+ If b Then data(0) = 1 Else data(0) = 0
+ Else If GetType(tempArray(0)) = "[B" Then
+ data = o
+ out.WriteBytes(Array As Byte(T_BLOB), 0, 1)
+ WriteInt(data.Length, out)
+ Else 'If o Is String Then (treat all other values as string)
+ out.WriteBytes(Array As Byte(T_STRING), 0, 1)
+ data = bc.StringToBytes(o, "UTF8")
+ WriteInt(data.Length, out)
+ End If
+ If data.Length > 0 Then out.WriteBytes(data, 0, data.Length)
+End Sub
+
+Private Sub ReadObject(In As InputStream) As Object
+ Dim data(1) As Byte
+ In.ReadBytes(data, 0, 1)
+ Select data(0)
+ Case T_NULL
+ Return Null
+ Case T_SHORT
+ Dim data(2) As Byte
+ Return bc.ShortsFromBytes(ReadBytesFully(In, data, data.Length))(0)
+ Case T_INT
+ Dim data(4) As Byte
+ Return bc.IntsFromBytes(ReadBytesFully(In, data, data.Length))(0)
+ Case T_LONG
+ Dim data(8) As Byte
+ Return bc.LongsFromBytes(ReadBytesFully(In, data, data.Length))(0)
+ Case T_FLOAT
+ Dim data(4) As Byte
+ Return bc.FloatsFromBytes(ReadBytesFully(In, data, data.Length))(0)
+ Case T_DOUBLE
+ Dim data(8) As Byte
+ Return bc.DoublesFromBytes(ReadBytesFully(In, data, data.Length))(0)
+ Case T_BOOLEAN
+ Dim b As Byte = ReadByte(In)
+ Return b = 1
+ Case T_BLOB
+ Dim len As Int = ReadInt(In)
+ Dim data(len) As Byte
+ Return ReadBytesFully(In, data, data.Length)
+ Case Else
+ Dim len As Int = ReadInt(In)
+ Dim data(len) As Byte
+ ReadBytesFully(In, data, data.Length)
+ Return BytesToString(data, 0, data.Length, "UTF8")
+ End Select
+End Sub
+
+Private Sub ReadBytesFully(In As InputStream, Data() As Byte, Len As Int) As Byte()
+ Dim count = 0, read As Int
+ Do While count < Len And read > -1
+ read = In.ReadBytes(Data, count, Len - count)
+ count = count + read
+ Loop
+ Return Data
+End Sub
+
+Private Sub WriteInt(i As Int, out As OutputStream)
+ Dim data() As Byte
+ data = bc.IntsToBytes(Array As Int(i))
+ out.WriteBytes(data, 0, data.Length)
+End Sub
+
+Private Sub ReadInt(In As InputStream) As Int
+ Dim data(4) As Byte
+ Return bc.IntsFromBytes(ReadBytesFully(In, data, data.Length))(0)
+End Sub
+
+Private Sub ReadByte(In As InputStream) As Byte
+ Dim data(1) As Byte
+ In.ReadBytes(data, 0, 1)
+ Return data(0)
+End Sub
+
+'Handles the Job result and returns a DBResult.
+Public Sub HandleJob(Job As HttpJob) As DBResult
+' Dim start As Long = DateTime.Now
+ Dim In As InputStream = Job.GetInputStream
+ Dim cs As CompressedStreams
+ In = cs.WrapInputStream(In, "gzip")
+ Dim serverVersion As Float = ReadObject(In) 'ignore
+ Dim method As String = ReadObject(In)
+ Dim table As DBResult
+ table.Initialize
+ table.Columns.Initialize
+ table.rows.Initialize
+ table.Tag = Job.Tag
+ If jobTagAnterior <> Job.Tag Then LogColor("HandleJob: '"&Job.Tag&"'", Colors.Blue) 'Mod por CHV - 211023
+ jobTagAnterior = Job.Tag 'Mod por CHV - 211023
+ If method = "query" Then
+ Dim numberOfColumns As Int = ReadInt(In)
+ For i = 0 To numberOfColumns - 1
+ table.Columns.Put(ReadObject(In), i)
+ Next
+ Do While ReadByte(In) = 1
+ Dim rowObjects(numberOfColumns) As Object
+ table.rows.Add(rowObjects)
+ For col = 0 To numberOfColumns - 1
+ Dim o As Object = ReadObject(In)
+ rowObjects(col) = o
+ Next
+ Loop
+ Else If method = "batch" Then
+ table.Columns.Put("AffectedRows", 0)
+ Dim rows As Int = ReadInt(In)
+ For i = 0 To rows - 1
+ table.rows.Add(Array As Object(ReadInt(In)))
+ Next
+ End If
+ In.Close
+ Return table
+End Sub
+
+'Reads a file and returns the file as a bytes array.
+Public Sub FileToBytes(Dir As String, FileName As String) As Byte()
+ Dim out As OutputStream
+ out.InitializeToBytesArray(0)
+ Dim In As InputStream = File.OpenInput(Dir, FileName)
+ File.Copy2(In, out)
+ out.Close
+ Return out.ToBytesArray
+End Sub
+
+'Converts an image to a bytes array (for BLOB fields).
+Public Sub ImageToBytes(Image As Bitmap) As Byte()
+ Dim out As OutputStream
+ out.InitializeToBytesArray(0)
+ Image.WriteToStream(out, 100, "JPEG")
+ out.Close
+ Return out.ToBytesArray
+End Sub
+'Converts a bytes array to an image (for BLOB fields).
+Public Sub BytesToImage(bytes() As Byte) As Bitmap
+ Dim In As InputStream
+ In.InitializeFromBytesArray(bytes, 0, bytes.Length)
+ Dim bmp As Bitmap
+ bmp.Initialize2(In)
+ Return bmp
+End Sub
+
+'Prints the table to the logs.
+Public Sub PrintTable(Table As DBResult)
+ Log("Tag: " & Table.Tag & ", Columns: " & Table.Columns.Size & ", Rows: " & Table.Rows.Size)
+ Dim sb As StringBuilder
+ sb.Initialize
+ For Each col In Table.Columns.Keys
+ sb.Append(col).Append(TAB)
+ Next
+ Log(sb.ToString)
+ For Each row() As Object In Table.Rows
+ Dim sb As StringBuilder
+ sb.Initialize
+ For Each record As Object In row
+ sb.Append(record).Append(TAB)
+ Next
+ ToastMessageShow(sb.ToString, True)
+ Next
+End Sub
+
+
\ No newline at end of file
diff --git a/B4A/EscPosPrinter.bas b/B4A/EscPosPrinter.bas
new file mode 100644
index 0000000..cbfb796
--- /dev/null
+++ b/B4A/EscPosPrinter.bas
@@ -0,0 +1,2302 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=9.3
+@EndOfDesignText@
+'#IgnoreWarnings: 9
+'' 9 = unused variable
+'
+'Sub Class_Globals
+' ' 1.0 Initial version
+' ' 2.0 Added FeedPaper, changed many WriteString(.." & Chr(number)) instances to WriteBytes(params)
+' ' This is to avoid Unicode code page transformations on some numbers > 32
+' ' Added PrintAndFeedPaper, setRelativePrintPosn,
+' ' Added user defined characters, DefineCustomCharacter, DeleteCustomCharacter and setUseCustomCharacters
+' ' Addedhelper methods CreateCustomCharacter, CreateLine, CreateBox and CreateCircle
+' Private Version As Double = 2.0 ' Printer class version
+'
+' Type AnImage(Width As Int, Height As Int, Data() As Byte)
+'
+' Private EventName As String 'ignore
+' Private CallBack As Object 'ignore
+'
+' Private Serial1 As Serial
+' Private Astream As AsyncStreams
+' Private Connected As Boolean
+' Private ConnectedError As String
+'
+' Dim ESC As String = Chr(27)
+' Dim FS As String = Chr(28)
+' Dim GS As String = Chr(29)
+'
+' 'Bold and underline don't work well in reversed text
+' Dim UNREVERSE As String = GS & "B" & Chr(0)
+' Dim REVERSE As String = GS & "B" & Chr(1)
+'
+' ' Character orientation. Print upside down from right margin
+' Dim UNINVERT As String = ESC & "{0"
+' Dim INVERT As String = ESC & "{1"
+'
+' ' Character rotation clockwise. Not much use without also reversing the printed character sequence
+' Dim UNROTATE As String = ESC & "V0"
+' Dim ROTATE As String = ESC & "V1"
+'
+' ' Horizontal tab
+' Dim HT As String = Chr(9)
+'
+' ' Character underline
+' Dim ULINE0 As String = ESC & "-0"
+' Dim ULINE1 As String = ESC & "-1"
+' Dim ULINE2 As String = ESC & "-2"
+'
+' ' Character emphasis
+' Dim BOLD As String = ESC & "E1"
+' Dim NOBOLD As String = ESC & "E0"
+'
+' ' Character height and width
+' Dim SINGLE As String = GS & "!" & Chr(0x00)
+' Dim HIGH As String = GS & "!" & Chr(0x01)
+' Dim WIDE As String = GS & "!" & Chr(0x10)
+' Dim HIGHWIDE As String = GS & "!" & Chr(0x11)
+'
+' ' Default settings
+' Private LEFTJUSTIFY As String = ESC & "a0"
+' Private LINEDEFAULT As String = ESC & "2"
+' Private LINSET0 As String = ESC & "$" & Chr(0x0) & Chr(0x0)
+' Private LMARGIN0 As String = GS & "L" & Chr(0x0) & Chr(0x0)
+' Private WIDTH0 As String = GS & "W" & Chr(0xff) & Chr(0xff)
+' Private CHARSPACING0 As String = ESC & " " & Chr(0)
+' Private CHARFONT0 As String = ESC & "M" & Chr(0)
+' Dim DEFAULTS As String = CHARSPACING0 & CHARFONT0 & LMARGIN0 & WIDTH0 & LINSET0 & LINEDEFAULT & LEFTJUSTIFY _
+' & UNINVERT & UNROTATE & UNREVERSE & NOBOLD & ULINE0
+'
+'End Sub
+'
+''**********
+''PUBLIC API
+''**********
+'
+''Initialize the object with the parent and event name
+'Public Sub Initialize(vCallback As Object, vEventName As String)
+' EventName = vEventName
+' CallBack = vCallback
+' Serial1.Initialize("Serial1")
+' Connected = False
+' ConnectedError = ""
+'End Sub
+'
+'' Returns any error raised by the last attempt to connect a printer
+'Public Sub ConnectedErrorMsg As String
+' Return ConnectedError
+'End Sub
+'
+'' Returns whether a printer is connected or not
+'Public Sub IsConnected As Boolean
+' Return Connected
+'End Sub
+'
+'' Returns whether Bluetooth is on or off
+'Public Sub IsBluetoothOn As Boolean
+' Return Serial1.IsEnabled
+'End Sub
+'
+'' Ask the user to connect to a printer and return whether she tried or not
+'' If True then a subsequent Connected event will indicate success or failure
+'Public Sub Connect As Boolean
+' 'leos
+'' Serial1.Connect("88:6B:0F:3E:53:9E")
+'' Return True
+' Try
+' If Starter.MAC_IMPRESORA = "0" Then
+' Dim PairedDevices As Map
+' PairedDevices = Serial1.GetPairedDevices
+' Dim l As List
+' l.Initialize
+' Log("aqui 1")
+' For i = 0 To PairedDevices.Size - 1
+' l.Add(PairedDevices.GetKeyAt(i))
+' Log("aqui 2")
+' DisConnect
+' Next
+' Dim Res As Int
+' Res = InputList(l, "Choose a printer", -1) 'show list with paired devices 'ignore
+' If Res <> DialogResponse.CANCEL Then
+' Serial1.Connect(PairedDevices.Get(l.Get(Res))) 'convert the name to mac address
+' 'Msgbox(PairedDevices.Get(l.Get(Res)),"mac")
+' Starter.mac_impresora = PairedDevices.Get(l.Get(Res))
+' Return True
+' DisConnect
+' Log("aqui 3")
+' End If
+' Log("aqui 4")
+' Return False
+' Else
+' Serial1.Connect(Starter.mac_impresora)
+' ' Starter.mac_impresora = colonia.MAC_IMPRESORA
+' Return True
+' DisConnect
+' Log("aqui 5")
+' End If
+' Catch
+' Log(LastException)
+' Return False
+' End Try
+'End Sub
+'
+'
+'' Disconnect the printer
+'Public Sub DisConnect
+' Serial1.Disconnect
+' Connected = False
+'End Sub
+'
+'' Reset the printer to the power on state
+'Public Sub Reset
+' WriteString(ESC & "@")
+'End Sub
+'
+''--------------
+'' Text Commands
+''--------------
+'
+'' Print any outstanding characters then feed the paper the specified number of units of 0.125mm
+'' This is similar to changing LineSpacing before sending CRLF but this has a one off effect
+'' A full character height is always fed even if units = 0. Units defines the excess over this minimum
+'Public Sub PrintAndFeedPaper(units As Int)
+' WriteString(ESC & "J")
+' Dim params(1) As Byte
+' params(0) = units
+' WriteBytes(params)
+'End Sub
+'
+'' Set the distance between characters
+'Public Sub setCharacterSpacing(spacing As Int)
+' WriteString(ESC & " ")
+' Dim params(1) As Byte
+' params(0) = spacing
+' WriteBytes(params)
+'End Sub
+'
+'' Set the left inset of the next line to be printed
+'' Automatically resets to 0 for the following line
+'' inset is specified in units of 0.125mm
+'Public Sub setLeftInset(inset As Int)
+' Dim dh As Int = inset / 256
+' Dim dl As Int = inset - dh
+' WriteString(ESC & "$" & Chr(dl) & Chr(dh))
+' Dim params(2) As Byte
+' params(0) = dl
+' params(1) = dh
+' WriteBytes(params)
+'End Sub
+'
+'' Set the left margin of the print area, must be the first item on a new line
+'' margin is specified in units of 0.125mm
+'' This affects barcodes as well as text
+'Public Sub setLeftMargin(margin As Int)
+' Dim dh As Int = margin / 256
+' Dim dl As Int = margin - dh
+' WriteString(GS & "L")
+' Dim params(2) As Byte
+' params(0) = dl
+' params(1) = dh
+' WriteBytes(params)
+'End Sub
+'
+'' Set the width of the print area, must be the first item on a new line
+'' margin is specified in units of 0.125mm
+'' This affects barcodes as well as text
+'' This appears to function more like a right margin than a print area width when used with LeftMargin
+'Public Sub setPrintWidth(width As Int)
+' Dim dh As Int = width / 256
+' Dim dl As Int = width - dh
+' WriteString(GS & "W")
+' Dim params(2) As Byte
+' params(0) = dl
+' params(1) = dh
+' WriteBytes(params)
+'End Sub
+'
+'' Set the distance between lines in increments of 0.125mm
+'' If spacing is < 0 then the default of 30 is set
+'Public Sub setLineSpacing(spacing As Int)
+' If spacing < 0 Then
+' WriteString(ESC & "2")
+' Else
+' WriteString(ESC & "3")
+' Dim params(1) As Byte
+' params(0) = spacing
+' WriteBytes(params)
+' End If
+'End Sub
+'
+'' Set the line content justification, must be the first item on a new line
+'' 0 left, 1 centre, 2 right
+'Public Sub setJustify(justify As Int)
+' WriteString(ESC & "a" & Chr(justify + 48))
+'End Sub
+'
+'' Set the codepage of the printer
+'' You need to look at the printer documentation to establish which codepages are supported
+'Public Sub setCodePage(codepage As Int)
+' WriteString(ESC & "t")
+' Dim params(1) As Byte
+' params(0) = codepage
+' WriteBytes(params)
+'End Sub
+'
+'' Select the size of the font for printing text. 0 = Font A (12 x 24), 1 = Font B (9 x 17)
+'' For font B you may want to set the line spacing to a lower value than the default of 30
+'' This affects only the size of printed characters. The code page determines the actual character set
+'' On my printer setting UseCustomCharacters = while Font B is selected crashes the printer and turns it off
+'Public Sub setCharacterFont(font As Int)
+' WriteString(ESC & "M" & Chr(Bit.And(1,font)))
+'End Sub
+'
+'' Set the positions of the horizontal tabs
+'' Each tab is specified as a number of character widths from the beginning of the line
+'' There may be up to 32 tab positions specified each of size up to 255 characters
+'' The printer default is that no tabs are defined
+'Public Sub setTabPositions(tabs() As Int)
+' WriteString(ESC & "D")
+' Dim data(tabs.Length+1) As Byte
+' For i = 0 To tabs.Length - 1
+' data(i) = tabs(i)
+' Next
+' data(tabs.Length) = 0
+' WriteBytes(data)
+'End Sub
+'
+'' Set print position relative to the current position using horizontal units of 0.125mm
+'' relposn can be negative
+'' Unless I have misundertood this doesn't work as documented on my printer
+'' It only seems take effect at the beginning of a line as a one off effect
+'Public Sub setRelativePrintPosn(relposn As Int)
+' Dim dh As Int = relposn / 256
+' Dim dl As Int = relposn - dh
+' WriteString(ESC & "\")
+' Dim params(2) As Byte
+' params(0) = dl
+' params(1) = dh
+' WriteBytes(params)
+'End Sub
+'
+'' Send the contents of an array of bytes to the printer
+'' Remember that if the printer is expecting text the bytes will be printed as characters in the current code page
+'Public Sub WriteBytes(data() As Byte)
+' If Connected Then
+' Astream.Write(data)
+' End If
+'End Sub
+'
+'' Send the string to the printer in IBM437 encoding which is the original PC DOS codepage
+'' This is usually the default codepage for a printer and is CodePage = 0
+'' Beware of using WriteString with Chr() to send numeric values as they may be affected by Unicode to codepage translations
+'' Most character level operations are pre-defined as UPPERCASE string variables for easy concatenation with other string data
+'Public Sub WriteString(data As String)
+' WriteString2(data, "IBM437")
+'End Sub
+'
+'' Send the string to the printer in the specified encoding
+'' You also need to set the printer to a matching encoding using the CodePage property
+'' Beware of using WriteString2 with Chr() to send numeric values as they may be affected by codepage substitutions
+'' Most character level operations are pre-defined as UPPERCASE string variables for easy concatenatipon with other string data
+'Public Sub WriteString2(data As String, encoding As String)
+' Try
+' If Connected Then
+' Astream.Write(data.GetBytes(encoding))
+' End If
+' Catch
+' Log("Printer error : " & LastException.Message)
+' AStream_Error
+' End Try
+'End Sub
+'
+''-----------------------------------------
+'' User defined character commands commands
+''-----------------------------------------
+'
+'' Delete the specified user defined character mode
+'' This command deletes the pattern defined for the specified code in the font selected by ESC !
+'' If the code is subsequently printed in custom character mode the present code page character is printed instead
+'Public Sub DeleteCustomCharacter(charcode As Int)
+' WriteString(ESC & "?")
+' Dim params(1) As Byte
+' params(0) = charcode
+' WriteBytes(params)
+'End Sub
+'
+'' Enable the user defined character mode if custom is True, revert to normal if custom is False
+'' If a custom character has not been defined for a given character code then the default character for the present font is printed
+'' FontA and FontB have separate definitions for custom characters
+'' On my printer setting UseCustomCharacters = while Font B is selected crashes the printer and turns it off
+'' Therefore the cuatom character routines have not been tested on ont B
+'Public Sub setUseCustomCharacters(custom As Boolean)
+' If custom Then
+' WriteString(ESC & "%1")
+' Else
+' WriteString(ESC & "%0")
+' End If
+'End Sub
+'
+'' Define a user defined character
+'' The allowable character code range is the 95 characters) from ASCII code 32 (0x20) to 126 (0x7E)
+'' Characters can be defined in either font A (12*24) or font B (9*17) as selected by present setting of CharacterFont
+'' The programmer must ensure that the correct font size definition is used for the present setting of CharacterFont
+'' The user-defined character definition is cleared when Reset is invoked or the printer is turned off
+'' The vertical and horizontal printed resolution is approximaely 180dpi
+'' Characters are always defined by sets of three bytes in the vertical direction and up to 9 or 12 sets horizontally
+'' Each byte defines a vertical line of 8 dots. The MSB of each byte is the highest image pixel, the LSB is the lowest
+'' Byte(0+n) defines the topmost third of the vertical line, Byte(1+n) is below and Byte(2+n) is the lowest
+'' Set a bit to 1 to print a dot or 0 to not print a dot
+'' If the lines to the right of the character are blank then there set of three bytes can be omiited from the byte array
+'' When the user-defined characters are defined in font B (9*17) only the most significant bit of the 3rd byte of data is used
+'' charcode defines the character code for the character being defined
+'' bitdata is a Byte array containing the character definitiopn as described above.
+'' If the length of bitdata is not a multiple of 3 the definition is ignored and a value of -1 returned
+'Public Sub DefineCustomCharacter(charcode As Int, bitdata() As Byte) As Int
+' Dim excess As Int = bitdata.Length Mod 3
+' If excess <> 0 Then Return -1
+' Dim size As Int = bitdata.Length / 3
+' WriteString(ESC & "&")
+' Dim params(4) As Byte
+' params(0) = 3
+' params(1) = charcode
+' params(2) = charcode
+' params(3) = size
+' WriteBytes(params)
+' WriteBytes(bitdata)
+' Return 0
+'End Sub
+'
+'' The third triangle point is hacked into spare bits keeping the generated Int human readable i hex for other shapes
+'' The shape array contains the character shapes and characterfont is 0 for a 12*24 character andd 1 for a 9*17 character
+'' Returns a Byte(36) for characterfont = 0 and a Byte(27) for characterfont = 1
+'' The returned array can be directly passed to DefineCustomCharacter
+'' To define a custom character requires specifying up to 288 data points
+'' This is a lot of data and in most cases it is mainly white space
+'' This method takes a character definition that defines only the shapes in the character that are to be printed black
+'' It will be easier use the outputs from CreateLine, CreateTriangle, CreateBox and CreateCircle rather then building the actual Int values
+'' Each shape is defined by a single Int value containing four parameters in hex format plugs some single bit flags
+'' Taking the representation of the Int as eight hex characters numbered from the MS end as 0x01234567
+'' 0 contains the shape to draw. 0 = Line, 1 = Box, 2 = Circle, 3 = Triangle
+'' 1 contains a value between 0 and 0xF. This is either an X coordinate or for a circle the radius
+'' 2 and 3 contain a value between 0 and 0x1F. This is either a Y coordinate or for a circle the quadrants to draw
+'' 4 contains a value between 0 and 0xF. This is 0 for an empty shope or 1 for a filled shape
+'' 5 contains a value between 0 and 0xF. This is an X coordinate
+'' 5 and 6 contain a value between 0 and 0x1F. This is a Y coordinate
+'' The coordinate 0,0 is at the top left of the character
+'' Line
+'' One point of the vector is contained in the top part of the Int and the other in the bottom half
+'' To define a single point place its coordinates as both sr=start and end of a line
+'' Box
+'' The two X,Y coordinates specify the top left and bottom right corners of the box
+'' Circle
+'' The left X parameter is now the radius of the circle, the left Y is the quadrants to be drawn
+'' The right X and Y parameters are the centre of the circle'
+'' The quadrants to draw are bit ORed together, UpperRight = 0x1, LowerRight = 0x2, LowerLeft = 0x4, Upper Left = 0x8
+'' Triangle
+'' The left X and Y parameters are now one point of the triangle, the right X and Y parameters another point
+'' The third triangle point is hacked into spare bits keeping the generated Int human readable in hex for the other shapes
+'' The bit allocations of a shape are as follows. f = fill as 0 or 1, s = shape as 0 to 7, xn as 0 to 15, yn as 0 to 31
+'' Shape 0 = line, 1 = box, 2 = triangle, 3 = circle, 4 to 7 = unused
+'' fsss xxxx -yyy yyyy xxxx xxxx yyyy yyyy
+'' 0000 220 0000 2222 1111 2221 1111
+'' x0 y2 y0 x2 x1 y2 y1
+'' The shape array contains the character shapes and characterfont is 0 for a 12*24 character andd 1 for a 9*17 character
+'' Returns a Byte(36) for characterfont = 0 and a Byte(27) for characterfont = 1
+'' The returned array can be directly passed to DefineCustomCharacter
+'Public Sub CreateCustomCharacter(shapes() As Int, characterfont As Int) As Byte()
+' Dim masks(8) As Byte
+' masks(0) = 0x80
+' masks(1) = 0x40
+' masks(2) = 0x20
+' masks(3) = 0x10
+' masks(4) = 0x08
+' masks(5) = 0x04
+' masks(6) = 0x02
+' masks(7) = 0x01
+' ' rather than try to catch errors whenever we access this array we Dim it to the maximum possible values of X and Y
+' ' then copy the top left of it to the final character definition array of the correct size
+' Dim points(16,32) As Byte
+' ' initialise the character to all white
+' For x = 0 To 15
+' For y = 0 To 31
+' points(x,y) = 0
+' Next
+' Next
+' Dim size As Int = 12
+' If characterfont = 1 Then size = 9
+' Dim charbyes(size * 3) As Byte
+' For c = 0 To charbyes.Length - 1
+' charbyes(c) = 0
+' Next
+' ' set the points array from the shapes provided
+' For i = 0 To shapes.Length -1
+' Dim fill As Int = Bit.UnsignedShiftRight(Bit.And(0x80000000, shapes(i)), 31)
+' Dim shape As Int = Bit.UnsignedShiftRight(Bit.And(0x70000000, shapes(i)), 28)
+' Dim x0 As Int = Bit.UnsignedShiftRight(Bit.And(0x0f000000, shapes(i)), 24)
+' Dim y0 As Int = Bit.UnsignedShiftRight(Bit.And(0x001f0000, shapes(i)), 16)
+' Dim x1 As Int = Bit.UnsignedShiftRight(Bit.And(0x00000f00, shapes(i)), 8)
+' Dim y1 As Int = Bit.And(0x0000001f, shapes(i))
+' Dim x2 As Int = Bit.UnsignedShiftRight(Bit.And(0x0000f000, shapes(i)), 12)
+' Dim y2 As Int = Bit.UnsignedShiftRight(Bit.And(0x00e00000, shapes(i)), 18) + Bit.UnsignedShiftRight(Bit.And(0x000000e0, shapes(i)), 5)
+' ' The bit allocations of a shape are as follows. f = fill as 0 or 1, s = shape as 0 to 7, xn as 0 to 15, yn as 0 to 31
+' ' Shape 0 = line, 1 = box, 2 = triangle, 3 = circle, 4 to 7 = unused
+' ' fsss xxxx -yyy yyyy xxxx xxxx yyyy yyyy
+' ' 0000 220 0000 2222 1111 2221 1111
+' ' x0 y2 y0 x2 x1 y2 y1
+' Dim logmsg As String = ": Fill=" & fill & " : Points " & x0 & "," & y0 & " " & x1 & "," & y1 & " " & x2 & "," & y2
+' If shape = 3 Then
+' Log("Triangle " & logmsg)
+' PlotTriangle(x0, y0, x1, y1, x2, y2, points, fill)
+' else If shape = 2 Then
+' Log("Circle " & logmsg)
+' PlotCircle(x0, y0, x1, y1, points, fill)
+' Else If shape = 1 Then
+' Log("Box " & logmsg)
+' PlotBox(x0, y0, x1, y1, points, fill)
+' Else
+' Log("Line " & logmsg)
+' PlotLine(x0, y0, x1, y1, points)
+' End If
+' ' map the points array onto the character definition array
+' For x = 0 To size -1 ' 9 or 12 horizontal bytes
+' For y = 0 To 2 ' 3 vertical bytes
+' Dim bits As Byte = 0
+' For b = 0 To 7 ' 8 vertical bits
+' If points(x, y*8+b) <> 0 Then
+' bits = Bit.Or(bits, masks(b))
+' End If
+' Next
+' charbyes(x*3+y) = bits
+' Next
+' Next
+' Next
+' Return charbyes
+'End Sub
+'
+'' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+'' Create the value to draw a line in a custom character
+'' The line starts at X0,Y0 and ends at X1,Y1
+'Public Sub CreateLine(x0 As Int, y0 As Int, x1 As Int, y1 As Int) As Int
+' Dim line As Int = 0
+' line = line + Bit.ShiftLeft(Bit.And(0xf,x0), 24)
+' line = line + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)
+' line = line + Bit.ShiftLeft(Bit.And(0xf,x1), 8)
+' line = line + Bit.And(0x1f,y1)
+' Return line
+'End Sub
+'
+'' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+'' Create the value to draw a circle in a custom character
+'' The circle is centred on X1,Y1 and the quadrants to draw are bit ORed together
+'' UpperRight = 0x1, LowerRight = 0x2, LowerLeft = 0x4, Upper Left = 0x8
+'Public Sub CreateCircle(radius As Int, quadrants As Int, x1 As Int, y1 As Int, fill As Boolean) As Int
+' Dim circle As Int = 0x20000000
+' If fill Then circle = circle + 0x80000000
+' circle = circle + Bit.ShiftLeft(radius, 24)
+' circle = circle + Bit.ShiftLeft(quadrants, 16)
+' circle = circle + Bit.ShiftLeft(x1, 8)
+' circle = circle + y1
+' Return circle
+'End Sub
+'
+'
+'' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+'' Create the value to draw a triangle in a custom character
+'' The triangles corners are at X0,Y0 X1,Y1 and X2,Y2
+'Public Sub CreateTriangle(x0 As Int, y0 As Int, x1 As Int, y1 As Int, x2 As Int, y2 As Int, fill As Boolean) As Int
+' Dim triangle As Int = 0x30000000
+' If fill Then triangle = triangle + 0x80000000
+' triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x0), 24)
+' triangle = triangle + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)
+' triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x1), 8)
+' triangle = triangle + Bit.And(0x1f,y1)
+' triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x2), 12) ' extra X
+' triangle = triangle + Bit.ShiftLeft(Bit.And(0x7,y2), 5) ' extra Y lsbits * 3
+' triangle = triangle + Bit.ShiftLeft(Bit.And(0x18,y2), 18) ' extra Y msbits * 2
+' Return triangle
+'End Sub
+'
+'' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+'' Create the value to draw a box in a custom character
+'' The box top left start is X0,Y0 and bottom right is X1,Y1
+'Public Sub CreateBox(x0 As Int, y0 As Int, x1 As Int, y1 As Int, fill As Boolean) As Int
+' Dim box As Int = 0x10000000
+' If fill Then box = box + 0x80000000
+' box = box + Bit.ShiftLeft(Bit.And(0xf,x0), 24)
+' box = box + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)
+' box = box + Bit.ShiftLeft(Bit.And(0xf,x1), 8)
+' box = box + Bit.And(0x1f,y1)
+' Return box
+'End Sub
+'
+''-----------------------------------------
+'' Private custom character drawing methods
+''-----------------------------------------
+'
+'Private Sub PlotTriangle(x0 As Int, y0 As Int, x1 As Int, y1 As Int, x2 As Int, y2 As Int, points(,) As Byte, Fill As Int)
+' ' This is a pretty crude algorithm, but it is simple, works and it isn't invoked often
+' PlotLine(x0, y0, x1, y1, points)
+' PlotLine(x1, y1, x2, y2, points)
+' PlotLine(x2, y2, x0, y0, points)
+' If Fill > 0 Then
+' FillTriangle(x0, y0, x1, y1, x2, y2, points)
+' End If
+'End Sub
+'
+'Private Sub FillTriangle(x0 As Int, y0 As Int, x1 As Int, y1 As Int, x2 As Int, y2 As Int, points(,) As Byte)
+' ' first sort the three vertices by y-coordinate ascending so v0 Is the topmost vertice */
+' Dim tx, ty As Int
+' If y0 > y1 Then
+' tx = x0 : ty = y0
+' x0 = x1 : y0 = y1
+' x1 = tx : y1 = ty
+' End If
+' If y0 > y2 Then
+' tx = x0 : ty = y0
+' x0 = x2 : y0 = y2
+' x2 = tx : y2 = ty
+' End If
+' If y1 > y2 Then
+' tx = x1 : ty = y1
+' x1 = x2 : y1 = y2
+' x2 = tx : y2 = ty
+' End If
+'
+' Dim dx0, dx1, dx2 As Double
+' Dim x3, x4, y3, y4 As Double
+' Dim inc As Int
+'
+' If y1 - y0 > 0 Then dx0=(x1-x0)/(y1-y0) Else dx0=0
+' If y2 - y0 > 0 Then dx1=(x2-x0)/(y2-y0) Else dx1=0
+' If y2 - y1 > 0 Then dx2=(x2-x1)/(y2-y1) Else dx2=0
+' x3 = x0 : x4 = x0
+' y3 = y0 : y4 = y0
+' If dx0 > dx1 Then
+' While
+' Do While y3 <= y1
+' If x3 > x4 Then inc = -1 Else inc = 1
+' For x = x3 To x4 Step inc
+' points(x, y3) = 1
+' Next
+' y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4 = x4 + dx0
+' Loop
+' x4=x1
+' y4=y1
+' Do While y3 <= y2
+' If x3 > x4 Then inc = -1 Else inc = 1
+' For x = x3 To x4 Step inc
+' points(x ,y3) = 1
+' Next
+' y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4 = x4 + dx2
+' Loop
+' Else
+' While
+' Do While y3 <= y1
+' If x3 > x4 Then inc = -1 Else inc = 1
+' For x = x3 To x4 Step inc
+' points(x, y3) = 1
+' Next
+' y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4 = x4 +dx1
+' Loop
+' x3=x1
+' y3=y1
+' Do While y3<=y2
+' If x3 > x4 Then inc = -1 Else inc = 1
+' For x = x3 To x4 Step inc
+' points(x, y3) = 1
+' Next
+' y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4 = x4 + dx1
+' Loop
+' End If
+'End Sub
+'
+'Private Sub PlotBox(x0 As Int, y0 As Int, x1 As Int, y1 As Int, points(,) As Byte, Fill As Int)
+' ' This is a pretty crude algorithm, but it is simple, works and itsn't invoked often
+' PlotLine(x0, y0, x0, y1, points)
+' PlotLine(x0, y0, x1, y0, points)
+' PlotLine(x1, y0, x1, y1, points)
+' PlotLine(x0, y1, x1, y1, points)
+' If Fill > 0 Then
+' For x = x0 To x1
+' PlotLine(x, y0, x, y1, points)
+' Next
+' End If
+'End Sub
+'
+'
+'Private Sub PlotCircle(radius As Int, quadrants As Int, x1 As Int, y1 As Int, points(,) As Byte, fill As Int)
+' ' This is a pretty crude algorithm, but it is simple, works and itsn't invoked often
+' Dim mask As Int = 1
+' For q = 3 To 0 Step -1
+' If Bit.And(quadrants, mask) <> 0 Then
+' For i = q*90 To q*90+90 Step 1
+' Dim x,y As Double
+' x = x1 - SinD(i)*radius
+' y = y1 - CosD(i)*radius
+' If fill > 0 Then
+' PlotLine(x1, y1, x, y, points)
+' Else
+' points(Round(x), Round(y)) = 1
+' End If
+' Next
+' End If
+' mask = Bit.ShiftLeft(mask, 1)
+' Next
+'End Sub
+'
+'' Bresenham's line algorithm - see Wikipedia
+'Private Sub PlotLine(x0 As Int, y0 As Int, x1 As Int, y1 As Int, points(,) As Byte )
+' If Abs(y1 - y0) < Abs(x1 - x0) Then
+' If x0 > x1 Then
+' PlotLineLow(x1, y1, x0, y0, points)
+' Else
+' PlotLineLow(x0, y0, x1, y1, points)
+' End If
+' Else
+' If y0 > y1 Then
+' PlotLineHigh(x1, y1, x0, y0, points)
+' Else
+' PlotLineHigh(x0, y0, x1, y1, points)
+' End If
+' End If
+'End Sub
+'
+'Private Sub PlotLineHigh(x0 As Int, y0 As Int, x1 As Int, y1 As Int, points(,) As Byte )
+' Dim dx As Int = x1 - x0
+' Dim dy As Int = y1 - y0
+' Dim xi As Int = 1
+' If dx < 0 Then
+' xi = -1
+' dx = -dx
+' End If
+' Dim D As Int = 2*dx - dy
+' Dim x As Int = x0
+' For y = y0 To y1
+' points(x,y) = 1
+' If D > 0 Then
+' x = x + xi
+' D = D - 2*dy
+' End If
+' D = D + 2*dx
+' Next
+'End Sub
+'
+'Private Sub PlotLineLow(x0 As Int, y0 As Int, x1 As Int,y1 As Int, points(,) As Byte )
+' Dim dx As Int = x1 - x0
+' Dim dy As Int = y1 - y0
+' Dim yi As Int = 1
+' If dy < 0 Then
+' yi = -1
+' dy = -dy
+' End If
+' Dim D As Int = 2*dy - dx
+' Dim y As Int = y0
+' For x = x0 To x1
+' points(x,y) = 1
+' If D > 0 Then
+' y = y + yi
+' D = D - 2*dx
+' End If
+' D = D + 2*dy
+' Next
+'End Sub
+'
+'
+''-------------------
+'' Image commands
+''-------------------
+'' There are two different image printing options with different pixel formats.
+'' PrintImage prints an entire image at once with a maximum size of 576x512
+'' PrintImage2 prints a slice of an image with a height of 8 or 24 and a maximum width of 576
+'' One or other may look better on your particular printer
+'
+'' Printer support method for pre-processing images to print
+'' Convert the bitmap supplied to an array of pixel values representing the luminance value of each original pixel
+'Sub ImageToBWIMage(bmp As Bitmap) As AnImage
+' Dim BC As BitmapCreator 'ignore
+' Dim W As Int = bmp.Width
+' Dim H As Int = bmp.Height
+' Dim pixels(W * H) As Byte
+'
+' For y = 0 To H - 1
+' For x = 0 To W - 1
+' Dim j As Int = bmp.GetPixel(x, y)
+' ' convert color to approximate luminance value
+' Dim col As ARGBColor
+' BC.ColorToARGB(j, col )
+' Dim lum As Int = col.r * 0.2 + col.b*0.1 + col.g*0.7
+' If lum> 255 Then lum = 255
+' ' save the pixel luminance
+' pixels(y*W + x) = lum
+' Next
+' Next
+' Dim ret As AnImage
+' ret.Width = bmp.Width
+' ret.Height = bmp.Height
+' ret.Data = pixels
+' Return ret
+'End Sub
+'
+'' Printer support method for pre-processing images to print
+'' Convert the array of luminance values to an array of 0s and 1s according to the threshold value
+'Sub ThresholdImage(img As AnImage, threshold As Int) As AnImage 'ignore
+' Dim pixels(img.Data.Length) As Byte
+' For i = 0 To pixels.Length - 1
+' Dim lum As Int = Bit.And(img.Data(i), 0xff) ' bytes are signed values
+' If lum < threshold Then
+' lum = 1
+' Else
+' lum = 0
+' End If
+' pixels(i) = lum
+' Next
+' Dim ret As AnImage
+' ret.Width = img.Width
+' ret.Height = img.Height
+' ret.Data = pixels
+' Return ret
+'End Sub
+'
+'' Printer support method for pre-processing images to print
+'' Convert the array of luminance values to a dithered array of 0s and 1s according to the threshold value
+'' The dithering algorithm is the simplest one-dimensional error diffusion algorithm
+'' Normally threshold should be 128 but some images may look better with a little more or less.
+'' This algorithm tends to produce vertical lines. DitherImage2D will probably look far better
+'Sub DitherImage1D(img As AnImage, threshold As Int) As AnImage 'ignore
+' Dim pixels(img.Data.Length) As Byte
+' Dim error As Int
+' For y = 0 To img.Height - 1
+' error = 0 ' reset on each new line
+' For x = 0 To img.Width - 1
+' Dim lum As Int = Bit.And(img.Data(y*img.Width + x), 0xff) ' bytes are signed values
+' lum = lum + error
+' If lum < threshold Then
+' error = lum
+' lum = 1
+' Else
+' error = lum - 255
+' lum = 0
+' End If
+' pixels(y*img.Width + x) = lum
+' Next
+' Next
+' Dim ret As AnImage
+' ret.Width = img.Width
+' ret.Height = img.Height
+' ret.Data = pixels
+' Return ret
+'End Sub
+'
+'
+'' Printer support method for pre-processing images to print
+'' Convert the array of luminance values to a dithered array of 0s and 1s according to the threshold value
+'' The dithering algorithm is the simplest two-dimensional error diffusion algorithm
+'' Normally threshold should be 128 but some images may look better with a little more or less.
+'' Anything more sophisticated might be overkill considering the image quality of most thermal printers
+'Sub DitherImage2D(img As AnImage, threshold As Int) As AnImage
+' Dim pixels(img.Data.Length) As Byte
+' Dim xerror As Int
+' Dim yerrors(img.Width) As Int
+' For i = 0 To yerrors.Length -1
+' yerrors(0) = 0
+' Next
+' For y = 0 To img.Height - 1
+' xerror = 0 ' reset on each new line
+' For x = 0 To img.Width - 1
+' Dim lum As Int = Bit.And(img.Data(y*img.Width + x), 0xff) ' bytes are signed values
+' lum = lum + xerror + yerrors(x)
+' If lum < threshold Then
+' xerror = lum/2
+' yerrors(x) = xerror
+' lum = 1
+' Else
+' xerror = (lum - 255)/2
+' yerrors(x) = xerror
+' lum = 0
+' End If
+' pixels(y*img.Width + x) = lum
+' Next
+' Next
+' Dim ret As AnImage
+' ret.Width = img.Width
+' ret.Height = img.Height
+' ret.Data = pixels
+' Return ret
+'End Sub
+'
+'
+'' GS v0 printing
+''---------------
+'
+'' Prints the given image at the specified height and width using the "GS v" command
+'' Image data is supplied as bytes each containing 8 bits of horizontal image data
+'' The top left of the image is Byte(0) and the bottom right is Byte(width*height-1)
+'' MSB of the byte is the leftmost image pixel, the LSB is the rightmost
+'' Maximum width is 72 bytes (576 bits), Maximum height is 512 bytes
+'' The printed pixels are square
+'' Returns status 0 : OK, -1 : too wide, -2 : too high, -3 : array too small
+'' The printer can take a long time to process the data and start printing
+'Public Sub PrintImage(img As AnImage) As Int
+' ' max width = 72 ' 72mm/576 bits wide
+' ' max height = 512 ' 64mm/512 bits high
+' If img.width > 72 Then Return -1
+' If img.height > 512 Then Return -2
+' If img.data.Length < img.width * img.height Then Return -3
+' Dim xh As Int = img.width / 256
+' Dim xl As Int = img.width - xh * 256
+' Dim yh As Int = img.height / 256
+' Dim yl As Int = img.height - yh * 256
+' Dim params(5) As Byte
+' params(0) = 0 '
+' params(1) = xl
+' params(2) = xh
+' params(3) = yl
+' params(4) = yh
+' WriteString(GS & "v0")
+' WriteBytes(params)
+' WriteBytes(img.data)
+' WriteString(CRLF)
+' Return 0
+'End Sub
+'
+'' Printer support method for pre-processing images to print by PrintImage
+'' Takes an array of image pixels and packs it for use with PrintImage
+'' Each byte in the imagedata array is a single pixel valued zero or non-zero for white and black
+'' The returned array is 8 x smaller and packs 8 horizontal black or white pixels into each byte
+'' If the horizontal size of the image is not a multiple of 8 it will be truncated so that it is.
+'Public Sub PackImage(imagedata As AnImage) As AnImage
+' Dim xbytes As Int = imagedata.width/8
+' Dim pixels(xbytes * imagedata.height) As Byte
+' Dim masks(8) As Byte
+' masks(0) = 0x80
+' masks(1) = 0x40
+' masks(2) = 0x20
+' masks(3) = 0x10
+' masks(4) = 0x08
+' masks(5) = 0x04
+' masks(6) = 0x02
+' masks(7) = 0x01
+' Dim index As Int = 0
+' For y = 0 To imagedata.Height - 1
+' For x = 0 To xbytes - 1
+' Dim xbyte As Byte = 0
+' For b = 0 To 7
+' ' get a pixel
+' Dim pix As Byte = imagedata.Data(index)
+' If pix <> 0 Then
+' xbyte = xbyte + masks(b)
+' End If
+' index = index + 1
+' Next
+' pixels(y*xbytes + x) = xbyte
+' Next
+' Next
+' Dim ret As AnImage
+' ret.Width = xbytes
+' ret.Height = imagedata.Height
+' ret.Data = pixels
+' Return ret
+'End Sub
+'
+'
+'' ESC * printing
+''---------------
+'
+'' Prints the given image slice at the specified height and width using the "ESC *" command
+'' Image data is supplied as bytes each containing 8 bits of vertical image data
+'' Pixels are not square, the width:height ratio varies with density and line height
+'' Returns status 0 = OK, -1 = too wide, -2 = too high, -3 = wrong array length
+'' Line spacing needs to be set to 0 if printing consecutive slices
+'' The printed pixels are not square, the ratio varies with the highdensity and dots24 parameter settings
+'' The highdensity parameter chooses high or low horizontal bit density when printed
+'' The dots24 parameter chooses 8 or 24 bit data slice height when printed
+'' Not(highdensity)
+'' Maximum width is 288 bits. Horizontal dpi is approximately 90
+'' MSB of each byte is the highest image pixel, the LSB is the lowest
+'' highdensity
+'' Maximum width is 576 bits. Horizontal dpi is approximately 180
+'' Not(dots24)
+'' Vertical printed height is 8 bits at approximately 60dpi
+'' One byte in the data Array represents one vertical line when printed
+'' Array size is the same as the width
+'' MSB of each byte is the highest image pixel, the LSB is the lowest
+'' dots24
+'' Vertical printed height is 24 bits at approximately 180dpi
+'' Three consecutive bytes in the data array represent one vertical 24bit line when printed
+'' Array size is 3 times the width
+'' Byte(n+0) is the highest, byte (n+2) us the lowest
+'' MSB of each byte is the highest image pixel, the LSB is the lowest
+'Public Sub PrintImage2(width As Int, data() As Byte, highdensity As Boolean, dotds24 As Boolean) As Int
+' Dim d As String = Chr(0)
+' If Not(highdensity) And Not(dotds24 ) Then
+' d = Chr(0)
+' If width > 288 Then Return -1
+' If data.Length <> width Then Return -3
+' Else If highdensity And Not(dotds24) Then
+' d = Chr(1)
+' If width > 576 Then Return -1
+' If data.Length <> width Then Return -3
+' Else If Not(highdensity) And dotds24 Then
+' d = Chr(32)
+' If width > 288 Then Return -1
+' If data.Length <> width*3 Then Return -3
+' Else ' highdensity And dotds24
+' d = Chr(33)
+' If width > 576 Then Return -1
+' If data.Length <> width*3 Then Return -3
+' End If
+' Dim xh As Int = width / 256
+' Dim xl As Int = width - xh * 256
+' Dim params(2) As Byte
+' params(0) = xl
+' params(1) = xh
+' WriteString(ESC & "*" & d)
+' WriteBytes(params)
+' WriteBytes(data)
+' WriteString(CRLF)
+' Return 0
+'End Sub
+'
+'' Printer support method for pre-processing images to print by PrintImage2
+'' Takes an array of image pixels and packs one slice of it for use with PrintImage2
+'' Each byte in the imagedata array is a single pixel valued zero or non-zero for white and black
+'' The returned array packs 8 vertical black or white pixels into each byte
+'' If dots24 is True then the slice is 24 pixels high otherwise it is 8 pixels high
+'Public Sub PackImageSlice(img As AnImage, slice As Int, dots24 As Boolean) As Byte()
+' Dim bytes As Int = img.width
+' If dots24 Then
+' Dim pixels(bytes * 3) As Byte
+' Dim slicestart As Int = slice * bytes * 8 * 3
+' Else
+' Dim pixels(bytes) As Byte
+' Dim slicestart As Int = slice * bytes * 8
+' End If
+'
+' Dim masks(8) As Byte
+' masks(0) = 0x80
+' masks(1) = 0x40
+' masks(2) = 0x20
+' masks(3) = 0x10
+' masks(4) = 0x08
+' masks(5) = 0x04
+' masks(6) = 0x02
+' masks(7) = 0x01
+' ' You could compress this into a single code block but I left it as two to make it more obvious what's happening
+' If dots24 Then
+' For x = 0 To bytes - 1
+' For s = 0 To 2
+' Dim xbyte As Byte = 0
+' For b = 0 To 7
+' ' get a pixel
+' Dim pix As Byte = img.Data(slicestart + ((b + s*8) * bytes) + x)
+' If pix <> 0 Then
+' xbyte = xbyte + masks(b)
+' End If
+' Next
+' pixels(x*3+s) = xbyte
+' Next
+' Next
+' Else
+' For x = 0 To bytes - 1
+' Dim xbyte As Byte = 0
+' For b = 0 To 7
+' ' get a pixel
+' Dim pix As Byte = img.Data(slicestart + (b * bytes) + x)
+' If pix <> 0 Then
+' xbyte = xbyte + masks(b)
+' End If
+' Next
+' pixels(x) = xbyte
+' Next
+' End If
+' Return pixels
+'End Sub
+'
+''----------------
+''Barcode commands
+''----------------
+'
+'' Set the height of a 2D bar code as number of dots vertically, 1 to 255
+'' Automatically resets to the default after printing the barcode
+'Public Sub setBarCodeHeight(height As Int)
+' WriteString(GS & "h")
+' Dim params(1) As Byte
+' params(0) = height
+' WriteBytes(params)
+'End Sub
+'
+'' Set the left inset of a 2D barcode, 0 to 255
+'' This does not reset on receipt of RESET
+'Public Sub setBarCodeLeft(left As Int)
+' WriteString(GS & "x")
+' Dim params(1) As Byte
+' params(0) = left
+' WriteBytes(params)
+'End Sub
+'
+'' Set the width of each bar in a 2D barcode. width value is 2 to 6, default is 3
+'' 2 = 0.250, 3 - 0.375, 4 = 0.560, 5 = 0.625, 6 = 0.75
+'' Resets to default after printing the barcode
+'Public Sub setBarCodeWidth(width As Int)
+' WriteString(GS & "w")
+' Dim params(1) As Byte
+' params(0) = width
+' WriteBytes(params)
+'End Sub
+'
+''Selects the printing position of HRI (Human Readable Interpretation) characters when printing a 2D bar code.
+''0 Not printed, 1 Above the bar code, 2 Below the bar code, 3 Both above And below the bar code
+'' Automatically resets to the default of 0 after printing the barcode
+'' The docs say this can be Chr(0, 1 2 or 3) or "0" "1" "2" or "3" but the numeric characters don't work
+'Public Sub setHriPosn(posn As Int)
+' WriteString(GS & "H")
+' Dim params(1) As Byte
+' params(0) = posn
+' WriteBytes(params)
+'End Sub
+'
+''Selects the font for HRI (Human Readable Interpretation) characters when printing a 2D bar code.
+''0 Font A (12 x 24), 1 Font B (9 x 17)
+'' Automatically resets to the default of 0 after printing the barcode
+'' The docs say this can be Chr(0 or 1) or "0" or "1" but the numeric characters don't work
+'Public Sub setHriFont(font As Int)
+' WriteString(GS & "f" & Chr(font))
+'End Sub
+'
+'' If given invalid data no barcode is printed, only strange characters
+'' CODABAR needs any of A,B,C or D at the start and end of the barcode. Some decoders may not like them anywhere else
+'' Bartype Code Number of characters Permitted values
+'' A | UPC-A | 11 or 12 characters | 0 to 9 | The 12th printed character is always the check digit
+'' B | UPC-E | 6 characters | 0 to 9 | The 12th printed character is always the check digit
+'' C | EAN13 | 12 or 13 characters | 0 to 9 | The 12th printed character is always the check digit
+'' D | EAN8 | 7 or 8 characters | 0 to 9 | The 8th printed character is always the check digit
+'' E | CODE39 | 1 or more characters | 0 to 9, A to Z, Space $ % + - . /
+'' F | ITF | 1 or more characters | 0 to 9 | even number of characters only
+'' G | CODABAR| 3 to 255 characters | 0 to 9, A to D, $ + - . / : | needs any of A,B,C or D at the start and end
+'' H | CODE93 | 1 to 255 characters | Same as CODE39
+'' I | CODE128| 2 to 255 characters | entire 7 bit ASCII set
+'Public Sub WriteBarCode(bartype As String, data As String)
+' Dim databytes() As Byte = data.GetBytes("ASCII")
+' Dim dlow As Int = databytes.Length
+' Log("Barcode " & bartype & ", Size " & dlow & ", " & data)
+' WriteString(GS & "k" & bartype.ToUpperCase.CharAt(0))
+' Dim params(1) As Byte
+' params(0) = dlow
+' WriteBytes(params)
+' WriteBytes(databytes)
+'End Sub
+'
+'' On my printer QR codes don't seem to be able to be decoded and on high ECs look obviously wrong :(
+'' size is 1 to 40, 0 is auto-size. Successive versions increase module size by 4 each side
+'' size = 1 is 21x21, 2 = 25x25 ... size 40 = 177x177
+'' EC is error correction level, "L"(7%) or "M"(15%) or "Q"(25%) or "H"(30%)
+'' scale is 1 to 8, 1 is smallest, 8 is largest
+'Public Sub WriteQRCode(size As Int, EC As String, scale As Int, data As String)
+' Dim databytes() As Byte = data.GetBytes("ISO-8859-1")
+' Dim dhigh As Int = databytes.Length / 256
+' Dim dlow As Int = databytes.Length - dhigh*256
+' Log("QR Code : Size " & size & ", EC " & EC & ", Scale " & scale & ", Size " & dlow & " " & dhigh & " : Data = " & data)
+' Dim params(3) As Byte
+' params(0) = scale
+' params(1) = dlow
+' params(2) = dhigh
+' WriteString(ESC & "Z" & Chr(size) & EC.ToUpperCase.CharAt(0))
+' WriteBytes(params)
+' WriteBytes(databytes)
+'End Sub
+'
+'
+''****************
+'' PRIVATE METHODS
+''****************
+'
+''-----------------------
+'' Internal Serial Events
+''-----------------------
+'
+'Private Sub Serial1_Connected (Success As Boolean)
+' If Success Then
+' Astream.Initialize(Serial1.InputStream, Serial1.OutputStream, "astream")
+' Connected = True
+' ConnectedError = ""
+' Serial1.Listen
+' Else
+' Connected = False
+' ConnectedError = LastException.Message
+' End If
+' If SubExists(CallBack, EventName & "_Connected") Then
+' CallSub2(CallBack, EventName & "_Connected", Success)
+' End If
+'End Sub
+'
+''----------------------------
+'' Internal AsyncStream Events
+''----------------------------
+'
+'Private Sub AStream_NewData (Buffer() As Byte)
+' If SubExists(CallBack, EventName & "_NewData") Then
+' CallSub2(CallBack, EventName & "_NewData", Buffer)
+' End If
+' Log("Data " & Buffer(0))
+'End Sub
+'
+'Private Sub AStream_Error
+' If SubExists(CallBack, EventName & "_Error") Then
+' CallSub(CallBack, EventName & "_Error")
+' End If
+'End Sub
+'
+'Private Sub AStream_Terminated
+' Connected = False
+' If SubExists(CallBack, EventName & "_Terminated") Then
+' CallSub(CallBack, EventName & "_Terminated")
+' End If
+'End Sub
+
+
+#IgnoreWarnings: 9
+' 9 = unused variable
+
+Sub Class_Globals
+ ' 1.0 Initial version
+ ' 2.0 Added FeedPaper, changed many WriteString(.." & Chr(number)) instances to WriteBytes(params)
+ ' This is to avoid Unicode code page transformations on some numbers > 32
+ ' Added PrintAndFeedPaper, setRelativePrintPosn,
+ ' Added user defined characters, DefineCustomCharacter, DeleteCustomCharacter and setUseCustomCharacters
+ ' Addedhelper methods CreateCustomCharacter, CreateLine, CreateBox and CreateCircle
+ Private Version As Double = 2.0 ' Printer class version
+
+ Type AnImage(Width As Int, Height As Int, Data() As Byte)
+
+ Private EventName As String 'ignore
+ Private CallBack As Object 'ignore
+
+ Private Serial1 As Serial
+ Private Astream As AsyncStreams
+ Private Connected As Boolean
+ Private ConnectedError As String
+
+ Dim ESC As String = Chr(27)
+ Dim FS As String = Chr(28)
+ Dim GS As String = Chr(29)
+
+ 'Bold and underline don't work well in reversed text
+ Dim UNREVERSE As String = GS & "B" & Chr(0)
+ Dim REVERSE As String = GS & "B" & Chr(1)
+
+ ' Character orientation. Print upside down from right margin
+ Dim UNINVERT As String = ESC & "{0"
+ Dim INVERT As String = ESC & "{1"
+
+ ' Character rotation clockwise. Not much use without also reversing the printed character sequence
+ Dim UNROTATE As String = ESC & "V0"
+ Dim ROTATE As String = ESC & "V1"
+
+ ' Horizontal tab
+ Dim HT As String = Chr(9)
+
+ ' Character underline
+ Dim ULINE0 As String = ESC & "-0"
+ Dim ULINE1 As String = ESC & "-1"
+ Dim ULINE2 As String = ESC & "-2"
+
+ ' Character emphasis
+ Dim BOLD As String = ESC & "E1"
+ Dim NOBOLD As String = ESC & "E0"
+
+ ' Character height and width
+ Dim SINGLE As String = GS & "!" & Chr(0x00)
+ Dim HIGH As String = GS & "!" & Chr(0x01)
+ Dim WIDE As String = GS & "!" & Chr(0x10)
+ Dim HIGHWIDE As String = GS & "!" & Chr(0x11)
+
+ ' Default settings
+ Private LEFTJUSTIFY As String = ESC & "a0"
+ Private LINEDEFAULT As String = ESC & "2"
+ Private LINSET0 As String = ESC & "$" & Chr(0x0) & Chr(0x0)
+ Private LMARGIN0 As String = GS & "L" & Chr(0x0) & Chr(0x0)
+ Private WIDTH0 As String = GS & "W" & Chr(0xff) & Chr(0xff)
+ Private CHARSPACING0 As String = ESC & " " & Chr(0)
+ Private CHARFONT0 As String = ESC & "M" & Chr(0)
+ Dim DEFAULTS As String = CHARSPACING0 & CHARFONT0 & LMARGIN0 & WIDTH0 & LINSET0 & LINEDEFAULT & LEFTJUSTIFY _
+ & UNINVERT & UNROTATE & UNREVERSE & NOBOLD & ULINE0
+
+End Sub
+
+'**********
+'PUBLIC API
+'**********
+
+'Initialize the object with the parent and event name
+Public Sub Initialize(vCallback As Object, vEventName As String)
+ EventName = vEventName
+ CallBack = vCallback
+ Serial1.Initialize("Serial1")
+ Connected = False
+ ConnectedError = ""
+End Sub
+
+' Returns any error raised by the last attempt to connect a printer
+Public Sub ConnectedErrorMsg As String
+ Return ConnectedError
+End Sub
+
+' Returns whether a printer is connected or not
+Public Sub IsConnected As Boolean
+ Return Connected
+End Sub
+
+' Returns whether Bluetooth is on or off
+Public Sub IsBluetoothOn As Boolean
+ Return Serial1.IsEnabled
+End Sub
+
+' Ask the user to connect to a printer and return whether she tried or not
+' If True then a subsequent Connected event will indicate success or failure
+Public Sub Connect As Boolean
+ 'leos
+' Serial1.Connect("88:6B:0F:3E:53:9E")
+' Return True
+ Try
+ If Starter.MAC_IMPRESORA = "0" Then
+ Dim PairedDevices As Map
+ PairedDevices = Serial1.GetPairedDevices
+ Dim l As List
+ l.Initialize
+ For i = 0 To PairedDevices.Size - 1
+ l.Add(PairedDevices.GetKeyAt(i))
+ Next
+ Dim Res As Int
+ Res = InputList(l, "Choose a printer", -1) 'show list with paired devices 'ignore
+ If Res <> DialogResponse.CANCEL Then
+ Serial1.Connect(PairedDevices.Get(l.Get(Res))) 'convert the name to mac address
+ 'Msgbox(PairedDevices.Get(l.Get(Res)),"mac")
+ Starter.mac_impresora = PairedDevices.Get(l.Get(Res))
+ Return True
+ End If
+ Return False
+ Else
+ Serial1.Connect(Starter.mac_impresora)
+ ' Starter.mac_impresora = colonia.MAC_IMPRESORA
+ Return True
+ End If
+ Catch
+ Log(LastException)
+ End Try
+End Sub
+
+' Disconnect the printer
+Public Sub DisConnect
+ Serial1.Disconnect
+ Connected = False
+End Sub
+
+' Reset the printer to the power on state
+Public Sub Reset
+ WriteString(ESC & "@")
+End Sub
+
+'--------------
+' Text Commands
+'--------------
+
+' Print any outstanding characters then feed the paper the specified number of units of 0.125mm
+' This is similar to changing LineSpacing before sending CRLF but this has a one off effect
+' A full character height is always fed even if units = 0. Units defines the excess over this minimum
+Public Sub PrintAndFeedPaper(units As Int)
+ WriteString(ESC & "J")
+ Dim params(1) As Byte
+ params(0) = units
+ WriteBytes(params)
+End Sub
+
+' Set the distance between characters
+Public Sub setCharacterSpacing(spacing As Int)
+ WriteString(ESC & " ")
+ Dim params(1) As Byte
+ params(0) = spacing
+ WriteBytes(params)
+End Sub
+
+' Set the left inset of the next line to be printed
+' Automatically resets to 0 for the following line
+' inset is specified in units of 0.125mm
+Public Sub setLeftInset(inset As Int)
+ Dim dh As Int = inset / 256
+ Dim dl As Int = inset - dh
+ WriteString(ESC & "$" & Chr(dl) & Chr(dh))
+ Dim params(2) As Byte
+ params(0) = dl
+ params(1) = dh
+ WriteBytes(params)
+End Sub
+
+' Set the left margin of the print area, must be the first item on a new line
+' margin is specified in units of 0.125mm
+' This affects barcodes as well as text
+Public Sub setLeftMargin(margin As Int)
+ Dim dh As Int = margin / 256
+ Dim dl As Int = margin - dh
+ WriteString(GS & "L")
+ Dim params(2) As Byte
+ params(0) = dl
+ params(1) = dh
+ WriteBytes(params)
+End Sub
+
+' Set the width of the print area, must be the first item on a new line
+' margin is specified in units of 0.125mm
+' This affects barcodes as well as text
+' This appears to function more like a right margin than a print area width when used with LeftMargin
+Public Sub setPrintWidth(width As Int)
+ Dim dh As Int = width / 256
+ Dim dl As Int = width - dh
+ WriteString(GS & "W")
+ Dim params(2) As Byte
+ params(0) = dl
+ params(1) = dh
+ WriteBytes(params)
+End Sub
+
+' Set the distance between lines in increments of 0.125mm
+' If spacing is < 0 then the default of 30 is set
+Public Sub setLineSpacing(spacing As Int)
+ If spacing < 0 Then
+ WriteString(ESC & "2")
+ Else
+ WriteString(ESC & "3")
+ Dim params(1) As Byte
+ params(0) = spacing
+ WriteBytes(params)
+ End If
+End Sub
+
+' Set the line content justification, must be the first item on a new line
+' 0 left, 1 centre, 2 right
+Public Sub setJustify(justify As Int)
+ WriteString(ESC & "a" & Chr(justify + 48))
+End Sub
+
+' Set the codepage of the printer
+' You need to look at the printer documentation to establish which codepages are supported
+Public Sub setCodePage(codepage As Int)
+ WriteString(ESC & "t")
+ Dim params(1) As Byte
+ params(0) = codepage
+ WriteBytes(params)
+End Sub
+
+' Select the size of the font for printing text. 0 = Font A (12 x 24), 1 = Font B (9 x 17)
+' For font B you may want to set the line spacing to a lower value than the default of 30
+' This affects only the size of printed characters. The code page determines the actual character set
+' On my printer setting UseCustomCharacters = while Font B is selected crashes the printer and turns it off
+Public Sub setCharacterFont(font As Int)
+ WriteString(ESC & "M" & Chr(Bit.And(1,font)))
+End Sub
+
+' Set the positions of the horizontal tabs
+' Each tab is specified as a number of character widths from the beginning of the line
+' There may be up to 32 tab positions specified each of size up to 255 characters
+' The printer default is that no tabs are defined
+Public Sub setTabPositions(tabs() As Int)
+ WriteString(ESC & "D")
+ Dim data(tabs.Length+1) As Byte
+ For i = 0 To tabs.Length - 1
+ data(i) = tabs(i)
+ Next
+ data(tabs.Length) = 0
+ WriteBytes(data)
+End Sub
+
+' Set print position relative to the current position using horizontal units of 0.125mm
+' relposn can be negative
+' Unless I have misundertood this doesn't work as documented on my printer
+' It only seems take effect at the beginning of a line as a one off effect
+Public Sub setRelativePrintPosn(relposn As Int)
+ Dim dh As Int = relposn / 256
+ Dim dl As Int = relposn - dh
+ WriteString(ESC & "\")
+ Dim params(2) As Byte
+ params(0) = dl
+ params(1) = dh
+ WriteBytes(params)
+End Sub
+
+' Send the contents of an array of bytes to the printer
+' Remember that if the printer is expecting text the bytes will be printed as characters in the current code page
+Public Sub WriteBytes(data() As Byte)
+ If Connected Then
+ Astream.Write(data)
+ End If
+End Sub
+
+' Send the string to the printer in IBM437 encoding which is the original PC DOS codepage
+' This is usually the default codepage for a printer and is CodePage = 0
+' Beware of using WriteString with Chr() to send numeric values as they may be affected by Unicode to codepage translations
+' Most character level operations are pre-defined as UPPERCASE string variables for easy concatenation with other string data
+Public Sub WriteString(data As String)
+ WriteString2(data, "IBM437")
+End Sub
+
+' Send the string to the printer in the specified encoding
+' You also need to set the printer to a matching encoding using the CodePage property
+' Beware of using WriteString2 with Chr() to send numeric values as they may be affected by codepage substitutions
+' Most character level operations are pre-defined as UPPERCASE string variables for easy concatenatipon with other string data
+Public Sub WriteString2(data As String, encoding As String)
+ Try
+ If Connected Then
+ Astream.Write(data.GetBytes(encoding))
+ End If
+ Catch
+ Log("Printer error : " & LastException.Message)
+ AStream_Error
+ End Try
+End Sub
+
+'-----------------------------------------
+' User defined character commands commands
+'-----------------------------------------
+
+' Delete the specified user defined character mode
+' This command deletes the pattern defined for the specified code in the font selected by ESC !
+' If the code is subsequently printed in custom character mode the present code page character is printed instead
+Public Sub DeleteCustomCharacter(charcode As Int)
+ WriteString(ESC & "?")
+ Dim params(1) As Byte
+ params(0) = charcode
+ WriteBytes(params)
+End Sub
+
+' Enable the user defined character mode if custom is True, revert to normal if custom is False
+' If a custom character has not been defined for a given character code then the default character for the present font is printed
+' FontA and FontB have separate definitions for custom characters
+' On my printer setting UseCustomCharacters = while Font B is selected crashes the printer and turns it off
+' Therefore the cuatom character routines have not been tested on ont B
+Public Sub setUseCustomCharacters(custom As Boolean)
+ If custom Then
+ WriteString(ESC & "%1")
+ Else
+ WriteString(ESC & "%0")
+ End If
+End Sub
+
+' Define a user defined character
+' The allowable character code range is the 95 characters) from ASCII code 32 (0x20) to 126 (0x7E)
+' Characters can be defined in either font A (12*24) or font B (9*17) as selected by present setting of CharacterFont
+' The programmer must ensure that the correct font size definition is used for the present setting of CharacterFont
+' The user-defined character definition is cleared when Reset is invoked or the printer is turned off
+' The vertical and horizontal printed resolution is approximaely 180dpi
+' Characters are always defined by sets of three bytes in the vertical direction and up to 9 or 12 sets horizontally
+' Each byte defines a vertical line of 8 dots. The MSB of each byte is the highest image pixel, the LSB is the lowest
+' Byte(0+n) defines the topmost third of the vertical line, Byte(1+n) is below and Byte(2+n) is the lowest
+' Set a bit to 1 to print a dot or 0 to not print a dot
+' If the lines to the right of the character are blank then there set of three bytes can be omiited from the byte array
+' When the user-defined characters are defined in font B (9*17) only the most significant bit of the 3rd byte of data is used
+' charcode defines the character code for the character being defined
+' bitdata is a Byte array containing the character definitiopn as described above.
+' If the length of bitdata is not a multiple of 3 the definition is ignored and a value of -1 returned
+Public Sub DefineCustomCharacter(charcode As Int, bitdata() As Byte) As Int
+ Dim excess As Int = bitdata.Length Mod 3
+ If excess <> 0 Then Return -1
+ Dim size As Int = bitdata.Length / 3
+ WriteString(ESC & "&")
+ Dim params(4) As Byte
+ params(0) = 3
+ params(1) = charcode
+ params(2) = charcode
+ params(3) = size
+ WriteBytes(params)
+ WriteBytes(bitdata)
+ Return 0
+End Sub
+
+' The third triangle point is hacked into spare bits keeping the generated Int human readable i hex for other shapes
+' The shape array contains the character shapes and characterfont is 0 for a 12*24 character andd 1 for a 9*17 character
+' Returns a Byte(36) for characterfont = 0 and a Byte(27) for characterfont = 1
+' The returned array can be directly passed to DefineCustomCharacter
+' To define a custom character requires specifying up to 288 data points
+' This is a lot of data and in most cases it is mainly white space
+' This method takes a character definition that defines only the shapes in the character that are to be printed black
+' It will be easier use the outputs from CreateLine, CreateTriangle, CreateBox and CreateCircle rather then building the actual Int values
+' Each shape is defined by a single Int value containing four parameters in hex format plugs some single bit flags
+' Taking the representation of the Int as eight hex characters numbered from the MS end as 0x01234567
+' 0 contains the shape to draw. 0 = Line, 1 = Box, 2 = Circle, 3 = Triangle
+' 1 contains a value between 0 and 0xF. This is either an X coordinate or for a circle the radius
+' 2 and 3 contain a value between 0 and 0x1F. This is either a Y coordinate or for a circle the quadrants to draw
+' 4 contains a value between 0 and 0xF. This is 0 for an empty shope or 1 for a filled shape
+' 5 contains a value between 0 and 0xF. This is an X coordinate
+' 5 and 6 contain a value between 0 and 0x1F. This is a Y coordinate
+' The coordinate 0,0 is at the top left of the character
+' Line
+' One point of the vector is contained in the top part of the Int and the other in the bottom half
+' To define a single point place its coordinates as both sr=start and end of a line
+' Box
+' The two X,Y coordinates specify the top left and bottom right corners of the box
+' Circle
+' The left X parameter is now the radius of the circle, the left Y is the quadrants to be drawn
+' The right X and Y parameters are the centre of the circle'
+' The quadrants to draw are bit ORed together, UpperRight = 0x1, LowerRight = 0x2, LowerLeft = 0x4, Upper Left = 0x8
+' Triangle
+' The left X and Y parameters are now one point of the triangle, the right X and Y parameters another point
+' The third triangle point is hacked into spare bits keeping the generated Int human readable in hex for the other shapes
+' The bit allocations of a shape are as follows. f = fill as 0 or 1, s = shape as 0 to 7, xn as 0 to 15, yn as 0 to 31
+' Shape 0 = line, 1 = box, 2 = triangle, 3 = circle, 4 to 7 = unused
+' fsss xxxx -yyy yyyy xxxx xxxx yyyy yyyy
+' 0000 220 0000 2222 1111 2221 1111
+' x0 y2 y0 x2 x1 y2 y1
+' The shape array contains the character shapes and characterfont is 0 for a 12*24 character andd 1 for a 9*17 character
+' Returns a Byte(36) for characterfont = 0 and a Byte(27) for characterfont = 1
+' The returned array can be directly passed to DefineCustomCharacter
+Public Sub CreateCustomCharacter(shapes() As Int, characterfont As Int) As Byte()
+ Dim masks(8) As Byte
+ masks(0) = 0x80
+ masks(1) = 0x40
+ masks(2) = 0x20
+ masks(3) = 0x10
+ masks(4) = 0x08
+ masks(5) = 0x04
+ masks(6) = 0x02
+ masks(7) = 0x01
+ ' rather than try to catch errors whenever we access this array we Dim it to the maximum possible values of X and Y
+ ' then copy the top left of it to the final character definition array of the correct size
+ Dim points(16,32) As Byte
+ ' initialise the character to all white
+ For x = 0 To 15
+ For y = 0 To 31
+ points(x,y) = 0
+ Next
+ Next
+ Dim size As Int = 12
+ If characterfont = 1 Then size = 9
+ Dim charbyes(size * 3) As Byte
+ For c = 0 To charbyes.Length - 1
+ charbyes(c) = 0
+ Next
+ ' set the points array from the shapes provided
+ For i = 0 To shapes.Length -1
+ Dim fill As Int = Bit.UnsignedShiftRight(Bit.And(0x80000000, shapes(i)), 31)
+ Dim shape As Int = Bit.UnsignedShiftRight(Bit.And(0x70000000, shapes(i)), 28)
+ Dim x0 As Int = Bit.UnsignedShiftRight(Bit.And(0x0f000000, shapes(i)), 24)
+ Dim y0 As Int = Bit.UnsignedShiftRight(Bit.And(0x001f0000, shapes(i)), 16)
+ Dim x1 As Int = Bit.UnsignedShiftRight(Bit.And(0x00000f00, shapes(i)), 8)
+ Dim y1 As Int = Bit.And(0x0000001f, shapes(i))
+ Dim x2 As Int = Bit.UnsignedShiftRight(Bit.And(0x0000f000, shapes(i)), 12)
+ Dim y2 As Int = Bit.UnsignedShiftRight(Bit.And(0x00e00000, shapes(i)), 18) + Bit.UnsignedShiftRight(Bit.And(0x000000e0, shapes(i)), 5)
+ ' The bit allocations of a shape are as follows. f = fill as 0 or 1, s = shape as 0 to 7, xn as 0 to 15, yn as 0 to 31
+ ' Shape 0 = line, 1 = box, 2 = triangle, 3 = circle, 4 to 7 = unused
+ ' fsss xxxx -yyy yyyy xxxx xxxx yyyy yyyy
+ ' 0000 220 0000 2222 1111 2221 1111
+ ' x0 y2 y0 x2 x1 y2 y1
+ Dim logmsg As String = ": Fill=" & fill & " : Points " & x0 & "," & y0 & " " & x1 & "," & y1 & " " & x2 & "," & y2
+ If shape = 3 Then
+ Log("Triangle " & logmsg)
+ PlotTriangle(x0, y0, x1, y1, x2, y2, points, fill)
+ else If shape = 2 Then
+ Log("Circle " & logmsg)
+ PlotCircle(x0, y0, x1, y1, points, fill)
+ Else If shape = 1 Then
+ Log("Box " & logmsg)
+ PlotBox(x0, y0, x1, y1, points, fill)
+ Else
+ Log("Line " & logmsg)
+ PlotLine(x0, y0, x1, y1, points)
+ End If
+ ' map the points array onto the character definition array
+ For x = 0 To size -1 ' 9 or 12 horizontal bytes
+ For y = 0 To 2 ' 3 vertical bytes
+ Dim bits As Byte = 0
+ For b = 0 To 7 ' 8 vertical bits
+ If points(x, y*8+b) <> 0 Then
+ bits = Bit.Or(bits, masks(b))
+ End If
+ Next
+ charbyes(x*3+y) = bits
+ Next
+ Next
+ Next
+ Return charbyes
+End Sub
+
+' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+' Create the value to draw a line in a custom character
+' The line starts at X0,Y0 and ends at X1,Y1
+Public Sub CreateLine(x0 As Int, y0 As Int, x1 As Int, y1 As Int) As Int
+ Dim line As Int = 0
+ line = line + Bit.ShiftLeft(Bit.And(0xf,x0), 24)
+ line = line + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)
+ line = line + Bit.ShiftLeft(Bit.And(0xf,x1), 8)
+ line = line + Bit.And(0x1f,y1)
+ Return line
+End Sub
+
+' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+' Create the value to draw a circle in a custom character
+' The circle is centred on X1,Y1 and the quadrants to draw are bit ORed together
+' UpperRight = 0x1, LowerRight = 0x2, LowerLeft = 0x4, Upper Left = 0x8
+Public Sub CreateCircle(radius As Int, quadrants As Int, x1 As Int, y1 As Int, fill As Boolean) As Int
+ Dim circle As Int = 0x20000000
+ If fill Then circle = circle + 0x80000000
+ circle = circle + Bit.ShiftLeft(radius, 24)
+ circle = circle + Bit.ShiftLeft(quadrants, 16)
+ circle = circle + Bit.ShiftLeft(x1, 8)
+ circle = circle + y1
+ Return circle
+End Sub
+
+
+' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+' Create the value to draw a triangle in a custom character
+' The triangles corners are at X0,Y0 X1,Y1 and X2,Y2
+Public Sub CreateTriangle(x0 As Int, y0 As Int, x1 As Int, y1 As Int, x2 As Int, y2 As Int, fill As Boolean) As Int
+ Dim triangle As Int = 0x30000000
+ If fill Then triangle = triangle + 0x80000000
+ triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x0), 24)
+ triangle = triangle + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)
+ triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x1), 8)
+ triangle = triangle + Bit.And(0x1f,y1)
+ triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x2), 12) ' extra X
+ triangle = triangle + Bit.ShiftLeft(Bit.And(0x7,y2), 5) ' extra Y lsbits * 3
+ triangle = triangle + Bit.ShiftLeft(Bit.And(0x18,y2), 18) ' extra Y msbits * 2
+ Return triangle
+End Sub
+
+' This is a higher level method that builds the Int values to pass to CreateCustomCharacter in the shapes array
+' Create the value to draw a box in a custom character
+' The box top left start is X0,Y0 and bottom right is X1,Y1
+Public Sub CreateBox(x0 As Int, y0 As Int, x1 As Int, y1 As Int, fill As Boolean) As Int
+ Dim box As Int = 0x10000000
+ If fill Then box = box + 0x80000000
+ box = box + Bit.ShiftLeft(Bit.And(0xf,x0), 24)
+ box = box + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)
+ box = box + Bit.ShiftLeft(Bit.And(0xf,x1), 8)
+ box = box + Bit.And(0x1f,y1)
+ Return box
+End Sub
+
+'-----------------------------------------
+' Private custom character drawing methods
+'-----------------------------------------
+
+Private Sub PlotTriangle(x0 As Int, y0 As Int, x1 As Int, y1 As Int, x2 As Int, y2 As Int, points(,) As Byte, Fill As Int)
+ ' This is a pretty crude algorithm, but it is simple, works and it isn't invoked often
+ PlotLine(x0, y0, x1, y1, points)
+ PlotLine(x1, y1, x2, y2, points)
+ PlotLine(x2, y2, x0, y0, points)
+ If Fill > 0 Then
+ FillTriangle(x0, y0, x1, y1, x2, y2, points)
+ End If
+End Sub
+
+Private Sub FillTriangle(x0 As Int, y0 As Int, x1 As Int, y1 As Int, x2 As Int, y2 As Int, points(,) As Byte)
+ ' first sort the three vertices by y-coordinate ascending so v0 Is the topmost vertice */
+ Dim tx, ty As Int
+ If y0 > y1 Then
+ tx = x0 : ty = y0
+ x0 = x1 : y0 = y1
+ x1 = tx : y1 = ty
+ End If
+ If y0 > y2 Then
+ tx = x0 : ty = y0
+ x0 = x2 : y0 = y2
+ x2 = tx : y2 = ty
+ End If
+ If y1 > y2 Then
+ tx = x1 : ty = y1
+ x1 = x2 : y1 = y2
+ x2 = tx : y2 = ty
+ End If
+
+ Dim dx0, dx1, dx2 As Double
+ Dim x3, x4, y3, y4 As Double
+ Dim inc As Int
+
+ If y1 - y0 > 0 Then dx0=(x1-x0)/(y1-y0) Else dx0=0
+ If y2 - y0 > 0 Then dx1=(x2-x0)/(y2-y0) Else dx1=0
+ If y2 - y1 > 0 Then dx2=(x2-x1)/(y2-y1) Else dx2=0
+ x3 = x0 : x4 = x0
+ y3 = y0 : y4 = y0
+ If dx0 > dx1 Then
+ While
+ Do While y3 <= y1
+ If x3 > x4 Then inc = -1 Else inc = 1
+ For x = x3 To x4 Step inc
+ points(x, y3) = 1
+ Next
+ y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4 = x4 + dx0
+ Loop
+ x4=x1
+ y4=y1
+ Do While y3 <= y2
+ If x3 > x4 Then inc = -1 Else inc = 1
+ For x = x3 To x4 Step inc
+ points(x ,y3) = 1
+ Next
+ y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4 = x4 + dx2
+ Loop
+ Else
+ While
+ Do While y3 <= y1
+ If x3 > x4 Then inc = -1 Else inc = 1
+ For x = x3 To x4 Step inc
+ points(x, y3) = 1
+ Next
+ y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4 = x4 +dx1
+ Loop
+ x3=x1
+ y3=y1
+ Do While y3<=y2
+ If x3 > x4 Then inc = -1 Else inc = 1
+ For x = x3 To x4 Step inc
+ points(x, y3) = 1
+ Next
+ y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4 = x4 + dx1
+ Loop
+ End If
+End Sub
+
+Private Sub PlotBox(x0 As Int, y0 As Int, x1 As Int, y1 As Int, points(,) As Byte, Fill As Int)
+ ' This is a pretty crude algorithm, but it is simple, works and itsn't invoked often
+ PlotLine(x0, y0, x0, y1, points)
+ PlotLine(x0, y0, x1, y0, points)
+ PlotLine(x1, y0, x1, y1, points)
+ PlotLine(x0, y1, x1, y1, points)
+ If Fill > 0 Then
+ For x = x0 To x1
+ PlotLine(x, y0, x, y1, points)
+ Next
+ End If
+End Sub
+
+
+Private Sub PlotCircle(radius As Int, quadrants As Int, x1 As Int, y1 As Int, points(,) As Byte, fill As Int)
+ ' This is a pretty crude algorithm, but it is simple, works and itsn't invoked often
+ Dim mask As Int = 1
+ For q = 3 To 0 Step -1
+ If Bit.And(quadrants, mask) <> 0 Then
+ For i = q*90 To q*90+90 Step 1
+ Dim x,y As Double
+ x = x1 - SinD(i)*radius
+ y = y1 - CosD(i)*radius
+ If fill > 0 Then
+ PlotLine(x1, y1, x, y, points)
+ Else
+ points(Round(x), Round(y)) = 1
+ End If
+ Next
+ End If
+ mask = Bit.ShiftLeft(mask, 1)
+ Next
+End Sub
+
+' Bresenham's line algorithm - see Wikipedia
+Private Sub PlotLine(x0 As Int, y0 As Int, x1 As Int, y1 As Int, points(,) As Byte )
+ If Abs(y1 - y0) < Abs(x1 - x0) Then
+ If x0 > x1 Then
+ PlotLineLow(x1, y1, x0, y0, points)
+ Else
+ PlotLineLow(x0, y0, x1, y1, points)
+ End If
+ Else
+ If y0 > y1 Then
+ PlotLineHigh(x1, y1, x0, y0, points)
+ Else
+ PlotLineHigh(x0, y0, x1, y1, points)
+ End If
+ End If
+End Sub
+
+Private Sub PlotLineHigh(x0 As Int, y0 As Int, x1 As Int, y1 As Int, points(,) As Byte )
+ Dim dx As Int = x1 - x0
+ Dim dy As Int = y1 - y0
+ Dim xi As Int = 1
+ If dx < 0 Then
+ xi = -1
+ dx = -dx
+ End If
+ Dim D As Int = 2*dx - dy
+ Dim x As Int = x0
+ For y = y0 To y1
+ points(x,y) = 1
+ If D > 0 Then
+ x = x + xi
+ D = D - 2*dy
+ End If
+ D = D + 2*dx
+ Next
+End Sub
+
+Private Sub PlotLineLow(x0 As Int, y0 As Int, x1 As Int,y1 As Int, points(,) As Byte )
+ Dim dx As Int = x1 - x0
+ Dim dy As Int = y1 - y0
+ Dim yi As Int = 1
+ If dy < 0 Then
+ yi = -1
+ dy = -dy
+ End If
+ Dim D As Int = 2*dy - dx
+ Dim y As Int = y0
+ For x = x0 To x1
+ points(x,y) = 1
+ If D > 0 Then
+ y = y + yi
+ D = D - 2*dx
+ End If
+ D = D + 2*dy
+ Next
+End Sub
+
+
+'-------------------
+' Image commands
+'-------------------
+' There are two different image printing options with different pixel formats.
+' PrintImage prints an entire image at once with a maximum size of 576x512
+' PrintImage2 prints a slice of an image with a height of 8 or 24 and a maximum width of 576
+' One or other may look better on your particular printer
+
+' Printer support method for pre-processing images to print
+' Convert the bitmap supplied to an array of pixel values representing the luminance value of each original pixel
+Sub ImageToBWIMage(bmp As Bitmap) As AnImage
+ Dim BC As BitmapCreator 'ignore
+ Dim W As Int = bmp.Width
+ Dim H As Int = bmp.Height
+ Dim pixels(W * H) As Byte
+
+ For y = 0 To H - 1
+ For x = 0 To W - 1
+ Dim j As Int = bmp.GetPixel(x, y)
+ ' convert color to approximate luminance value
+ Dim col As ARGBColor
+ BC.ColorToARGB(j, col )
+ Dim lum As Int = col.r * 0.2 + col.b*0.1 + col.g*0.7
+ If lum> 255 Then lum = 255
+ ' save the pixel luminance
+ pixels(y*W + x) = lum
+ Next
+ Next
+ Dim ret As AnImage
+ ret.Width = bmp.Width
+ ret.Height = bmp.Height
+ ret.Data = pixels
+ Return ret
+End Sub
+
+' Printer support method for pre-processing images to print
+' Convert the array of luminance values to an array of 0s and 1s according to the threshold value
+Sub ThresholdImage(img As AnImage, threshold As Int) As AnImage 'ignore
+ Dim pixels(img.Data.Length) As Byte
+ For i = 0 To pixels.Length - 1
+ Dim lum As Int = Bit.And(img.Data(i), 0xff) ' bytes are signed values
+ If lum < threshold Then
+ lum = 1
+ Else
+ lum = 0
+ End If
+ pixels(i) = lum
+ Next
+ Dim ret As AnImage
+ ret.Width = img.Width
+ ret.Height = img.Height
+ ret.Data = pixels
+ Return ret
+End Sub
+
+' Printer support method for pre-processing images to print
+' Convert the array of luminance values to a dithered array of 0s and 1s according to the threshold value
+' The dithering algorithm is the simplest one-dimensional error diffusion algorithm
+' Normally threshold should be 128 but some images may look better with a little more or less.
+' This algorithm tends to produce vertical lines. DitherImage2D will probably look far better
+Sub DitherImage1D(img As AnImage, threshold As Int) As AnImage 'ignore
+ Dim pixels(img.Data.Length) As Byte
+ Dim error As Int
+ For y = 0 To img.Height - 1
+ error = 0 ' reset on each new line
+ For x = 0 To img.Width - 1
+ Dim lum As Int = Bit.And(img.Data(y*img.Width + x), 0xff) ' bytes are signed values
+ lum = lum + error
+ If lum < threshold Then
+ error = lum
+ lum = 1
+ Else
+ error = lum - 255
+ lum = 0
+ End If
+ pixels(y*img.Width + x) = lum
+ Next
+ Next
+ Dim ret As AnImage
+ ret.Width = img.Width
+ ret.Height = img.Height
+ ret.Data = pixels
+ Return ret
+End Sub
+
+
+' Printer support method for pre-processing images to print
+' Convert the array of luminance values to a dithered array of 0s and 1s according to the threshold value
+' The dithering algorithm is the simplest two-dimensional error diffusion algorithm
+' Normally threshold should be 128 but some images may look better with a little more or less.
+' Anything more sophisticated might be overkill considering the image quality of most thermal printers
+Sub DitherImage2D(img As AnImage, threshold As Int) As AnImage
+ Dim pixels(img.Data.Length) As Byte
+ Dim xerror As Int
+ Dim yerrors(img.Width) As Int
+ For i = 0 To yerrors.Length -1
+ yerrors(0) = 0
+ Next
+ For y = 0 To img.Height - 1
+ xerror = 0 ' reset on each new line
+ For x = 0 To img.Width - 1
+ Dim lum As Int = Bit.And(img.Data(y*img.Width + x), 0xff) ' bytes are signed values
+ lum = lum + xerror + yerrors(x)
+ If lum < threshold Then
+ xerror = lum/2
+ yerrors(x) = xerror
+ lum = 1
+ Else
+ xerror = (lum - 255)/2
+ yerrors(x) = xerror
+ lum = 0
+ End If
+ pixels(y*img.Width + x) = lum
+ Next
+ Next
+ Dim ret As AnImage
+ ret.Width = img.Width
+ ret.Height = img.Height
+ ret.Data = pixels
+ Return ret
+End Sub
+
+
+' GS v0 printing
+'---------------
+
+' Prints the given image at the specified height and width using the "GS v" command
+' Image data is supplied as bytes each containing 8 bits of horizontal image data
+' The top left of the image is Byte(0) and the bottom right is Byte(width*height-1)
+' MSB of the byte is the leftmost image pixel, the LSB is the rightmost
+' Maximum width is 72 bytes (576 bits), Maximum height is 512 bytes
+' The printed pixels are square
+' Returns status 0 : OK, -1 : too wide, -2 : too high, -3 : array too small
+' The printer can take a long time to process the data and start printing
+Public Sub PrintImage(img As AnImage) As Int
+ ' max width = 72 ' 72mm/576 bits wide
+ ' max height = 512 ' 64mm/512 bits high
+ If img.width > 72 Then Return -1
+ If img.height > 512 Then Return -2
+ If img.data.Length < img.width * img.height Then Return -3
+ Dim xh As Int = img.width / 256
+ Dim xl As Int = img.width - xh * 256
+ Dim yh As Int = img.height / 256
+ Dim yl As Int = img.height - yh * 256
+ Dim params(5) As Byte
+ params(0) = 0 '
+ params(1) = xl
+ params(2) = xh
+ params(3) = yl
+ params(4) = yh
+ WriteString(GS & "v0")
+ WriteBytes(params)
+ WriteBytes(img.data)
+ WriteString(CRLF)
+ Return 0
+End Sub
+
+' Printer support method for pre-processing images to print by PrintImage
+' Takes an array of image pixels and packs it for use with PrintImage
+' Each byte in the imagedata array is a single pixel valued zero or non-zero for white and black
+' The returned array is 8 x smaller and packs 8 horizontal black or white pixels into each byte
+' If the horizontal size of the image is not a multiple of 8 it will be truncated so that it is.
+Public Sub PackImage(imagedata As AnImage) As AnImage
+ Dim xbytes As Int = imagedata.width/8
+ Dim pixels(xbytes * imagedata.height) As Byte
+ Dim masks(8) As Byte
+ masks(0) = 0x80
+ masks(1) = 0x40
+ masks(2) = 0x20
+ masks(3) = 0x10
+ masks(4) = 0x08
+ masks(5) = 0x04
+ masks(6) = 0x02
+ masks(7) = 0x01
+ Dim index As Int = 0
+ For y = 0 To imagedata.Height - 1
+ For x = 0 To xbytes - 1
+ Dim xbyte As Byte = 0
+ For b = 0 To 7
+ ' get a pixel
+ Dim pix As Byte = imagedata.Data(index)
+ If pix <> 0 Then
+ xbyte = xbyte + masks(b)
+ End If
+ index = index + 1
+ Next
+ pixels(y*xbytes + x) = xbyte
+ Next
+ Next
+ Dim ret As AnImage
+ ret.Width = xbytes
+ ret.Height = imagedata.Height
+ ret.Data = pixels
+ Return ret
+End Sub
+
+
+' ESC * printing
+'---------------
+
+' Prints the given image slice at the specified height and width using the "ESC *" command
+' Image data is supplied as bytes each containing 8 bits of vertical image data
+' Pixels are not square, the width:height ratio varies with density and line height
+' Returns status 0 = OK, -1 = too wide, -2 = too high, -3 = wrong array length
+' Line spacing needs to be set to 0 if printing consecutive slices
+' The printed pixels are not square, the ratio varies with the highdensity and dots24 parameter settings
+' The highdensity parameter chooses high or low horizontal bit density when printed
+' The dots24 parameter chooses 8 or 24 bit data slice height when printed
+' Not(highdensity)
+' Maximum width is 288 bits. Horizontal dpi is approximately 90
+' MSB of each byte is the highest image pixel, the LSB is the lowest
+' highdensity
+' Maximum width is 576 bits. Horizontal dpi is approximately 180
+' Not(dots24)
+' Vertical printed height is 8 bits at approximately 60dpi
+' One byte in the data Array represents one vertical line when printed
+' Array size is the same as the width
+' MSB of each byte is the highest image pixel, the LSB is the lowest
+' dots24
+' Vertical printed height is 24 bits at approximately 180dpi
+' Three consecutive bytes in the data array represent one vertical 24bit line when printed
+' Array size is 3 times the width
+' Byte(n+0) is the highest, byte (n+2) us the lowest
+' MSB of each byte is the highest image pixel, the LSB is the lowest
+Public Sub PrintImage2(width As Int, data() As Byte, highdensity As Boolean, dotds24 As Boolean) As Int
+ Dim d As String = Chr(0)
+ If Not(highdensity) And Not(dotds24 ) Then
+ d = Chr(0)
+ If width > 288 Then Return -1
+ If data.Length <> width Then Return -3
+ Else If highdensity And Not(dotds24) Then
+ d = Chr(1)
+ If width > 576 Then Return -1
+ If data.Length <> width Then Return -3
+ Else If Not(highdensity) And dotds24 Then
+ d = Chr(32)
+ If width > 288 Then Return -1
+ If data.Length <> width*3 Then Return -3
+ Else ' highdensity And dotds24
+ d = Chr(33)
+ If width > 576 Then Return -1
+ If data.Length <> width*3 Then Return -3
+ End If
+ Dim xh As Int = width / 256
+ Dim xl As Int = width - xh * 256
+ Dim params(2) As Byte
+ params(0) = xl
+ params(1) = xh
+ WriteString(ESC & "*" & d)
+ WriteBytes(params)
+ WriteBytes(data)
+ WriteString(CRLF)
+ Return 0
+End Sub
+
+' Printer support method for pre-processing images to print by PrintImage2
+' Takes an array of image pixels and packs one slice of it for use with PrintImage2
+' Each byte in the imagedata array is a single pixel valued zero or non-zero for white and black
+' The returned array packs 8 vertical black or white pixels into each byte
+' If dots24 is True then the slice is 24 pixels high otherwise it is 8 pixels high
+Public Sub PackImageSlice(img As AnImage, slice As Int, dots24 As Boolean) As Byte()
+ Dim bytes As Int = img.width
+ If dots24 Then
+ Dim pixels(bytes * 3) As Byte
+ Dim slicestart As Int = slice * bytes * 8 * 3
+ Else
+ Dim pixels(bytes) As Byte
+ Dim slicestart As Int = slice * bytes * 8
+ End If
+
+ Dim masks(8) As Byte
+ masks(0) = 0x80
+ masks(1) = 0x40
+ masks(2) = 0x20
+ masks(3) = 0x10
+ masks(4) = 0x08
+ masks(5) = 0x04
+ masks(6) = 0x02
+ masks(7) = 0x01
+ ' You could compress this into a single code block but I left it as two to make it more obvious what's happening
+ If dots24 Then
+ For x = 0 To bytes - 1
+ For s = 0 To 2
+ Dim xbyte As Byte = 0
+ For b = 0 To 7
+ ' get a pixel
+ Dim pix As Byte = img.Data(slicestart + ((b + s*8) * bytes) + x)
+ If pix <> 0 Then
+ xbyte = xbyte + masks(b)
+ End If
+ Next
+ pixels(x*3+s) = xbyte
+ Next
+ Next
+ Else
+ For x = 0 To bytes - 1
+ Dim xbyte As Byte = 0
+ For b = 0 To 7
+ ' get a pixel
+ Dim pix As Byte = img.Data(slicestart + (b * bytes) + x)
+ If pix <> 0 Then
+ xbyte = xbyte + masks(b)
+ End If
+ Next
+ pixels(x) = xbyte
+ Next
+ End If
+ Return pixels
+End Sub
+
+'----------------
+'Barcode commands
+'----------------
+
+' Set the height of a 2D bar code as number of dots vertically, 1 to 255
+' Automatically resets to the default after printing the barcode
+Public Sub setBarCodeHeight(height As Int)
+ WriteString(GS & "h")
+ Dim params(1) As Byte
+ params(0) = height
+ WriteBytes(params)
+End Sub
+
+' Set the left inset of a 2D barcode, 0 to 255
+' This does not reset on receipt of RESET
+Public Sub setBarCodeLeft(left As Int)
+ WriteString(GS & "x")
+ Dim params(1) As Byte
+ params(0) = left
+ WriteBytes(params)
+End Sub
+
+' Set the width of each bar in a 2D barcode. width value is 2 to 6, default is 3
+' 2 = 0.250, 3 - 0.375, 4 = 0.560, 5 = 0.625, 6 = 0.75
+' Resets to default after printing the barcode
+Public Sub setBarCodeWidth(width As Int)
+ WriteString(GS & "w")
+ Dim params(1) As Byte
+ params(0) = width
+ WriteBytes(params)
+End Sub
+
+'Selects the printing position of HRI (Human Readable Interpretation) characters when printing a 2D bar code.
+'0 Not printed, 1 Above the bar code, 2 Below the bar code, 3 Both above And below the bar code
+' Automatically resets to the default of 0 after printing the barcode
+' The docs say this can be Chr(0, 1 2 or 3) or "0" "1" "2" or "3" but the numeric characters don't work
+Public Sub setHriPosn(posn As Int)
+ WriteString(GS & "H")
+ Dim params(1) As Byte
+ params(0) = posn
+ WriteBytes(params)
+End Sub
+
+'Selects the font for HRI (Human Readable Interpretation) characters when printing a 2D bar code.
+'0 Font A (12 x 24), 1 Font B (9 x 17)
+' Automatically resets to the default of 0 after printing the barcode
+' The docs say this can be Chr(0 or 1) or "0" or "1" but the numeric characters don't work
+Public Sub setHriFont(font As Int)
+ WriteString(GS & "f" & Chr(font))
+End Sub
+
+' If given invalid data no barcode is printed, only strange characters
+' CODABAR needs any of A,B,C or D at the start and end of the barcode. Some decoders may not like them anywhere else
+' Bartype Code Number of characters Permitted values
+' A | UPC-A | 11 or 12 characters | 0 to 9 | The 12th printed character is always the check digit
+' B | UPC-E | 6 characters | 0 to 9 | The 12th printed character is always the check digit
+' C | EAN13 | 12 or 13 characters | 0 to 9 | The 12th printed character is always the check digit
+' D | EAN8 | 7 or 8 characters | 0 to 9 | The 8th printed character is always the check digit
+' E | CODE39 | 1 or more characters | 0 to 9, A to Z, Space $ % + - . /
+' F | ITF | 1 or more characters | 0 to 9 | even number of characters only
+' G | CODABAR| 3 to 255 characters | 0 to 9, A to D, $ + - . / : | needs any of A,B,C or D at the start and end
+' H | CODE93 | 1 to 255 characters | Same as CODE39
+' I | CODE128| 2 to 255 characters | entire 7 bit ASCII set
+Public Sub WriteBarCode(bartype As String, data As String)
+ Dim databytes() As Byte = data.GetBytes("ASCII")
+ Dim dlow As Int = databytes.Length
+ Log("Barcode " & bartype & ", Size " & dlow & ", " & data)
+ WriteString(GS & "k" & bartype.ToUpperCase.CharAt(0))
+ Dim params(1) As Byte
+ params(0) = dlow
+ WriteBytes(params)
+ WriteBytes(databytes)
+End Sub
+
+' On my printer QR codes don't seem to be able to be decoded and on high ECs look obviously wrong :(
+' size is 1 to 40, 0 is auto-size. Successive versions increase module size by 4 each side
+' size = 1 is 21x21, 2 = 25x25 ... size 40 = 177x177
+' EC is error correction level, "L"(7%) or "M"(15%) or "Q"(25%) or "H"(30%)
+' scale is 1 to 8, 1 is smallest, 8 is largest
+Public Sub WriteQRCode(size As Int, EC As String, scale As Int, data As String)
+ Dim databytes() As Byte = data.GetBytes("ISO-8859-1")
+ Dim dhigh As Int = databytes.Length / 256
+ Dim dlow As Int = databytes.Length - dhigh*256
+ Log("QR Code : Size " & size & ", EC " & EC & ", Scale " & scale & ", Size " & dlow & " " & dhigh & " : Data = " & data)
+ Dim params(3) As Byte
+ params(0) = scale
+ params(1) = dlow
+ params(2) = dhigh
+ WriteString(ESC & "Z" & Chr(size) & EC.ToUpperCase.CharAt(0))
+ WriteBytes(params)
+ WriteBytes(databytes)
+End Sub
+
+
+'****************
+' PRIVATE METHODS
+'****************
+
+'-----------------------
+' Internal Serial Events
+'-----------------------
+
+Private Sub Serial1_Connected (Success As Boolean)
+ If Success Then
+ Astream.Initialize(Serial1.InputStream, Serial1.OutputStream, "astream")
+ Connected = True
+ ConnectedError = ""
+ Serial1.Listen
+ Else
+ Connected = False
+ ConnectedError = LastException.Message
+ End If
+ If SubExists(CallBack, EventName & "_Connected") Then
+ CallSub2(CallBack, EventName & "_Connected", Success)
+ End If
+End Sub
+
+'----------------------------
+' Internal AsyncStream Events
+'----------------------------
+
+Private Sub AStream_NewData (Buffer() As Byte)
+ If SubExists(CallBack, EventName & "_NewData") Then
+ CallSub2(CallBack, EventName & "_NewData", Buffer)
+ End If
+ Log("Data " & Buffer(0))
+End Sub
+
+Private Sub AStream_Error
+ If SubExists(CallBack, EventName & "_Error") Then
+ CallSub(CallBack, EventName & "_Error")
+ End If
+End Sub
+
+Private Sub AStream_Terminated
+ Connected = False
+ If SubExists(CallBack, EventName & "_Terminated") Then
+ CallSub(CallBack, EventName & "_Terminated")
+ End If
+End Sub
diff --git a/B4A/Files/2023.png b/B4A/Files/2023.png
new file mode 100644
index 0000000..0cc278b
Binary files /dev/null and b/B4A/Files/2023.png differ
diff --git a/B4A/Files/alert2.png b/B4A/Files/alert2.png
new file mode 100644
index 0000000..44d3b7e
Binary files /dev/null and b/B4A/Files/alert2.png differ
diff --git a/B4A/Files/alerta.jpg b/B4A/Files/alerta.jpg
new file mode 100644
index 0000000..5edc6ba
Binary files /dev/null and b/B4A/Files/alerta.jpg differ
diff --git a/B4A/Files/amigos.jpg b/B4A/Files/amigos.jpg
new file mode 100644
index 0000000..2ed8649
Binary files /dev/null and b/B4A/Files/amigos.jpg differ
diff --git a/B4A/Files/atras.png b/B4A/Files/atras.png
new file mode 100644
index 0000000..1a5af22
Binary files /dev/null and b/B4A/Files/atras.png differ
diff --git a/B4A/Files/atras1.png b/B4A/Files/atras1.png
new file mode 100644
index 0000000..25e195c
Binary files /dev/null and b/B4A/Files/atras1.png differ
diff --git a/B4A/Files/buscar.bal b/B4A/Files/buscar.bal
new file mode 100644
index 0000000..afb40f4
Binary files /dev/null and b/B4A/Files/buscar.bal differ
diff --git a/B4A/Files/check.bal b/B4A/Files/check.bal
new file mode 100644
index 0000000..4061605
Binary files /dev/null and b/B4A/Files/check.bal differ
diff --git a/B4A/Files/checklist.bal b/B4A/Files/checklist.bal
new file mode 100644
index 0000000..9462b17
Binary files /dev/null and b/B4A/Files/checklist.bal differ
diff --git a/B4A/Files/cliente.bal b/B4A/Files/cliente.bal
new file mode 100644
index 0000000..1eed016
Binary files /dev/null and b/B4A/Files/cliente.bal differ
diff --git a/B4A/Files/clientes.bal b/B4A/Files/clientes.bal
new file mode 100644
index 0000000..73efa8e
Binary files /dev/null and b/B4A/Files/clientes.bal differ
diff --git a/B4A/Files/dbc.png b/B4A/Files/dbc.png
new file mode 100644
index 0000000..1519c8c
Binary files /dev/null and b/B4A/Files/dbc.png differ
diff --git a/B4A/Files/derecha.png b/B4A/Files/derecha.png
new file mode 100644
index 0000000..58a1e82
Binary files /dev/null and b/B4A/Files/derecha.png differ
diff --git a/B4A/Files/derecha1.png b/B4A/Files/derecha1.png
new file mode 100644
index 0000000..ed3087b
Binary files /dev/null and b/B4A/Files/derecha1.png differ
diff --git a/B4A/Files/detalle_promo.bal b/B4A/Files/detalle_promo.bal
new file mode 100644
index 0000000..0376a1d
Binary files /dev/null and b/B4A/Files/detalle_promo.bal differ
diff --git a/B4A/Files/detalleventa.bal b/B4A/Files/detalleventa.bal
new file mode 100644
index 0000000..80f96b4
Binary files /dev/null and b/B4A/Files/detalleventa.bal differ
diff --git a/B4A/Files/durakelo1.png b/B4A/Files/durakelo1.png
new file mode 100644
index 0000000..00cb434
Binary files /dev/null and b/B4A/Files/durakelo1.png differ
diff --git a/B4A/Files/engrane.jpg b/B4A/Files/engrane.jpg
new file mode 100644
index 0000000..01159de
Binary files /dev/null and b/B4A/Files/engrane.jpg differ
diff --git a/B4A/Files/folioabono.bal b/B4A/Files/folioabono.bal
new file mode 100644
index 0000000..0cac595
Binary files /dev/null and b/B4A/Files/folioabono.bal differ
diff --git a/B4A/Files/fondo_kmt.jpg b/B4A/Files/fondo_kmt.jpg
new file mode 100644
index 0000000..4055faf
Binary files /dev/null and b/B4A/Files/fondo_kmt.jpg differ
diff --git a/B4A/Files/foto.bal b/B4A/Files/foto.bal
new file mode 100644
index 0000000..9cf56b7
Binary files /dev/null and b/B4A/Files/foto.bal differ
diff --git a/B4A/Files/frintal.png b/B4A/Files/frintal.png
new file mode 100644
index 0000000..b0c6420
Binary files /dev/null and b/B4A/Files/frintal.png differ
diff --git a/B4A/Files/frontal1.gif b/B4A/Files/frontal1.gif
new file mode 100644
index 0000000..06306db
Binary files /dev/null and b/B4A/Files/frontal1.gif differ
diff --git a/B4A/Files/frontal1.png b/B4A/Files/frontal1.png
new file mode 100644
index 0000000..5ed81e3
Binary files /dev/null and b/B4A/Files/frontal1.png differ
diff --git a/B4A/Files/guardagestion.bal b/B4A/Files/guardagestion.bal
new file mode 100644
index 0000000..9156db1
Binary files /dev/null and b/B4A/Files/guardagestion.bal differ
diff --git a/B4A/Files/guna_viejo.png b/B4A/Files/guna_viejo.png
new file mode 100644
index 0000000..a0c3190
Binary files /dev/null and b/B4A/Files/guna_viejo.png differ
diff --git a/B4A/Files/guna_viejo2.png b/B4A/Files/guna_viejo2.png
new file mode 100644
index 0000000..d937027
Binary files /dev/null and b/B4A/Files/guna_viejo2.png differ
diff --git a/B4A/Files/historico.bal b/B4A/Files/historico.bal
new file mode 100644
index 0000000..929cd75
Binary files /dev/null and b/B4A/Files/historico.bal differ
diff --git a/B4A/Files/infonavit1.jpg b/B4A/Files/infonavit1.jpg
new file mode 100644
index 0000000..b8cce4c
Binary files /dev/null and b/B4A/Files/infonavit1.jpg differ
diff --git a/B4A/Files/intmex_logo_192x192.jpg b/B4A/Files/intmex_logo_192x192.jpg
new file mode 100644
index 0000000..e798416
Binary files /dev/null and b/B4A/Files/intmex_logo_192x192.jpg differ
diff --git a/B4A/Files/intmex_logo_192x192.png b/B4A/Files/intmex_logo_192x192.png
new file mode 100644
index 0000000..e798416
Binary files /dev/null and b/B4A/Files/intmex_logo_192x192.png differ
diff --git a/B4A/Files/intmex_logo_192x192___.jpg b/B4A/Files/intmex_logo_192x192___.jpg
new file mode 100644
index 0000000..8b31f85
Binary files /dev/null and b/B4A/Files/intmex_logo_192x192___.jpg differ
diff --git a/B4A/Files/intmex_logo_192x192___.png b/B4A/Files/intmex_logo_192x192___.png
new file mode 100644
index 0000000..8b31f85
Binary files /dev/null and b/B4A/Files/intmex_logo_192x192___.png differ
diff --git a/B4A/Files/inventarios.jpg b/B4A/Files/inventarios.jpg
new file mode 100644
index 0000000..50fdc17
Binary files /dev/null and b/B4A/Files/inventarios.jpg differ
diff --git a/B4A/Files/itembuttonblue.png b/B4A/Files/itembuttonblue.png
new file mode 100644
index 0000000..af4dc0b
Binary files /dev/null and b/B4A/Files/itembuttonblue.png differ
diff --git a/B4A/Files/izquierda.png b/B4A/Files/izquierda.png
new file mode 100644
index 0000000..bb268dc
Binary files /dev/null and b/B4A/Files/izquierda.png differ
diff --git a/B4A/Files/izquierda1.png b/B4A/Files/izquierda1.png
new file mode 100644
index 0000000..20b1534
Binary files /dev/null and b/B4A/Files/izquierda1.png differ
diff --git a/B4A/Files/kelloggs.png b/B4A/Files/kelloggs.png
new file mode 100644
index 0000000..4debf15
Binary files /dev/null and b/B4A/Files/kelloggs.png differ
diff --git a/B4A/Files/keymon_logo.png b/B4A/Files/keymon_logo.png
new file mode 100644
index 0000000..945e546
Binary files /dev/null and b/B4A/Files/keymon_logo.png differ
diff --git a/B4A/Files/kmt.db b/B4A/Files/kmt.db
new file mode 100644
index 0000000..e7c0b39
Binary files /dev/null and b/B4A/Files/kmt.db differ
diff --git a/B4A/Files/kmt2.db b/B4A/Files/kmt2.db
new file mode 100644
index 0000000..30476e9
Binary files /dev/null and b/B4A/Files/kmt2.db differ
diff --git a/B4A/Files/kmt3.db b/B4A/Files/kmt3.db
new file mode 100644
index 0000000..b744c2a
Binary files /dev/null and b/B4A/Files/kmt3.db differ
diff --git a/B4A/Files/login.bal b/B4A/Files/login.bal
new file mode 100644
index 0000000..8e2ed01
Binary files /dev/null and b/B4A/Files/login.bal differ
diff --git a/B4A/Files/logo sanfer.jpg b/B4A/Files/logo sanfer.jpg
new file mode 100644
index 0000000..791fe4f
Binary files /dev/null and b/B4A/Files/logo sanfer.jpg differ
diff --git a/B4A/Files/logo_exitus1.jpg b/B4A/Files/logo_exitus1.jpg
new file mode 100644
index 0000000..b8cce4c
Binary files /dev/null and b/B4A/Files/logo_exitus1.jpg differ
diff --git a/B4A/Files/logo_mariana.jpg b/B4A/Files/logo_mariana.jpg
new file mode 100644
index 0000000..8803ba9
Binary files /dev/null and b/B4A/Files/logo_mariana.jpg differ
diff --git a/B4A/Files/mainpage.bal b/B4A/Files/mainpage.bal
new file mode 100644
index 0000000..acba0d3
Binary files /dev/null and b/B4A/Files/mainpage.bal differ
diff --git a/B4A/Files/malo.jpg b/B4A/Files/malo.jpg
new file mode 100644
index 0000000..bbf3c87
Binary files /dev/null and b/B4A/Files/malo.jpg differ
diff --git a/B4A/Files/mapa.bal b/B4A/Files/mapa.bal
new file mode 100644
index 0000000..08ee427
Binary files /dev/null and b/B4A/Files/mapa.bal differ
diff --git a/B4A/Files/mapa_cliente.bal b/B4A/Files/mapa_cliente.bal
new file mode 100644
index 0000000..18c9bbd
Binary files /dev/null and b/B4A/Files/mapa_cliente.bal differ
diff --git a/B4A/Files/mapa_rutas.bal b/B4A/Files/mapa_rutas.bal
new file mode 100644
index 0000000..dfcb856
Binary files /dev/null and b/B4A/Files/mapa_rutas.bal differ
diff --git a/B4A/Files/mariana.jpg b/B4A/Files/mariana.jpg
new file mode 100644
index 0000000..d294384
Binary files /dev/null and b/B4A/Files/mariana.jpg differ
diff --git a/B4A/Files/mariana_logo_192x192.jpg b/B4A/Files/mariana_logo_192x192.jpg
new file mode 100644
index 0000000..73ab234
Binary files /dev/null and b/B4A/Files/mariana_logo_192x192.jpg differ
diff --git a/B4A/Files/marker-azul.png b/B4A/Files/marker-azul.png
new file mode 100644
index 0000000..362226c
Binary files /dev/null and b/B4A/Files/marker-azul.png differ
diff --git a/B4A/Files/marker-azul1.png b/B4A/Files/marker-azul1.png
new file mode 100644
index 0000000..a8852c7
Binary files /dev/null and b/B4A/Files/marker-azul1.png differ
diff --git a/B4A/Files/marker-azul2.png b/B4A/Files/marker-azul2.png
new file mode 100644
index 0000000..e5348be
Binary files /dev/null and b/B4A/Files/marker-azul2.png differ
diff --git a/B4A/Files/marker-azul3.png b/B4A/Files/marker-azul3.png
new file mode 100644
index 0000000..4584195
Binary files /dev/null and b/B4A/Files/marker-azul3.png differ
diff --git a/B4A/Files/marker-azul4.png b/B4A/Files/marker-azul4.png
new file mode 100644
index 0000000..152a0da
Binary files /dev/null and b/B4A/Files/marker-azul4.png differ
diff --git a/B4A/Files/marker-azul5.png b/B4A/Files/marker-azul5.png
new file mode 100644
index 0000000..b498110
Binary files /dev/null and b/B4A/Files/marker-azul5.png differ
diff --git a/B4A/Files/marker-rojo.png b/B4A/Files/marker-rojo.png
new file mode 100644
index 0000000..271c190
Binary files /dev/null and b/B4A/Files/marker-rojo.png differ
diff --git a/B4A/Files/marker-rojo1.png b/B4A/Files/marker-rojo1.png
new file mode 100644
index 0000000..1f3754d
Binary files /dev/null and b/B4A/Files/marker-rojo1.png differ
diff --git a/B4A/Files/marker-rojo2.png b/B4A/Files/marker-rojo2.png
new file mode 100644
index 0000000..23ca769
Binary files /dev/null and b/B4A/Files/marker-rojo2.png differ
diff --git a/B4A/Files/marker-verde.png b/B4A/Files/marker-verde.png
new file mode 100644
index 0000000..48d8316
Binary files /dev/null and b/B4A/Files/marker-verde.png differ
diff --git a/B4A/Files/no_venta.bal b/B4A/Files/no_venta.bal
new file mode 100644
index 0000000..c0aeb8a
Binary files /dev/null and b/B4A/Files/no_venta.bal differ
diff --git a/B4A/Files/nuevocliente.bal b/B4A/Files/nuevocliente.bal
new file mode 100644
index 0000000..b46991c
Binary files /dev/null and b/B4A/Files/nuevocliente.bal differ
diff --git a/B4A/Files/panel_pick_ciego.bal b/B4A/Files/panel_pick_ciego.bal
new file mode 100644
index 0000000..ca5109d
Binary files /dev/null and b/B4A/Files/panel_pick_ciego.bal differ
diff --git a/B4A/Files/pedido.bal b/B4A/Files/pedido.bal
new file mode 100644
index 0000000..defff34
Binary files /dev/null and b/B4A/Files/pedido.bal differ
diff --git a/B4A/Files/planfia_logo.png b/B4A/Files/planfia_logo.png
new file mode 100644
index 0000000..680ffd0
Binary files /dev/null and b/B4A/Files/planfia_logo.png differ
diff --git a/B4A/Files/planfia_logo_old.png b/B4A/Files/planfia_logo_old.png
new file mode 100644
index 0000000..4adb130
Binary files /dev/null and b/B4A/Files/planfia_logo_old.png differ
diff --git a/B4A/Files/planfia_logo_old2.png b/B4A/Files/planfia_logo_old2.png
new file mode 100644
index 0000000..316f337
Binary files /dev/null and b/B4A/Files/planfia_logo_old2.png differ
diff --git a/B4A/Files/principal.bal b/B4A/Files/principal.bal
new file mode 100644
index 0000000..e3e9238
Binary files /dev/null and b/B4A/Files/principal.bal differ
diff --git a/B4A/Files/proditem.bal b/B4A/Files/proditem.bal
new file mode 100644
index 0000000..210f3ed
Binary files /dev/null and b/B4A/Files/proditem.bal differ
diff --git a/B4A/Files/proditem2.bal b/B4A/Files/proditem2.bal
new file mode 100644
index 0000000..416efee
Binary files /dev/null and b/B4A/Files/proditem2.bal differ
diff --git a/B4A/Files/productos.bal b/B4A/Files/productos.bal
new file mode 100644
index 0000000..f1fc784
Binary files /dev/null and b/B4A/Files/productos.bal differ
diff --git a/B4A/Files/profina.jpg b/B4A/Files/profina.jpg
new file mode 100644
index 0000000..f092f0f
Binary files /dev/null and b/B4A/Files/profina.jpg differ
diff --git a/B4A/Files/profina.png b/B4A/Files/profina.png
new file mode 100644
index 0000000..d307055
Binary files /dev/null and b/B4A/Files/profina.png differ
diff --git a/B4A/Files/sync.png b/B4A/Files/sync.png
new file mode 100644
index 0000000..ff7d32e
Binary files /dev/null and b/B4A/Files/sync.png differ
diff --git a/B4A/Files/tabulador.bal b/B4A/Files/tabulador.bal
new file mode 100644
index 0000000..d4f90be
Binary files /dev/null and b/B4A/Files/tabulador.bal differ
diff --git a/B4A/Files/telefonos.bal b/B4A/Files/telefonos.bal
new file mode 100644
index 0000000..7c1d382
Binary files /dev/null and b/B4A/Files/telefonos.bal differ
diff --git a/B4A/Intmex_Reparto.b4a.meta b/B4A/Intmex_Reparto.b4a.meta
new file mode 100644
index 0000000..9a7dc5d
--- /dev/null
+++ b/B4A/Intmex_Reparto.b4a.meta
@@ -0,0 +1,96 @@
+ModuleBookmarks0=
+ModuleBookmarks1=
+ModuleBookmarks10=
+ModuleBookmarks11=
+ModuleBookmarks12=
+ModuleBookmarks13=
+ModuleBookmarks14=
+ModuleBookmarks15=
+ModuleBookmarks16=
+ModuleBookmarks17=
+ModuleBookmarks18=
+ModuleBookmarks19=
+ModuleBookmarks2=
+ModuleBookmarks20=
+ModuleBookmarks21=
+ModuleBookmarks22=
+ModuleBookmarks23=
+ModuleBookmarks24=
+ModuleBookmarks25=
+ModuleBookmarks26=
+ModuleBookmarks27=
+ModuleBookmarks28=
+ModuleBookmarks29=
+ModuleBookmarks3=
+ModuleBookmarks30=
+ModuleBookmarks4=
+ModuleBookmarks5=
+ModuleBookmarks6=
+ModuleBookmarks7=
+ModuleBookmarks8=
+ModuleBookmarks9=
+ModuleBreakpoints0=
+ModuleBreakpoints1=
+ModuleBreakpoints10=
+ModuleBreakpoints11=
+ModuleBreakpoints12=
+ModuleBreakpoints13=
+ModuleBreakpoints14=
+ModuleBreakpoints15=
+ModuleBreakpoints16=
+ModuleBreakpoints17=
+ModuleBreakpoints18=
+ModuleBreakpoints19=
+ModuleBreakpoints2=
+ModuleBreakpoints20=
+ModuleBreakpoints21=
+ModuleBreakpoints22=
+ModuleBreakpoints23=
+ModuleBreakpoints24=
+ModuleBreakpoints25=
+ModuleBreakpoints26=
+ModuleBreakpoints27=
+ModuleBreakpoints28=
+ModuleBreakpoints29=
+ModuleBreakpoints3=
+ModuleBreakpoints30=
+ModuleBreakpoints4=
+ModuleBreakpoints5=
+ModuleBreakpoints6=
+ModuleBreakpoints7=
+ModuleBreakpoints8=
+ModuleBreakpoints9=
+ModuleClosedNodes0=
+ModuleClosedNodes1=
+ModuleClosedNodes10=
+ModuleClosedNodes11=
+ModuleClosedNodes12=
+ModuleClosedNodes13=
+ModuleClosedNodes14=
+ModuleClosedNodes15=
+ModuleClosedNodes16=
+ModuleClosedNodes17=
+ModuleClosedNodes18=
+ModuleClosedNodes19=
+ModuleClosedNodes2=
+ModuleClosedNodes20=
+ModuleClosedNodes21=
+ModuleClosedNodes22=
+ModuleClosedNodes23=
+ModuleClosedNodes24=
+ModuleClosedNodes25=
+ModuleClosedNodes26=
+ModuleClosedNodes27=
+ModuleClosedNodes28=
+ModuleClosedNodes29=
+ModuleClosedNodes3=
+ModuleClosedNodes30=
+ModuleClosedNodes4=
+ModuleClosedNodes5=
+ModuleClosedNodes6=
+ModuleClosedNodes7=
+ModuleClosedNodes8=
+ModuleClosedNodes9=
+NavigationStack=C_Principal,b_regreso_Click,2287,0,C_Principal,b_rechazos_Click,2265,1,Diseñador Visual,productos.bal,-100,1,Diseñador Visual,detalleVenta.bal,-100,1,appUpdater,Service_Start,132,0,Starter,ENVIA_ULTIMA_GPS,115,0,C_Principal,cargar____Click,1169,3,C_Principal,cargar_Click,1011,0,C_Principal,envioinfo,953,6,B4XMainPage,B4XPage_Created,205,3,Starter,Process_Globals,29,0
+SelectedBuild=0
+VisibleModules=1,2,3,4,5,6,7,8,9,10,16,28
diff --git a/B4A/Izca_Reparto.b4a b/B4A/Izca_Reparto.b4a
new file mode 100644
index 0000000..4210e7f
--- /dev/null
+++ b/B4A/Izca_Reparto.b4a
@@ -0,0 +1,3083 @@
+Build1=Default,reparto_izca.keymon.lat,HU2_PUBLIC
+File1=0maker-azul.png
+File10=100maker-azul2.png
+File100=112maker-azul1.png
+File1000=47maker-azul4.png
+File1001=47marker-rojo.png
+File1002=47marker-verde.png
+File1003=48maker-azul.png
+File1004=48maker-azul1.png
+File1005=48maker-azul2.png
+File1006=48maker-azul3.png
+File1007=48maker-azul4.png
+File1008=48marker-rojo.png
+File1009=48marker-verde.png
+File101=112maker-azul2.png
+File1010=49maker-azul.png
+File1011=49maker-azul1.png
+File1012=49maker-azul2.png
+File1013=49maker-azul3.png
+File1014=49maker-azul4.png
+File1015=49marker-rojo.png
+File1016=49marker-verde.png
+File1017=4maker-azul.png
+File1018=4maker-azul1.png
+File1019=4maker-azul2.png
+File102=112maker-azul3.png
+File1020=4maker-azul3.png
+File1021=4maker-azul4.png
+File1022=4marker-rojo.png
+File1023=4marker-verde.png
+File1024=50maker-azul.png
+File1025=50maker-azul1.png
+File1026=50maker-azul2.png
+File1027=50maker-azul3.png
+File1028=50maker-azul4.png
+File1029=50marker-rojo.png
+File103=112maker-azul4.png
+File1030=50marker-verde.png
+File1031=51maker-azul.png
+File1032=51maker-azul1.png
+File1033=51maker-azul2.png
+File1034=51maker-azul3.png
+File1035=51maker-azul4.png
+File1036=51marker-rojo.png
+File1037=51marker-verde.png
+File1038=52maker-azul.png
+File1039=52maker-azul1.png
+File104=112marker-rojo.png
+File1040=52maker-azul2.png
+File1041=52maker-azul3.png
+File1042=52maker-azul4.png
+File1043=52marker-rojo.png
+File1044=52marker-verde.png
+File1045=53maker-azul.png
+File1046=53maker-azul1.png
+File1047=53maker-azul2.png
+File1048=53maker-azul3.png
+File1049=53maker-azul4.png
+File105=112marker-verde.png
+File1050=53marker-rojo.png
+File1051=53marker-verde.png
+File1052=54maker-azul.png
+File1053=54maker-azul1.png
+File1054=54maker-azul2.png
+File1055=54maker-azul3.png
+File1056=54maker-azul4.png
+File1057=54marker-rojo.png
+File1058=54marker-verde.png
+File1059=55maker-azul.png
+File106=113maker-azul.png
+File1060=55maker-azul1.png
+File1061=55maker-azul2.png
+File1062=55maker-azul3.png
+File1063=55maker-azul4.png
+File1064=55marker-rojo.png
+File1065=55marker-verde.png
+File1066=56maker-azul.png
+File1067=56maker-azul1.png
+File1068=56maker-azul2.png
+File1069=56maker-azul3.png
+File107=113maker-azul1.png
+File1070=56maker-azul4.png
+File1071=56marker-rojo.png
+File1072=56marker-verde.png
+File1073=57maker-azul.png
+File1074=57maker-azul1.png
+File1075=57maker-azul2.png
+File1076=57maker-azul3.png
+File1077=57maker-azul4.png
+File1078=57marker-rojo.png
+File1079=57marker-verde.png
+File108=113maker-azul2.png
+File1080=58maker-azul.png
+File1081=58maker-azul1.png
+File1082=58maker-azul2.png
+File1083=58maker-azul3.png
+File1084=58maker-azul4.png
+File1085=58marker-rojo.png
+File1086=58marker-verde.png
+File1087=59maker-azul.png
+File1088=59maker-azul1.png
+File1089=59maker-azul2.png
+File109=113maker-azul3.png
+File1090=59maker-azul3.png
+File1091=59maker-azul4.png
+File1092=59marker-rojo.png
+File1093=59marker-verde.png
+File1094=5maker-azul.png
+File1095=5maker-azul1.png
+File1096=5maker-azul2.png
+File1097=5maker-azul3.png
+File1098=5maker-azul4.png
+File1099=5marker-rojo.png
+File11=100maker-azul3.png
+File110=113maker-azul4.png
+File1100=5marker-verde.png
+File1101=60maker-azul.png
+File1102=60maker-azul1.png
+File1103=60maker-azul2.png
+File1104=60maker-azul3.png
+File1105=60maker-azul4.png
+File1106=60marker-rojo.png
+File1107=60marker-verde.png
+File1108=61maker-azul.png
+File1109=61maker-azul1.png
+File111=113marker-rojo.png
+File1110=61maker-azul2.png
+File1111=61maker-azul3.png
+File1112=61maker-azul4.png
+File1113=61marker-rojo.png
+File1114=61marker-verde.png
+File1115=62maker-azul.png
+File1116=62maker-azul1.png
+File1117=62maker-azul2.png
+File1118=62maker-azul3.png
+File1119=62maker-azul4.png
+File112=113marker-verde.png
+File1120=62marker-rojo.png
+File1121=62marker-verde.png
+File1122=63maker-azul.png
+File1123=63maker-azul1.png
+File1124=63maker-azul2.png
+File1125=63maker-azul3.png
+File1126=63maker-azul4.png
+File1127=63marker-rojo.png
+File1128=63marker-verde.png
+File1129=64maker-azul.png
+File113=114maker-azul.png
+File1130=64maker-azul1.png
+File1131=64maker-azul2.png
+File1132=64maker-azul3.png
+File1133=64maker-azul4.png
+File1134=64marker-rojo.png
+File1135=64marker-verde.png
+File1136=65maker-azul.png
+File1137=65maker-azul1.png
+File1138=65maker-azul2.png
+File1139=65maker-azul3.png
+File114=114maker-azul1.png
+File1140=65maker-azul4.png
+File1141=65marker-rojo.png
+File1142=65marker-verde.png
+File1143=66maker-azul.png
+File1144=66maker-azul1.png
+File1145=66maker-azul2.png
+File1146=66maker-azul3.png
+File1147=66maker-azul4.png
+File1148=66marker-rojo.png
+File1149=66marker-verde.png
+File115=114maker-azul2.png
+File1150=67maker-azul.png
+File1151=67maker-azul1.png
+File1152=67maker-azul2.png
+File1153=67maker-azul3.png
+File1154=67maker-azul4.png
+File1155=67marker-rojo.png
+File1156=67marker-verde.png
+File1157=68maker-azul.png
+File1158=68maker-azul1.png
+File1159=68maker-azul2.png
+File116=114maker-azul3.png
+File1160=68maker-azul3.png
+File1161=68maker-azul4.png
+File1162=68marker-rojo.png
+File1163=68marker-verde.png
+File1164=69maker-azul.png
+File1165=69maker-azul1.png
+File1166=69maker-azul2.png
+File1167=69maker-azul3.png
+File1168=69maker-azul4.png
+File1169=69marker-rojo.png
+File117=114maker-azul4.png
+File1170=69marker-verde.png
+File1171=6maker-azul.png
+File1172=6maker-azul1.png
+File1173=6maker-azul2.png
+File1174=6maker-azul3.png
+File1175=6maker-azul4.png
+File1176=6marker-rojo.png
+File1177=6marker-verde.png
+File1178=70maker-azul.png
+File1179=70maker-azul1.png
+File118=114marker-rojo.png
+File1180=70maker-azul2.png
+File1181=70maker-azul3.png
+File1182=70maker-azul4.png
+File1183=70marker-rojo.png
+File1184=70marker-verde.png
+File1185=71maker-azul.png
+File1186=71maker-azul1.png
+File1187=71maker-azul2.png
+File1188=71maker-azul3.png
+File1189=71maker-azul4.png
+File119=114marker-verde.png
+File1190=71marker-rojo.png
+File1191=71marker-verde.png
+File1192=72maker-azul.png
+File1193=72maker-azul1.png
+File1194=72maker-azul2.png
+File1195=72maker-azul3.png
+File1196=72maker-azul4.png
+File1197=72marker-rojo.png
+File1198=72marker-verde.png
+File1199=73maker-azul.png
+File12=100maker-azul4.png
+File120=115maker-azul.png
+File1200=73maker-azul1.png
+File1201=73maker-azul2.png
+File1202=73maker-azul3.png
+File1203=73maker-azul4.png
+File1204=73marker-rojo.png
+File1205=73marker-verde.png
+File1206=74maker-azul.png
+File1207=74maker-azul1.png
+File1208=74maker-azul2.png
+File1209=74maker-azul3.png
+File121=115maker-azul1.png
+File1210=74maker-azul4.png
+File1211=74marker-rojo.png
+File1212=74marker-verde.png
+File1213=75maker-azul.png
+File1214=75maker-azul1.png
+File1215=75maker-azul2.png
+File1216=75maker-azul3.png
+File1217=75maker-azul4.png
+File1218=75marker-rojo.png
+File1219=75marker-verde.png
+File122=115maker-azul2.png
+File1220=76maker-azul.png
+File1221=76maker-azul1.png
+File1222=76maker-azul2.png
+File1223=76maker-azul3.png
+File1224=76maker-azul4.png
+File1225=76marker-rojo.png
+File1226=76marker-verde.png
+File1227=77maker-azul.png
+File1228=77maker-azul1.png
+File1229=77maker-azul2.png
+File123=115maker-azul3.png
+File1230=77maker-azul3.png
+File1231=77maker-azul4.png
+File1232=77marker-rojo.png
+File1233=77marker-verde.png
+File1234=78maker-azul.png
+File1235=78maker-azul1.png
+File1236=78maker-azul2.png
+File1237=78maker-azul3.png
+File1238=78maker-azul4.png
+File1239=78marker-rojo.png
+File124=115maker-azul4.png
+File1240=78marker-verde.png
+File1241=79maker-azul.png
+File1242=79maker-azul1.png
+File1243=79maker-azul2.png
+File1244=79maker-azul3.png
+File1245=79maker-azul4.png
+File1246=79marker-rojo.png
+File1247=79marker-verde.png
+File1248=7maker-azul.png
+File1249=7maker-azul1.png
+File125=115marker-rojo.png
+File1250=7maker-azul2.png
+File1251=7maker-azul3.png
+File1252=7maker-azul4.png
+File1253=7marker-rojo.png
+File1254=7marker-verde.png
+File1255=80maker-azul.png
+File1256=80maker-azul1.png
+File1257=80maker-azul2.png
+File1258=80maker-azul3.png
+File1259=80maker-azul4.png
+File126=115marker-verde.png
+File1260=80marker-rojo.png
+File1261=80marker-verde.png
+File1262=81maker-azul.png
+File1263=81maker-azul1.png
+File1264=81maker-azul2.png
+File1265=81maker-azul3.png
+File1266=81maker-azul4.png
+File1267=81marker-rojo.png
+File1268=81marker-verde.png
+File1269=82maker-azul.png
+File127=116maker-azul.png
+File1270=82maker-azul1.png
+File1271=82maker-azul2.png
+File1272=82maker-azul3.png
+File1273=82maker-azul4.png
+File1274=82marker-rojo.png
+File1275=82marker-verde.png
+File1276=83maker-azul.png
+File1277=83maker-azul1.png
+File1278=83maker-azul2.png
+File1279=83maker-azul3.png
+File128=116maker-azul1.png
+File1280=83maker-azul4.png
+File1281=83marker-rojo.png
+File1282=83marker-verde.png
+File1283=84maker-azul.png
+File1284=84maker-azul1.png
+File1285=84maker-azul2.png
+File1286=84maker-azul3.png
+File1287=84maker-azul4.png
+File1288=84marker-rojo.png
+File1289=84marker-verde.png
+File129=116maker-azul2.png
+File1290=85maker-azul.png
+File1291=85maker-azul1.png
+File1292=85maker-azul2.png
+File1293=85maker-azul3.png
+File1294=85maker-azul4.png
+File1295=85marker-rojo.png
+File1296=85marker-verde.png
+File1297=86maker-azul.png
+File1298=86maker-azul1.png
+File1299=86maker-azul2.png
+File13=100marker-rojo.png
+File130=116maker-azul3.png
+File1300=86maker-azul3.png
+File1301=86maker-azul4.png
+File1302=86marker-rojo.png
+File1303=86marker-verde.png
+File1304=87maker-azul.png
+File1305=87maker-azul1.png
+File1306=87maker-azul2.png
+File1307=87maker-azul3.png
+File1308=87maker-azul4.png
+File1309=87marker-rojo.png
+File131=116maker-azul4.png
+File1310=87marker-verde.png
+File1311=88maker-azul.png
+File1312=88maker-azul1.png
+File1313=88maker-azul2.png
+File1314=88maker-azul3.png
+File1315=88maker-azul4.png
+File1316=88marker-rojo.png
+File1317=88marker-verde.png
+File1318=89maker-azul.png
+File1319=89maker-azul1.png
+File132=116marker-rojo.png
+File1320=89maker-azul2.png
+File1321=89maker-azul3.png
+File1322=89maker-azul4.png
+File1323=89marker-rojo.png
+File1324=89marker-verde.png
+File1325=8maker-azul.png
+File1326=8maker-azul1.png
+File1327=8maker-azul2.png
+File1328=8maker-azul3.png
+File1329=8maker-azul4.png
+File133=116marker-verde.png
+File1330=8marker-rojo.png
+File1331=8marker-verde.png
+File1332=90maker-azul.png
+File1333=90maker-azul1.png
+File1334=90maker-azul2.png
+File1335=90maker-azul3.png
+File1336=90maker-azul4.png
+File1337=90marker-rojo.png
+File1338=90marker-verde.png
+File1339=91maker-azul.png
+File134=117maker-azul.png
+File1340=91maker-azul1.png
+File1341=91maker-azul2.png
+File1342=91maker-azul3.png
+File1343=91maker-azul4.png
+File1344=91marker-rojo.png
+File1345=91marker-verde.png
+File1346=92maker-azul.png
+File1347=92maker-azul1.png
+File1348=92maker-azul2.png
+File1349=92maker-azul3.png
+File135=117maker-azul1.png
+File1350=92maker-azul4.png
+File1351=92marker-rojo.png
+File1352=92marker-verde.png
+File1353=93maker-azul.png
+File1354=93maker-azul1.png
+File1355=93maker-azul2.png
+File1356=93maker-azul3.png
+File1357=93maker-azul4.png
+File1358=93marker-rojo.png
+File1359=93marker-verde.png
+File136=117maker-azul2.png
+File1360=94maker-azul.png
+File1361=94maker-azul1.png
+File1362=94maker-azul2.png
+File1363=94maker-azul3.png
+File1364=94maker-azul4.png
+File1365=94marker-rojo.png
+File1366=94marker-verde.png
+File1367=95maker-azul.png
+File1368=95maker-azul1.png
+File1369=95maker-azul2.png
+File137=117maker-azul3.png
+File1370=95maker-azul3.png
+File1371=95maker-azul4.png
+File1372=95marker-rojo.png
+File1373=95marker-verde.png
+File1374=96maker-azul.png
+File1375=96maker-azul1.png
+File1376=96maker-azul2.png
+File1377=96maker-azul3.png
+File1378=96maker-azul4.png
+File1379=96marker-rojo.png
+File138=117maker-azul4.png
+File1380=96marker-verde.png
+File1381=97maker-azul.png
+File1382=97maker-azul1.png
+File1383=97maker-azul2.png
+File1384=97maker-azul3.png
+File1385=97maker-azul4.png
+File1386=97marker-rojo.png
+File1387=97marker-verde.png
+File1388=98maker-azul.png
+File1389=98maker-azul1.png
+File139=117marker-rojo.png
+File1390=98maker-azul2.png
+File1391=98maker-azul3.png
+File1392=98maker-azul4.png
+File1393=98marker-rojo.png
+File1394=98marker-verde.png
+File1395=99maker-azul.png
+File1396=99maker-azul1.png
+File1397=99maker-azul2.png
+File1398=99maker-azul3.png
+File1399=99maker-azul4.png
+File14=100marker-verde.png
+File140=117marker-verde.png
+File1400=99marker-rojo.png
+File1401=99marker-verde.png
+File1402=9maker-azul.png
+File1403=9maker-azul1.png
+File1404=9maker-azul2.png
+File1405=9maker-azul3.png
+File1406=9maker-azul4.png
+File1407=9marker-rojo.png
+File1408=9marker-verde.png
+File1409=alert2.png
+File141=118maker-azul.png
+File1410=alerta.jpg
+File1411=amigos.jpg
+File1412=atras.png
+File1413=atras1.png
+File1414=buscar.bal
+File1415=check.bal
+File1416=checklist.bal
+File1417=cliente.bal
+File1418=clientes.bal
+File1419=dbc.png
+File142=118maker-azul1.png
+File1420=derecha.png
+File1421=derecha1.png
+File1422=detalle_promo.bal
+File1423=detalleVenta.bal
+File1424=durakelo1.png
+File1425=engrane.jpg
+File1426=folioabono.bal
+File1427=fondo_kmt.jpg
+File1428=foto.bal
+File1429=frintal.png
+File143=118maker-azul2.png
+File1430=frontal1.gif
+File1431=frontal1.png
+File1432=guardagestion.bal
+File1433=guna_viejo.png
+File1434=guna_viejo2.png
+File1435=historico.bal
+File1436=infonavit1.jpg
+File1437=intmex_logo_192x192.jpg
+File1438=intmex_logo_192x192.png
+File1439=inventarios.jpg
+File144=118maker-azul3.png
+File1440=itembuttonblue.png
+File1441=izquierda.png
+File1442=izquierda1.png
+File1443=kelloggs.png
+File1444=keymon_logo.png
+File1445=kmt.db
+File1446=kmt2.db
+File1447=kmt3.db
+File1448=login.bal
+File1449=logo sanfer.jpg
+File145=118maker-azul4.png
+File1450=logo_exitus1.jpg
+File1451=logo_mariana.jpg
+File1452=MainPage.bal
+File1453=malo.jpg
+File1454=mapa.bal
+File1455=mapa_cliente.bal
+File1456=mapa_rutas.bal
+File1457=mariana.jpg
+File1458=mariana_logo_192x192.jpg
+File1459=MARQUEZ_logo_192x192.jpg
+File146=118marker-rojo.png
+File1460=no_venta.bal
+File1461=nuevocliente.bal
+File1462=panel_pick_ciego.bal
+File1463=pedido.bal
+File1464=planfia_logo.png
+File1465=planfia_logo_old.png
+File1466=planfia_logo_old2.png
+File1467=principal.bal
+File1468=proditem.bal
+File1469=proditem2.bal
+File147=118marker-verde.png
+File1470=productos.bal
+File1471=profina.jpg
+File1472=PROFINA.png
+File1473=sync.png
+File1474=tabulador.bal
+File1475=telefonos.bal
+File148=119maker-azul.png
+File149=119maker-azul1.png
+File15=101maker-azul.png
+File150=119maker-azul2.png
+File151=119maker-azul3.png
+File152=119maker-azul4.png
+File153=119marker-rojo.png
+File154=119marker-verde.png
+File155=11maker-azul.png
+File156=11maker-azul1.png
+File157=11maker-azul2.png
+File158=11maker-azul3.png
+File159=11maker-azul4.png
+File16=101maker-azul1.png
+File160=11marker-rojo.png
+File161=11marker-verde.png
+File162=120maker-azul.png
+File163=120maker-azul1.png
+File164=120maker-azul2.png
+File165=120maker-azul3.png
+File166=120maker-azul4.png
+File167=120marker-rojo.png
+File168=120marker-verde.png
+File169=121maker-azul.png
+File17=101maker-azul2.png
+File170=121maker-azul1.png
+File171=121maker-azul2.png
+File172=121maker-azul3.png
+File173=121maker-azul4.png
+File174=121marker-rojo.png
+File175=121marker-verde.png
+File176=122maker-azul.png
+File177=122maker-azul1.png
+File178=122maker-azul2.png
+File179=122maker-azul3.png
+File18=101maker-azul3.png
+File180=122maker-azul4.png
+File181=122marker-rojo.png
+File182=122marker-verde.png
+File183=123maker-azul.png
+File184=123maker-azul1.png
+File185=123maker-azul2.png
+File186=123maker-azul3.png
+File187=123maker-azul4.png
+File188=123marker-rojo.png
+File189=123marker-verde.png
+File19=101maker-azul4.png
+File190=124maker-azul.png
+File191=124maker-azul1.png
+File192=124maker-azul2.png
+File193=124maker-azul3.png
+File194=124maker-azul4.png
+File195=124marker-rojo.png
+File196=124marker-verde.png
+File197=125maker-azul.png
+File198=125maker-azul1.png
+File199=125maker-azul2.png
+File2=0maker-azul1.png
+File20=101marker-rojo.png
+File200=125maker-azul3.png
+File201=125maker-azul4.png
+File202=125marker-rojo.png
+File203=125marker-verde.png
+File204=126maker-azul.png
+File205=126maker-azul1.png
+File206=126maker-azul2.png
+File207=126maker-azul3.png
+File208=126maker-azul4.png
+File209=126marker-rojo.png
+File21=101marker-verde.png
+File210=126marker-verde.png
+File211=127maker-azul.png
+File212=127maker-azul1.png
+File213=127maker-azul2.png
+File214=127maker-azul3.png
+File215=127maker-azul4.png
+File216=127marker-rojo.png
+File217=127marker-verde.png
+File218=128maker-azul.png
+File219=128maker-azul1.png
+File22=102maker-azul.png
+File220=128maker-azul2.png
+File221=128maker-azul3.png
+File222=128maker-azul4.png
+File223=128marker-rojo.png
+File224=128marker-verde.png
+File225=129maker-azul.png
+File226=129maker-azul1.png
+File227=129maker-azul2.png
+File228=129maker-azul3.png
+File229=129maker-azul4.png
+File23=102maker-azul1.png
+File230=129marker-rojo.png
+File231=129marker-verde.png
+File232=12maker-azul.png
+File233=12maker-azul1.png
+File234=12maker-azul2.png
+File235=12maker-azul3.png
+File236=12maker-azul4.png
+File237=12marker-rojo.png
+File238=12marker-verde.png
+File239=130maker-azul.png
+File24=102maker-azul2.png
+File240=130maker-azul1.png
+File241=130maker-azul2.png
+File242=130maker-azul3.png
+File243=130maker-azul4.png
+File244=130marker-rojo.png
+File245=130marker-verde.png
+File246=131maker-azul.png
+File247=131maker-azul1.png
+File248=131maker-azul2.png
+File249=131maker-azul3.png
+File25=102maker-azul3.png
+File250=131maker-azul4.png
+File251=131marker-rojo.png
+File252=131marker-verde.png
+File253=132maker-azul.png
+File254=132maker-azul1.png
+File255=132maker-azul2.png
+File256=132maker-azul3.png
+File257=132maker-azul4.png
+File258=132marker-rojo.png
+File259=132marker-verde.png
+File26=102maker-azul4.png
+File260=133maker-azul.png
+File261=133maker-azul1.png
+File262=133maker-azul2.png
+File263=133maker-azul3.png
+File264=133maker-azul4.png
+File265=133marker-rojo.png
+File266=133marker-verde.png
+File267=134maker-azul.png
+File268=134maker-azul1.png
+File269=134maker-azul2.png
+File27=102marker-rojo.png
+File270=134maker-azul3.png
+File271=134maker-azul4.png
+File272=134marker-rojo.png
+File273=134marker-verde.png
+File274=135maker-azul.png
+File275=135maker-azul1.png
+File276=135maker-azul2.png
+File277=135maker-azul3.png
+File278=135maker-azul4.png
+File279=135marker-rojo.png
+File28=102marker-verde.png
+File280=135marker-verde.png
+File281=136maker-azul.png
+File282=136maker-azul1.png
+File283=136maker-azul2.png
+File284=136maker-azul3.png
+File285=136maker-azul4.png
+File286=136marker-rojo.png
+File287=136marker-verde.png
+File288=137maker-azul.png
+File289=137maker-azul1.png
+File29=103maker-azul.png
+File290=137maker-azul2.png
+File291=137maker-azul3.png
+File292=137maker-azul4.png
+File293=137marker-rojo.png
+File294=137marker-verde.png
+File295=138maker-azul.png
+File296=138maker-azul1.png
+File297=138maker-azul2.png
+File298=138maker-azul3.png
+File299=138maker-azul4.png
+File3=0maker-azul2.png
+File30=103maker-azul1.png
+File300=138marker-rojo.png
+File301=138marker-verde.png
+File302=139maker-azul.png
+File303=139maker-azul1.png
+File304=139maker-azul2.png
+File305=139maker-azul3.png
+File306=139maker-azul4.png
+File307=139marker-rojo.png
+File308=139marker-verde.png
+File309=13maker-azul.png
+File31=103maker-azul2.png
+File310=13maker-azul1.png
+File311=13maker-azul2.png
+File312=13maker-azul3.png
+File313=13maker-azul4.png
+File314=13marker-rojo.png
+File315=13marker-verde.png
+File316=140maker-azul.png
+File317=140maker-azul1.png
+File318=140maker-azul2.png
+File319=140maker-azul3.png
+File32=103maker-azul3.png
+File320=140maker-azul4.png
+File321=140marker-rojo.png
+File322=140marker-verde.png
+File323=141maker-azul.png
+File324=141maker-azul1.png
+File325=141maker-azul2.png
+File326=141maker-azul3.png
+File327=141maker-azul4.png
+File328=141marker-rojo.png
+File329=141marker-verde.png
+File33=103maker-azul4.png
+File330=142maker-azul.png
+File331=142maker-azul1.png
+File332=142maker-azul2.png
+File333=142maker-azul3.png
+File334=142maker-azul4.png
+File335=142marker-rojo.png
+File336=142marker-verde.png
+File337=143maker-azul.png
+File338=143maker-azul1.png
+File339=143maker-azul2.png
+File34=103marker-rojo.png
+File340=143maker-azul3.png
+File341=143maker-azul4.png
+File342=143marker-rojo.png
+File343=143marker-verde.png
+File344=144maker-azul.png
+File345=144maker-azul1.png
+File346=144maker-azul2.png
+File347=144maker-azul3.png
+File348=144maker-azul4.png
+File349=144marker-rojo.png
+File35=103marker-verde.png
+File350=144marker-verde.png
+File351=145maker-azul.png
+File352=145maker-azul1.png
+File353=145maker-azul2.png
+File354=145maker-azul3.png
+File355=145maker-azul4.png
+File356=145marker-rojo.png
+File357=145marker-verde.png
+File358=146maker-azul.png
+File359=146maker-azul1.png
+File36=104maker-azul.png
+File360=146maker-azul2.png
+File361=146maker-azul3.png
+File362=146maker-azul4.png
+File363=146marker-rojo.png
+File364=146marker-verde.png
+File365=147maker-azul.png
+File366=147maker-azul1.png
+File367=147maker-azul2.png
+File368=147maker-azul3.png
+File369=147maker-azul4.png
+File37=104maker-azul1.png
+File370=147marker-rojo.png
+File371=147marker-verde.png
+File372=148maker-azul.png
+File373=148maker-azul1.png
+File374=148maker-azul2.png
+File375=148maker-azul3.png
+File376=148maker-azul4.png
+File377=148marker-rojo.png
+File378=148marker-verde.png
+File379=149maker-azul.png
+File38=104maker-azul2.png
+File380=149maker-azul1.png
+File381=149maker-azul2.png
+File382=149maker-azul3.png
+File383=149maker-azul4.png
+File384=149marker-rojo.png
+File385=149marker-verde.png
+File386=14maker-azul.png
+File387=14maker-azul1.png
+File388=14maker-azul2.png
+File389=14maker-azul3.png
+File39=104maker-azul3.png
+File390=14maker-azul4.png
+File391=14marker-rojo.png
+File392=14marker-verde.png
+File393=150maker-azul.png
+File394=150maker-azul1.png
+File395=150maker-azul2.png
+File396=150maker-azul3.png
+File397=150maker-azul4.png
+File398=150marker-rojo.png
+File399=150marker-verde.png
+File4=0maker-azul3.png
+File40=104maker-azul4.png
+File400=151maker-azul.png
+File401=151maker-azul1.png
+File402=151maker-azul2.png
+File403=151maker-azul3.png
+File404=151maker-azul4.png
+File405=151marker-rojo.png
+File406=151marker-verde.png
+File407=152maker-azul.png
+File408=152maker-azul1.png
+File409=152maker-azul2.png
+File41=104marker-rojo.png
+File410=152maker-azul3.png
+File411=152maker-azul4.png
+File412=152marker-rojo.png
+File413=152marker-verde.png
+File414=153maker-azul.png
+File415=153maker-azul1.png
+File416=153maker-azul2.png
+File417=153maker-azul3.png
+File418=153maker-azul4.png
+File419=153marker-rojo.png
+File42=104marker-verde.png
+File420=153marker-verde.png
+File421=154maker-azul.png
+File422=154maker-azul1.png
+File423=154maker-azul2.png
+File424=154maker-azul3.png
+File425=154maker-azul4.png
+File426=154marker-rojo.png
+File427=154marker-verde.png
+File428=155maker-azul.png
+File429=155maker-azul1.png
+File43=105maker-azul.png
+File430=155maker-azul2.png
+File431=155maker-azul3.png
+File432=155maker-azul4.png
+File433=155marker-rojo.png
+File434=155marker-verde.png
+File435=156maker-azul.png
+File436=156maker-azul1.png
+File437=156maker-azul2.png
+File438=156maker-azul3.png
+File439=156maker-azul4.png
+File44=105maker-azul1.png
+File440=156marker-rojo.png
+File441=156marker-verde.png
+File442=157maker-azul.png
+File443=157maker-azul1.png
+File444=157maker-azul2.png
+File445=157maker-azul3.png
+File446=157maker-azul4.png
+File447=157marker-rojo.png
+File448=157marker-verde.png
+File449=158maker-azul.png
+File45=105maker-azul2.png
+File450=158maker-azul1.png
+File451=158maker-azul2.png
+File452=158maker-azul3.png
+File453=158maker-azul4.png
+File454=158marker-rojo.png
+File455=158marker-verde.png
+File456=159maker-azul.png
+File457=159maker-azul1.png
+File458=159maker-azul2.png
+File459=159maker-azul3.png
+File46=105maker-azul3.png
+File460=159maker-azul4.png
+File461=159marker-rojo.png
+File462=159marker-verde.png
+File463=15maker-azul.png
+File464=15maker-azul1.png
+File465=15maker-azul2.png
+File466=15maker-azul3.png
+File467=15maker-azul4.png
+File468=15marker-rojo.png
+File469=15marker-verde.png
+File47=105maker-azul4.png
+File470=160maker-azul.png
+File471=160maker-azul1.png
+File472=160maker-azul2.png
+File473=160maker-azul3.png
+File474=160maker-azul4.png
+File475=160marker-rojo.png
+File476=160marker-verde.png
+File477=161maker-azul.png
+File478=161maker-azul1.png
+File479=161maker-azul2.png
+File48=105marker-rojo.png
+File480=161maker-azul3.png
+File481=161maker-azul4.png
+File482=161marker-rojo.png
+File483=161marker-verde.png
+File484=162maker-azul.png
+File485=162maker-azul1.png
+File486=162maker-azul2.png
+File487=162maker-azul3.png
+File488=162maker-azul4.png
+File489=162marker-rojo.png
+File49=105marker-verde.png
+File490=162marker-verde.png
+File491=163maker-azul.png
+File492=163maker-azul1.png
+File493=163maker-azul2.png
+File494=163maker-azul3.png
+File495=163maker-azul4.png
+File496=163marker-rojo.png
+File497=163marker-verde.png
+File498=164maker-azul.png
+File499=164maker-azul1.png
+File5=0maker-azul4.png
+File50=106maker-azul.png
+File500=164maker-azul2.png
+File501=164maker-azul3.png
+File502=164maker-azul4.png
+File503=164marker-rojo.png
+File504=164marker-verde.png
+File505=165maker-azul.png
+File506=165maker-azul1.png
+File507=165maker-azul2.png
+File508=165maker-azul3.png
+File509=165maker-azul4.png
+File51=106maker-azul1.png
+File510=165marker-rojo.png
+File511=165marker-verde.png
+File512=166maker-azul.png
+File513=166maker-azul1.png
+File514=166maker-azul2.png
+File515=166maker-azul3.png
+File516=166maker-azul4.png
+File517=166marker-rojo.png
+File518=166marker-verde.png
+File519=167maker-azul.png
+File52=106maker-azul2.png
+File520=167maker-azul1.png
+File521=167maker-azul2.png
+File522=167maker-azul3.png
+File523=167maker-azul4.png
+File524=167marker-rojo.png
+File525=167marker-verde.png
+File526=168maker-azul.png
+File527=168maker-azul1.png
+File528=168maker-azul2.png
+File529=168maker-azul3.png
+File53=106maker-azul3.png
+File530=168maker-azul4.png
+File531=168marker-rojo.png
+File532=168marker-verde.png
+File533=169maker-azul.png
+File534=169maker-azul1.png
+File535=169maker-azul2.png
+File536=169maker-azul3.png
+File537=169maker-azul4.png
+File538=169marker-rojo.png
+File539=169marker-verde.png
+File54=106maker-azul4.png
+File540=16maker-azul.png
+File541=16maker-azul1.png
+File542=16maker-azul2.png
+File543=16maker-azul3.png
+File544=16maker-azul4.png
+File545=16marker-rojo.png
+File546=16marker-verde.png
+File547=170maker-azul.png
+File548=170maker-azul1.png
+File549=170maker-azul2.png
+File55=106marker-rojo.png
+File550=170maker-azul3.png
+File551=170maker-azul4.png
+File552=170marker-rojo.png
+File553=170marker-verde.png
+File554=171maker-azul.png
+File555=171maker-azul1.png
+File556=171maker-azul2.png
+File557=171maker-azul3.png
+File558=171maker-azul4.png
+File559=171marker-rojo.png
+File56=106marker-verde.png
+File560=171marker-verde.png
+File561=172maker-azul.png
+File562=172maker-azul1.png
+File563=172maker-azul2.png
+File564=172maker-azul3.png
+File565=172maker-azul4.png
+File566=172marker-rojo.png
+File567=172marker-verde.png
+File568=173maker-azul.png
+File569=173maker-azul1.png
+File57=107maker-azul.png
+File570=173maker-azul2.png
+File571=173maker-azul3.png
+File572=173maker-azul4.png
+File573=173marker-rojo.png
+File574=173marker-verde.png
+File575=174maker-azul.png
+File576=174maker-azul1.png
+File577=174maker-azul2.png
+File578=174maker-azul3.png
+File579=174maker-azul4.png
+File58=107maker-azul1.png
+File580=174marker-rojo.png
+File581=174marker-verde.png
+File582=175maker-azul.png
+File583=175maker-azul1.png
+File584=175maker-azul2.png
+File585=175maker-azul3.png
+File586=175maker-azul4.png
+File587=175marker-rojo.png
+File588=175marker-verde.png
+File589=176maker-azul.png
+File59=107maker-azul2.png
+File590=176maker-azul1.png
+File591=176maker-azul2.png
+File592=176maker-azul3.png
+File593=176maker-azul4.png
+File594=176marker-rojo.png
+File595=176marker-verde.png
+File596=177maker-azul.png
+File597=177maker-azul1.png
+File598=177maker-azul2.png
+File599=177maker-azul3.png
+File6=0marker-rojo.png
+File60=107maker-azul3.png
+File600=177maker-azul4.png
+File601=177marker-rojo.png
+File602=177marker-verde.png
+File603=178maker-azul.png
+File604=178maker-azul1.png
+File605=178maker-azul2.png
+File606=178maker-azul3.png
+File607=178maker-azul4.png
+File608=178marker-rojo.png
+File609=178marker-verde.png
+File61=107maker-azul4.png
+File610=179maker-azul.png
+File611=179maker-azul1.png
+File612=179maker-azul2.png
+File613=179maker-azul3.png
+File614=179maker-azul4.png
+File615=179marker-rojo.png
+File616=179marker-verde.png
+File617=17maker-azul.png
+File618=17maker-azul1.png
+File619=17maker-azul2.png
+File62=107marker-rojo.png
+File620=17maker-azul3.png
+File621=17maker-azul4.png
+File622=17marker-rojo.png
+File623=17marker-verde.png
+File624=180maker-azul.png
+File625=180maker-azul1.png
+File626=180maker-azul2.png
+File627=180maker-azul3.png
+File628=180maker-azul4.png
+File629=180marker-rojo.png
+File63=107marker-verde.png
+File630=180marker-verde.png
+File631=181maker-azul.png
+File632=181maker-azul1.png
+File633=181maker-azul2.png
+File634=181maker-azul3.png
+File635=181maker-azul4.png
+File636=181marker-rojo.png
+File637=181marker-verde.png
+File638=182maker-azul.png
+File639=182maker-azul1.png
+File64=108maker-azul.png
+File640=182maker-azul2.png
+File641=182maker-azul3.png
+File642=182maker-azul4.png
+File643=182marker-rojo.png
+File644=182marker-verde.png
+File645=183maker-azul.png
+File646=183maker-azul1.png
+File647=183maker-azul2.png
+File648=183maker-azul3.png
+File649=183maker-azul4.png
+File65=108maker-azul1.png
+File650=183marker-rojo.png
+File651=183marker-verde.png
+File652=184maker-azul.png
+File653=184maker-azul1.png
+File654=184maker-azul2.png
+File655=184maker-azul3.png
+File656=184maker-azul4.png
+File657=184marker-rojo.png
+File658=184marker-verde.png
+File659=185maker-azul.png
+File66=108maker-azul2.png
+File660=185maker-azul1.png
+File661=185maker-azul2.png
+File662=185maker-azul3.png
+File663=185maker-azul4.png
+File664=185marker-rojo.png
+File665=185marker-verde.png
+File666=186maker-azul.png
+File667=186maker-azul1.png
+File668=186maker-azul2.png
+File669=186maker-azul3.png
+File67=108maker-azul3.png
+File670=186maker-azul4.png
+File671=186marker-rojo.png
+File672=186marker-verde.png
+File673=187maker-azul.png
+File674=187maker-azul1.png
+File675=187maker-azul2.png
+File676=187maker-azul3.png
+File677=187maker-azul4.png
+File678=187marker-rojo.png
+File679=187marker-verde.png
+File68=108maker-azul4.png
+File680=188maker-azul.png
+File681=188maker-azul1.png
+File682=188maker-azul2.png
+File683=188maker-azul3.png
+File684=188maker-azul4.png
+File685=188marker-rojo.png
+File686=188marker-verde.png
+File687=189maker-azul.png
+File688=189maker-azul1.png
+File689=189maker-azul2.png
+File69=108marker-rojo.png
+File690=189maker-azul3.png
+File691=189maker-azul4.png
+File692=189marker-rojo.png
+File693=189marker-verde.png
+File694=18maker-azul.png
+File695=18maker-azul1.png
+File696=18maker-azul2.png
+File697=18maker-azul3.png
+File698=18maker-azul4.png
+File699=18marker-rojo.png
+File7=0marker-verde.png
+File70=108marker-verde.png
+File700=18marker-verde.png
+File701=190maker-azul.png
+File702=190maker-azul1.png
+File703=190maker-azul2.png
+File704=190maker-azul3.png
+File705=190maker-azul4.png
+File706=190marker-rojo.png
+File707=190marker-verde.png
+File708=191maker-azul.png
+File709=191maker-azul1.png
+File71=109maker-azul.png
+File710=191maker-azul2.png
+File711=191maker-azul3.png
+File712=191maker-azul4.png
+File713=191marker-rojo.png
+File714=191marker-verde.png
+File715=192maker-azul.png
+File716=192maker-azul1.png
+File717=192maker-azul2.png
+File718=192maker-azul3.png
+File719=192maker-azul4.png
+File72=109maker-azul1.png
+File720=192marker-rojo.png
+File721=192marker-verde.png
+File722=193maker-azul.png
+File723=193maker-azul1.png
+File724=193maker-azul2.png
+File725=193maker-azul3.png
+File726=193maker-azul4.png
+File727=193marker-rojo.png
+File728=193marker-verde.png
+File729=194maker-azul.png
+File73=109maker-azul2.png
+File730=194maker-azul1.png
+File731=194maker-azul2.png
+File732=194maker-azul3.png
+File733=194maker-azul4.png
+File734=194marker-rojo.png
+File735=194marker-verde.png
+File736=195maker-azul.png
+File737=195maker-azul1.png
+File738=195maker-azul2.png
+File739=195maker-azul3.png
+File74=109maker-azul3.png
+File740=195maker-azul4.png
+File741=195marker-rojo.png
+File742=195marker-verde.png
+File743=196maker-azul.png
+File744=196maker-azul1.png
+File745=196maker-azul2.png
+File746=196maker-azul3.png
+File747=196maker-azul4.png
+File748=196marker-rojo.png
+File749=196marker-verde.png
+File75=109maker-azul4.png
+File750=197maker-azul.png
+File751=197maker-azul1.png
+File752=197maker-azul2.png
+File753=197maker-azul3.png
+File754=197maker-azul4.png
+File755=197marker-rojo.png
+File756=197marker-verde.png
+File757=198maker-azul.png
+File758=198maker-azul1.png
+File759=198maker-azul2.png
+File76=109marker-rojo.png
+File760=198maker-azul3.png
+File761=198maker-azul4.png
+File762=198marker-rojo.png
+File763=198marker-verde.png
+File764=199maker-azul.png
+File765=199maker-azul1.png
+File766=199maker-azul2.png
+File767=199maker-azul3.png
+File768=199maker-azul4.png
+File769=199marker-rojo.png
+File77=109marker-verde.png
+File770=199marker-verde.png
+File771=19maker-azul.png
+File772=19maker-azul1.png
+File773=19maker-azul2.png
+File774=19maker-azul3.png
+File775=19maker-azul4.png
+File776=19marker-rojo.png
+File777=19marker-verde.png
+File778=1maker-azul.png
+File779=1maker-azul1.png
+File78=10maker-azul.png
+File780=1maker-azul2.png
+File781=1maker-azul3.png
+File782=1maker-azul4.png
+File783=1marker-rojo.png
+File784=1marker-verde.png
+File785=200maker-azul.png
+File786=200maker-azul1.png
+File787=200maker-azul2.png
+File788=200maker-azul3.png
+File789=200maker-azul4.png
+File79=10maker-azul1.png
+File790=200marker-rojo.png
+File791=200marker-verde.png
+File792=2023.png
+File793=20maker-azul.png
+File794=20maker-azul1.png
+File795=20maker-azul2.png
+File796=20maker-azul3.png
+File797=20maker-azul4.png
+File798=20marker-rojo.png
+File799=20marker-verde.png
+File8=100maker-azul.png
+File80=10maker-azul2.png
+File800=21maker-azul.png
+File801=21maker-azul1.png
+File802=21maker-azul2.png
+File803=21maker-azul3.png
+File804=21maker-azul4.png
+File805=21marker-rojo.png
+File806=21marker-verde.png
+File807=22maker-azul.png
+File808=22maker-azul1.png
+File809=22maker-azul2.png
+File81=10maker-azul3.png
+File810=22maker-azul3.png
+File811=22maker-azul4.png
+File812=22marker-rojo.png
+File813=22marker-verde.png
+File814=23maker-azul.png
+File815=23maker-azul1.png
+File816=23maker-azul2.png
+File817=23maker-azul3.png
+File818=23maker-azul4.png
+File819=23marker-rojo.png
+File82=10maker-azul4.png
+File820=23marker-verde.png
+File821=24maker-azul.png
+File822=24maker-azul1.png
+File823=24maker-azul2.png
+File824=24maker-azul3.png
+File825=24maker-azul4.png
+File826=24marker-rojo.png
+File827=24marker-verde.png
+File828=25maker-azul.png
+File829=25maker-azul1.png
+File83=10marker-rojo.png
+File830=25maker-azul2.png
+File831=25maker-azul3.png
+File832=25maker-azul4.png
+File833=25marker-rojo.png
+File834=25marker-verde.png
+File835=26maker-azul.png
+File836=26maker-azul1.png
+File837=26maker-azul2.png
+File838=26maker-azul3.png
+File839=26maker-azul4.png
+File84=10marker-verde.png
+File840=26marker-rojo.png
+File841=26marker-verde.png
+File842=27maker-azul.png
+File843=27maker-azul1.png
+File844=27maker-azul2.png
+File845=27maker-azul3.png
+File846=27maker-azul4.png
+File847=27marker-rojo.png
+File848=27marker-verde.png
+File849=28maker-azul.png
+File85=110maker-azul.png
+File850=28maker-azul1.png
+File851=28maker-azul2.png
+File852=28maker-azul3.png
+File853=28maker-azul4.png
+File854=28marker-rojo.png
+File855=28marker-verde.png
+File856=29maker-azul.png
+File857=29maker-azul1.png
+File858=29maker-azul2.png
+File859=29maker-azul3.png
+File86=110maker-azul1.png
+File860=29maker-azul4.png
+File861=29marker-rojo.png
+File862=29marker-verde.png
+File863=2maker-azul.png
+File864=2maker-azul1.png
+File865=2maker-azul2.png
+File866=2maker-azul3.png
+File867=2maker-azul4.png
+File868=2marker-rojo.png
+File869=2marker-verde.png
+File87=110maker-azul2.png
+File870=30maker-azul.png
+File871=30maker-azul1.png
+File872=30maker-azul2.png
+File873=30maker-azul3.png
+File874=30maker-azul4.png
+File875=30marker-rojo.png
+File876=30marker-verde.png
+File877=31maker-azul.png
+File878=31maker-azul1.png
+File879=31maker-azul2.png
+File88=110maker-azul3.png
+File880=31maker-azul3.png
+File881=31maker-azul4.png
+File882=31marker-rojo.png
+File883=31marker-verde.png
+File884=32maker-azul.png
+File885=32maker-azul1.png
+File886=32maker-azul2.png
+File887=32maker-azul3.png
+File888=32maker-azul4.png
+File889=32marker-rojo.png
+File89=110maker-azul4.png
+File890=32marker-verde.png
+File891=33maker-azul.png
+File892=33maker-azul1.png
+File893=33maker-azul2.png
+File894=33maker-azul3.png
+File895=33maker-azul4.png
+File896=33marker-rojo.png
+File897=33marker-verde.png
+File898=34maker-azul.png
+File899=34maker-azul1.png
+File9=100maker-azul1.png
+File90=110marker-rojo.png
+File900=34maker-azul2.png
+File901=34maker-azul3.png
+File902=34maker-azul4.png
+File903=34marker-rojo.png
+File904=34marker-verde.png
+File905=35maker-azul.png
+File906=35maker-azul1.png
+File907=35maker-azul2.png
+File908=35maker-azul3.png
+File909=35maker-azul4.png
+File91=110marker-verde.png
+File910=35marker-rojo.png
+File911=35marker-verde.png
+File912=36maker-azul.png
+File913=36maker-azul1.png
+File914=36maker-azul2.png
+File915=36maker-azul3.png
+File916=36maker-azul4.png
+File917=36marker-rojo.png
+File918=36marker-verde.png
+File919=37maker-azul.png
+File92=111maker-azul.png
+File920=37maker-azul1.png
+File921=37maker-azul2.png
+File922=37maker-azul3.png
+File923=37maker-azul4.png
+File924=37marker-rojo.png
+File925=37marker-verde.png
+File926=38maker-azul.png
+File927=38maker-azul1.png
+File928=38maker-azul2.png
+File929=38maker-azul3.png
+File93=111maker-azul1.png
+File930=38maker-azul4.png
+File931=38marker-rojo.png
+File932=38marker-verde.png
+File933=39maker-azul.png
+File934=39maker-azul1.png
+File935=39maker-azul2.png
+File936=39maker-azul3.png
+File937=39maker-azul4.png
+File938=39marker-rojo.png
+File939=39marker-verde.png
+File94=111maker-azul2.png
+File940=3maker-azul.png
+File941=3maker-azul1.png
+File942=3maker-azul2.png
+File943=3maker-azul3.png
+File944=3maker-azul4.png
+File945=3marker-rojo.png
+File946=3marker-verde.png
+File947=40maker-azul.png
+File948=40maker-azul1.png
+File949=40maker-azul2.png
+File95=111maker-azul3.png
+File950=40maker-azul3.png
+File951=40maker-azul4.png
+File952=40marker-rojo.png
+File953=40marker-verde.png
+File954=41maker-azul.png
+File955=41maker-azul1.png
+File956=41maker-azul2.png
+File957=41maker-azul3.png
+File958=41maker-azul4.png
+File959=41marker-rojo.png
+File96=111maker-azul4.png
+File960=41marker-verde.png
+File961=42maker-azul.png
+File962=42maker-azul1.png
+File963=42maker-azul2.png
+File964=42maker-azul3.png
+File965=42maker-azul4.png
+File966=42marker-rojo.png
+File967=42marker-verde.png
+File968=43maker-azul.png
+File969=43maker-azul1.png
+File97=111marker-rojo.png
+File970=43maker-azul2.png
+File971=43maker-azul3.png
+File972=43maker-azul4.png
+File973=43marker-rojo.png
+File974=43marker-verde.png
+File975=44maker-azul.png
+File976=44maker-azul1.png
+File977=44maker-azul2.png
+File978=44maker-azul3.png
+File979=44maker-azul4.png
+File98=111marker-verde.png
+File980=44marker-rojo.png
+File981=44marker-verde.png
+File982=45maker-azul.png
+File983=45maker-azul1.png
+File984=45maker-azul2.png
+File985=45maker-azul3.png
+File986=45maker-azul4.png
+File987=45marker-rojo.png
+File988=45marker-verde.png
+File989=46maker-azul.png
+File99=112maker-azul.png
+File990=46maker-azul1.png
+File991=46maker-azul2.png
+File992=46maker-azul3.png
+File993=46maker-azul4.png
+File994=46marker-rojo.png
+File995=46marker-verde.png
+File996=47maker-azul.png
+File997=47maker-azul1.png
+File998=47maker-azul2.png
+File999=47maker-azul3.png
+FileGroup1=Default Group
+FileGroup10=Default Group
+FileGroup100=Default Group
+FileGroup1000=Default Group
+FileGroup1001=Default Group
+FileGroup1002=Default Group
+FileGroup1003=Default Group
+FileGroup1004=Default Group
+FileGroup1005=Default Group
+FileGroup1006=Default Group
+FileGroup1007=Default Group
+FileGroup1008=Default Group
+FileGroup1009=Default Group
+FileGroup101=Default Group
+FileGroup1010=Default Group
+FileGroup1011=Default Group
+FileGroup1012=Default Group
+FileGroup1013=Default Group
+FileGroup1014=Default Group
+FileGroup1015=Default Group
+FileGroup1016=Default Group
+FileGroup1017=Default Group
+FileGroup1018=Default Group
+FileGroup1019=Default Group
+FileGroup102=Default Group
+FileGroup1020=Default Group
+FileGroup1021=Default Group
+FileGroup1022=Default Group
+FileGroup1023=Default Group
+FileGroup1024=Default Group
+FileGroup1025=Default Group
+FileGroup1026=Default Group
+FileGroup1027=Default Group
+FileGroup1028=Default Group
+FileGroup1029=Default Group
+FileGroup103=Default Group
+FileGroup1030=Default Group
+FileGroup1031=Default Group
+FileGroup1032=Default Group
+FileGroup1033=Default Group
+FileGroup1034=Default Group
+FileGroup1035=Default Group
+FileGroup1036=Default Group
+FileGroup1037=Default Group
+FileGroup1038=Default Group
+FileGroup1039=Default Group
+FileGroup104=Default Group
+FileGroup1040=Default Group
+FileGroup1041=Default Group
+FileGroup1042=Default Group
+FileGroup1043=Default Group
+FileGroup1044=Default Group
+FileGroup1045=Default Group
+FileGroup1046=Default Group
+FileGroup1047=Default Group
+FileGroup1048=Default Group
+FileGroup1049=Default Group
+FileGroup105=Default Group
+FileGroup1050=Default Group
+FileGroup1051=Default Group
+FileGroup1052=Default Group
+FileGroup1053=Default Group
+FileGroup1054=Default Group
+FileGroup1055=Default Group
+FileGroup1056=Default Group
+FileGroup1057=Default Group
+FileGroup1058=Default Group
+FileGroup1059=Default Group
+FileGroup106=Default Group
+FileGroup1060=Default Group
+FileGroup1061=Default Group
+FileGroup1062=Default Group
+FileGroup1063=Default Group
+FileGroup1064=Default Group
+FileGroup1065=Default Group
+FileGroup1066=Default Group
+FileGroup1067=Default Group
+FileGroup1068=Default Group
+FileGroup1069=Default Group
+FileGroup107=Default Group
+FileGroup1070=Default Group
+FileGroup1071=Default Group
+FileGroup1072=Default Group
+FileGroup1073=Default Group
+FileGroup1074=Default Group
+FileGroup1075=Default Group
+FileGroup1076=Default Group
+FileGroup1077=Default Group
+FileGroup1078=Default Group
+FileGroup1079=Default Group
+FileGroup108=Default Group
+FileGroup1080=Default Group
+FileGroup1081=Default Group
+FileGroup1082=Default Group
+FileGroup1083=Default Group
+FileGroup1084=Default Group
+FileGroup1085=Default Group
+FileGroup1086=Default Group
+FileGroup1087=Default Group
+FileGroup1088=Default Group
+FileGroup1089=Default Group
+FileGroup109=Default Group
+FileGroup1090=Default Group
+FileGroup1091=Default Group
+FileGroup1092=Default Group
+FileGroup1093=Default Group
+FileGroup1094=Default Group
+FileGroup1095=Default Group
+FileGroup1096=Default Group
+FileGroup1097=Default Group
+FileGroup1098=Default Group
+FileGroup1099=Default Group
+FileGroup11=Default Group
+FileGroup110=Default Group
+FileGroup1100=Default Group
+FileGroup1101=Default Group
+FileGroup1102=Default Group
+FileGroup1103=Default Group
+FileGroup1104=Default Group
+FileGroup1105=Default Group
+FileGroup1106=Default Group
+FileGroup1107=Default Group
+FileGroup1108=Default Group
+FileGroup1109=Default Group
+FileGroup111=Default Group
+FileGroup1110=Default Group
+FileGroup1111=Default Group
+FileGroup1112=Default Group
+FileGroup1113=Default Group
+FileGroup1114=Default Group
+FileGroup1115=Default Group
+FileGroup1116=Default Group
+FileGroup1117=Default Group
+FileGroup1118=Default Group
+FileGroup1119=Default Group
+FileGroup112=Default Group
+FileGroup1120=Default Group
+FileGroup1121=Default Group
+FileGroup1122=Default Group
+FileGroup1123=Default Group
+FileGroup1124=Default Group
+FileGroup1125=Default Group
+FileGroup1126=Default Group
+FileGroup1127=Default Group
+FileGroup1128=Default Group
+FileGroup1129=Default Group
+FileGroup113=Default Group
+FileGroup1130=Default Group
+FileGroup1131=Default Group
+FileGroup1132=Default Group
+FileGroup1133=Default Group
+FileGroup1134=Default Group
+FileGroup1135=Default Group
+FileGroup1136=Default Group
+FileGroup1137=Default Group
+FileGroup1138=Default Group
+FileGroup1139=Default Group
+FileGroup114=Default Group
+FileGroup1140=Default Group
+FileGroup1141=Default Group
+FileGroup1142=Default Group
+FileGroup1143=Default Group
+FileGroup1144=Default Group
+FileGroup1145=Default Group
+FileGroup1146=Default Group
+FileGroup1147=Default Group
+FileGroup1148=Default Group
+FileGroup1149=Default Group
+FileGroup115=Default Group
+FileGroup1150=Default Group
+FileGroup1151=Default Group
+FileGroup1152=Default Group
+FileGroup1153=Default Group
+FileGroup1154=Default Group
+FileGroup1155=Default Group
+FileGroup1156=Default Group
+FileGroup1157=Default Group
+FileGroup1158=Default Group
+FileGroup1159=Default Group
+FileGroup116=Default Group
+FileGroup1160=Default Group
+FileGroup1161=Default Group
+FileGroup1162=Default Group
+FileGroup1163=Default Group
+FileGroup1164=Default Group
+FileGroup1165=Default Group
+FileGroup1166=Default Group
+FileGroup1167=Default Group
+FileGroup1168=Default Group
+FileGroup1169=Default Group
+FileGroup117=Default Group
+FileGroup1170=Default Group
+FileGroup1171=Default Group
+FileGroup1172=Default Group
+FileGroup1173=Default Group
+FileGroup1174=Default Group
+FileGroup1175=Default Group
+FileGroup1176=Default Group
+FileGroup1177=Default Group
+FileGroup1178=Default Group
+FileGroup1179=Default Group
+FileGroup118=Default Group
+FileGroup1180=Default Group
+FileGroup1181=Default Group
+FileGroup1182=Default Group
+FileGroup1183=Default Group
+FileGroup1184=Default Group
+FileGroup1185=Default Group
+FileGroup1186=Default Group
+FileGroup1187=Default Group
+FileGroup1188=Default Group
+FileGroup1189=Default Group
+FileGroup119=Default Group
+FileGroup1190=Default Group
+FileGroup1191=Default Group
+FileGroup1192=Default Group
+FileGroup1193=Default Group
+FileGroup1194=Default Group
+FileGroup1195=Default Group
+FileGroup1196=Default Group
+FileGroup1197=Default Group
+FileGroup1198=Default Group
+FileGroup1199=Default Group
+FileGroup12=Default Group
+FileGroup120=Default Group
+FileGroup1200=Default Group
+FileGroup1201=Default Group
+FileGroup1202=Default Group
+FileGroup1203=Default Group
+FileGroup1204=Default Group
+FileGroup1205=Default Group
+FileGroup1206=Default Group
+FileGroup1207=Default Group
+FileGroup1208=Default Group
+FileGroup1209=Default Group
+FileGroup121=Default Group
+FileGroup1210=Default Group
+FileGroup1211=Default Group
+FileGroup1212=Default Group
+FileGroup1213=Default Group
+FileGroup1214=Default Group
+FileGroup1215=Default Group
+FileGroup1216=Default Group
+FileGroup1217=Default Group
+FileGroup1218=Default Group
+FileGroup1219=Default Group
+FileGroup122=Default Group
+FileGroup1220=Default Group
+FileGroup1221=Default Group
+FileGroup1222=Default Group
+FileGroup1223=Default Group
+FileGroup1224=Default Group
+FileGroup1225=Default Group
+FileGroup1226=Default Group
+FileGroup1227=Default Group
+FileGroup1228=Default Group
+FileGroup1229=Default Group
+FileGroup123=Default Group
+FileGroup1230=Default Group
+FileGroup1231=Default Group
+FileGroup1232=Default Group
+FileGroup1233=Default Group
+FileGroup1234=Default Group
+FileGroup1235=Default Group
+FileGroup1236=Default Group
+FileGroup1237=Default Group
+FileGroup1238=Default Group
+FileGroup1239=Default Group
+FileGroup124=Default Group
+FileGroup1240=Default Group
+FileGroup1241=Default Group
+FileGroup1242=Default Group
+FileGroup1243=Default Group
+FileGroup1244=Default Group
+FileGroup1245=Default Group
+FileGroup1246=Default Group
+FileGroup1247=Default Group
+FileGroup1248=Default Group
+FileGroup1249=Default Group
+FileGroup125=Default Group
+FileGroup1250=Default Group
+FileGroup1251=Default Group
+FileGroup1252=Default Group
+FileGroup1253=Default Group
+FileGroup1254=Default Group
+FileGroup1255=Default Group
+FileGroup1256=Default Group
+FileGroup1257=Default Group
+FileGroup1258=Default Group
+FileGroup1259=Default Group
+FileGroup126=Default Group
+FileGroup1260=Default Group
+FileGroup1261=Default Group
+FileGroup1262=Default Group
+FileGroup1263=Default Group
+FileGroup1264=Default Group
+FileGroup1265=Default Group
+FileGroup1266=Default Group
+FileGroup1267=Default Group
+FileGroup1268=Default Group
+FileGroup1269=Default Group
+FileGroup127=Default Group
+FileGroup1270=Default Group
+FileGroup1271=Default Group
+FileGroup1272=Default Group
+FileGroup1273=Default Group
+FileGroup1274=Default Group
+FileGroup1275=Default Group
+FileGroup1276=Default Group
+FileGroup1277=Default Group
+FileGroup1278=Default Group
+FileGroup1279=Default Group
+FileGroup128=Default Group
+FileGroup1280=Default Group
+FileGroup1281=Default Group
+FileGroup1282=Default Group
+FileGroup1283=Default Group
+FileGroup1284=Default Group
+FileGroup1285=Default Group
+FileGroup1286=Default Group
+FileGroup1287=Default Group
+FileGroup1288=Default Group
+FileGroup1289=Default Group
+FileGroup129=Default Group
+FileGroup1290=Default Group
+FileGroup1291=Default Group
+FileGroup1292=Default Group
+FileGroup1293=Default Group
+FileGroup1294=Default Group
+FileGroup1295=Default Group
+FileGroup1296=Default Group
+FileGroup1297=Default Group
+FileGroup1298=Default Group
+FileGroup1299=Default Group
+FileGroup13=Default Group
+FileGroup130=Default Group
+FileGroup1300=Default Group
+FileGroup1301=Default Group
+FileGroup1302=Default Group
+FileGroup1303=Default Group
+FileGroup1304=Default Group
+FileGroup1305=Default Group
+FileGroup1306=Default Group
+FileGroup1307=Default Group
+FileGroup1308=Default Group
+FileGroup1309=Default Group
+FileGroup131=Default Group
+FileGroup1310=Default Group
+FileGroup1311=Default Group
+FileGroup1312=Default Group
+FileGroup1313=Default Group
+FileGroup1314=Default Group
+FileGroup1315=Default Group
+FileGroup1316=Default Group
+FileGroup1317=Default Group
+FileGroup1318=Default Group
+FileGroup1319=Default Group
+FileGroup132=Default Group
+FileGroup1320=Default Group
+FileGroup1321=Default Group
+FileGroup1322=Default Group
+FileGroup1323=Default Group
+FileGroup1324=Default Group
+FileGroup1325=Default Group
+FileGroup1326=Default Group
+FileGroup1327=Default Group
+FileGroup1328=Default Group
+FileGroup1329=Default Group
+FileGroup133=Default Group
+FileGroup1330=Default Group
+FileGroup1331=Default Group
+FileGroup1332=Default Group
+FileGroup1333=Default Group
+FileGroup1334=Default Group
+FileGroup1335=Default Group
+FileGroup1336=Default Group
+FileGroup1337=Default Group
+FileGroup1338=Default Group
+FileGroup1339=Default Group
+FileGroup134=Default Group
+FileGroup1340=Default Group
+FileGroup1341=Default Group
+FileGroup1342=Default Group
+FileGroup1343=Default Group
+FileGroup1344=Default Group
+FileGroup1345=Default Group
+FileGroup1346=Default Group
+FileGroup1347=Default Group
+FileGroup1348=Default Group
+FileGroup1349=Default Group
+FileGroup135=Default Group
+FileGroup1350=Default Group
+FileGroup1351=Default Group
+FileGroup1352=Default Group
+FileGroup1353=Default Group
+FileGroup1354=Default Group
+FileGroup1355=Default Group
+FileGroup1356=Default Group
+FileGroup1357=Default Group
+FileGroup1358=Default Group
+FileGroup1359=Default Group
+FileGroup136=Default Group
+FileGroup1360=Default Group
+FileGroup1361=Default Group
+FileGroup1362=Default Group
+FileGroup1363=Default Group
+FileGroup1364=Default Group
+FileGroup1365=Default Group
+FileGroup1366=Default Group
+FileGroup1367=Default Group
+FileGroup1368=Default Group
+FileGroup1369=Default Group
+FileGroup137=Default Group
+FileGroup1370=Default Group
+FileGroup1371=Default Group
+FileGroup1372=Default Group
+FileGroup1373=Default Group
+FileGroup1374=Default Group
+FileGroup1375=Default Group
+FileGroup1376=Default Group
+FileGroup1377=Default Group
+FileGroup1378=Default Group
+FileGroup1379=Default Group
+FileGroup138=Default Group
+FileGroup1380=Default Group
+FileGroup1381=Default Group
+FileGroup1382=Default Group
+FileGroup1383=Default Group
+FileGroup1384=Default Group
+FileGroup1385=Default Group
+FileGroup1386=Default Group
+FileGroup1387=Default Group
+FileGroup1388=Default Group
+FileGroup1389=Default Group
+FileGroup139=Default Group
+FileGroup1390=Default Group
+FileGroup1391=Default Group
+FileGroup1392=Default Group
+FileGroup1393=Default Group
+FileGroup1394=Default Group
+FileGroup1395=Default Group
+FileGroup1396=Default Group
+FileGroup1397=Default Group
+FileGroup1398=Default Group
+FileGroup1399=Default Group
+FileGroup14=Default Group
+FileGroup140=Default Group
+FileGroup1400=Default Group
+FileGroup1401=Default Group
+FileGroup1402=Default Group
+FileGroup1403=Default Group
+FileGroup1404=Default Group
+FileGroup1405=Default Group
+FileGroup1406=Default Group
+FileGroup1407=Default Group
+FileGroup1408=Default Group
+FileGroup1409=Default Group
+FileGroup141=Default Group
+FileGroup1410=Default Group
+FileGroup1411=Default Group
+FileGroup1412=Default Group
+FileGroup1413=Default Group
+FileGroup1414=Default Group
+FileGroup1415=Default Group
+FileGroup1416=Default Group
+FileGroup1417=Default Group
+FileGroup1418=Default Group
+FileGroup1419=Default Group
+FileGroup142=Default Group
+FileGroup1420=Default Group
+FileGroup1421=Default Group
+FileGroup1422=Default Group
+FileGroup1423=Default Group
+FileGroup1424=Default Group
+FileGroup1425=Default Group
+FileGroup1426=Default Group
+FileGroup1427=Default Group
+FileGroup1428=Default Group
+FileGroup1429=Default Group
+FileGroup143=Default Group
+FileGroup1430=Default Group
+FileGroup1431=Default Group
+FileGroup1432=Default Group
+FileGroup1433=Default Group
+FileGroup1434=Default Group
+FileGroup1435=Default Group
+FileGroup1436=Default Group
+FileGroup1437=Default Group
+FileGroup1438=Default Group
+FileGroup1439=Default Group
+FileGroup144=Default Group
+FileGroup1440=Default Group
+FileGroup1441=Default Group
+FileGroup1442=Default Group
+FileGroup1443=Default Group
+FileGroup1444=Default Group
+FileGroup1445=Default Group
+FileGroup1446=Default Group
+FileGroup1447=Default Group
+FileGroup1448=Default Group
+FileGroup1449=Default Group
+FileGroup145=Default Group
+FileGroup1450=Default Group
+FileGroup1451=Default Group
+FileGroup1452=Default Group
+FileGroup1453=Default Group
+FileGroup1454=Default Group
+FileGroup1455=Default Group
+FileGroup1456=Default Group
+FileGroup1457=Default Group
+FileGroup1458=Default Group
+FileGroup1459=Default Group
+FileGroup146=Default Group
+FileGroup1460=Default Group
+FileGroup1461=Default Group
+FileGroup1462=Default Group
+FileGroup1463=Default Group
+FileGroup1464=Default Group
+FileGroup1465=Default Group
+FileGroup1466=Default Group
+FileGroup1467=Default Group
+FileGroup1468=Default Group
+FileGroup1469=Default Group
+FileGroup147=Default Group
+FileGroup1470=Default Group
+FileGroup1471=Default Group
+FileGroup1472=Default Group
+FileGroup1473=Default Group
+FileGroup1474=Default Group
+FileGroup1475=Default Group
+FileGroup148=Default Group
+FileGroup149=Default Group
+FileGroup15=Default Group
+FileGroup150=Default Group
+FileGroup151=Default Group
+FileGroup152=Default Group
+FileGroup153=Default Group
+FileGroup154=Default Group
+FileGroup155=Default Group
+FileGroup156=Default Group
+FileGroup157=Default Group
+FileGroup158=Default Group
+FileGroup159=Default Group
+FileGroup16=Default Group
+FileGroup160=Default Group
+FileGroup161=Default Group
+FileGroup162=Default Group
+FileGroup163=Default Group
+FileGroup164=Default Group
+FileGroup165=Default Group
+FileGroup166=Default Group
+FileGroup167=Default Group
+FileGroup168=Default Group
+FileGroup169=Default Group
+FileGroup17=Default Group
+FileGroup170=Default Group
+FileGroup171=Default Group
+FileGroup172=Default Group
+FileGroup173=Default Group
+FileGroup174=Default Group
+FileGroup175=Default Group
+FileGroup176=Default Group
+FileGroup177=Default Group
+FileGroup178=Default Group
+FileGroup179=Default Group
+FileGroup18=Default Group
+FileGroup180=Default Group
+FileGroup181=Default Group
+FileGroup182=Default Group
+FileGroup183=Default Group
+FileGroup184=Default Group
+FileGroup185=Default Group
+FileGroup186=Default Group
+FileGroup187=Default Group
+FileGroup188=Default Group
+FileGroup189=Default Group
+FileGroup19=Default Group
+FileGroup190=Default Group
+FileGroup191=Default Group
+FileGroup192=Default Group
+FileGroup193=Default Group
+FileGroup194=Default Group
+FileGroup195=Default Group
+FileGroup196=Default Group
+FileGroup197=Default Group
+FileGroup198=Default Group
+FileGroup199=Default Group
+FileGroup2=Default Group
+FileGroup20=Default Group
+FileGroup200=Default Group
+FileGroup201=Default Group
+FileGroup202=Default Group
+FileGroup203=Default Group
+FileGroup204=Default Group
+FileGroup205=Default Group
+FileGroup206=Default Group
+FileGroup207=Default Group
+FileGroup208=Default Group
+FileGroup209=Default Group
+FileGroup21=Default Group
+FileGroup210=Default Group
+FileGroup211=Default Group
+FileGroup212=Default Group
+FileGroup213=Default Group
+FileGroup214=Default Group
+FileGroup215=Default Group
+FileGroup216=Default Group
+FileGroup217=Default Group
+FileGroup218=Default Group
+FileGroup219=Default Group
+FileGroup22=Default Group
+FileGroup220=Default Group
+FileGroup221=Default Group
+FileGroup222=Default Group
+FileGroup223=Default Group
+FileGroup224=Default Group
+FileGroup225=Default Group
+FileGroup226=Default Group
+FileGroup227=Default Group
+FileGroup228=Default Group
+FileGroup229=Default Group
+FileGroup23=Default Group
+FileGroup230=Default Group
+FileGroup231=Default Group
+FileGroup232=Default Group
+FileGroup233=Default Group
+FileGroup234=Default Group
+FileGroup235=Default Group
+FileGroup236=Default Group
+FileGroup237=Default Group
+FileGroup238=Default Group
+FileGroup239=Default Group
+FileGroup24=Default Group
+FileGroup240=Default Group
+FileGroup241=Default Group
+FileGroup242=Default Group
+FileGroup243=Default Group
+FileGroup244=Default Group
+FileGroup245=Default Group
+FileGroup246=Default Group
+FileGroup247=Default Group
+FileGroup248=Default Group
+FileGroup249=Default Group
+FileGroup25=Default Group
+FileGroup250=Default Group
+FileGroup251=Default Group
+FileGroup252=Default Group
+FileGroup253=Default Group
+FileGroup254=Default Group
+FileGroup255=Default Group
+FileGroup256=Default Group
+FileGroup257=Default Group
+FileGroup258=Default Group
+FileGroup259=Default Group
+FileGroup26=Default Group
+FileGroup260=Default Group
+FileGroup261=Default Group
+FileGroup262=Default Group
+FileGroup263=Default Group
+FileGroup264=Default Group
+FileGroup265=Default Group
+FileGroup266=Default Group
+FileGroup267=Default Group
+FileGroup268=Default Group
+FileGroup269=Default Group
+FileGroup27=Default Group
+FileGroup270=Default Group
+FileGroup271=Default Group
+FileGroup272=Default Group
+FileGroup273=Default Group
+FileGroup274=Default Group
+FileGroup275=Default Group
+FileGroup276=Default Group
+FileGroup277=Default Group
+FileGroup278=Default Group
+FileGroup279=Default Group
+FileGroup28=Default Group
+FileGroup280=Default Group
+FileGroup281=Default Group
+FileGroup282=Default Group
+FileGroup283=Default Group
+FileGroup284=Default Group
+FileGroup285=Default Group
+FileGroup286=Default Group
+FileGroup287=Default Group
+FileGroup288=Default Group
+FileGroup289=Default Group
+FileGroup29=Default Group
+FileGroup290=Default Group
+FileGroup291=Default Group
+FileGroup292=Default Group
+FileGroup293=Default Group
+FileGroup294=Default Group
+FileGroup295=Default Group
+FileGroup296=Default Group
+FileGroup297=Default Group
+FileGroup298=Default Group
+FileGroup299=Default Group
+FileGroup3=Default Group
+FileGroup30=Default Group
+FileGroup300=Default Group
+FileGroup301=Default Group
+FileGroup302=Default Group
+FileGroup303=Default Group
+FileGroup304=Default Group
+FileGroup305=Default Group
+FileGroup306=Default Group
+FileGroup307=Default Group
+FileGroup308=Default Group
+FileGroup309=Default Group
+FileGroup31=Default Group
+FileGroup310=Default Group
+FileGroup311=Default Group
+FileGroup312=Default Group
+FileGroup313=Default Group
+FileGroup314=Default Group
+FileGroup315=Default Group
+FileGroup316=Default Group
+FileGroup317=Default Group
+FileGroup318=Default Group
+FileGroup319=Default Group
+FileGroup32=Default Group
+FileGroup320=Default Group
+FileGroup321=Default Group
+FileGroup322=Default Group
+FileGroup323=Default Group
+FileGroup324=Default Group
+FileGroup325=Default Group
+FileGroup326=Default Group
+FileGroup327=Default Group
+FileGroup328=Default Group
+FileGroup329=Default Group
+FileGroup33=Default Group
+FileGroup330=Default Group
+FileGroup331=Default Group
+FileGroup332=Default Group
+FileGroup333=Default Group
+FileGroup334=Default Group
+FileGroup335=Default Group
+FileGroup336=Default Group
+FileGroup337=Default Group
+FileGroup338=Default Group
+FileGroup339=Default Group
+FileGroup34=Default Group
+FileGroup340=Default Group
+FileGroup341=Default Group
+FileGroup342=Default Group
+FileGroup343=Default Group
+FileGroup344=Default Group
+FileGroup345=Default Group
+FileGroup346=Default Group
+FileGroup347=Default Group
+FileGroup348=Default Group
+FileGroup349=Default Group
+FileGroup35=Default Group
+FileGroup350=Default Group
+FileGroup351=Default Group
+FileGroup352=Default Group
+FileGroup353=Default Group
+FileGroup354=Default Group
+FileGroup355=Default Group
+FileGroup356=Default Group
+FileGroup357=Default Group
+FileGroup358=Default Group
+FileGroup359=Default Group
+FileGroup36=Default Group
+FileGroup360=Default Group
+FileGroup361=Default Group
+FileGroup362=Default Group
+FileGroup363=Default Group
+FileGroup364=Default Group
+FileGroup365=Default Group
+FileGroup366=Default Group
+FileGroup367=Default Group
+FileGroup368=Default Group
+FileGroup369=Default Group
+FileGroup37=Default Group
+FileGroup370=Default Group
+FileGroup371=Default Group
+FileGroup372=Default Group
+FileGroup373=Default Group
+FileGroup374=Default Group
+FileGroup375=Default Group
+FileGroup376=Default Group
+FileGroup377=Default Group
+FileGroup378=Default Group
+FileGroup379=Default Group
+FileGroup38=Default Group
+FileGroup380=Default Group
+FileGroup381=Default Group
+FileGroup382=Default Group
+FileGroup383=Default Group
+FileGroup384=Default Group
+FileGroup385=Default Group
+FileGroup386=Default Group
+FileGroup387=Default Group
+FileGroup388=Default Group
+FileGroup389=Default Group
+FileGroup39=Default Group
+FileGroup390=Default Group
+FileGroup391=Default Group
+FileGroup392=Default Group
+FileGroup393=Default Group
+FileGroup394=Default Group
+FileGroup395=Default Group
+FileGroup396=Default Group
+FileGroup397=Default Group
+FileGroup398=Default Group
+FileGroup399=Default Group
+FileGroup4=Default Group
+FileGroup40=Default Group
+FileGroup400=Default Group
+FileGroup401=Default Group
+FileGroup402=Default Group
+FileGroup403=Default Group
+FileGroup404=Default Group
+FileGroup405=Default Group
+FileGroup406=Default Group
+FileGroup407=Default Group
+FileGroup408=Default Group
+FileGroup409=Default Group
+FileGroup41=Default Group
+FileGroup410=Default Group
+FileGroup411=Default Group
+FileGroup412=Default Group
+FileGroup413=Default Group
+FileGroup414=Default Group
+FileGroup415=Default Group
+FileGroup416=Default Group
+FileGroup417=Default Group
+FileGroup418=Default Group
+FileGroup419=Default Group
+FileGroup42=Default Group
+FileGroup420=Default Group
+FileGroup421=Default Group
+FileGroup422=Default Group
+FileGroup423=Default Group
+FileGroup424=Default Group
+FileGroup425=Default Group
+FileGroup426=Default Group
+FileGroup427=Default Group
+FileGroup428=Default Group
+FileGroup429=Default Group
+FileGroup43=Default Group
+FileGroup430=Default Group
+FileGroup431=Default Group
+FileGroup432=Default Group
+FileGroup433=Default Group
+FileGroup434=Default Group
+FileGroup435=Default Group
+FileGroup436=Default Group
+FileGroup437=Default Group
+FileGroup438=Default Group
+FileGroup439=Default Group
+FileGroup44=Default Group
+FileGroup440=Default Group
+FileGroup441=Default Group
+FileGroup442=Default Group
+FileGroup443=Default Group
+FileGroup444=Default Group
+FileGroup445=Default Group
+FileGroup446=Default Group
+FileGroup447=Default Group
+FileGroup448=Default Group
+FileGroup449=Default Group
+FileGroup45=Default Group
+FileGroup450=Default Group
+FileGroup451=Default Group
+FileGroup452=Default Group
+FileGroup453=Default Group
+FileGroup454=Default Group
+FileGroup455=Default Group
+FileGroup456=Default Group
+FileGroup457=Default Group
+FileGroup458=Default Group
+FileGroup459=Default Group
+FileGroup46=Default Group
+FileGroup460=Default Group
+FileGroup461=Default Group
+FileGroup462=Default Group
+FileGroup463=Default Group
+FileGroup464=Default Group
+FileGroup465=Default Group
+FileGroup466=Default Group
+FileGroup467=Default Group
+FileGroup468=Default Group
+FileGroup469=Default Group
+FileGroup47=Default Group
+FileGroup470=Default Group
+FileGroup471=Default Group
+FileGroup472=Default Group
+FileGroup473=Default Group
+FileGroup474=Default Group
+FileGroup475=Default Group
+FileGroup476=Default Group
+FileGroup477=Default Group
+FileGroup478=Default Group
+FileGroup479=Default Group
+FileGroup48=Default Group
+FileGroup480=Default Group
+FileGroup481=Default Group
+FileGroup482=Default Group
+FileGroup483=Default Group
+FileGroup484=Default Group
+FileGroup485=Default Group
+FileGroup486=Default Group
+FileGroup487=Default Group
+FileGroup488=Default Group
+FileGroup489=Default Group
+FileGroup49=Default Group
+FileGroup490=Default Group
+FileGroup491=Default Group
+FileGroup492=Default Group
+FileGroup493=Default Group
+FileGroup494=Default Group
+FileGroup495=Default Group
+FileGroup496=Default Group
+FileGroup497=Default Group
+FileGroup498=Default Group
+FileGroup499=Default Group
+FileGroup5=Default Group
+FileGroup50=Default Group
+FileGroup500=Default Group
+FileGroup501=Default Group
+FileGroup502=Default Group
+FileGroup503=Default Group
+FileGroup504=Default Group
+FileGroup505=Default Group
+FileGroup506=Default Group
+FileGroup507=Default Group
+FileGroup508=Default Group
+FileGroup509=Default Group
+FileGroup51=Default Group
+FileGroup510=Default Group
+FileGroup511=Default Group
+FileGroup512=Default Group
+FileGroup513=Default Group
+FileGroup514=Default Group
+FileGroup515=Default Group
+FileGroup516=Default Group
+FileGroup517=Default Group
+FileGroup518=Default Group
+FileGroup519=Default Group
+FileGroup52=Default Group
+FileGroup520=Default Group
+FileGroup521=Default Group
+FileGroup522=Default Group
+FileGroup523=Default Group
+FileGroup524=Default Group
+FileGroup525=Default Group
+FileGroup526=Default Group
+FileGroup527=Default Group
+FileGroup528=Default Group
+FileGroup529=Default Group
+FileGroup53=Default Group
+FileGroup530=Default Group
+FileGroup531=Default Group
+FileGroup532=Default Group
+FileGroup533=Default Group
+FileGroup534=Default Group
+FileGroup535=Default Group
+FileGroup536=Default Group
+FileGroup537=Default Group
+FileGroup538=Default Group
+FileGroup539=Default Group
+FileGroup54=Default Group
+FileGroup540=Default Group
+FileGroup541=Default Group
+FileGroup542=Default Group
+FileGroup543=Default Group
+FileGroup544=Default Group
+FileGroup545=Default Group
+FileGroup546=Default Group
+FileGroup547=Default Group
+FileGroup548=Default Group
+FileGroup549=Default Group
+FileGroup55=Default Group
+FileGroup550=Default Group
+FileGroup551=Default Group
+FileGroup552=Default Group
+FileGroup553=Default Group
+FileGroup554=Default Group
+FileGroup555=Default Group
+FileGroup556=Default Group
+FileGroup557=Default Group
+FileGroup558=Default Group
+FileGroup559=Default Group
+FileGroup56=Default Group
+FileGroup560=Default Group
+FileGroup561=Default Group
+FileGroup562=Default Group
+FileGroup563=Default Group
+FileGroup564=Default Group
+FileGroup565=Default Group
+FileGroup566=Default Group
+FileGroup567=Default Group
+FileGroup568=Default Group
+FileGroup569=Default Group
+FileGroup57=Default Group
+FileGroup570=Default Group
+FileGroup571=Default Group
+FileGroup572=Default Group
+FileGroup573=Default Group
+FileGroup574=Default Group
+FileGroup575=Default Group
+FileGroup576=Default Group
+FileGroup577=Default Group
+FileGroup578=Default Group
+FileGroup579=Default Group
+FileGroup58=Default Group
+FileGroup580=Default Group
+FileGroup581=Default Group
+FileGroup582=Default Group
+FileGroup583=Default Group
+FileGroup584=Default Group
+FileGroup585=Default Group
+FileGroup586=Default Group
+FileGroup587=Default Group
+FileGroup588=Default Group
+FileGroup589=Default Group
+FileGroup59=Default Group
+FileGroup590=Default Group
+FileGroup591=Default Group
+FileGroup592=Default Group
+FileGroup593=Default Group
+FileGroup594=Default Group
+FileGroup595=Default Group
+FileGroup596=Default Group
+FileGroup597=Default Group
+FileGroup598=Default Group
+FileGroup599=Default Group
+FileGroup6=Default Group
+FileGroup60=Default Group
+FileGroup600=Default Group
+FileGroup601=Default Group
+FileGroup602=Default Group
+FileGroup603=Default Group
+FileGroup604=Default Group
+FileGroup605=Default Group
+FileGroup606=Default Group
+FileGroup607=Default Group
+FileGroup608=Default Group
+FileGroup609=Default Group
+FileGroup61=Default Group
+FileGroup610=Default Group
+FileGroup611=Default Group
+FileGroup612=Default Group
+FileGroup613=Default Group
+FileGroup614=Default Group
+FileGroup615=Default Group
+FileGroup616=Default Group
+FileGroup617=Default Group
+FileGroup618=Default Group
+FileGroup619=Default Group
+FileGroup62=Default Group
+FileGroup620=Default Group
+FileGroup621=Default Group
+FileGroup622=Default Group
+FileGroup623=Default Group
+FileGroup624=Default Group
+FileGroup625=Default Group
+FileGroup626=Default Group
+FileGroup627=Default Group
+FileGroup628=Default Group
+FileGroup629=Default Group
+FileGroup63=Default Group
+FileGroup630=Default Group
+FileGroup631=Default Group
+FileGroup632=Default Group
+FileGroup633=Default Group
+FileGroup634=Default Group
+FileGroup635=Default Group
+FileGroup636=Default Group
+FileGroup637=Default Group
+FileGroup638=Default Group
+FileGroup639=Default Group
+FileGroup64=Default Group
+FileGroup640=Default Group
+FileGroup641=Default Group
+FileGroup642=Default Group
+FileGroup643=Default Group
+FileGroup644=Default Group
+FileGroup645=Default Group
+FileGroup646=Default Group
+FileGroup647=Default Group
+FileGroup648=Default Group
+FileGroup649=Default Group
+FileGroup65=Default Group
+FileGroup650=Default Group
+FileGroup651=Default Group
+FileGroup652=Default Group
+FileGroup653=Default Group
+FileGroup654=Default Group
+FileGroup655=Default Group
+FileGroup656=Default Group
+FileGroup657=Default Group
+FileGroup658=Default Group
+FileGroup659=Default Group
+FileGroup66=Default Group
+FileGroup660=Default Group
+FileGroup661=Default Group
+FileGroup662=Default Group
+FileGroup663=Default Group
+FileGroup664=Default Group
+FileGroup665=Default Group
+FileGroup666=Default Group
+FileGroup667=Default Group
+FileGroup668=Default Group
+FileGroup669=Default Group
+FileGroup67=Default Group
+FileGroup670=Default Group
+FileGroup671=Default Group
+FileGroup672=Default Group
+FileGroup673=Default Group
+FileGroup674=Default Group
+FileGroup675=Default Group
+FileGroup676=Default Group
+FileGroup677=Default Group
+FileGroup678=Default Group
+FileGroup679=Default Group
+FileGroup68=Default Group
+FileGroup680=Default Group
+FileGroup681=Default Group
+FileGroup682=Default Group
+FileGroup683=Default Group
+FileGroup684=Default Group
+FileGroup685=Default Group
+FileGroup686=Default Group
+FileGroup687=Default Group
+FileGroup688=Default Group
+FileGroup689=Default Group
+FileGroup69=Default Group
+FileGroup690=Default Group
+FileGroup691=Default Group
+FileGroup692=Default Group
+FileGroup693=Default Group
+FileGroup694=Default Group
+FileGroup695=Default Group
+FileGroup696=Default Group
+FileGroup697=Default Group
+FileGroup698=Default Group
+FileGroup699=Default Group
+FileGroup7=Default Group
+FileGroup70=Default Group
+FileGroup700=Default Group
+FileGroup701=Default Group
+FileGroup702=Default Group
+FileGroup703=Default Group
+FileGroup704=Default Group
+FileGroup705=Default Group
+FileGroup706=Default Group
+FileGroup707=Default Group
+FileGroup708=Default Group
+FileGroup709=Default Group
+FileGroup71=Default Group
+FileGroup710=Default Group
+FileGroup711=Default Group
+FileGroup712=Default Group
+FileGroup713=Default Group
+FileGroup714=Default Group
+FileGroup715=Default Group
+FileGroup716=Default Group
+FileGroup717=Default Group
+FileGroup718=Default Group
+FileGroup719=Default Group
+FileGroup72=Default Group
+FileGroup720=Default Group
+FileGroup721=Default Group
+FileGroup722=Default Group
+FileGroup723=Default Group
+FileGroup724=Default Group
+FileGroup725=Default Group
+FileGroup726=Default Group
+FileGroup727=Default Group
+FileGroup728=Default Group
+FileGroup729=Default Group
+FileGroup73=Default Group
+FileGroup730=Default Group
+FileGroup731=Default Group
+FileGroup732=Default Group
+FileGroup733=Default Group
+FileGroup734=Default Group
+FileGroup735=Default Group
+FileGroup736=Default Group
+FileGroup737=Default Group
+FileGroup738=Default Group
+FileGroup739=Default Group
+FileGroup74=Default Group
+FileGroup740=Default Group
+FileGroup741=Default Group
+FileGroup742=Default Group
+FileGroup743=Default Group
+FileGroup744=Default Group
+FileGroup745=Default Group
+FileGroup746=Default Group
+FileGroup747=Default Group
+FileGroup748=Default Group
+FileGroup749=Default Group
+FileGroup75=Default Group
+FileGroup750=Default Group
+FileGroup751=Default Group
+FileGroup752=Default Group
+FileGroup753=Default Group
+FileGroup754=Default Group
+FileGroup755=Default Group
+FileGroup756=Default Group
+FileGroup757=Default Group
+FileGroup758=Default Group
+FileGroup759=Default Group
+FileGroup76=Default Group
+FileGroup760=Default Group
+FileGroup761=Default Group
+FileGroup762=Default Group
+FileGroup763=Default Group
+FileGroup764=Default Group
+FileGroup765=Default Group
+FileGroup766=Default Group
+FileGroup767=Default Group
+FileGroup768=Default Group
+FileGroup769=Default Group
+FileGroup77=Default Group
+FileGroup770=Default Group
+FileGroup771=Default Group
+FileGroup772=Default Group
+FileGroup773=Default Group
+FileGroup774=Default Group
+FileGroup775=Default Group
+FileGroup776=Default Group
+FileGroup777=Default Group
+FileGroup778=Default Group
+FileGroup779=Default Group
+FileGroup78=Default Group
+FileGroup780=Default Group
+FileGroup781=Default Group
+FileGroup782=Default Group
+FileGroup783=Default Group
+FileGroup784=Default Group
+FileGroup785=Default Group
+FileGroup786=Default Group
+FileGroup787=Default Group
+FileGroup788=Default Group
+FileGroup789=Default Group
+FileGroup79=Default Group
+FileGroup790=Default Group
+FileGroup791=Default Group
+FileGroup792=Default Group
+FileGroup793=Default Group
+FileGroup794=Default Group
+FileGroup795=Default Group
+FileGroup796=Default Group
+FileGroup797=Default Group
+FileGroup798=Default Group
+FileGroup799=Default Group
+FileGroup8=Default Group
+FileGroup80=Default Group
+FileGroup800=Default Group
+FileGroup801=Default Group
+FileGroup802=Default Group
+FileGroup803=Default Group
+FileGroup804=Default Group
+FileGroup805=Default Group
+FileGroup806=Default Group
+FileGroup807=Default Group
+FileGroup808=Default Group
+FileGroup809=Default Group
+FileGroup81=Default Group
+FileGroup810=Default Group
+FileGroup811=Default Group
+FileGroup812=Default Group
+FileGroup813=Default Group
+FileGroup814=Default Group
+FileGroup815=Default Group
+FileGroup816=Default Group
+FileGroup817=Default Group
+FileGroup818=Default Group
+FileGroup819=Default Group
+FileGroup82=Default Group
+FileGroup820=Default Group
+FileGroup821=Default Group
+FileGroup822=Default Group
+FileGroup823=Default Group
+FileGroup824=Default Group
+FileGroup825=Default Group
+FileGroup826=Default Group
+FileGroup827=Default Group
+FileGroup828=Default Group
+FileGroup829=Default Group
+FileGroup83=Default Group
+FileGroup830=Default Group
+FileGroup831=Default Group
+FileGroup832=Default Group
+FileGroup833=Default Group
+FileGroup834=Default Group
+FileGroup835=Default Group
+FileGroup836=Default Group
+FileGroup837=Default Group
+FileGroup838=Default Group
+FileGroup839=Default Group
+FileGroup84=Default Group
+FileGroup840=Default Group
+FileGroup841=Default Group
+FileGroup842=Default Group
+FileGroup843=Default Group
+FileGroup844=Default Group
+FileGroup845=Default Group
+FileGroup846=Default Group
+FileGroup847=Default Group
+FileGroup848=Default Group
+FileGroup849=Default Group
+FileGroup85=Default Group
+FileGroup850=Default Group
+FileGroup851=Default Group
+FileGroup852=Default Group
+FileGroup853=Default Group
+FileGroup854=Default Group
+FileGroup855=Default Group
+FileGroup856=Default Group
+FileGroup857=Default Group
+FileGroup858=Default Group
+FileGroup859=Default Group
+FileGroup86=Default Group
+FileGroup860=Default Group
+FileGroup861=Default Group
+FileGroup862=Default Group
+FileGroup863=Default Group
+FileGroup864=Default Group
+FileGroup865=Default Group
+FileGroup866=Default Group
+FileGroup867=Default Group
+FileGroup868=Default Group
+FileGroup869=Default Group
+FileGroup87=Default Group
+FileGroup870=Default Group
+FileGroup871=Default Group
+FileGroup872=Default Group
+FileGroup873=Default Group
+FileGroup874=Default Group
+FileGroup875=Default Group
+FileGroup876=Default Group
+FileGroup877=Default Group
+FileGroup878=Default Group
+FileGroup879=Default Group
+FileGroup88=Default Group
+FileGroup880=Default Group
+FileGroup881=Default Group
+FileGroup882=Default Group
+FileGroup883=Default Group
+FileGroup884=Default Group
+FileGroup885=Default Group
+FileGroup886=Default Group
+FileGroup887=Default Group
+FileGroup888=Default Group
+FileGroup889=Default Group
+FileGroup89=Default Group
+FileGroup890=Default Group
+FileGroup891=Default Group
+FileGroup892=Default Group
+FileGroup893=Default Group
+FileGroup894=Default Group
+FileGroup895=Default Group
+FileGroup896=Default Group
+FileGroup897=Default Group
+FileGroup898=Default Group
+FileGroup899=Default Group
+FileGroup9=Default Group
+FileGroup90=Default Group
+FileGroup900=Default Group
+FileGroup901=Default Group
+FileGroup902=Default Group
+FileGroup903=Default Group
+FileGroup904=Default Group
+FileGroup905=Default Group
+FileGroup906=Default Group
+FileGroup907=Default Group
+FileGroup908=Default Group
+FileGroup909=Default Group
+FileGroup91=Default Group
+FileGroup910=Default Group
+FileGroup911=Default Group
+FileGroup912=Default Group
+FileGroup913=Default Group
+FileGroup914=Default Group
+FileGroup915=Default Group
+FileGroup916=Default Group
+FileGroup917=Default Group
+FileGroup918=Default Group
+FileGroup919=Default Group
+FileGroup92=Default Group
+FileGroup920=Default Group
+FileGroup921=Default Group
+FileGroup922=Default Group
+FileGroup923=Default Group
+FileGroup924=Default Group
+FileGroup925=Default Group
+FileGroup926=Default Group
+FileGroup927=Default Group
+FileGroup928=Default Group
+FileGroup929=Default Group
+FileGroup93=Default Group
+FileGroup930=Default Group
+FileGroup931=Default Group
+FileGroup932=Default Group
+FileGroup933=Default Group
+FileGroup934=Default Group
+FileGroup935=Default Group
+FileGroup936=Default Group
+FileGroup937=Default Group
+FileGroup938=Default Group
+FileGroup939=Default Group
+FileGroup94=Default Group
+FileGroup940=Default Group
+FileGroup941=Default Group
+FileGroup942=Default Group
+FileGroup943=Default Group
+FileGroup944=Default Group
+FileGroup945=Default Group
+FileGroup946=Default Group
+FileGroup947=Default Group
+FileGroup948=Default Group
+FileGroup949=Default Group
+FileGroup95=Default Group
+FileGroup950=Default Group
+FileGroup951=Default Group
+FileGroup952=Default Group
+FileGroup953=Default Group
+FileGroup954=Default Group
+FileGroup955=Default Group
+FileGroup956=Default Group
+FileGroup957=Default Group
+FileGroup958=Default Group
+FileGroup959=Default Group
+FileGroup96=Default Group
+FileGroup960=Default Group
+FileGroup961=Default Group
+FileGroup962=Default Group
+FileGroup963=Default Group
+FileGroup964=Default Group
+FileGroup965=Default Group
+FileGroup966=Default Group
+FileGroup967=Default Group
+FileGroup968=Default Group
+FileGroup969=Default Group
+FileGroup97=Default Group
+FileGroup970=Default Group
+FileGroup971=Default Group
+FileGroup972=Default Group
+FileGroup973=Default Group
+FileGroup974=Default Group
+FileGroup975=Default Group
+FileGroup976=Default Group
+FileGroup977=Default Group
+FileGroup978=Default Group
+FileGroup979=Default Group
+FileGroup98=Default Group
+FileGroup980=Default Group
+FileGroup981=Default Group
+FileGroup982=Default Group
+FileGroup983=Default Group
+FileGroup984=Default Group
+FileGroup985=Default Group
+FileGroup986=Default Group
+FileGroup987=Default Group
+FileGroup988=Default Group
+FileGroup989=Default Group
+FileGroup99=Default Group
+FileGroup990=Default Group
+FileGroup991=Default Group
+FileGroup992=Default Group
+FileGroup993=Default Group
+FileGroup994=Default Group
+FileGroup995=Default Group
+FileGroup996=Default Group
+FileGroup997=Default Group
+FileGroup998=Default Group
+FileGroup999=Default Group
+Group=Default Group
+Library1=appupdating
+Library10=googlemaps
+Library11=googlemapsextras
+Library12=gps
+Library13=ime
+Library14=javaobject
+Library15=json
+Library16=okhttputils2
+Library17=phone
+Library18=randomaccessfile
+Library19=reflection
+Library2=b4xpages
+Library20=runtimepermissions
+Library21=serial
+Library22=sql
+Library23=togglelibrary
+Library24=xcustomlistview
+Library25=xui
+Library26=zxing_scanner
+Library27=xui views
+Library3=baqrcode
+Library4=byteconverter
+Library5=camera
+Library6=compressstrings
+Library7=core
+Library8=fileprovider
+Library9=fusedlocationprovider
+ManifestCode='This code will be applied to the manifest file during compilation.~\n~'You do not need to modify it in most cases.~\n~'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136~\n~'AddManifestText(~\n~'~\n~')~\n~'SetApplicationAttribute(android:icon, "@drawable/icon")~\n~'SetApplicationAttribute(android:label, "$LABEL$")~\n~'CreateResourceFromFile(Macro, Themes.LightTheme)~\n~''End of default text.~\n~'~\n~'''''' CAMBIA LA CLAVE API~\n~'AddApplicationText(~\n~'~\n~' ~\n~')~\n~'~\n~'CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)~\n~'SetApplicationAttribute(android:usesCleartextTraffic, "true")~\n~'AddManifestText()~\n~'AddPermission(android.permission.ACCESS_BACKGROUND_LOCATION)~\n~''AddManifestText()~\n~''AddManifestText()~\n~''AddManifestText() 'in order to access the device non-resettable identifiers such as IMEI and serial number.~\n~'AddManifestText()~\n~''/////////////// FLP y FBMessageing MOD Inicia /////////////////////~\n~''CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)~\n~''CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)~\n~''CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)~\n~''CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)~\n~'SetServiceAttribute(Tracker, android:foregroundServiceType, "location")~\n~''/////////////// FLP y FBMessageing MOD Termina /////////////////////~\n~'~\n~''Si al cargar un mapa de google mande este error "java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion". agregar la siguiente linea:~\n~'AddApplicationText()~\n~'~\n~''/////////////////////// App Updating ////////////////~\n~' AddManifestText(~\n~' )~\n~' AddApplicationText(~\n~' ~\n~' ~\n~' ~\n~' )~\n~' CreateResource(xml, provider_paths,~\n~' ~\n~' ~\n~' ~\n~' ~\n~' ~\n~' )~\n~'AddManifestText()~\n~'AddManifestText()~\n~'AddManifestText()~\n~'AddManifestText()~\n~'~\n~'AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)~\n~'AddPermission(android.permission.INTERNET)~\n~'AddPermission(android.permission.INSTALL_PACKAGES)~\n~'AddPermission(android.permission.READ_EXTERNAL_STORAGE)~\n~'AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)~\n~'AddPermission(android.permission.READ_PHONE_STATE)~\n~'AddPermission(android.permission.WAKE_LOCK)~\n~'CreateResourceFromFile(Macro, JhsIceZxing1.CaturePortrait)~\n~' ~\n~'SetApplicationAttribute(android:largeHeap, "true")~\n~'~\n~'AddManifestText(~\n~' ~\n~' )~\n~' AddPermission(android.permission.MANAGE_EXTERNAL_STORAGE)~\n~' SetApplicationAttribute(android:allowBackup, "false")~\n~' ~\n~' ~\n~' AddManifestText(~\n~' )~\n~' AddPermission(android.permission.READ_EXTERNAL_STORAGE)~\n~~\n~AddManifestText(~\n~~\n~)~\n~SetApplicationAttribute(android:icon, "@drawable/icon")~\n~SetApplicationAttribute(android:label, "$LABEL$")~\n~CreateResourceFromFile(Macro, Themes.LightTheme)~\n~AddApplicationText(~\n~)~\n~CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)~\n~ 'End of default text.~\n~''''' CAMBIA LA CLAVE API~\n~AddApplicationText(~\n~~\n~ ~\n~)~\n~AddApplicationText(~\n~~\n~)~\n~AddManifestText(~\n~~\n~)~\n~''CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)~\n~ 'End of default text.~\n~ ~\n~SetApplicationAttribute(android:usesCleartextTraffic, "true")~\n~AddManifestText(~\n~~\n~)~\n~AddManifestText(~\n~~\n~)~\n~AddPermission(android.permission.ACCESS_BACKGROUND_LOCATION)~\n~AddManifestText(~\n~~\n~)~\n~AddManifestText(~\n~~\n~) 'in order to access the device non-resettable identifiers such as IMEI and serial number.~\n~~\n~'///////////////////////// FLP Y PUSH /////////////~\n~' CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)~\n~' CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)~\n~' CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)~\n~' CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)~\n~ SetServiceAttribute(Tracker, android:foregroundServiceType, "location")~\n~'//////////////////////////////////////////////////////~\n~~\n~'/////////////////////// App Updating ////////////////~\n~AddManifestText(~\n~ )~\n~AddApplicationText(~\n~ ~\n~ ~\n~ ~\n~ )~\n~CreateResource(xml, provider_paths,~\n~ ~\n~ ~\n~ ~\n~ ~\n~ ~\n~ )~\n~AddManifestText()~\n~AddManifestText()~\n~AddManifestText()~\n~AddManifestText()~\n~~\n~AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)~\n~AddPermission(android.permission.INTERNET)~\n~AddPermission(android.permission.INSTALL_PACKAGES)~\n~AddPermission(android.permission.READ_EXTERNAL_STORAGE)~\n~AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)~\n~AddPermission(android.permission.READ_PHONE_STATE)~\n~AddPermission(android.permission.WAKE_LOCK)~\n~CreateResourceFromFile(Macro, JhsIceZxing1.CaturePortrait)~\n~ ~\n~SetApplicationAttribute(android:largeHeap, "true")~\n~~\n~AddManifestText(~\n~ )~\n~AddApplicationText(~\n~ ~\n~ ~\n~ ~\n~)~\n~CreateResource(xml, provider_paths,~\n~~\n~ ~\n~ ~\n~ ~\n~~\n~)~\n~AddManifestText()~\n~AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)~\n~AddPermission(android.permission.INTERNET)~\n~AddPermission(android.permission.INSTALL_PACKAGES)~\n~AddPermission(android.permission.READ_EXTERNAL_STORAGE)~\n~AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)~\n~AddPermission("android.permission.MANAGE_EXTERNAL_STORAGE")~\n~AddPermission(android.permission.READ_PHONE_STATE)~\n~AddPermission(android.permission.WAKE_LOCK)~\n~SetApplicationAttribute(android:allowBackup, "false")~\n~AddManifestText()~\n~AddApplicationText(~\n~~\n~ ~\n~ )~\n~AddPermission(android.permission.BLUETOOTH_ADVERTISE)~\n~AddPermission(android.permission.BLUETOOTH_CONNECT)~\n~AddPermission(android.permission.BLUETOOTH_SCAN)~\n~AddManifestText()
+Module1=appUpdater
+Module10=C_Foto
+Module11=C_Historico
+Module12=C_Mapas
+Module13=C_NoVenta
+Module14=C_NuevoCliente
+Module15=C_Pedidos
+Module16=C_Principal
+Module17=C_Productos
+Module18=C_tabulador
+Module19=C_TicketsDia
+Module2=B4XMainPage
+Module20=C_UpdateAvailable
+Module21=CameraExClass
+Module22=DBRequestManager
+Module23=EscPosPrinter
+Module24=foto
+Module25=ManageExternalStorage
+Module26=MAPA_CLIENTE
+Module27=MAPA_RUTAS
+Module28=Starter
+Module29=Subs
+Module3=BatteryUtilities
+Module30=Tracker
+Module4=C_Buscar
+Module5=C_Cheklist
+Module6=C_Cliente
+Module7=C_Clientes
+Module8=C_Detalle_Promo
+Module9=C_DetalleVenta
+NumberOfFiles=1475
+NumberOfLibraries=27
+NumberOfModules=30
+Version=12.8
+@EndOfDesignText@
+#Region Project Attributes
+ #ApplicationLabel: Izca Reparto
+ #VersionCode: 1
+ #VersionName: 5.07.20
+ 'SupportedOrientations possible values: unspecified, landscape or portrait.
+ #SupportedOrientations: portrait
+ #CanInstallToExternalStorage: False
+ #AdditionalJar: com.android.support:support-v4
+ #AdditionalJar: com.google.android.gms:play-services-location
+ #BridgeLogger: True
+#End Region
+
+#Region Activity Attributes
+ #FullScreen: False
+ #IncludeTitle: True
+#End Region
+
+Sub Process_Globals
+ Public ActionBarHomeClicked As Boolean
+End Sub
+
+Sub Globals
+
+End Sub
+
+Sub Activity_Create(FirstTime As Boolean)
+ Dim pm As B4XPagesManager
+ pm.Initialize(Activity)
+End Sub
+
+'Template version: B4A-1.01
+#Region Delegates
+
+Sub Activity_ActionBarHomeClick
+ ActionBarHomeClicked = True
+ B4XPages.Delegate.Activity_ActionBarHomeClick
+ ActionBarHomeClicked = False
+End Sub
+
+Sub Activity_KeyPress (KeyCode As Int) As Boolean
+ Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
+End Sub
+
+Sub Activity_Resume
+ B4XPages.Delegate.Activity_Resume
+End Sub
+
+Sub Activity_Pause (UserClosed As Boolean)
+ B4XPages.Delegate.Activity_Pause
+End Sub
+
+Sub Activity_PermissionResult (Permission As String, Result As Boolean)
+ B4XPages.Delegate.Activity_PermissionResult(Permission, Result)
+End Sub
+
+Sub Create_Menu (Menu As Object)
+ B4XPages.Delegate.Create_Menu(Menu)
+End Sub
+
+#if Java
+public boolean _onCreateOptionsMenu(android.view.Menu menu) {
+ processBA.raiseEvent(null, "create_menu", menu);
+ return true;
+}
+#End If
+#End Region
+
+'Program code should go into B4XMainPage and other pages.
\ No newline at end of file
diff --git a/B4A/Izca_Reparto.b4a.meta b/B4A/Izca_Reparto.b4a.meta
new file mode 100644
index 0000000..1be84d8
--- /dev/null
+++ b/B4A/Izca_Reparto.b4a.meta
@@ -0,0 +1,96 @@
+ModuleBookmarks0=
+ModuleBookmarks1=
+ModuleBookmarks10=
+ModuleBookmarks11=
+ModuleBookmarks12=
+ModuleBookmarks13=
+ModuleBookmarks14=
+ModuleBookmarks15=
+ModuleBookmarks16=
+ModuleBookmarks17=
+ModuleBookmarks18=
+ModuleBookmarks19=
+ModuleBookmarks2=
+ModuleBookmarks20=
+ModuleBookmarks21=
+ModuleBookmarks22=
+ModuleBookmarks23=
+ModuleBookmarks24=
+ModuleBookmarks25=
+ModuleBookmarks26=
+ModuleBookmarks27=
+ModuleBookmarks28=
+ModuleBookmarks29=
+ModuleBookmarks3=
+ModuleBookmarks30=
+ModuleBookmarks4=
+ModuleBookmarks5=
+ModuleBookmarks6=
+ModuleBookmarks7=
+ModuleBookmarks8=
+ModuleBookmarks9=
+ModuleBreakpoints0=
+ModuleBreakpoints1=
+ModuleBreakpoints10=
+ModuleBreakpoints11=
+ModuleBreakpoints12=
+ModuleBreakpoints13=
+ModuleBreakpoints14=
+ModuleBreakpoints15=
+ModuleBreakpoints16=
+ModuleBreakpoints17=
+ModuleBreakpoints18=
+ModuleBreakpoints19=
+ModuleBreakpoints2=
+ModuleBreakpoints20=
+ModuleBreakpoints21=
+ModuleBreakpoints22=
+ModuleBreakpoints23=
+ModuleBreakpoints24=
+ModuleBreakpoints25=
+ModuleBreakpoints26=
+ModuleBreakpoints27=
+ModuleBreakpoints28=
+ModuleBreakpoints29=
+ModuleBreakpoints3=
+ModuleBreakpoints30=
+ModuleBreakpoints4=
+ModuleBreakpoints5=
+ModuleBreakpoints6=
+ModuleBreakpoints7=
+ModuleBreakpoints8=
+ModuleBreakpoints9=
+ModuleClosedNodes0=
+ModuleClosedNodes1=
+ModuleClosedNodes10=
+ModuleClosedNodes11=
+ModuleClosedNodes12=
+ModuleClosedNodes13=
+ModuleClosedNodes14=
+ModuleClosedNodes15=
+ModuleClosedNodes16=
+ModuleClosedNodes17=
+ModuleClosedNodes18=
+ModuleClosedNodes19=
+ModuleClosedNodes2=
+ModuleClosedNodes20=
+ModuleClosedNodes21=
+ModuleClosedNodes22=
+ModuleClosedNodes23=
+ModuleClosedNodes24=
+ModuleClosedNodes25=
+ModuleClosedNodes26=
+ModuleClosedNodes27=
+ModuleClosedNodes28=
+ModuleClosedNodes29=
+ModuleClosedNodes3=
+ModuleClosedNodes30=
+ModuleClosedNodes4=
+ModuleClosedNodes5=
+ModuleClosedNodes6=18,19,20,21
+ModuleClosedNodes7=
+ModuleClosedNodes8=
+ModuleClosedNodes9=
+NavigationStack=Diseñador Visual,cliente.bal,-100,2,C_Cliente,gest_Click,430,0,C_Principal,b_impresion_rec_Click,2883,6,C_Principal,connecta_Click,2067,1,C_Principal,Class_Globals,123,0,C_Principal,B4XPage_Appear,219,6,C_Principal,JobDone,1957,6,Diseñador Visual,principal.bal,-100,6,C_Principal,b_rechazos_Click,2465,3,B4XMainPage,i_engrane_Click,543,1,C_Clientes,caculaRutaGPS,612,2
+SelectedBuild=0
+VisibleModules=1,2,3,4,5,6,7,8,9,10,16
diff --git a/B4A/MAPA_CLIENTE.bas b/B4A/MAPA_CLIENTE.bas
new file mode 100644
index 0000000..28ab787
--- /dev/null
+++ b/B4A/MAPA_CLIENTE.bas
@@ -0,0 +1,115 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Activity
+Version=9.95
+@EndOfDesignText@
+#Region Activity Attributes
+ #FullScreen: False
+ #IncludeTitle: FALSE
+
+#End Region
+
+Sub Process_Globals
+ Dim GPS As GPS
+ Dim rp As RuntimePermissions
+ Dim ruta As String
+ Dim skmt As SQL
+End Sub
+
+Sub Globals
+ Private gmap As GoogleMap
+ Private MapFragment1 As MapFragment
+ Dim Latitud As Double = 0
+ Dim Longitud As Double = 0
+ Dim Lat2 As Double = 0
+ Dim Lon2 As Double = 0
+ Dim p1, p2 As Location
+ Dim Distance As Float
+ Dim boton1 As Button
+ Dim c As Cursor
+ Dim latmarker As String
+ Dim longmarker As String
+ Private l_long As Label
+ Private l_lat As Label
+ Private NOMBRE_TIENDA As String
+ Private p_principal As Panel
+ Private b_regresar As Button
+End Sub
+
+Sub Activity_Create(FirstTime As Boolean)
+ Activity.LoadLayout("mapa_cliente")
+ If MapFragment1.IsGooglePlayServicesAvailable = False Then
+ ToastMessageShow("Please install Google Play Services.", True)
+ End If
+End Sub
+
+Sub MapFragment1_Ready
+ gmap = MapFragment1.GetMap
+ 'permisos
+ rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
+ Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
+ gmap.MyLocationEnabled = Result
+ 'fin de permisos
+ Dim JavaMapsObject As JavaObject
+ JavaMapsObject = gmap.GetUiSettings
+ JavaMapsObject.RunMethod("setMapToolbarEnabled", Array As Object(True))
+ Dim marcador1 As Marker = gmap.AddMarker (latmarker,longmarker, "TIENDA")
+ marcador1.Snippet = B4XPages.MainPage.cliente.NOMBRE
+ 'posicion inicial
+ Dim aa As CameraPosition
+ aa.Initialize(latmarker,longmarker,15)''' RECOMENDABLE CAMBIAR A 10 SI ES MAS DE 1 MARCADOR
+ gmap.AnimateCamera(aa)
+End Sub
+
+Sub GPS_LocationChanged (Parametro As Location)
+' GPS.Start(0, 0)
+' Dim sp As Int
+' sp = Ceil(Parametro.Speed * 3.6)
+' boton1.Text = sp &" "&"km/h"
+' Latitud = Parametro.Latitude
+' Longitud = Parametro.Longitude
+' p2.Initialize2(Latitud,Longitud)
+' p1.Initialize2(Lat2, Lon2)
+' Distance = p1.DistanceTo(p2)
+' If Latitud <> 0 And Longitud <> 0 Then
+' If Distance > 10 Then
+' Lat2 = Latitud
+' Lon2 = Longitud
+' Dim cp As CameraPosition
+' cp.Initialize2(Parametro.Latitude, Parametro.Longitude, gmap.CameraPosition.Zoom, Parametro.Bearing, 0)
+' gmap.AnimateCamera(cp)
+' End If
+' End If
+End Sub
+
+Sub Activity_Resume
+ Subs.centraBoton(b_regresar, Activity.Width)
+ GPS.Initialize("GPS")
+ If GPS.GPSEnabled = False Then
+ ToastMessageShow("Debe Activar el GPS del Equipo.", True)
+ StartActivity(GPS.LocationSettingsIntent)
+ Else
+ GPS.Start(0, 0)
+ End If
+ Subs.centraPanel(p_principal, Activity.Width)
+ p_principal.Height = Activity.Height * 0.95
+ latmarker = B4XPages.MainPage.cliente.LATITUD
+ longmarker = B4XPages.MainPage.cliente.LONGITUD
+ NOMBRE_TIENDA = B4XPages.MainPage.cliente.NOMBRE
+End Sub
+
+Sub Activity_Pause (UserClosed As Boolean)
+ GPS.Stop
+End Sub
+
+Sub reg_Click
+' StartActivity(fila)
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Private Sub b_regresar_Click
+ Log("Pressed")
+ Activity.Finish
+ B4XPages.ShowPage("Cliente")
+End Sub
\ No newline at end of file
diff --git a/B4A/MAPA_RUTAS.bas b/B4A/MAPA_RUTAS.bas
new file mode 100644
index 0000000..ff0d5f4
--- /dev/null
+++ b/B4A/MAPA_RUTAS.bas
@@ -0,0 +1,367 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Activity
+Version=9.3
+@EndOfDesignText@
+#Region Activity Attributes
+ #FullScreen: False
+ #IncludeTitle: False
+#End Region
+
+'Activity module
+Sub Process_Globals
+ Dim GPS As GPS
+ Dim rp As RuntimePermissions
+' Dim skmt As SQL
+ Dim c As Cursor
+ Dim c2 As Cursor
+ Dim c22 As Cursor
+ Dim c3 As Cursor
+End Sub
+
+Sub Globals
+ Private gmap As GoogleMap
+ Private MapFragment1 As MapFragment
+ Dim Latitud As Double = 0
+ Dim Longitud As Double = 0
+ Dim Lat2 As Double = 0
+ Dim Lon2 As Double = 0
+ Dim p1, p2 As Location
+ Dim Distance As Float
+ Dim boton1 As Button
+ Dim HUE_BLUE As Float
+ Dim HUE_RED As Float
+ Dim HUE_GREEN As Float
+ Private B_AZUL As Button
+ Private B_ROJO As Button
+ Private B_VERDE As Button
+ Private B_TODOS As Button
+ Dim Tienda As String
+ Dim ruta, rutaAnt As String
+ Dim LatitudRu As Double
+ Dim LongitudRU As Double
+ Dim LIST_AZUL As List
+ Dim LIST_ROJO As List
+ Dim LIST_VERDE As List
+ Dim MARK_AZUL As Marker
+ Dim MARK_ROJO As Marker
+ Dim MARK_VERDE As Marker
+ Dim MARK_CEDIS As Marker
+ Dim rojo As String
+ Dim azul As String
+ Dim verde As String
+ Dim todos As String
+ Dim NumSerie As Int
+ Dim OnInfoWindowClickListener1 As OnInfoWindowClickListener
+ Dim GoogleMapEXTRA As GoogleMapsExtras
+ Dim CODIGO As String
+ Private SEMANA As String
+' Dim ruta As String
+End Sub
+
+Sub Activity_Create(FirstTime As Boolean)
+' Msgbox("0","AVISO")
+ Activity.LoadLayout("MAPA_RUTAS")
+' ruta = Main.ruta
+' If File.Exists(RUTA, "kmt.db") = False Then
+' File.Copy(File.DirAssets, "kmt.db", RUTA, "kmt.db")
+' End If
+' skmt.Initialize(Starter.ruta,"kmt.db", True)
+ 'GPS
+' If(FirstTime) Then
+' GPS.Initialize("GPS")
+' End If
+' Msgbox("0.0","AVISO")
+ If MapFragment1.IsGooglePlayServicesAvailable = False Then
+ ToastMessageShow("Please install Google Play Services.", True)
+ End If
+' Msgbox("0.1","AVISO")
+ 'Boton velocidad'
+' boton1.Initialize(0)
+' boton1.Text = 0 &" "&"km/h"
+' boton1.TextColor = Colors.Red
+' boton1.TextSize = 15
+' Activity.AddView(boton1, 40%x, 5dip, 25%x, 40dip)
+ 'Fin Boton velocidad'
+ 'MARK_CEDIS.IsInitialized
+ MARK_AZUL.IsInitialized
+ MARK_ROJO.IsInitialized
+ MARK_VERDE.IsInitialized
+
+ LIST_AZUL.Initialize
+ LIST_ROJO.Initialize
+ LIST_VERDE.Initialize
+
+ verde = 0
+ azul = 0
+ rojo = 0
+ todos = 1
+' c=skmt.ExecQuery2("select count(*) AS CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?", Array As String ("SEMANA"))
+' c.Position =0
+' SEMANA = c.GetString("CUANTOS")
+' c.Close
+'
+' If SEMANA > 0 Then
+' c=skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?", Array As String ("SEMANA"))
+' c.Position =0
+' SEMANA = c.GetString("CAT_VA_VALOR")
+' c.Close
+' End If
+
+' Msgbox("0.2","AVISO")
+End Sub
+
+Sub MapFragment1_Ready
+ gmap = MapFragment1.GetMap
+ gmap.IsInitialized
+ rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
+ Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
+ gmap.MyLocationEnabled = Result
+
+ Dim JavaMapsObject As JavaObject
+ JavaMapsObject = gmap.GetUiSettings
+ JavaMapsObject.RunMethod("setMapToolbarEnabled", Array As Object(True))
+ '''''''----------------------------MARKER AZUL - POR ENTREGAR
+ Private esteAzul As Int = 0
+ Private esteAzul2 As String
+ If azul = 1 Or todos = 1 Then
+ c.IsInitialized
+ c = Starter.skmt.ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LAT, CAT_CL_LONG, CAT_CL_RUTA from kmt_info where gestion = 0 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")
+ rutaAnt = ""
+ For i = 0 To c.RowCount -1
+ c.Position = i
+ LatitudRu = c.GetString("CAT_CL_LAT")
+ LongitudRU = c.GetString("CAT_CL_LONG")
+ CODIGO=c.GetString("CAT_CL_CODIGO")
+ Tienda= c.GetString("CAT_CL_NOMBRE")
+ ruta = c.GetString("CAT_CL_RUTA")
+ If c.GetString("SECUENCIA") = "null" Then
+ NumSerie = 0
+ Else
+ NumSerie = c.GetString("SECUENCIA")
+ End If
+ Private s As Cursor = Starter.skmt.ExecQuery($"select indice from waypoints where codigo = '${CODIGO}'"$)
+ If s.RowCount > 0 Then
+ s.Position = 0
+ NumSerie = s.GetString("indice")
+ End If
+ If rutaAnt <> ruta Then esteAzul = esteAzul + 1
+' If esteAzul = 1 Then esteAzul2= NumSerie&"marker-azul.png"
+' If esteAzul = 2 Then esteAzul2= NumSerie&"marker-azul1.png"
+' If esteAzul = 3 Then esteAzul2= NumSerie&"marker-azul2.png"
+' If esteAzul = 4 Then esteAzul2= NumSerie&"marker-azul3.png"
+' If esteAzul = 5 Then esteAzul2= NumSerie&"marker-azul4.png"
+
+ If esteAzul = 1 Then esteAzul2= "marker-azul.png"
+ If esteAzul = 2 Then esteAzul2= "marker-azul1.png"
+ If esteAzul = 3 Then esteAzul2= "marker-azul2.png"
+ If esteAzul = 4 Then esteAzul2= "marker-azul3.png"
+ If esteAzul = 5 Then esteAzul2= "marker-azul4.png"
+' MARK_VERDE = gmap.AddMarker3(LatitudRu,LongitudRU,CODIGO, Subs.CreateBitmapWithNumber(LoadBitmap(File.DirAssets, "marker-verde.png"), i+350))
+
+' Log(ruta & "|" & esteAzul & "|" & esteAzul2)
+' Log(NumSerie&" "& Tienda&" --------"& esteAzul2&" --------"&esteAzul)
+ MARK_AZUL = gmap.AddMarker3(LatitudRu,LongitudRU,CODIGO, Subs.CreateBitmapWithNumber(LoadBitmap(File.DirAssets, esteAzul2), NumSerie))
+ MARK_AZUL.Snippet = "R: " & ruta & " - " & Tienda
+ rutaAnt = ruta
+ Next
+ c .Close
+ If MARK_AZUL.IsInitialized Then LIST_AZUL.Add(MARK_AZUL)
+ End If
+ '''''''----------------------------MARKER VERDE- ENTREGADO
+ If verde = 1 Or todos = 1 Then
+ rutaAnt = ""
+ c2.IsInitialized
+ c2=Starter.skmt.ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")
+ For i = 0 To c2.RowCount -1
+ c2.Position = i
+ LongitudRU = c2.GetString("CAT_CL_LONG")
+ LatitudRu = c2.GetString("CAT_CL_LAT")
+ CODIGO=c2.GetString("CAT_CL_CODIGO")
+ Tienda= c2.GetString("CAT_CL_NOMBRE")
+ ruta = c2.GetString("CAT_CL_RUTA")
+ If c2.GetString("SECUENCIA") = "null" Then
+ NumSerie = 0
+ Else
+ NumSerie = c2.GetString("SECUENCIA")
+ End If
+ Private s As Cursor = Starter.skmt.ExecQuery($"select indice from waypoints where codigo = '${CODIGO}'"$)
+ If s.RowCount > 0 Then
+ s.Position = 0
+ NumSerie = s.GetString("indice")
+ End If
+ MARK_VERDE = gmap.AddMarker3(LatitudRu,LongitudRU,CODIGO, Subs.CreateBitmapWithNumber(LoadBitmap(File.DirAssets, "marker-verde.png"), NumSerie))
+' MARK_VERDE = gmap.AddMarker3(LatitudRu,LongitudRU,CODIGO,LoadBitmapResize(File.DirAssets, NumSerie&"marker-verde.png" ,72, 115, True))
+ MARK_VERDE.Snippet = "R:" & ruta & ", " & Tienda
+ Next
+ Else
+ If verde = 1 Or todos = 1 Then
+ rutaAnt = ""
+ c2.IsInitialized
+ c2=Starter.skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")
+ For i = 0 To c2.RowCount -1
+ c2.Position = i
+ LongitudRU = c2.GetString("CAT_CL_LONG")
+ LatitudRu = c2.GetString("CAT_CL_LAT")
+ CODIGO=c2.GetString("CAT_CL_CODIGO")
+ Tienda= c2.GetString("CAT_CL_NOMBRE")
+ ruta = c2.GetString("CAT_CL_RUTA")
+ MARK_VERDE = gmap.AddMarker2(LatitudRu,LongitudRU, CODIGO,gmap.HUE_GREEN)
+ MARK_VERDE.Snippet = "R:" & ruta & ", " & Tienda
+ Next
+ c2 .Close
+ If MARK_VERDE.IsInitialized Then LIST_VERDE.Add(MARK_VERDE)
+ End If
+ End If
+' '''''''----------------------------MARKER ROJO - NO ENTREGADO
+ Private esteRojo As Int = 0
+ Private esteRojo2 As String
+ If rojo = 1 Or todos = 1 Then
+ rutaAnt = ""
+ c3.IsInitialized
+ c3=Starter.skmt.ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")
+ For i = 0 To c3.RowCount -1
+ c3.Position = i
+ LongitudRU = c3.GetDouble("CAT_CL_LONG")
+ LatitudRu = c3.GetDouble("CAT_CL_LAT")
+ Tienda= c3.GetString("CAT_CL_NOMBRE")
+ ruta = c3.GetString("CAT_CL_RUTA")
+ CODIGO=c3.GetString("CAT_CL_CODIGO")
+ If c3.GetString("SECUENCIA") = "null" Then
+ NumSerie = 0
+ Else
+ NumSerie = c3.GetString("SECUENCIA")
+ End If
+ Private s As Cursor = Starter.skmt.ExecQuery($"select indice from waypoints where codigo = '${CODIGO}'"$)
+ If s.RowCount > 0 Then
+ s.Position = 0
+ NumSerie = s.GetString("indice")
+ End If
+ MARK_ROJO = gmap.AddMarker3(LatitudRu,LongitudRU,CODIGO, Subs.CreateBitmapWithNumber(LoadBitmap(File.DirAssets, "marker-rojo.png"), NumSerie))
+' MARK_ROJO = gmap.AddMarker3(LatitudRu,LongitudRU,CODIGO,LoadBitmapResize(File.DirAssets, NumSerie&"marker-rojo.png" ,72, 115, True))
+
+ MARK_ROJO.Snippet= "R:" & ruta & ", " & Tienda
+ Next
+ Else
+ If rojo = 1 Or todos = 1 Then
+ rutaAnt = ""
+ c3.IsInitialized
+ c3=Starter.skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")
+ For i = 0 To c3.RowCount -1
+ c3.Position = i
+ LongitudRU = c3.GetDouble("CAT_CL_LONG")
+ LatitudRu = c3.GetDouble("CAT_CL_LAT")
+ Tienda= c3.GetString("CAT_CL_NOMBRE")
+ ruta = c2.GetString("CAT_CL_RUTA")
+ CODIGO=c3.GetString("CAT_CL_CODIGO")
+ MARK_ROJO = gmap.AddMarker2(LatitudRu,LongitudRU, CODIGO,gmap.HUE_RED)
+ MARK_ROJO.Snippet= "R:" & ruta & ", " & Tienda
+ Next
+ If MARK_ROJO.IsInitialized Then LIST_ROJO.Add(MARK_ROJO)
+ c3.Close
+ End If
+ End If
+ ''------------------------------
+' MARK_CEDIS = gmap.AddMarker3("19.3961802","-99.0784293","CEDIS", LoadBitmap(File.DirAssets, "marker-azul-0.png"))
+' If MARK_VERDE.Visible Or MARK_ROJO.Visible Then
+' MARK_CEDIS.Remove
+' End If
+ Dim aa As CameraPosition
+ aa.Initialize(LatitudRu,LongitudRU,15)''' RECOMENDABLE CAMBIAR A 10 PARA QUE SE VEAN MAS MARCADORES
+ gmap.AnimateCamera(aa)
+
+ '''''---------------------- ESTO ES PARA LOS CLICK EN LAS VENTANAS D INFORMACION-----------
+ Dim OnInfoWindowClickListener1 As OnInfoWindowClickListener
+ OnInfoWindowClickListener1.Initialize("OnInfoWindowClickListener1")
+ GoogleMapEXTRA.SetOnInfoWindowClickListener(gmap, OnInfoWindowClickListener1)
+End Sub
+
+''''-------------------------- PRUEBA CON MARKER _CLICK
+Sub OnInfoWindowClickListener1_click(Marker1 As Marker)
+ Starter.skmt.ExecNonQuery("delete from CUENTAA")
+ Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?) ", Array As Object(Marker1.Title))
+ Activity.Finish
+ B4XPages.ShowPage("Cliente")
+End Sub
+
+Sub GPS_LocationChanged (Parametro As Location)
+ 'MARK_CEDIS.IsInitialized
+' Dim sp As Int
+' sp = Ceil(Parametro.Speed * 3.6)
+' boton1.Text = sp &" "&"km/h"
+' Latitud = Parametro.Latitude
+' Longitud = Parametro.Longitude
+' p2.Initialize2(Latitud,Longitud)
+' p1.Initialize2(Lat2, Lon2)
+' Distance = p1.DistanceTo(p2)
+' If Latitud <> 0 And Longitud <> 0 Then
+' If Distance > 10 Then
+' Lat2 = Latitud
+' Lon2 = Longitud
+' Dim cp As CameraPosition
+' cp.Initialize2(Parametro.Latitude, Parametro.Longitude, gmap.CameraPosition.Zoom, Parametro.Bearing, 0)
+' gmap.AnimateCamera(cp)
+' End If
+' End If
+End Sub
+
+Sub Activity_Resume
+' If GPS.GPSEnabled = False Then
+' ToastMessageShow("Debe Activar el GPS del Equipo.", True)
+' StartActivity(GPS.LocationSettingsIntent)
+' Else
+' GPS.Start(0, 0)
+' End If
+End Sub
+
+Sub Activity_Pause (UserClosed As Boolean)
+ GPS.Stop
+End Sub
+
+Sub B_TODOS_Click
+ todos =1
+ verde = 0
+ azul = 0
+ rojo = 0
+ MapFragment1_Ready
+End Sub
+
+Sub B_VERDE_Click
+ verde = 1
+ azul = 0
+ rojo = 0
+ todos = 0
+ gmap.Clear
+ MapFragment1_Ready
+End Sub
+
+Sub B_ROJO_Click
+ rojo = 1
+ verde = 0
+ azul = 0
+ todos = 0
+ gmap.Clear
+ MapFragment1_Ready
+End Sub
+
+Sub B_AZUL_Click
+ azul = 1
+ verde = 0
+ rojo = 0
+ todos = 0
+ gmap.Clear
+ MapFragment1_Ready
+End Sub
+
+
+Sub Activity_KeyPress (key As Int) As Boolean 'ignore
+ ' BACK key pressed
+ If key=KeyCodes.KEYCODE_BACK Then
+
+ B4XPages.ShowPage("Principal")
+ Return False
+ 'End If
+ End If
+ ' Returning False signals the system to handle the key
+End Sub
\ No newline at end of file
diff --git a/B4A/ManageExternalStorage.bas b/B4A/ManageExternalStorage.bas
new file mode 100644
index 0000000..7f0a197
--- /dev/null
+++ b/B4A/ManageExternalStorage.bas
@@ -0,0 +1,81 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=10.7
+@EndOfDesignText@
+' Version 1.00
+#Event: StorageAvailable
+Sub Class_Globals
+ Private ion As Object
+ Private mCallback As Object
+ Private mEventName As String
+
+End Sub
+
+
+' This pretty trivial class is modelled on (plagiarised from!) Erel's ExternalStorage class
+' It applies to devices implementing SDK30 and later
+' It allows apps to access the internal 'external' storage as was possible on earlier Android versions ussing traditional file I/O
+' You must manually add 'AddPermission(android.permission.MANAGE_EXTERNAL_STORAGE)' to the manifest
+' You must ensure that you provide the package name of your app in Sub GetPermission
+' This class uses the MANAGE_APP_ALL_FILES_ACCESS_PERMISSION intent action to direct users to a system settings page
+' They must enable the option on that page to give permission
+
+
+
+'Initializes the object
+Public Sub Initialize (Callback As Object, EventName As String)
+ mCallback = Callback
+ mEventName = EventName
+End Sub
+
+
+' Determine if the app already has MANAGE_EXTERNAL_STORAGE call Environment.isExternalStorageManager()
+' Return True if this app already has MANAGE_EXTERNAL_STORAGE permission
+Public Sub HasPermission As Boolean
+ Dim has As Boolean
+ Dim jo As JavaObject
+ jo.InitializeStatic("android.os.Environment")
+ has = jo.RunMethod("isExternalStorageManager", Null)
+ Return has
+End Sub
+
+' Check whether this app has MANAGE_EXTERNAL_STORAGE permission
+' If not show the user a dialog to enable MANAGE_EXTERNAL_STORAGE permission for this app
+' Raises the StorageAvailable event in the calling activity when complete
+Public Sub GetPermission
+ If HasPermission Then
+ RaiseEvent
+ Return
+ End If
+ Dim in As Intent
+ ' Be sure to reference your app package name in "pakageg:xxx"
+ in.Initialize("android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION", $"package:${Application.PackageName}"$)
+ StartActivityForResult(in)
+End Sub
+
+
+Private Sub RaiseEvent
+ Log("Calling : " & mEventName & "_StorageAvailable")
+ CallSubDelayed(mCallback, mEventName & "_StorageAvailable")
+End Sub
+
+
+Private Sub ion_Event (MethodName As String, Args() As Object) As Object
+ RaiseEvent
+ Return Null
+End Sub
+
+
+Private Sub StartActivityForResult(i As Intent)
+ Dim jo As JavaObject = GetBA
+ ion = jo.CreateEvent("anywheresoftware.b4a.IOnActivityResult", "ion", Null)
+ jo.RunMethod("startActivityForResult", Array As Object(ion, i))
+End Sub
+
+Private Sub GetBA As Object
+ Dim jo As JavaObject = Me
+ Return jo.RunMethod("getBA", Null)
+End Sub
+
diff --git a/B4A/Mariana_Reparto.b4a.meta b/B4A/Mariana_Reparto.b4a.meta
new file mode 100644
index 0000000..cf46060
--- /dev/null
+++ b/B4A/Mariana_Reparto.b4a.meta
@@ -0,0 +1,96 @@
+ModuleBookmarks0=
+ModuleBookmarks1=
+ModuleBookmarks10=
+ModuleBookmarks11=
+ModuleBookmarks12=
+ModuleBookmarks13=
+ModuleBookmarks14=
+ModuleBookmarks15=
+ModuleBookmarks16=
+ModuleBookmarks17=
+ModuleBookmarks18=
+ModuleBookmarks19=
+ModuleBookmarks2=
+ModuleBookmarks20=
+ModuleBookmarks21=
+ModuleBookmarks22=
+ModuleBookmarks23=
+ModuleBookmarks24=
+ModuleBookmarks25=
+ModuleBookmarks26=
+ModuleBookmarks27=
+ModuleBookmarks28=
+ModuleBookmarks29=
+ModuleBookmarks3=
+ModuleBookmarks30=
+ModuleBookmarks4=
+ModuleBookmarks5=
+ModuleBookmarks6=
+ModuleBookmarks7=
+ModuleBookmarks8=
+ModuleBookmarks9=
+ModuleBreakpoints0=
+ModuleBreakpoints1=
+ModuleBreakpoints10=
+ModuleBreakpoints11=
+ModuleBreakpoints12=
+ModuleBreakpoints13=
+ModuleBreakpoints14=
+ModuleBreakpoints15=
+ModuleBreakpoints16=
+ModuleBreakpoints17=
+ModuleBreakpoints18=
+ModuleBreakpoints19=
+ModuleBreakpoints2=
+ModuleBreakpoints20=
+ModuleBreakpoints21=
+ModuleBreakpoints22=
+ModuleBreakpoints23=
+ModuleBreakpoints24=
+ModuleBreakpoints25=
+ModuleBreakpoints26=
+ModuleBreakpoints27=
+ModuleBreakpoints28=
+ModuleBreakpoints29=
+ModuleBreakpoints3=
+ModuleBreakpoints30=
+ModuleBreakpoints4=
+ModuleBreakpoints5=
+ModuleBreakpoints6=
+ModuleBreakpoints7=
+ModuleBreakpoints8=
+ModuleBreakpoints9=
+ModuleClosedNodes0=
+ModuleClosedNodes1=
+ModuleClosedNodes10=
+ModuleClosedNodes11=
+ModuleClosedNodes12=
+ModuleClosedNodes13=
+ModuleClosedNodes14=
+ModuleClosedNodes15=
+ModuleClosedNodes16=12
+ModuleClosedNodes17=
+ModuleClosedNodes18=
+ModuleClosedNodes19=
+ModuleClosedNodes2=
+ModuleClosedNodes20=
+ModuleClosedNodes21=
+ModuleClosedNodes22=
+ModuleClosedNodes23=
+ModuleClosedNodes24=
+ModuleClosedNodes25=
+ModuleClosedNodes26=
+ModuleClosedNodes27=
+ModuleClosedNodes28=
+ModuleClosedNodes29=
+ModuleClosedNodes3=
+ModuleClosedNodes30=
+ModuleClosedNodes4=
+ModuleClosedNodes5=
+ModuleClosedNodes6=
+ModuleClosedNodes7=
+ModuleClosedNodes8=
+ModuleClosedNodes9=8,9
+NavigationStack=C_Principal,envioinfo,777,0,C_Principal,b_venta_emp_Click,2177,0,C_Principal,p_prod_Click,2173,0,C_Principal,B4XPage_Appear,594,0,Diseñador Visual,mapa_cliente.bal,-100,1,Diseñador Visual,clientes.bal,-100,2,C_Clientes,b_getRutaInfo_Click,571,0,C_Clientes,todosAVisitar,672,0,C_Clientes,caculaRutaGPS,638,0,Main,Process_Globals,18,0
+SelectedBuild=0
+VisibleModules=1,2,3,4,5,6,7,8,9,10
diff --git a/B4A/Marquez_Reparto.b4a.meta b/B4A/Marquez_Reparto.b4a.meta
new file mode 100644
index 0000000..3d49b76
--- /dev/null
+++ b/B4A/Marquez_Reparto.b4a.meta
@@ -0,0 +1,96 @@
+ModuleBookmarks0=
+ModuleBookmarks1=
+ModuleBookmarks10=
+ModuleBookmarks11=
+ModuleBookmarks12=
+ModuleBookmarks13=
+ModuleBookmarks14=
+ModuleBookmarks15=
+ModuleBookmarks16=
+ModuleBookmarks17=
+ModuleBookmarks18=
+ModuleBookmarks19=
+ModuleBookmarks2=
+ModuleBookmarks20=
+ModuleBookmarks21=
+ModuleBookmarks22=
+ModuleBookmarks23=
+ModuleBookmarks24=
+ModuleBookmarks25=
+ModuleBookmarks26=
+ModuleBookmarks27=
+ModuleBookmarks28=
+ModuleBookmarks29=
+ModuleBookmarks3=
+ModuleBookmarks30=
+ModuleBookmarks4=
+ModuleBookmarks5=
+ModuleBookmarks6=
+ModuleBookmarks7=
+ModuleBookmarks8=
+ModuleBookmarks9=
+ModuleBreakpoints0=
+ModuleBreakpoints1=
+ModuleBreakpoints10=
+ModuleBreakpoints11=
+ModuleBreakpoints12=
+ModuleBreakpoints13=
+ModuleBreakpoints14=
+ModuleBreakpoints15=
+ModuleBreakpoints16=
+ModuleBreakpoints17=
+ModuleBreakpoints18=
+ModuleBreakpoints19=
+ModuleBreakpoints2=
+ModuleBreakpoints20=
+ModuleBreakpoints21=
+ModuleBreakpoints22=
+ModuleBreakpoints23=
+ModuleBreakpoints24=
+ModuleBreakpoints25=
+ModuleBreakpoints26=
+ModuleBreakpoints27=
+ModuleBreakpoints28=
+ModuleBreakpoints29=
+ModuleBreakpoints3=
+ModuleBreakpoints30=
+ModuleBreakpoints4=
+ModuleBreakpoints5=
+ModuleBreakpoints6=
+ModuleBreakpoints7=
+ModuleBreakpoints8=
+ModuleBreakpoints9=
+ModuleClosedNodes0=
+ModuleClosedNodes1=
+ModuleClosedNodes10=
+ModuleClosedNodes11=
+ModuleClosedNodes12=
+ModuleClosedNodes13=
+ModuleClosedNodes14=
+ModuleClosedNodes15=
+ModuleClosedNodes16=
+ModuleClosedNodes17=9,16,17,18,19,20,21
+ModuleClosedNodes18=
+ModuleClosedNodes19=
+ModuleClosedNodes2=
+ModuleClosedNodes20=
+ModuleClosedNodes21=
+ModuleClosedNodes22=
+ModuleClosedNodes23=
+ModuleClosedNodes24=
+ModuleClosedNodes25=
+ModuleClosedNodes26=
+ModuleClosedNodes27=3
+ModuleClosedNodes28=
+ModuleClosedNodes29=
+ModuleClosedNodes3=
+ModuleClosedNodes30=
+ModuleClosedNodes4=
+ModuleClosedNodes5=
+ModuleClosedNodes6=
+ModuleClosedNodes7=2,3,7,8,9,10,13,15,16
+ModuleClosedNodes8=
+ModuleClosedNodes9=5,6,7,8,9,15,16,20
+NavigationStack=B4XMainPage,passaquci,925,0,Diseñador Visual,login.bal,-100,1,B4XMainPage,JobDone,283,0,C_Clientes,Class_Globals,0,0,C_Principal,Class_Globals,0,0,C_Principal,connecta_Click,1523,0,B4XMainPage,b_terpc_Click,869,2,C_Principal,cargar_Click,880,0,B4XMainPage,B_PC_ENV_Click,801,6,B4XMainPage,et_buspc_TextChanged,725,4,C_Principal,envioinfo,687,0
+SelectedBuild=0
+VisibleModules=28,2,16,7,27,29,5,17,6,9
diff --git a/B4A/Mazapa_Reparto.b4a.meta b/B4A/Mazapa_Reparto.b4a.meta
new file mode 100644
index 0000000..fd53bf6
--- /dev/null
+++ b/B4A/Mazapa_Reparto.b4a.meta
@@ -0,0 +1,96 @@
+ModuleBookmarks0=
+ModuleBookmarks1=
+ModuleBookmarks10=
+ModuleBookmarks11=
+ModuleBookmarks12=
+ModuleBookmarks13=
+ModuleBookmarks14=
+ModuleBookmarks15=
+ModuleBookmarks16=
+ModuleBookmarks17=
+ModuleBookmarks18=
+ModuleBookmarks19=
+ModuleBookmarks2=
+ModuleBookmarks20=
+ModuleBookmarks21=
+ModuleBookmarks22=
+ModuleBookmarks23=
+ModuleBookmarks24=
+ModuleBookmarks25=
+ModuleBookmarks26=
+ModuleBookmarks27=
+ModuleBookmarks28=
+ModuleBookmarks29=
+ModuleBookmarks3=
+ModuleBookmarks30=
+ModuleBookmarks4=
+ModuleBookmarks5=
+ModuleBookmarks6=
+ModuleBookmarks7=
+ModuleBookmarks8=
+ModuleBookmarks9=
+ModuleBreakpoints0=
+ModuleBreakpoints1=
+ModuleBreakpoints10=
+ModuleBreakpoints11=
+ModuleBreakpoints12=
+ModuleBreakpoints13=
+ModuleBreakpoints14=
+ModuleBreakpoints15=
+ModuleBreakpoints16=
+ModuleBreakpoints17=
+ModuleBreakpoints18=
+ModuleBreakpoints19=
+ModuleBreakpoints2=
+ModuleBreakpoints20=
+ModuleBreakpoints21=
+ModuleBreakpoints22=
+ModuleBreakpoints23=
+ModuleBreakpoints24=
+ModuleBreakpoints25=
+ModuleBreakpoints26=
+ModuleBreakpoints27=
+ModuleBreakpoints28=
+ModuleBreakpoints29=
+ModuleBreakpoints3=
+ModuleBreakpoints30=
+ModuleBreakpoints4=
+ModuleBreakpoints5=
+ModuleBreakpoints6=
+ModuleBreakpoints7=
+ModuleBreakpoints8=
+ModuleBreakpoints9=
+ModuleClosedNodes0=
+ModuleClosedNodes1=
+ModuleClosedNodes10=
+ModuleClosedNodes11=
+ModuleClosedNodes12=
+ModuleClosedNodes13=
+ModuleClosedNodes14=
+ModuleClosedNodes15=
+ModuleClosedNodes16=
+ModuleClosedNodes17=
+ModuleClosedNodes18=
+ModuleClosedNodes19=
+ModuleClosedNodes2=
+ModuleClosedNodes20=
+ModuleClosedNodes21=
+ModuleClosedNodes22=
+ModuleClosedNodes23=
+ModuleClosedNodes24=
+ModuleClosedNodes25=
+ModuleClosedNodes26=
+ModuleClosedNodes27=
+ModuleClosedNodes28=
+ModuleClosedNodes29=
+ModuleClosedNodes3=
+ModuleClosedNodes30=
+ModuleClosedNodes4=
+ModuleClosedNodes5=
+ModuleClosedNodes6=
+ModuleClosedNodes7=
+ModuleClosedNodes8=
+ModuleClosedNodes9=
+NavigationStack=C_Productos,b_prodMenos_Click,576,0,C_Detalle_Promo,Class_Globals,0,0,Subs,traeCliente,699,6,C_Productos,b_prodMas_Click,733,6,C_Principal,cargar_Click,1019,0,C_Principal,JobDone,1187,6,C_DetalleVenta,b_prodMas_Click,674,5,C_DetalleVenta,b_prodMenosC_Click,977,0,C_DetalleVenta,CreateListItem2,504,0,C_DetalleVenta,b_prodMenos_Click,522,0
+SelectedBuild=0
+VisibleModules=1,2,3,4,5,6,7,8,9,10
diff --git a/B4A/Objects/AndroidManifest.xml b/B4A/Objects/AndroidManifest.xml
new file mode 100644
index 0000000..643083a
--- /dev/null
+++ b/B4A/Objects/AndroidManifest.xml
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/B4A/Objects/Izca_Reparto.apk b/B4A/Objects/Izca_Reparto.apk
new file mode 100644
index 0000000..4361a39
Binary files /dev/null and b/B4A/Objects/Izca_Reparto.apk differ
diff --git a/B4A/Objects/b4xlibs/Files/b4xinputtemplate.bal b/B4A/Objects/b4xlibs/Files/b4xinputtemplate.bal
new file mode 100644
index 0000000..a143b40
Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/b4xinputtemplate.bal differ
diff --git a/B4A/Objects/b4xlibs/Files/datepicker.bal b/B4A/Objects/b4xlibs/Files/datepicker.bal
new file mode 100644
index 0000000..82ab2fc
Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/datepicker.bal differ
diff --git a/B4A/Objects/b4xlibs/Files/datetemplate.bal b/B4A/Objects/b4xlibs/Files/datetemplate.bal
new file mode 100644
index 0000000..bb5b387
Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/datetemplate.bal differ
diff --git a/B4A/Objects/b4xlibs/Files/dialog.css b/B4A/Objects/b4xlibs/Files/dialog.css
new file mode 100644
index 0000000..edae6ab
--- /dev/null
+++ b/B4A/Objects/b4xlibs/Files/dialog.css
@@ -0,0 +1,37 @@
+.b4xdialog .scroll-bar:horizontal, .b4xdialog .scroll-bar:vertical{
+ -fx-background-color:transparent;
+}
+
+.b4xdialog .increment-button, .b4xdialog .decrement-button {
+ -fx-background-color: transparent;
+ -fx-border-color: transparent;
+}
+
+.b4xdialog .scroll-bar:horizontal .track,
+.b4xdialog .scroll-bar:vertical .track{
+ -fx-background-color: transparent;
+ -fx-border-color: transparent;
+ -fx-background-radius: 0em;
+}
+
+.b4xdialog .scroll-bar:horizontal .thumb,
+.b4xdialog .scroll-bar:vertical .thumb {
+ -fx-background-color: #4B4B4B;
+ -fx-background-radius: 5em;
+}
+
+.b4xdialoglight .scroll-bar:horizontal .thumb,
+.b4xdialoglight .scroll-bar:vertical .thumb {
+ -fx-background-color: #B8B8B8;
+}
+
+.scroll-pane{
+ -fx-background-color:transparent;
+}
+.scroll-pane .viewport {
+ -fx-background-color: transparent;
+}
+
+.text-area .content {
+ -fx-padding: 15 5 5 5;
+}
\ No newline at end of file
diff --git a/B4A/Objects/b4xlibs/Files/listtemplate.bal b/B4A/Objects/b4xlibs/Files/listtemplate.bal
new file mode 100644
index 0000000..ada8853
Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/listtemplate.bal differ
diff --git a/B4A/Objects/b4xlibs/Files/longtexttemplate.bal b/B4A/Objects/b4xlibs/Files/longtexttemplate.bal
new file mode 100644
index 0000000..7fe9911
Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/longtexttemplate.bal differ
diff --git a/B4A/Objects/b4xlibs/Files/searchtemplate.bal b/B4A/Objects/b4xlibs/Files/searchtemplate.bal
new file mode 100644
index 0000000..931f029
Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/searchtemplate.bal differ
diff --git a/B4A/Objects/b4xlibs/Files/timeddialogtemplate.bal b/B4A/Objects/b4xlibs/Files/timeddialogtemplate.bal
new file mode 100644
index 0000000..e05943e
Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/timeddialogtemplate.bal differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$anim.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$anim.class
new file mode 100644
index 0000000..96065a8
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$attr.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$attr.class
new file mode 100644
index 0000000..5caf8c2
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$color.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$color.class
new file mode 100644
index 0000000..1591312
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$color.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$dimen.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$dimen.class
new file mode 100644
index 0000000..f0965e9
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$drawable.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$drawable.class
new file mode 100644
index 0000000..376deda
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$id.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$id.class
new file mode 100644
index 0000000..a408bd9
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$id.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$integer.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$integer.class
new file mode 100644
index 0000000..03cdab7
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$layout.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$layout.class
new file mode 100644
index 0000000..5cb2fae
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$string.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$string.class
new file mode 100644
index 0000000..cab8246
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$string.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$style.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$style.class
new file mode 100644
index 0000000..4f432ca
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$style.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$styleable.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$styleable.class
new file mode 100644
index 0000000..2c25d98
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$xml.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$xml.class
new file mode 100644
index 0000000..4d952bc
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/androidx/coordinatorlayout/R.class b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R.class
new file mode 100644
index 0000000..d9c3fd5
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/coordinatorlayout/R.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$anim.class b/B4A/Objects/bin/classes/androidx/core/R$anim.class
new file mode 100644
index 0000000..30c5db8
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$attr.class b/B4A/Objects/bin/classes/androidx/core/R$attr.class
new file mode 100644
index 0000000..7786e1a
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$color.class b/B4A/Objects/bin/classes/androidx/core/R$color.class
new file mode 100644
index 0000000..61e14c4
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$color.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$dimen.class b/B4A/Objects/bin/classes/androidx/core/R$dimen.class
new file mode 100644
index 0000000..5381e6f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$drawable.class b/B4A/Objects/bin/classes/androidx/core/R$drawable.class
new file mode 100644
index 0000000..f178cab
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$id.class b/B4A/Objects/bin/classes/androidx/core/R$id.class
new file mode 100644
index 0000000..b732ac1
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$id.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$integer.class b/B4A/Objects/bin/classes/androidx/core/R$integer.class
new file mode 100644
index 0000000..6392e90
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$layout.class b/B4A/Objects/bin/classes/androidx/core/R$layout.class
new file mode 100644
index 0000000..1c6312d
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$string.class b/B4A/Objects/bin/classes/androidx/core/R$string.class
new file mode 100644
index 0000000..b827c45
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$string.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$style.class b/B4A/Objects/bin/classes/androidx/core/R$style.class
new file mode 100644
index 0000000..69eeb52
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$style.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$styleable.class b/B4A/Objects/bin/classes/androidx/core/R$styleable.class
new file mode 100644
index 0000000..8842872
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R$xml.class b/B4A/Objects/bin/classes/androidx/core/R$xml.class
new file mode 100644
index 0000000..73e6c38
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/androidx/core/R.class b/B4A/Objects/bin/classes/androidx/core/R.class
new file mode 100644
index 0000000..97ebd2a
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/core/R.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$anim.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$anim.class
new file mode 100644
index 0000000..2354acc
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$attr.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$attr.class
new file mode 100644
index 0000000..b76b451
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$color.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$color.class
new file mode 100644
index 0000000..1c15e5e
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$color.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$dimen.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$dimen.class
new file mode 100644
index 0000000..a3e1321
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$drawable.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$drawable.class
new file mode 100644
index 0000000..5b09a9c
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$id.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$id.class
new file mode 100644
index 0000000..8cee3b7
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$id.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$integer.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$integer.class
new file mode 100644
index 0000000..1de176b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$layout.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$layout.class
new file mode 100644
index 0000000..cf0d014
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$string.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$string.class
new file mode 100644
index 0000000..688fc36
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$string.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$style.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$style.class
new file mode 100644
index 0000000..07e8be3
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$style.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$styleable.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$styleable.class
new file mode 100644
index 0000000..1e47e2f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R$xml.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R$xml.class
new file mode 100644
index 0000000..7206526
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/androidx/drawerlayout/R.class b/B4A/Objects/bin/classes/androidx/drawerlayout/R.class
new file mode 100644
index 0000000..76e8b9e
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/drawerlayout/R.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$anim.class b/B4A/Objects/bin/classes/androidx/fragment/R$anim.class
new file mode 100644
index 0000000..fcacc30
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$attr.class b/B4A/Objects/bin/classes/androidx/fragment/R$attr.class
new file mode 100644
index 0000000..10aa42b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$color.class b/B4A/Objects/bin/classes/androidx/fragment/R$color.class
new file mode 100644
index 0000000..2e2795b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$color.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$dimen.class b/B4A/Objects/bin/classes/androidx/fragment/R$dimen.class
new file mode 100644
index 0000000..7b915a7
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$drawable.class b/B4A/Objects/bin/classes/androidx/fragment/R$drawable.class
new file mode 100644
index 0000000..9f65d61
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$id.class b/B4A/Objects/bin/classes/androidx/fragment/R$id.class
new file mode 100644
index 0000000..c0d3f8f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$id.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$integer.class b/B4A/Objects/bin/classes/androidx/fragment/R$integer.class
new file mode 100644
index 0000000..cd7e77c
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$layout.class b/B4A/Objects/bin/classes/androidx/fragment/R$layout.class
new file mode 100644
index 0000000..3d9f895
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$string.class b/B4A/Objects/bin/classes/androidx/fragment/R$string.class
new file mode 100644
index 0000000..176f91b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$string.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$style.class b/B4A/Objects/bin/classes/androidx/fragment/R$style.class
new file mode 100644
index 0000000..a115cbd
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$style.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$styleable.class b/B4A/Objects/bin/classes/androidx/fragment/R$styleable.class
new file mode 100644
index 0000000..259393b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R$xml.class b/B4A/Objects/bin/classes/androidx/fragment/R$xml.class
new file mode 100644
index 0000000..837ee95
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/androidx/fragment/R.class b/B4A/Objects/bin/classes/androidx/fragment/R.class
new file mode 100644
index 0000000..df2aa0d
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/fragment/R.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$anim.class b/B4A/Objects/bin/classes/androidx/media/R$anim.class
new file mode 100644
index 0000000..ec64300
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$attr.class b/B4A/Objects/bin/classes/androidx/media/R$attr.class
new file mode 100644
index 0000000..7f5d3e5
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$color.class b/B4A/Objects/bin/classes/androidx/media/R$color.class
new file mode 100644
index 0000000..2e9f00a
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$color.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$dimen.class b/B4A/Objects/bin/classes/androidx/media/R$dimen.class
new file mode 100644
index 0000000..796fc2f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$drawable.class b/B4A/Objects/bin/classes/androidx/media/R$drawable.class
new file mode 100644
index 0000000..751c8a7
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$id.class b/B4A/Objects/bin/classes/androidx/media/R$id.class
new file mode 100644
index 0000000..b63a479
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$id.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$integer.class b/B4A/Objects/bin/classes/androidx/media/R$integer.class
new file mode 100644
index 0000000..0691d4f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$layout.class b/B4A/Objects/bin/classes/androidx/media/R$layout.class
new file mode 100644
index 0000000..89ccda9
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$string.class b/B4A/Objects/bin/classes/androidx/media/R$string.class
new file mode 100644
index 0000000..4580e9b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$string.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$style.class b/B4A/Objects/bin/classes/androidx/media/R$style.class
new file mode 100644
index 0000000..8e9205f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$style.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$styleable.class b/B4A/Objects/bin/classes/androidx/media/R$styleable.class
new file mode 100644
index 0000000..2f0685e
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R$xml.class b/B4A/Objects/bin/classes/androidx/media/R$xml.class
new file mode 100644
index 0000000..22ba493
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/androidx/media/R.class b/B4A/Objects/bin/classes/androidx/media/R.class
new file mode 100644
index 0000000..e2f9193
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/media/R.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$anim.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$anim.class
new file mode 100644
index 0000000..50ed8a7
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$attr.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$attr.class
new file mode 100644
index 0000000..f2a0d6d
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$color.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$color.class
new file mode 100644
index 0000000..007f652
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$color.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$dimen.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$dimen.class
new file mode 100644
index 0000000..cb9ff25
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$drawable.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$drawable.class
new file mode 100644
index 0000000..0e25c2b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$id.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$id.class
new file mode 100644
index 0000000..54ec117
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$id.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$integer.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$integer.class
new file mode 100644
index 0000000..c18a74b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$layout.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$layout.class
new file mode 100644
index 0000000..a624b6f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$string.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$string.class
new file mode 100644
index 0000000..874544b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$string.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$style.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$style.class
new file mode 100644
index 0000000..107e47b
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$style.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$styleable.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$styleable.class
new file mode 100644
index 0000000..5cb1852
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$xml.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$xml.class
new file mode 100644
index 0000000..a10f67f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R.class b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R.class
new file mode 100644
index 0000000..470179f
Binary files /dev/null and b/B4A/Objects/bin/classes/androidx/swiperefreshlayout/R.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$anim.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$anim.class
new file mode 100644
index 0000000..75e8c88
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$attr.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$attr.class
new file mode 100644
index 0000000..1ee977e
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$color.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$color.class
new file mode 100644
index 0000000..6732cf3
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$color.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$dimen.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$dimen.class
new file mode 100644
index 0000000..41d54cb
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$drawable.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$drawable.class
new file mode 100644
index 0000000..0789b2c
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$id.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$id.class
new file mode 100644
index 0000000..b8ffd60
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$id.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$integer.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$integer.class
new file mode 100644
index 0000000..bc9a0f2
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$layout.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$layout.class
new file mode 100644
index 0000000..a33d929
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$string.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$string.class
new file mode 100644
index 0000000..787b314
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$string.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$style.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$style.class
new file mode 100644
index 0000000..3196a4e
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$style.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$styleable.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$styleable.class
new file mode 100644
index 0000000..73d492f
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R$xml.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R$xml.class
new file mode 100644
index 0000000..49d6848
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/base/R.class b/B4A/Objects/bin/classes/com/google/android/gms/base/R.class
new file mode 100644
index 0000000..eca6403
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/base/R.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$anim.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$anim.class
new file mode 100644
index 0000000..42517a4
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$attr.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$attr.class
new file mode 100644
index 0000000..661d945
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$color.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$color.class
new file mode 100644
index 0000000..c6106ea
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$color.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$dimen.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$dimen.class
new file mode 100644
index 0000000..644ec52
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$drawable.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$drawable.class
new file mode 100644
index 0000000..83b276c
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$id.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$id.class
new file mode 100644
index 0000000..3eaa3b7
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$id.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$integer.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$integer.class
new file mode 100644
index 0000000..356b97b
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$layout.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$layout.class
new file mode 100644
index 0000000..ec927c5
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$string.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$string.class
new file mode 100644
index 0000000..1f80bdc
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$string.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$style.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$style.class
new file mode 100644
index 0000000..f3a8367
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$style.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$styleable.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$styleable.class
new file mode 100644
index 0000000..fef9f74
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R$xml.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R$xml.class
new file mode 100644
index 0000000..59121d5
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/common/R.class b/B4A/Objects/bin/classes/com/google/android/gms/common/R.class
new file mode 100644
index 0000000..508aded
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/common/R.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$anim.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$anim.class
new file mode 100644
index 0000000..dc4c3f5
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$attr.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$attr.class
new file mode 100644
index 0000000..069ba4c
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$color.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$color.class
new file mode 100644
index 0000000..ed42e9e
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$color.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$dimen.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$dimen.class
new file mode 100644
index 0000000..f1a89ef
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$drawable.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$drawable.class
new file mode 100644
index 0000000..741a88c
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$id.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$id.class
new file mode 100644
index 0000000..ca1c964
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$id.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$integer.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$integer.class
new file mode 100644
index 0000000..fd008b2
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$layout.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$layout.class
new file mode 100644
index 0000000..412692d
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$string.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$string.class
new file mode 100644
index 0000000..89ef897
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$string.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$style.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$style.class
new file mode 100644
index 0000000..4729df5
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$style.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$styleable.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$styleable.class
new file mode 100644
index 0000000..0dd112a
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R$xml.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$xml.class
new file mode 100644
index 0000000..f6c5d63
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/com/google/android/gms/maps/R.class b/B4A/Objects/bin/classes/com/google/android/gms/maps/R.class
new file mode 100644
index 0000000..b55675e
Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/android/gms/maps/R.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$anim.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$anim.class
new file mode 100644
index 0000000..95f848c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$anim.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$attr.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$attr.class
new file mode 100644
index 0000000..4c5c6c9
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$attr.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$color.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$color.class
new file mode 100644
index 0000000..88d7b5a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$color.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$dimen.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$dimen.class
new file mode 100644
index 0000000..e8d7ff3
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$dimen.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$drawable.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$drawable.class
new file mode 100644
index 0000000..fb34407
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$drawable.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$id.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$id.class
new file mode 100644
index 0000000..c1afbae
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$id.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$integer.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$integer.class
new file mode 100644
index 0000000..7c42c0c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$integer.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$layout.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$layout.class
new file mode 100644
index 0000000..277d045
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$layout.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$string.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$string.class
new file mode 100644
index 0000000..42cbb12
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$string.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$style.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$style.class
new file mode 100644
index 0000000..2025871
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$style.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$styleable.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$styleable.class
new file mode 100644
index 0000000..78ff674
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$styleable.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$xml.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$xml.class
new file mode 100644
index 0000000..87cc71e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R$xml.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R.class
new file mode 100644
index 0000000..44bf041
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/R.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/animatedcounter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/animatedcounter.class
new file mode 100644
index 0000000..f9e8a45
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/animatedcounter.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.class
new file mode 100644
index 0000000..5cfb68c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar.class
new file mode 100644
index 0000000..11443dd
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$1.class
new file mode 100644
index 0000000..7a1b40a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$2.class
new file mode 100644
index 0000000..bd711fc
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$2.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.class
new file mode 100644
index 0000000..fe92847
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.class
new file mode 100644
index 0000000..fd20e61
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$_mnewversion.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$_mnewversion.class
new file mode 100644
index 0000000..61f1571
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$_mnewversion.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$appupdater_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$appupdater_BR.class
new file mode 100644
index 0000000..08221a3
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$appupdater_BR.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater.class
new file mode 100644
index 0000000..4098092
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbitset.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbitset.class
new file mode 100644
index 0000000..b4d27ad
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbitset.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbreadcrumb.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbreadcrumb.class
new file mode 100644
index 0000000..df0e8d2
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbreadcrumb.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbytesbuilder.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbytesbuilder.class
new file mode 100644
index 0000000..5c94190
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbytesbuilder.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.class
new file mode 100644
index 0000000..b6203b4
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache.class
new file mode 100644
index 0000000..515560d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcollections.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcollections.class
new file mode 100644
index 0000000..cf1beb4
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcollections.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.class
new file mode 100644
index 0000000..4c282a1
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.class
new file mode 100644
index 0000000..ed1c33e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate.class
new file mode 100644
index 0000000..872600c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.class
new file mode 100644
index 0000000..ee5c27b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox.class
new file mode 100644
index 0000000..10b855a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcomparatorsort.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcomparatorsort.class
new file mode 100644
index 0000000..4284e6d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcomparatorsort.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.class
new file mode 100644
index 0000000..042da6e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate.class
new file mode 100644
index 0000000..3105396
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.class
new file mode 100644
index 0000000..d41ec47
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.class
new file mode 100644
index 0000000..3c92015
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.class
new file mode 100644
index 0000000..e62d440
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog.class
new file mode 100644
index 0000000..4c37bcc
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class
new file mode 100644
index 0000000..2977d4c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield.class
new file mode 100644
index 0000000..614471e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.class
new file mode 100644
index 0000000..fd555e0
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter.class
new file mode 100644
index 0000000..3e1c7ca
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4ximageview.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4ximageview.class
new file mode 100644
index 0000000..fd56f20
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4ximageview.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.class
new file mode 100644
index 0000000..0e8e1f7
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate.class
new file mode 100644
index 0000000..b909714
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.class
new file mode 100644
index 0000000..c546029
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate.class
new file mode 100644
index 0000000..2dced45
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.class
new file mode 100644
index 0000000..d0ce79d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator.class
new file mode 100644
index 0000000..10d408f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlongtexttemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlongtexttemplate.class
new file mode 100644
index 0000000..fb1db0d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlongtexttemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.class
new file mode 100644
index 0000000..b0ac847
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..1bd3139
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.class
new file mode 100644
index 0000000..512236a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.class
new file mode 100644
index 0000000..65bd65d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage.class
new file mode 100644
index 0000000..baa2f74
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xorderedmap.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xorderedmap.class
new file mode 100644
index 0000000..32bf0af
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xorderedmap.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpages.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpages.class
new file mode 100644
index 0000000..54d00c2
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpages.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesdelegator.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesdelegator.class
new file mode 100644
index 0000000..aa3ddf3
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesdelegator.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.class
new file mode 100644
index 0000000..cbd2abe
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.class
new file mode 100644
index 0000000..bd6a6d0
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.class
new file mode 100644
index 0000000..c71246c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.class
new file mode 100644
index 0000000..68a69a4
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.class
new file mode 100644
index 0000000..f5399d3
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager.class
new file mode 100644
index 0000000..b0d1cb2
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.class
new file mode 100644
index 0000000..c69490d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus.class
new file mode 100644
index 0000000..d82c97f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.class
new file mode 100644
index 0000000..ff22419
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton.class
new file mode 100644
index 0000000..c4b0b53
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.class
new file mode 100644
index 0000000..c5c0a15
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate.class
new file mode 100644
index 0000000..5d73f55
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xseekbar.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xseekbar.class
new file mode 100644
index 0000000..3122daa
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xseekbar.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xset.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xset.class
new file mode 100644
index 0000000..63b7160
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xset.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsignaturetemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsignaturetemplate.class
new file mode 100644
index 0000000..f941c03
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsignaturetemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.class
new file mode 100644
index 0000000..2bb4a86
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch.class
new file mode 100644
index 0000000..7bfcf87
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.class
new file mode 100644
index 0000000..1937cb7
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate.class
new file mode 100644
index 0000000..9f1a5a4
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/batteryutilities.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/batteryutilities.class
new file mode 100644
index 0000000..8135e2f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/batteryutilities.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..7728723
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar.class
new file mode 100644
index 0000000..5f37b76
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.class
new file mode 100644
index 0000000..d5acf38
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..0faeb6f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.class
new file mode 100644
index 0000000..25f120f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist.class
new file mode 100644
index 0000000..85ec75e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..b5a24c5
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.class
new file mode 100644
index 0000000..30f0083
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.class
new file mode 100644
index 0000000..f1b384e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.class
new file mode 100644
index 0000000..8b55fee
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente.class
new file mode 100644
index 0000000..3839909
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..3d3fdb0
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.class
new file mode 100644
index 0000000..5a378dd
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.class
new file mode 100644
index 0000000..c8d4945
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.class
new file mode 100644
index 0000000..1d5f4bc
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.class
new file mode 100644
index 0000000..51875fc
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.class
new file mode 100644
index 0000000..1d8f164
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.class
new file mode 100644
index 0000000..0c41567
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes.class
new file mode 100644
index 0000000..025d5a2
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalle_promo.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalle_promo.class
new file mode 100644
index 0000000..90d9806
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalle_promo.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..b874549
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa.class
new file mode 100644
index 0000000..127d554
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..6012802
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto.class
new file mode 100644
index 0000000..a5ac955
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..d363536
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico.class
new file mode 100644
index 0000000..18620ed
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_mapas.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_mapas.class
new file mode 100644
index 0000000..51ec611
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_mapas.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.class
new file mode 100644
index 0000000..d344bf1
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa.class
new file mode 100644
index 0000000..79ab600
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_nuevocliente.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_nuevocliente.class
new file mode 100644
index 0000000..caf8f5a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_nuevocliente.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_pedidos.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_pedidos.class
new file mode 100644
index 0000000..20cecbc
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_pedidos.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..1066295
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.class
new file mode 100644
index 0000000..96d870f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.class
new file mode 100644
index 0000000..bdfff2f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal.class
new file mode 100644
index 0000000..2bfc6ba
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.class
new file mode 100644
index 0000000..6e64df9
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos.class
new file mode 100644
index 0000000..699a016
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_tabulador.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_tabulador.class
new file mode 100644
index 0000000..6ccbfed
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_tabulador.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_ticketsdia.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_ticketsdia.class
new file mode 100644
index 0000000..69e278e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_ticketsdia.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.class
new file mode 100644
index 0000000..d1787ce
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable.class
new file mode 100644
index 0000000..2a3000b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.class
new file mode 100644
index 0000000..58c87be
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerasize.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerasize.class
new file mode 100644
index 0000000..ce92710
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerasize.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass.class
new file mode 100644
index 0000000..cc4751a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.class
new file mode 100644
index 0000000..ec2b25f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.class
new file mode 100644
index 0000000..d6af217
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.class
new file mode 100644
index 0000000..77e5815
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.class
new file mode 100644
index 0000000..9ea4089
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.class
new file mode 100644
index 0000000..6fcbdd3
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate.class
new file mode 100644
index 0000000..ea07fa9
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.class
new file mode 100644
index 0000000..1e061c7
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.class
new file mode 100644
index 0000000..14a26dc
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager.class
new file mode 100644
index 0000000..03f77db
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_check.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_check.class
new file mode 100644
index 0000000..e90003e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_check.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_checklist.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_checklist.class
new file mode 100644
index 0000000..6200e16
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_checklist.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_clientes.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_clientes.class
new file mode 100644
index 0000000..2d592c5
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_clientes.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.class
new file mode 100644
index 0000000..21778ae
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.class
new file mode 100644
index 0000000..8daa0a8
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_folioabono.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_folioabono.class
new file mode 100644
index 0000000..57b542c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_folioabono.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_historico.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_historico.class
new file mode 100644
index 0000000..434a428
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_historico.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_login.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_login.class
new file mode 100644
index 0000000..274883b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_login.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mainpage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mainpage.class
new file mode 100644
index 0000000..0679d79
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mainpage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.class
new file mode 100644
index 0000000..da2c73b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.class
new file mode 100644
index 0000000..c03d304
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_no_venta.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_no_venta.class
new file mode 100644
index 0000000..99a9621
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_no_venta.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.class
new file mode 100644
index 0000000..27581c1
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_pedido.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_pedido.class
new file mode 100644
index 0000000..970be98
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_pedido.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_principal.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_principal.class
new file mode 100644
index 0000000..582f26e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_principal.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_proditem.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_proditem.class
new file mode 100644
index 0000000..8dcc8d9
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_proditem.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_proditem2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_proditem2.class
new file mode 100644
index 0000000..a04c3f0
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_proditem2.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_productos.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_productos.class
new file mode 100644
index 0000000..5a7ab27
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_productos.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.class
new file mode 100644
index 0000000..1d8a76b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_tabulador.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_tabulador.class
new file mode 100644
index 0000000..a01dada
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/designerscripts/LS_tabulador.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter$_animage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter$_animage.class
new file mode 100644
index 0000000..285d638
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter$_animage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter.class
new file mode 100644
index 0000000..72a9216
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/fileprovider.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/fileprovider.class
new file mode 100644
index 0000000..84b9a2a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/fileprovider.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$1.class
new file mode 100644
index 0000000..62b5531
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$B4AMenuItemsClickListener.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$B4AMenuItemsClickListener.class
new file mode 100644
index 0000000..33a128b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$B4AMenuItemsClickListener.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$HandleKeyDelayed.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$HandleKeyDelayed.class
new file mode 100644
index 0000000..d810c1b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$HandleKeyDelayed.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$ResumeMessage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$ResumeMessage.class
new file mode 100644
index 0000000..f5ef68a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$ResumeMessage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$WaitForLayout.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$WaitForLayout.class
new file mode 100644
index 0000000..7af94e4
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto$WaitForLayout.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto.class
new file mode 100644
index 0000000..a4e8ee2
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob$_multipartfiledata.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob$_multipartfiledata.class
new file mode 100644
index 0000000..823574b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob$_multipartfiledata.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob.class
new file mode 100644
index 0000000..bcb075c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httputils2service.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httputils2service.class
new file mode 100644
index 0000000..db0cf44
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httputils2service.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/madewithlove.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/madewithlove.class
new file mode 100644
index 0000000..2b0137f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/madewithlove.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$1.class
new file mode 100644
index 0000000..05b72bf
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$B4AMenuItemsClickListener.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$B4AMenuItemsClickListener.class
new file mode 100644
index 0000000..0bc0c45
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$B4AMenuItemsClickListener.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$HandleKeyDelayed.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$HandleKeyDelayed.class
new file mode 100644
index 0000000..8b0fb8c
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$HandleKeyDelayed.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$ResumeMessage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$ResumeMessage.class
new file mode 100644
index 0000000..cf7c449
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$ResumeMessage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$WaitForLayout.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$WaitForLayout.class
new file mode 100644
index 0000000..2be9388
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main$WaitForLayout.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main.class
new file mode 100644
index 0000000..4f924da
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/manageexternalstorage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/manageexternalstorage.class
new file mode 100644
index 0000000..30a117f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/manageexternalstorage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$1.class
new file mode 100644
index 0000000..f72bbf8
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$B4AMenuItemsClickListener.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$B4AMenuItemsClickListener.class
new file mode 100644
index 0000000..0ef35bf
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$B4AMenuItemsClickListener.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$HandleKeyDelayed.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$HandleKeyDelayed.class
new file mode 100644
index 0000000..a150a7f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$HandleKeyDelayed.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.class
new file mode 100644
index 0000000..874e583
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumeMessage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumeMessage.class
new file mode 100644
index 0000000..069e1cb
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumeMessage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$WaitForLayout.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$WaitForLayout.class
new file mode 100644
index 0000000..46d7045
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$WaitForLayout.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente.class
new file mode 100644
index 0000000..bc2f50b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$1.class
new file mode 100644
index 0000000..aac3b06
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$B4AMenuItemsClickListener.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$B4AMenuItemsClickListener.class
new file mode 100644
index 0000000..fe3fc00
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$B4AMenuItemsClickListener.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$HandleKeyDelayed.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$HandleKeyDelayed.class
new file mode 100644
index 0000000..b3550be
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$HandleKeyDelayed.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.class
new file mode 100644
index 0000000..070b166
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumeMessage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumeMessage.class
new file mode 100644
index 0000000..3f000bc
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumeMessage.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$WaitForLayout.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$WaitForLayout.class
new file mode 100644
index 0000000..6da4684
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$WaitForLayout.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas.class
new file mode 100644
index 0000000..ffd398d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$1.class
new file mode 100644
index 0000000..515fec5
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$2.class
new file mode 100644
index 0000000..07201d8
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$2.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$newinst2_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$newinst2_BR.class
new file mode 100644
index 0000000..bf8e753
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$newinst2_BR.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2.class
new file mode 100644
index 0000000..a75b0ed
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/roundslider.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/roundslider.class
new file mode 100644
index 0000000..9ee84ae
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/roundslider.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.class
new file mode 100644
index 0000000..6e03285
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel.class
new file mode 100644
index 0000000..4c998dd
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$1.class
new file mode 100644
index 0000000..c6b992e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$2.class
new file mode 100644
index 0000000..2232213
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$2.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$starter_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$starter_BR.class
new file mode 100644
index 0000000..60ca58f
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$starter_BR.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter.class
new file mode 100644
index 0000000..c9a6c8d
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/subs.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/subs.class
new file mode 100644
index 0000000..52e9046
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/subs.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/swiftbutton.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/swiftbutton.class
new file mode 100644
index 0000000..1c824ba
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/swiftbutton.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$1.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$1.class
new file mode 100644
index 0000000..a8cdf6b
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$1.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$2.class
new file mode 100644
index 0000000..b85e362
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$2.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.class
new file mode 100644
index 0000000..082e3ac
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.class
new file mode 100644
index 0000000..7f45d11
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$tracker_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$tracker_BR.class
new file mode 100644
index 0000000..fa0145a
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$tracker_BR.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker.class
new file mode 100644
index 0000000..970cbf4
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker.class differ
diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/xuiviewsutils.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/xuiviewsutils.class
new file mode 100644
index 0000000..1a6a58e
Binary files /dev/null and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/xuiviewsutils.class differ
diff --git a/B4A/Objects/bin/extra/assets/b4x_fontawesome.otf b/B4A/Objects/bin/extra/assets/b4x_fontawesome.otf
new file mode 100644
index 0000000..401ec0f
Binary files /dev/null and b/B4A/Objects/bin/extra/assets/b4x_fontawesome.otf differ
diff --git a/B4A/Objects/bin/extra/assets/b4x_materialicons.ttf b/B4A/Objects/bin/extra/assets/b4x_materialicons.ttf
new file mode 100644
index 0000000..7015564
Binary files /dev/null and b/B4A/Objects/bin/extra/assets/b4x_materialicons.ttf differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/androidx.coordinatorlayout.zip b/B4A/Objects/bin/extra/compiled_resources/androidx.coordinatorlayout.zip
new file mode 100644
index 0000000..8684ac7
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/androidx.coordinatorlayout.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/androidx.core.zip b/B4A/Objects/bin/extra/compiled_resources/androidx.core.zip
new file mode 100644
index 0000000..8f3ac37
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/androidx.core.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/androidx.drawerlayout.zip b/B4A/Objects/bin/extra/compiled_resources/androidx.drawerlayout.zip
new file mode 100644
index 0000000..15254a8
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/androidx.drawerlayout.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/androidx.fragment.zip b/B4A/Objects/bin/extra/compiled_resources/androidx.fragment.zip
new file mode 100644
index 0000000..8855779
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/androidx.fragment.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/androidx.media.zip b/B4A/Objects/bin/extra/compiled_resources/androidx.media.zip
new file mode 100644
index 0000000..50a460b
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/androidx.media.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/androidx.swiperefreshlayout.zip b/B4A/Objects/bin/extra/compiled_resources/androidx.swiperefreshlayout.zip
new file mode 100644
index 0000000..90f9c9a
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/androidx.swiperefreshlayout.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.base.zip b/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.base.zip
new file mode 100644
index 0000000..c59bf9a
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.base.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.common.zip b/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.common.zip
new file mode 100644
index 0000000..0b8e032
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.common.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.maps.zip b/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.maps.zip
new file mode 100644
index 0000000..786dc9f
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/com.google.android.gms.maps.zip differ
diff --git a/B4A/Objects/bin/extra/compiled_resources/reparto_izca.keymon.lat.zip b/B4A/Objects/bin/extra/compiled_resources/reparto_izca.keymon.lat.zip
new file mode 100644
index 0000000..a77732b
Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/reparto_izca.keymon.lat.zip differ
diff --git a/B4A/Objects/bin/temp.ap_ b/B4A/Objects/bin/temp.ap_
new file mode 100644
index 0000000..052e3fd
Binary files /dev/null and b/B4A/Objects/bin/temp.ap_ differ
diff --git a/B4A/Objects/classes.dex b/B4A/Objects/classes.dex
new file mode 100644
index 0000000..8a1cde0
Binary files /dev/null and b/B4A/Objects/classes.dex differ
diff --git a/B4A/Objects/d8_arguments.txt b/B4A/Objects/d8_arguments.txt
new file mode 100644
index 0000000..c7e488e
--- /dev/null
+++ b/B4A/Objects/d8_arguments.txt
@@ -0,0 +1,401 @@
+--release
+--output
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects
+--lib
+C:\Android\platforms\android-30\android.jar
+C:\Android\tools\..\extras\b4a_local\unpacked-b4ashared-63837499356000\dex_v1\b4ashared.zip
+c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-maps\17.0.1\unpacked-play-services-maps-17.0.1\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\fragment\fragment\1.2.5\unpacked-fragment-1.2.5\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.3.1\unpacked-core-1.3.1\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime\2.2.0\unpacked-lifecycle-runtime-2.2.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\versionedparcelable\versionedparcelable\1.1.1\unpacked-versionedparcelable-1.1.1\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\viewpager\viewpager\1.0.0\unpacked-viewpager-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\customview\customview\1.1.0\unpacked-customview-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\loader\loader\1.1.0\unpacked-loader-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-livedata-core\2.2.0\unpacked-lifecycle-livedata-core-2.2.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\arch\core\core-runtime\2.1.0\unpacked-core-runtime-2.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel\2.2.0\unpacked-lifecycle-viewmodel-2.2.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\activity\activity\1.1.0\unpacked-activity-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.0.0\unpacked-savedstate-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel-savedstate\2.2.0\unpacked-lifecycle-viewmodel-savedstate-2.2.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-base\17.6.0\unpacked-play-services-base-17.6.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-basement\17.6.0\unpacked-play-services-basement-17.6.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-tasks\17.2.1\unpacked-play-services-tasks-17.2.1\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-v4\1.0.0\unpacked-legacy-support-v4-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\media\media\1.1.0\unpacked-media-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-core-utils\1.0.0\unpacked-legacy-support-core-utils-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\documentfile\documentfile\1.0.1\unpacked-documentfile-1.0.1\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\localbroadcastmanager\localbroadcastmanager\1.0.0\unpacked-localbroadcastmanager-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\print\print\1.0.0\unpacked-print-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-core-ui\1.0.0\unpacked-legacy-support-core-ui-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\coordinatorlayout\coordinatorlayout\1.1.0\unpacked-coordinatorlayout-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\drawerlayout\drawerlayout\1.1.0\unpacked-drawerlayout-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\slidingpanelayout\slidingpanelayout\1.1.0\unpacked-slidingpanelayout-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\interpolator\interpolator\1.0.0\unpacked-interpolator-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\swiperefreshlayout\swiperefreshlayout\1.1.0\unpacked-swiperefreshlayout-1.1.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\asynclayoutinflater\asynclayoutinflater\1.0.0\unpacked-asynclayoutinflater-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\androidx\cursoradapter\cursoradapter\1.0.0\unpacked-cursoradapter-1.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-location\18.0.0\unpacked-play-services-location-18.0.0\jars\classes.zip
+c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-places-placereport\17.0.0\unpacked-play-services-places-placereport-17.0.0\jars\classes.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-baqrcode-63580278352000\dex_v1\baqrcode.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-byteconverter-63837499358000\dex_v1\byteconverter.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-camera-63837499358000\dex_v1\camera.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-compressstrings-63690670984758\dex_v1\compressstrings.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-core-63837499358000\dex_v1\core.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-fusedlocationprovider-63591657828000\dex_v1\fusedlocationprovider.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-googlemaps-63702010524000\dex_v1\googlemaps.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-googlemapsextras-63717303676000\dex_v1\googlemapsextras.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-gps-63837499358000\dex_v1\gps.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-ime-63837499358000\dex_v1\ime.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-javaobject-63837499358000\dex_v1\javaobject.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-json-63837499358000\dex_v1\json.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-phone-63837499358000\dex_v1\phone.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-randomaccessfile-63837499358000\dex_v1\randomaccessfile.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-reflection-63837499358000\dex_v1\reflection.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-runtimepermissions.androidx-63837499358000\dex_v1\runtimepermissions.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-serial-63837499358000\dex_v1\serial.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-sql-63837499358000\dex_v1\sql.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-togglelibrary-63627631314000\dex_v1\togglelibrary.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-xcustomlistview-63837499358000\dex_v1\xcustomlistview.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-xui-63837499358000\dex_v1\xui.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-zxing_scanner-63580278356000\dex_v1\zxing_scanner.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-stringutils-63837499358000\dex_v1\stringutils.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-core-zxing-63580278780000\dex_v1\core-zxing.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-zxingscanner-63580278896000\dex_v1\zxingscanner.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-okhttp-63837499358000\dex_v1\okhttp.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-bitmapcreator-63837499358000\dex_v1\bitmapcreator.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-dateutils-63837499358000\dex_v1\dateutils.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-okhttp-4.9.0-63837499358000\dex_v1\okhttp-4.9.0.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-okio-2.8.0-63837499358000\dex_v1\okio-2.8.0.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-okhttp-urlconnection-4.9.3-63837499358000\dex_v1\okhttp-urlconnection-4.9.3.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63837499358000\dex_v1\kotlin-stdlib-1.6.10.zip
+C:\Android\tools\..\extras\b4a_local\unpacked-remotelogger-63837499358000\dex_v1\remotelogger.zip
+c:\android\tools\..\extras\b4a_remote\androidx\annotation\annotation\1.1.0\annotation-1.1.0.zip
+c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-common\2.2.0\lifecycle-common-2.2.0.zip
+c:\android\tools\..\extras\b4a_remote\androidx\arch\core\core-common\2.1.0\core-common-2.1.0.zip
+c:\android\tools\..\extras\b4a_remote\androidx\collection\collection\1.1.0\collection-1.1.0.zip
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\coordinatorlayout\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\core\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\drawerlayout\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\fragment\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\media\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\androidx\swiperefreshlayout\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\base\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\common\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\com\google\android\gms\maps\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\animatedcounter.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\anotherprogressbar$ResumableSub_BusyLoop.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\anotherprogressbar.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\appupdater$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\appupdater$2.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\appupdater$appupdater_BR.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\appupdater$ResumableSub_download_newApk.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\appupdater$ResumableSub_Service_Start.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\appupdater$_mnewversion.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\appupdater.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xbitset.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xbreadcrumb.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xbytesbuilder.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcache$_b4xcacheitem.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcache.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcollections.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcolortemplate$ResumableSub_Show.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcolortemplate$_colorpickerpart.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcolortemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcombobox$ResumableSub_RaiseEvent.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcombobox.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xcomparatorsort.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xdatetemplate$ResumableSub_Show.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xdatetemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xdialog$ResumableSub_Show.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xdialog$ResumableSub_ShowCustom.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xdialog$ResumableSub_ShowTemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xdialog.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xfloattextfield.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xformatter$_b4xformatdata.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xformatter.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4ximageview.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xinputtemplate$ResumableSub_Show.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xinputtemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xlisttemplate$ResumableSub_Show.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xlisttemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xloadingindicator$ResumableSub_MainLoop.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xloadingindicator.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xlongtexttemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xmainpage$ResumableSub_B4XPage_Appear.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xmainpage$ResumableSub_b_envioBD_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xmainpage$ResumableSub_b_terpc_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xmainpage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xorderedmap.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpages.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpagesdelegator.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpagesmanager$PagesMenuListener.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpagesmanager$ResumableSub_HandleCloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpagesmanager$_b4amenuitem.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpagesmanager$_b4xpageinfo.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpagesmanager$_b4xpageparent.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xpagesmanager.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xplusminus$ResumableSub_StartDownLoop.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xplusminus.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xradiobutton$ResumableSub_SetValueImpl.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xradiobutton.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xsearchtemplate$ResumableSub_Show.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xsearchtemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xseekbar.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xset.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xsignaturetemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xswitch$ResumableSub_SetValueImpl.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xswitch.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xtimedtemplate$ResumableSub_Show.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\b4xtimedtemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\batteryutilities.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cameraexclass$_camerainfoandid.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cameraexclass$_camerasize.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cameraexclass.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cl_appupdate$ResumableSub_DownloadApk.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cl_appupdate$ResumableSub_IsvalidWV.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cl_appupdate$ResumableSub_ReadWebVN.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cl_appupdate$ResumableSub_TryApkUpdate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cl_appupdate$ResumableSub_UpdateApk.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\cl_appupdate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_buscar$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_buscar.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cheklist$ResumableSub_B4XPage_Appear.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cheklist$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cheklist$ResumableSub_InitializeCamera2.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cheklist.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cliente$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cliente$ResumableSub_b_abono_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cliente$ResumableSub_B_IMP2_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cliente$ResumableSub_B_IMP_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_cliente.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes$ResumableSub_b_GetDirs_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes$ResumableSub_caculaRutaGPS.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes$ResumableSub_distanciaEntreCoords.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes$ResumableSub_generaListViewRutas.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes$ResumableSub_ListView1_ItemClick.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes$ResumableSub_traeRutaDia.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_clientes.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_detalleventa.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_detalle_promo.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_foto$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_foto.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_historico$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_historico.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_mapas.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_noventa$ResumableSub_B_IMP_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_noventa.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_nuevocliente.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_pedidos.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_principal$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_principal$ResumableSub_b_impresion_rec_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_principal$ResumableSub_b_imp_inventario_Click.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_principal.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_productos$ResumableSub_B4XPage_CloseRequest.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_productos.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_tabulador.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_ticketsdia.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_updateavailable$ResumableSub_B4XPage_Appear.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\c_updateavailable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\dbrequestmanager$_dbcommand.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\dbrequestmanager$_dbresult.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\dbrequestmanager.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\escposprinter$_animage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\escposprinter.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\fileprovider.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\foto$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\foto$B4AMenuItemsClickListener.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\foto$HandleKeyDelayed.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\foto$ResumeMessage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\foto$WaitForLayout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\foto.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\httpjob$_multipartfiledata.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\httpjob.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\httputils2service.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\madewithlove.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\main$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\main$B4AMenuItemsClickListener.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\main$HandleKeyDelayed.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\main$ResumeMessage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\main$WaitForLayout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\main.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\manageexternalstorage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_cliente$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_cliente$B4AMenuItemsClickListener.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_cliente$HandleKeyDelayed.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_cliente$ResumableSub_MapFragment1_Ready.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_cliente$ResumeMessage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_cliente$WaitForLayout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_cliente.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_rutas$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_rutas$B4AMenuItemsClickListener.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_rutas$HandleKeyDelayed.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_rutas$ResumableSub_MapFragment1_Ready.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_rutas$ResumeMessage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_rutas$WaitForLayout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\mapa_rutas.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\newinst2$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\newinst2$2.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\newinst2$newinst2_BR.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\newinst2.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$anim.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$attr.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$color.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$dimen.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$drawable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$id.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$integer.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$layout.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$string.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$style.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$styleable.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R$xml.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\R.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\roundslider.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\scrollinglabel$ResumableSub_StartScrolling.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\scrollinglabel.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\starter$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\starter$2.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\starter$starter_BR.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\starter.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\subs.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\swiftbutton.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\tracker$1.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\tracker$2.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\tracker$ResumableSub_StartFLP.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\tracker$ResumableSub_StartFLP2Reqs.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\tracker$tracker_BR.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\tracker.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\xuiviewsutils.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_check.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_checklist.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_clientes.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_detalleventa.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_detalle_promo.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_folioabono.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_historico.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_login.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_mainpage.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_mapa_cliente.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_mapa_rutas.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_no_venta.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_panel_pick_ciego.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_pedido.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_principal.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_proditem.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_proditem2.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_productos.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_searchtemplate.dex
+C:\Users\carlo\Desktop\IZCA Reparto\B4A\Objects\dexed\reparto_izca\keymon\lat\designerscripts\LS_tabulador.dex
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$anim.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$anim.dex
new file mode 100644
index 0000000..3eafe5f
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$anim.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$attr.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$attr.dex
new file mode 100644
index 0000000..8bf698e
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$attr.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$color.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$color.dex
new file mode 100644
index 0000000..16e62dc
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$color.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$dimen.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$dimen.dex
new file mode 100644
index 0000000..f8dece6
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$drawable.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$drawable.dex
new file mode 100644
index 0000000..8fc108e
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$id.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$id.dex
new file mode 100644
index 0000000..2a307b1
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$id.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$integer.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$integer.dex
new file mode 100644
index 0000000..10f940a
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$integer.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$layout.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$layout.dex
new file mode 100644
index 0000000..2dad789
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$layout.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$string.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$string.dex
new file mode 100644
index 0000000..8ee8297
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$string.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$style.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$style.dex
new file mode 100644
index 0000000..a29ab30
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$style.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$styleable.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$styleable.dex
new file mode 100644
index 0000000..b072eec
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R$xml.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R$xml.dex
new file mode 100644
index 0000000..8108640
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R$xml.dex differ
diff --git a/B4A/Objects/dexed/androidx/coordinatorlayout/R.dex b/B4A/Objects/dexed/androidx/coordinatorlayout/R.dex
new file mode 100644
index 0000000..e4ebb1f
Binary files /dev/null and b/B4A/Objects/dexed/androidx/coordinatorlayout/R.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$anim.dex b/B4A/Objects/dexed/androidx/core/R$anim.dex
new file mode 100644
index 0000000..bce8460
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$anim.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$attr.dex b/B4A/Objects/dexed/androidx/core/R$attr.dex
new file mode 100644
index 0000000..d1d8b09
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$attr.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$color.dex b/B4A/Objects/dexed/androidx/core/R$color.dex
new file mode 100644
index 0000000..49e3db4
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$color.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$dimen.dex b/B4A/Objects/dexed/androidx/core/R$dimen.dex
new file mode 100644
index 0000000..f05a33b
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$drawable.dex b/B4A/Objects/dexed/androidx/core/R$drawable.dex
new file mode 100644
index 0000000..79fdf2a
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$id.dex b/B4A/Objects/dexed/androidx/core/R$id.dex
new file mode 100644
index 0000000..d0e03f8
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$id.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$integer.dex b/B4A/Objects/dexed/androidx/core/R$integer.dex
new file mode 100644
index 0000000..bed61a9
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$integer.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$layout.dex b/B4A/Objects/dexed/androidx/core/R$layout.dex
new file mode 100644
index 0000000..4d863a8
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$layout.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$string.dex b/B4A/Objects/dexed/androidx/core/R$string.dex
new file mode 100644
index 0000000..22930b7
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$string.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$style.dex b/B4A/Objects/dexed/androidx/core/R$style.dex
new file mode 100644
index 0000000..011157c
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$style.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$styleable.dex b/B4A/Objects/dexed/androidx/core/R$styleable.dex
new file mode 100644
index 0000000..a888177
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R$xml.dex b/B4A/Objects/dexed/androidx/core/R$xml.dex
new file mode 100644
index 0000000..89770dc
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R$xml.dex differ
diff --git a/B4A/Objects/dexed/androidx/core/R.dex b/B4A/Objects/dexed/androidx/core/R.dex
new file mode 100644
index 0000000..0d07502
Binary files /dev/null and b/B4A/Objects/dexed/androidx/core/R.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$anim.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$anim.dex
new file mode 100644
index 0000000..34a7981
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$anim.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$attr.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$attr.dex
new file mode 100644
index 0000000..da97973
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$attr.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$color.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$color.dex
new file mode 100644
index 0000000..5d23199
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$color.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$dimen.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$dimen.dex
new file mode 100644
index 0000000..b1eb928
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$drawable.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$drawable.dex
new file mode 100644
index 0000000..07cd4b4
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$id.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$id.dex
new file mode 100644
index 0000000..a506f3c
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$id.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$integer.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$integer.dex
new file mode 100644
index 0000000..7f2e89f
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$integer.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$layout.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$layout.dex
new file mode 100644
index 0000000..79cfd29
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$layout.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$string.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$string.dex
new file mode 100644
index 0000000..33640fd
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$string.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$style.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$style.dex
new file mode 100644
index 0000000..fca19da
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$style.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$styleable.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$styleable.dex
new file mode 100644
index 0000000..18d3687
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R$xml.dex b/B4A/Objects/dexed/androidx/drawerlayout/R$xml.dex
new file mode 100644
index 0000000..10d0dac
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R$xml.dex differ
diff --git a/B4A/Objects/dexed/androidx/drawerlayout/R.dex b/B4A/Objects/dexed/androidx/drawerlayout/R.dex
new file mode 100644
index 0000000..63858f7
Binary files /dev/null and b/B4A/Objects/dexed/androidx/drawerlayout/R.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$anim.dex b/B4A/Objects/dexed/androidx/fragment/R$anim.dex
new file mode 100644
index 0000000..7aec957
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$anim.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$attr.dex b/B4A/Objects/dexed/androidx/fragment/R$attr.dex
new file mode 100644
index 0000000..bd69d63
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$attr.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$color.dex b/B4A/Objects/dexed/androidx/fragment/R$color.dex
new file mode 100644
index 0000000..f1121e0
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$color.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$dimen.dex b/B4A/Objects/dexed/androidx/fragment/R$dimen.dex
new file mode 100644
index 0000000..4b64714
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$drawable.dex b/B4A/Objects/dexed/androidx/fragment/R$drawable.dex
new file mode 100644
index 0000000..ad88d46
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$id.dex b/B4A/Objects/dexed/androidx/fragment/R$id.dex
new file mode 100644
index 0000000..ef64677
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$id.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$integer.dex b/B4A/Objects/dexed/androidx/fragment/R$integer.dex
new file mode 100644
index 0000000..1d4f578
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$integer.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$layout.dex b/B4A/Objects/dexed/androidx/fragment/R$layout.dex
new file mode 100644
index 0000000..ba66459
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$layout.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$string.dex b/B4A/Objects/dexed/androidx/fragment/R$string.dex
new file mode 100644
index 0000000..b597614
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$string.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$style.dex b/B4A/Objects/dexed/androidx/fragment/R$style.dex
new file mode 100644
index 0000000..c1e5470
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$style.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$styleable.dex b/B4A/Objects/dexed/androidx/fragment/R$styleable.dex
new file mode 100644
index 0000000..4342f5e
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R$xml.dex b/B4A/Objects/dexed/androidx/fragment/R$xml.dex
new file mode 100644
index 0000000..38573fd
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R$xml.dex differ
diff --git a/B4A/Objects/dexed/androidx/fragment/R.dex b/B4A/Objects/dexed/androidx/fragment/R.dex
new file mode 100644
index 0000000..284c1ba
Binary files /dev/null and b/B4A/Objects/dexed/androidx/fragment/R.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$anim.dex b/B4A/Objects/dexed/androidx/media/R$anim.dex
new file mode 100644
index 0000000..0b5c47c
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$anim.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$attr.dex b/B4A/Objects/dexed/androidx/media/R$attr.dex
new file mode 100644
index 0000000..3b58ce2
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$attr.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$color.dex b/B4A/Objects/dexed/androidx/media/R$color.dex
new file mode 100644
index 0000000..ffca15e
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$color.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$dimen.dex b/B4A/Objects/dexed/androidx/media/R$dimen.dex
new file mode 100644
index 0000000..7c05662
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$drawable.dex b/B4A/Objects/dexed/androidx/media/R$drawable.dex
new file mode 100644
index 0000000..3c91ad8
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$id.dex b/B4A/Objects/dexed/androidx/media/R$id.dex
new file mode 100644
index 0000000..877a3df
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$id.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$integer.dex b/B4A/Objects/dexed/androidx/media/R$integer.dex
new file mode 100644
index 0000000..ad30c38
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$integer.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$layout.dex b/B4A/Objects/dexed/androidx/media/R$layout.dex
new file mode 100644
index 0000000..7378567
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$layout.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$string.dex b/B4A/Objects/dexed/androidx/media/R$string.dex
new file mode 100644
index 0000000..0758ed9
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$string.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$style.dex b/B4A/Objects/dexed/androidx/media/R$style.dex
new file mode 100644
index 0000000..c9a870b
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$style.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$styleable.dex b/B4A/Objects/dexed/androidx/media/R$styleable.dex
new file mode 100644
index 0000000..aee62f0
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R$xml.dex b/B4A/Objects/dexed/androidx/media/R$xml.dex
new file mode 100644
index 0000000..de42281
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R$xml.dex differ
diff --git a/B4A/Objects/dexed/androidx/media/R.dex b/B4A/Objects/dexed/androidx/media/R.dex
new file mode 100644
index 0000000..bbaa56b
Binary files /dev/null and b/B4A/Objects/dexed/androidx/media/R.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$anim.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$anim.dex
new file mode 100644
index 0000000..ff8a913
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$anim.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$attr.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$attr.dex
new file mode 100644
index 0000000..e6a29b3
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$attr.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$color.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$color.dex
new file mode 100644
index 0000000..6199b2a
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$color.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$dimen.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$dimen.dex
new file mode 100644
index 0000000..9cd36e1
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$drawable.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$drawable.dex
new file mode 100644
index 0000000..385c0bc
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$id.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$id.dex
new file mode 100644
index 0000000..cde85e0
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$id.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$integer.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$integer.dex
new file mode 100644
index 0000000..1117409
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$integer.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$layout.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$layout.dex
new file mode 100644
index 0000000..ff9b529
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$layout.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$string.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$string.dex
new file mode 100644
index 0000000..e72dce5
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$string.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$style.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$style.dex
new file mode 100644
index 0000000..872d515
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$style.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$styleable.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$styleable.dex
new file mode 100644
index 0000000..26a9c31
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R$xml.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$xml.dex
new file mode 100644
index 0000000..f586a54
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R$xml.dex differ
diff --git a/B4A/Objects/dexed/androidx/swiperefreshlayout/R.dex b/B4A/Objects/dexed/androidx/swiperefreshlayout/R.dex
new file mode 100644
index 0000000..c8210b8
Binary files /dev/null and b/B4A/Objects/dexed/androidx/swiperefreshlayout/R.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$anim.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$anim.dex
new file mode 100644
index 0000000..f8899ea
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$anim.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$attr.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$attr.dex
new file mode 100644
index 0000000..c672c38
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$attr.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$color.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$color.dex
new file mode 100644
index 0000000..f2fab05
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$color.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$dimen.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$dimen.dex
new file mode 100644
index 0000000..ec311d2
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$drawable.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$drawable.dex
new file mode 100644
index 0000000..d2726b7
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$id.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$id.dex
new file mode 100644
index 0000000..5e9493f
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$id.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$integer.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$integer.dex
new file mode 100644
index 0000000..fdb4f10
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$integer.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$layout.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$layout.dex
new file mode 100644
index 0000000..85a4796
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$layout.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$string.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$string.dex
new file mode 100644
index 0000000..4adb9ed
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$string.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$style.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$style.dex
new file mode 100644
index 0000000..6c00c66
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$style.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$styleable.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$styleable.dex
new file mode 100644
index 0000000..a0e903a
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R$xml.dex b/B4A/Objects/dexed/com/google/android/gms/base/R$xml.dex
new file mode 100644
index 0000000..8be5964
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R$xml.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/base/R.dex b/B4A/Objects/dexed/com/google/android/gms/base/R.dex
new file mode 100644
index 0000000..f068a6f
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/base/R.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$anim.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$anim.dex
new file mode 100644
index 0000000..9a4615e
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$anim.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$attr.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$attr.dex
new file mode 100644
index 0000000..c4df524
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$attr.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$color.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$color.dex
new file mode 100644
index 0000000..78590ef
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$color.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$dimen.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$dimen.dex
new file mode 100644
index 0000000..9c86415
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$drawable.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$drawable.dex
new file mode 100644
index 0000000..b3853b4
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$id.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$id.dex
new file mode 100644
index 0000000..bf0fe18
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$id.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$integer.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$integer.dex
new file mode 100644
index 0000000..1791026
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$integer.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$layout.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$layout.dex
new file mode 100644
index 0000000..a7c239b
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$layout.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$string.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$string.dex
new file mode 100644
index 0000000..9e9adc9
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$string.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$style.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$style.dex
new file mode 100644
index 0000000..eb9b5e6
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$style.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$styleable.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$styleable.dex
new file mode 100644
index 0000000..81143af
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R$xml.dex b/B4A/Objects/dexed/com/google/android/gms/common/R$xml.dex
new file mode 100644
index 0000000..63625ff
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R$xml.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/common/R.dex b/B4A/Objects/dexed/com/google/android/gms/common/R.dex
new file mode 100644
index 0000000..4ad8296
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/common/R.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$anim.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$anim.dex
new file mode 100644
index 0000000..8a78eb9
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$anim.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$attr.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$attr.dex
new file mode 100644
index 0000000..716829d
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$attr.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$color.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$color.dex
new file mode 100644
index 0000000..ed8a387
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$color.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$dimen.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$dimen.dex
new file mode 100644
index 0000000..770cf48
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$drawable.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$drawable.dex
new file mode 100644
index 0000000..c837915
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$id.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$id.dex
new file mode 100644
index 0000000..f7f0607
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$id.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$integer.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$integer.dex
new file mode 100644
index 0000000..204e83c
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$integer.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$layout.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$layout.dex
new file mode 100644
index 0000000..89c7b28
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$layout.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$string.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$string.dex
new file mode 100644
index 0000000..1ecf97f
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$string.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$style.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$style.dex
new file mode 100644
index 0000000..fad3e83
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$style.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$styleable.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$styleable.dex
new file mode 100644
index 0000000..96ddbdc
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R$xml.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R$xml.dex
new file mode 100644
index 0000000..a0af5a8
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R$xml.dex differ
diff --git a/B4A/Objects/dexed/com/google/android/gms/maps/R.dex b/B4A/Objects/dexed/com/google/android/gms/maps/R.dex
new file mode 100644
index 0000000..abf6286
Binary files /dev/null and b/B4A/Objects/dexed/com/google/android/gms/maps/R.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$anim.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$anim.dex
new file mode 100644
index 0000000..1572cd3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$anim.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$attr.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$attr.dex
new file mode 100644
index 0000000..29a54e3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$attr.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$color.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$color.dex
new file mode 100644
index 0000000..95da0e5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$color.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$dimen.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$dimen.dex
new file mode 100644
index 0000000..60bd856
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$dimen.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$drawable.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$drawable.dex
new file mode 100644
index 0000000..f383981
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$drawable.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$id.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$id.dex
new file mode 100644
index 0000000..8fdcc75
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$id.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$integer.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$integer.dex
new file mode 100644
index 0000000..bc8213d
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$integer.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$layout.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$layout.dex
new file mode 100644
index 0000000..574a64d
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$layout.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$string.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$string.dex
new file mode 100644
index 0000000..d51089a
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$string.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$style.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$style.dex
new file mode 100644
index 0000000..ce401e1
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$style.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$styleable.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$styleable.dex
new file mode 100644
index 0000000..0f4a29a
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$styleable.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R$xml.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$xml.dex
new file mode 100644
index 0000000..b4c4e27
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R$xml.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/R.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/R.dex
new file mode 100644
index 0000000..73db467
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/R.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/animatedcounter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/animatedcounter.dex
new file mode 100644
index 0000000..1f4d18c
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/animatedcounter.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.dex
new file mode 100644
index 0000000..6c3a197
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar.dex
new file mode 100644
index 0000000..59c6555
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$1.dex
new file mode 100644
index 0000000..7fd6b70
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$2.dex
new file mode 100644
index 0000000..ee2e4cd
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$2.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.dex
new file mode 100644
index 0000000..ff13ef9
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.dex
new file mode 100644
index 0000000..6cb52d1
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$_mnewversion.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$_mnewversion.dex
new file mode 100644
index 0000000..1fadfbd
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$_mnewversion.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$appupdater_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$appupdater_BR.dex
new file mode 100644
index 0000000..07a8fbd
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$appupdater_BR.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater.dex
new file mode 100644
index 0000000..ea4b1f5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbitset.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbitset.dex
new file mode 100644
index 0000000..ad034ce
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbitset.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbreadcrumb.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbreadcrumb.dex
new file mode 100644
index 0000000..d17ba18
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbreadcrumb.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbytesbuilder.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbytesbuilder.dex
new file mode 100644
index 0000000..bc3dd87
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbytesbuilder.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.dex
new file mode 100644
index 0000000..1644144
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache.dex
new file mode 100644
index 0000000..286d127
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcollections.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcollections.dex
new file mode 100644
index 0000000..1a3bff4
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcollections.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.dex
new file mode 100644
index 0000000..d226bb5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.dex
new file mode 100644
index 0000000..0f5f6bb
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate.dex
new file mode 100644
index 0000000..8c7acca
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.dex
new file mode 100644
index 0000000..15030ba
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox.dex
new file mode 100644
index 0000000..541c89c
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcomparatorsort.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcomparatorsort.dex
new file mode 100644
index 0000000..14b2637
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcomparatorsort.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.dex
new file mode 100644
index 0000000..91a360a
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate.dex
new file mode 100644
index 0000000..54c7094
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.dex
new file mode 100644
index 0000000..ce8255e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.dex
new file mode 100644
index 0000000..a2b465f
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.dex
new file mode 100644
index 0000000..ad9a671
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog.dex
new file mode 100644
index 0000000..de8e6ba
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex
new file mode 100644
index 0000000..641bcb0
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield.dex
new file mode 100644
index 0000000..8652c1f
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.dex
new file mode 100644
index 0000000..bf965da
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter.dex
new file mode 100644
index 0000000..294c0ed
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4ximageview.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4ximageview.dex
new file mode 100644
index 0000000..5801520
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4ximageview.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.dex
new file mode 100644
index 0000000..e7de549
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate.dex
new file mode 100644
index 0000000..32b8248
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.dex
new file mode 100644
index 0000000..e81c258
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate.dex
new file mode 100644
index 0000000..e46467d
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.dex
new file mode 100644
index 0000000..267746e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator.dex
new file mode 100644
index 0000000..98ccc75
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlongtexttemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlongtexttemplate.dex
new file mode 100644
index 0000000..739be01
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlongtexttemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.dex
new file mode 100644
index 0000000..d113a9c
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..d41f5a6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.dex
new file mode 100644
index 0000000..e96d1d6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.dex
new file mode 100644
index 0000000..7a887e5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage.dex
new file mode 100644
index 0000000..23a06ad
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xorderedmap.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xorderedmap.dex
new file mode 100644
index 0000000..75b16aa
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xorderedmap.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpages.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpages.dex
new file mode 100644
index 0000000..e9b4bc6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpages.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesdelegator.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesdelegator.dex
new file mode 100644
index 0000000..516f5af
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesdelegator.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.dex
new file mode 100644
index 0000000..e7ea301
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex
new file mode 100644
index 0000000..c749f00
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.dex
new file mode 100644
index 0000000..6cce481
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.dex
new file mode 100644
index 0000000..4bb7925
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.dex
new file mode 100644
index 0000000..b2ad4c4
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager.dex
new file mode 100644
index 0000000..f639adf
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.dex
new file mode 100644
index 0000000..3a38321
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus.dex
new file mode 100644
index 0000000..fee9a5c
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.dex
new file mode 100644
index 0000000..ce00ed7
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton.dex
new file mode 100644
index 0000000..19d63ac
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.dex
new file mode 100644
index 0000000..f13f657
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate.dex
new file mode 100644
index 0000000..90b0eec
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xseekbar.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xseekbar.dex
new file mode 100644
index 0000000..9332561
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xseekbar.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xset.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xset.dex
new file mode 100644
index 0000000..3308d4f
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xset.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsignaturetemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsignaturetemplate.dex
new file mode 100644
index 0000000..e97b5cf
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsignaturetemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.dex
new file mode 100644
index 0000000..fccdbfa
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch.dex
new file mode 100644
index 0000000..1475fc9
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.dex
new file mode 100644
index 0000000..53301d7
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate.dex
new file mode 100644
index 0000000..5d52303
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/batteryutilities.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/batteryutilities.dex
new file mode 100644
index 0000000..3be1453
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/batteryutilities.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..246431a
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar.dex
new file mode 100644
index 0000000..f11c995
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.dex
new file mode 100644
index 0000000..e2ddea8
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..7e8bdfb
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.dex
new file mode 100644
index 0000000..e27a354
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist.dex
new file mode 100644
index 0000000..d24963e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..e415cf3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.dex
new file mode 100644
index 0000000..cbb27e0
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.dex
new file mode 100644
index 0000000..1f6134a
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.dex
new file mode 100644
index 0000000..47ea562
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente.dex
new file mode 100644
index 0000000..0de5038
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..b1579d4
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.dex
new file mode 100644
index 0000000..f0a2657
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.dex
new file mode 100644
index 0000000..8f88ea0
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.dex
new file mode 100644
index 0000000..a406e60
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.dex
new file mode 100644
index 0000000..ac18001
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.dex
new file mode 100644
index 0000000..8e1d4db
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.dex
new file mode 100644
index 0000000..82542bd
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes.dex
new file mode 100644
index 0000000..37d8972
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalle_promo.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalle_promo.dex
new file mode 100644
index 0000000..fc9edf5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalle_promo.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..f3aa803
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa.dex
new file mode 100644
index 0000000..20f4ccb
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..50f22d5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto.dex
new file mode 100644
index 0000000..41aac8d
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..a75a35e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico.dex
new file mode 100644
index 0000000..26b8931
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_mapas.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_mapas.dex
new file mode 100644
index 0000000..8303e65
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_mapas.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.dex
new file mode 100644
index 0000000..3940ee6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa.dex
new file mode 100644
index 0000000..d5cb267
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_nuevocliente.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_nuevocliente.dex
new file mode 100644
index 0000000..4c3a8e5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_nuevocliente.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_pedidos.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_pedidos.dex
new file mode 100644
index 0000000..7e621a9
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_pedidos.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..adbff99
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.dex
new file mode 100644
index 0000000..f828ae6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.dex
new file mode 100644
index 0000000..2713171
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal.dex
new file mode 100644
index 0000000..16fc36e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.dex
new file mode 100644
index 0000000..7510e7b
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos.dex
new file mode 100644
index 0000000..e79dda4
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_tabulador.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_tabulador.dex
new file mode 100644
index 0000000..33f36c2
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_tabulador.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_ticketsdia.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_ticketsdia.dex
new file mode 100644
index 0000000..3be4bf1
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_ticketsdia.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.dex
new file mode 100644
index 0000000..68d6841
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable.dex
new file mode 100644
index 0000000..1127a04
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.dex
new file mode 100644
index 0000000..a376989
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerasize.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerasize.dex
new file mode 100644
index 0000000..b71fe93
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerasize.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass.dex
new file mode 100644
index 0000000..7512d2e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.dex
new file mode 100644
index 0000000..68e7e69
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.dex
new file mode 100644
index 0000000..fab0864
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.dex
new file mode 100644
index 0000000..10b3b57
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.dex
new file mode 100644
index 0000000..1a4c6ac
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.dex
new file mode 100644
index 0000000..12b4a25
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate.dex
new file mode 100644
index 0000000..c6b5c63
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.dex
new file mode 100644
index 0000000..b7f9818
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.dex
new file mode 100644
index 0000000..5402e49
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager.dex
new file mode 100644
index 0000000..576f7e7
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_check.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_check.dex
new file mode 100644
index 0000000..c1ebae8
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_check.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_checklist.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_checklist.dex
new file mode 100644
index 0000000..15d6093
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_checklist.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_clientes.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_clientes.dex
new file mode 100644
index 0000000..d9219ad
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_clientes.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.dex
new file mode 100644
index 0000000..f2da764
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.dex
new file mode 100644
index 0000000..d91ec33
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_folioabono.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_folioabono.dex
new file mode 100644
index 0000000..5a89723
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_folioabono.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_historico.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_historico.dex
new file mode 100644
index 0000000..48cbd3e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_historico.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_login.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_login.dex
new file mode 100644
index 0000000..62201a5
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_login.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mainpage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mainpage.dex
new file mode 100644
index 0000000..5bbc17f
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mainpage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.dex
new file mode 100644
index 0000000..023932f
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.dex
new file mode 100644
index 0000000..8327d6b
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_no_venta.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_no_venta.dex
new file mode 100644
index 0000000..b298ec0
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_no_venta.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.dex
new file mode 100644
index 0000000..5f8f350
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_pedido.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_pedido.dex
new file mode 100644
index 0000000..5270964
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_pedido.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_principal.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_principal.dex
new file mode 100644
index 0000000..cf3a066
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_principal.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_proditem.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_proditem.dex
new file mode 100644
index 0000000..1ee8747
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_proditem.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_proditem2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_proditem2.dex
new file mode 100644
index 0000000..c9b5dbd
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_proditem2.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_productos.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_productos.dex
new file mode 100644
index 0000000..d1d92ea
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_productos.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.dex
new file mode 100644
index 0000000..929dcc6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_tabulador.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_tabulador.dex
new file mode 100644
index 0000000..5c9601e
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/designerscripts/LS_tabulador.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter$_animage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter$_animage.dex
new file mode 100644
index 0000000..58b95cc
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter$_animage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter.dex
new file mode 100644
index 0000000..2366736
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/fileprovider.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/fileprovider.dex
new file mode 100644
index 0000000..51a1730
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/fileprovider.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$1.dex
new file mode 100644
index 0000000..3b138ad
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$B4AMenuItemsClickListener.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$B4AMenuItemsClickListener.dex
new file mode 100644
index 0000000..d965638
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$B4AMenuItemsClickListener.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$HandleKeyDelayed.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$HandleKeyDelayed.dex
new file mode 100644
index 0000000..93edcc1
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$HandleKeyDelayed.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$ResumeMessage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$ResumeMessage.dex
new file mode 100644
index 0000000..bf6e486
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$ResumeMessage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$WaitForLayout.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$WaitForLayout.dex
new file mode 100644
index 0000000..b3897cf
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto$WaitForLayout.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto.dex
new file mode 100644
index 0000000..0eaaaa3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob$_multipartfiledata.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob$_multipartfiledata.dex
new file mode 100644
index 0000000..80595c3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob$_multipartfiledata.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob.dex
new file mode 100644
index 0000000..c181fd1
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/httputils2service.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/httputils2service.dex
new file mode 100644
index 0000000..4cf15b4
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/httputils2service.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/madewithlove.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/madewithlove.dex
new file mode 100644
index 0000000..3cfe36d
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/madewithlove.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/main$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$1.dex
new file mode 100644
index 0000000..caeb71a
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/main$B4AMenuItemsClickListener.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$B4AMenuItemsClickListener.dex
new file mode 100644
index 0000000..aaf87d9
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$B4AMenuItemsClickListener.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/main$HandleKeyDelayed.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$HandleKeyDelayed.dex
new file mode 100644
index 0000000..a6f2fad
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$HandleKeyDelayed.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/main$ResumeMessage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$ResumeMessage.dex
new file mode 100644
index 0000000..9865696
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$ResumeMessage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/main$WaitForLayout.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$WaitForLayout.dex
new file mode 100644
index 0000000..19975eb
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/main$WaitForLayout.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/main.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/main.dex
new file mode 100644
index 0000000..a5799b3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/main.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/manageexternalstorage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/manageexternalstorage.dex
new file mode 100644
index 0000000..8429d8f
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/manageexternalstorage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$1.dex
new file mode 100644
index 0000000..49a185d
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$B4AMenuItemsClickListener.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$B4AMenuItemsClickListener.dex
new file mode 100644
index 0000000..de4267c
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$B4AMenuItemsClickListener.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$HandleKeyDelayed.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$HandleKeyDelayed.dex
new file mode 100644
index 0000000..28ff66c
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$HandleKeyDelayed.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.dex
new file mode 100644
index 0000000..152a261
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumeMessage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumeMessage.dex
new file mode 100644
index 0000000..d0c0a95
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumeMessage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$WaitForLayout.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$WaitForLayout.dex
new file mode 100644
index 0000000..ef56bcc
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$WaitForLayout.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente.dex
new file mode 100644
index 0000000..ba5a8ca
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$1.dex
new file mode 100644
index 0000000..5c41e28
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$B4AMenuItemsClickListener.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$B4AMenuItemsClickListener.dex
new file mode 100644
index 0000000..e47d487
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$B4AMenuItemsClickListener.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$HandleKeyDelayed.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$HandleKeyDelayed.dex
new file mode 100644
index 0000000..7f783cc
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$HandleKeyDelayed.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.dex
new file mode 100644
index 0000000..f92f738
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumeMessage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumeMessage.dex
new file mode 100644
index 0000000..649e3f3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumeMessage.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$WaitForLayout.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$WaitForLayout.dex
new file mode 100644
index 0000000..b571689
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$WaitForLayout.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas.dex
new file mode 100644
index 0000000..55f42f3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$1.dex
new file mode 100644
index 0000000..1b47c96
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$2.dex
new file mode 100644
index 0000000..f248d91
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$2.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$newinst2_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$newinst2_BR.dex
new file mode 100644
index 0000000..0d198ae
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$newinst2_BR.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2.dex
new file mode 100644
index 0000000..8565c90
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/roundslider.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/roundslider.dex
new file mode 100644
index 0000000..889fef4
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/roundslider.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.dex
new file mode 100644
index 0000000..93e126f
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel.dex
new file mode 100644
index 0000000..56a64c1
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$1.dex
new file mode 100644
index 0000000..c5ad5c8
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$2.dex
new file mode 100644
index 0000000..39c89dc
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$2.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$starter_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$starter_BR.dex
new file mode 100644
index 0000000..35adec1
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$starter_BR.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter.dex
new file mode 100644
index 0000000..7a39745
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/subs.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/subs.dex
new file mode 100644
index 0000000..cf8c1c6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/subs.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/swiftbutton.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/swiftbutton.dex
new file mode 100644
index 0000000..6653ce3
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/swiftbutton.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$1.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$1.dex
new file mode 100644
index 0000000..22ed454
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$1.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$2.dex
new file mode 100644
index 0000000..a9d3970
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$2.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.dex
new file mode 100644
index 0000000..901f594
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.dex
new file mode 100644
index 0000000..5dd1023
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$tracker_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$tracker_BR.dex
new file mode 100644
index 0000000..a2d65c8
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$tracker_BR.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker.dex
new file mode 100644
index 0000000..78aebb6
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker.dex differ
diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/xuiviewsutils.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/xuiviewsutils.dex
new file mode 100644
index 0000000..d3fc3ac
Binary files /dev/null and b/B4A/Objects/dexed/reparto_izca/keymon/lat/xuiviewsutils.dex differ
diff --git a/B4A/Objects/gen/androidx/coordinatorlayout/R.java b/B4A/Objects/gen/androidx/coordinatorlayout/R.java
new file mode 100644
index 0000000..cdb1553
--- /dev/null
+++ b/B4A/Objects/gen/androidx/coordinatorlayout/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package androidx.coordinatorlayout;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/androidx/core/R.java b/B4A/Objects/gen/androidx/core/R.java
new file mode 100644
index 0000000..dd5409d
--- /dev/null
+++ b/B4A/Objects/gen/androidx/core/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package androidx.core;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/androidx/drawerlayout/R.java b/B4A/Objects/gen/androidx/drawerlayout/R.java
new file mode 100644
index 0000000..8cc256e
--- /dev/null
+++ b/B4A/Objects/gen/androidx/drawerlayout/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package androidx.drawerlayout;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/androidx/fragment/R.java b/B4A/Objects/gen/androidx/fragment/R.java
new file mode 100644
index 0000000..5865ede
--- /dev/null
+++ b/B4A/Objects/gen/androidx/fragment/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package androidx.fragment;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/androidx/media/R.java b/B4A/Objects/gen/androidx/media/R.java
new file mode 100644
index 0000000..39c53e6
--- /dev/null
+++ b/B4A/Objects/gen/androidx/media/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package androidx.media;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/androidx/swiperefreshlayout/R.java b/B4A/Objects/gen/androidx/swiperefreshlayout/R.java
new file mode 100644
index 0000000..332407a
--- /dev/null
+++ b/B4A/Objects/gen/androidx/swiperefreshlayout/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package androidx.swiperefreshlayout;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/com/google/android/gms/base/R.java b/B4A/Objects/gen/com/google/android/gms/base/R.java
new file mode 100644
index 0000000..15d60ae
--- /dev/null
+++ b/B4A/Objects/gen/com/google/android/gms/base/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package com.google.android.gms.base;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/com/google/android/gms/common/R.java b/B4A/Objects/gen/com/google/android/gms/common/R.java
new file mode 100644
index 0000000..3f45e4f
--- /dev/null
+++ b/B4A/Objects/gen/com/google/android/gms/common/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package com.google.android.gms.common;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/com/google/android/gms/maps/R.java b/B4A/Objects/gen/com/google/android/gms/maps/R.java
new file mode 100644
index 0000000..2614261
--- /dev/null
+++ b/B4A/Objects/gen/com/google/android/gms/maps/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package com.google.android.gms.maps;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/reparto_intmex/keymon/lat/R.java b/B4A/Objects/gen/reparto_intmex/keymon/lat/R.java
new file mode 100644
index 0000000..2e0d2d6
--- /dev/null
+++ b/B4A/Objects/gen/reparto_intmex/keymon/lat/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package reparto_intmex.keymon.lat;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_intmex.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_intmex.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_intmex.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_intmex.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_intmex.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_intmex.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_intmex.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_intmex.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_intmex.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_intmex.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_intmex.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_intmex.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_intmex.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_intmex.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_intmex.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_intmex.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_intmex.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_intmex.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_intmex.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_intmex.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_intmex.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_intmex.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_intmex.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_intmex.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_intmex.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_intmex.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_intmex.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_intmex.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_intmex.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_intmex.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_intmex.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_intmex.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_intmex.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_intmex.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_intmex.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_intmex.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_intmex.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_intmex.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_intmex.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_intmex.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_intmex.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_intmex.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_intmex.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_intmex.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_intmex.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_intmex.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_intmex.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_intmex.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_intmex.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_intmex.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_intmex.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_intmex.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_intmex.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_intmex.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_intmex.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_intmex.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_intmex.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_intmex.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_intmex.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_intmex.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_intmex.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_intmex.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_intmex.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_intmex.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_intmex.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_intmex.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_intmex.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_intmex.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_intmex.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_intmex.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_intmex.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_intmex.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/reparto_izca/keymon/lat/R.java b/B4A/Objects/gen/reparto_izca/keymon/lat/R.java
new file mode 100644
index 0000000..29814fd
--- /dev/null
+++ b/B4A/Objects/gen/reparto_izca/keymon/lat/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package reparto_izca.keymon.lat;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_izca.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_izca.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_izca.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_izca.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_izca.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_izca.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_izca.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_izca.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_izca.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_izca.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_izca.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_izca.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_izca.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_izca.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_izca.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_izca.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_izca.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_izca.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_izca.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_izca.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_izca.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_izca.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_izca.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_izca.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_izca.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_izca.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_izca.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_izca.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_izca.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_izca.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_izca.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_izca.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_izca.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_izca.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_izca.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_izca.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_izca.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_izca.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_izca.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_izca.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_izca.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_izca.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_izca.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_izca.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_izca.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_izca.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_izca.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_izca.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_izca.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_izca.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_izca.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_izca.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_izca.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_izca.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_izca.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/reparto_mariana/keymon/lat/R.java b/B4A/Objects/gen/reparto_mariana/keymon/lat/R.java
new file mode 100644
index 0000000..4cf5275
--- /dev/null
+++ b/B4A/Objects/gen/reparto_mariana/keymon/lat/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package reparto_mariana.keymon.lat;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_mariana.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_mariana.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_mariana.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mariana.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_mariana.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_mariana.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_mariana.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_mariana.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_mariana.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_mariana.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_mariana.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mariana.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mariana.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_mariana.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_mariana.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_mariana.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_mariana.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_mariana.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_mariana.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_mariana.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_mariana.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_mariana.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mariana.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mariana.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mariana.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mariana.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_mariana.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_mariana.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_mariana.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_mariana.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_mariana.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mariana.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mariana.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_mariana.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_mariana.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_mariana.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_mariana.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_mariana.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_mariana.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_mariana.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_mariana.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_mariana.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_mariana.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_mariana.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_mariana.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_mariana.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_mariana.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_mariana.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_mariana.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_mariana.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_mariana.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_mariana.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_mariana.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_mariana.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_mariana.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_mariana.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_mariana.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_mariana.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_mariana.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_mariana.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_mariana.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_mariana.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mariana.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mariana.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_mariana.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_mariana.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_mariana.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_mariana.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_mariana.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mariana.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_mariana.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_mariana.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/reparto_marquez/keymon/lat/R.java b/B4A/Objects/gen/reparto_marquez/keymon/lat/R.java
new file mode 100644
index 0000000..f3ebee1
--- /dev/null
+++ b/B4A/Objects/gen/reparto_marquez/keymon/lat/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package reparto_marquez.keymon.lat;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_marquez.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_marquez.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_marquez.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_marquez.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_marquez.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_marquez.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_marquez.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_marquez.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_marquez.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_marquez.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_marquez.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_marquez.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_marquez.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_marquez.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_marquez.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_marquez.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_marquez.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_marquez.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_marquez.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_marquez.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_marquez.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_marquez.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_marquez.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_marquez.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_marquez.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_marquez.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_marquez.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_marquez.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_marquez.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_marquez.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_marquez.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_marquez.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_marquez.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_marquez.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_marquez.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_marquez.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_marquez.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_marquez.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_marquez.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_marquez.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_marquez.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_marquez.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_marquez.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_marquez.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_marquez.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_marquez.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_marquez.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_marquez.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_marquez.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_marquez.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_marquez.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_marquez.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_marquez.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_marquez.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_marquez.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_marquez.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_marquez.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_marquez.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_marquez.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_marquez.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_marquez.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_marquez.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_marquez.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_marquez.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_marquez.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_marquez.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_marquez.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_marquez.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_marquez.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_marquez.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_marquez.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_marquez.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/gen/reparto_mazapa/keymon/lat/R.java b/B4A/Objects/gen/reparto_mazapa/keymon/lat/R.java
new file mode 100644
index 0000000..af581dc
--- /dev/null
+++ b/B4A/Objects/gen/reparto_mazapa/keymon/lat/R.java
@@ -0,0 +1,2121 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package reparto_mazapa.keymon.lat;
+
+public final class R {
+ public static final class anim {
+ public static final int fragment_close_enter=0x7f010000;
+ public static final int fragment_close_exit=0x7f010001;
+ public static final int fragment_fade_enter=0x7f010002;
+ public static final int fragment_fade_exit=0x7f010003;
+ public static final int fragment_fast_out_extra_slow_in=0x7f010004;
+ public static final int fragment_open_enter=0x7f010005;
+ public static final int fragment_open_exit=0x7f010006;
+ }
+ public static final class attr {
+ /**
+ * Alpha multiplier applied to the base color.
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int alpha=0x7f020000;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int ambientEnabled=0x7f020001;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ */
+ public static final int buttonSize=0x7f020002;
+ /**
+ * May be a floating point value, such as "1.2".
+ */
+ public static final int cameraBearing=0x7f020003;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMaxZoomPreference=0x7f020004;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraMinZoomPreference=0x7f020005;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLat=0x7f020006;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTargetLng=0x7f020007;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraTilt=0x7f020008;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int cameraZoom=0x7f020009;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int circleCrop=0x7f02000a;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ */
+ public static final int colorScheme=0x7f02000b;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int coordinatorLayoutStyle=0x7f02000c;
+ /**
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int drawerLayoutStyle=0x7f02000d;
+ /**
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ */
+ public static final int elevation=0x7f02000e;
+ /**
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int font=0x7f02000f;
+ /**
+ * The authority of the Font Provider to be used for the request.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderAuthority=0x7f020010;
+ /**
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int fontProviderCerts=0x7f020011;
+ /**
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ */
+ public static final int fontProviderFetchStrategy=0x7f020012;
+ /**
+ * The length of the timeout during fetching.
+ * May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ */
+ public static final int fontProviderFetchTimeout=0x7f020013;
+ /**
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderPackage=0x7f020014;
+ /**
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontProviderQuery=0x7f020015;
+ /**
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ */
+ public static final int fontStyle=0x7f020016;
+ /**
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int fontVariationSettings=0x7f020017;
+ /**
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
May be an integer value, such as "100".
+ */
+ public static final int fontWeight=0x7f020018;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int imageAspectRatio=0x7f020019;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ */
+ public static final int imageAspectRatioAdjust=0x7f02001a;
+ /**
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int keylines=0x7f02001b;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLatitude=0x7f02001c;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsNorthEastLongitude=0x7f02001d;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLatitude=0x7f02001e;
+ /**
+ *
May be a floating point value, such as "1.2".
+ */
+ public static final int latLngBoundsSouthWestLongitude=0x7f02001f;
+ /**
+ * The id of an anchor view that this view should position relative to.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ */
+ public static final int layout_anchor=0x7f020020;
+ /**
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ */
+ public static final int layout_anchorGravity=0x7f020021;
+ /**
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ * May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int layout_behavior=0x7f020022;
+ /**
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ */
+ public static final int layout_dodgeInsetEdges=0x7f020023;
+ /**
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ * Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ */
+ public static final int layout_insetEdge=0x7f020024;
+ /**
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ * May be an integer value, such as "100".
+ */
+ public static final int layout_keyline=0x7f020025;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int liteMode=0x7f020026;
+ /**
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ */
+ public static final int mapType=0x7f020027;
+ /**
+ * May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ */
+ public static final int scopeUris=0x7f020028;
+ /**
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int statusBarBackground=0x7f020029;
+ /**
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ */
+ public static final int swipeRefreshLayoutProgressSpinnerBackgroundColor=0x7f02002a;
+ /**
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
May be an integer value, such as "100".
+ */
+ public static final int ttcIndex=0x7f02002b;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiCompass=0x7f02002c;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiMapToolbar=0x7f02002d;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiRotateGestures=0x7f02002e;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGestures=0x7f02002f;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiScrollGesturesDuringRotateOrZoom=0x7f020030;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiTiltGestures=0x7f020031;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomControls=0x7f020032;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int uiZoomGestures=0x7f020033;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int useViewLifecycle=0x7f020034;
+ /**
+ *
May be a boolean value, such as "true" or
+ * "false".
+ */
+ public static final int zOrderOnTop=0x7f020035;
+ }
+ public static final class color {
+ public static final int androidx_core_ripple_material_light=0x7f030000;
+ public static final int androidx_core_secondary_text_default_material_light=0x7f030001;
+ public static final int common_google_signin_btn_text_dark=0x7f030002;
+ public static final int common_google_signin_btn_text_dark_default=0x7f030003;
+ public static final int common_google_signin_btn_text_dark_disabled=0x7f030004;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f030005;
+ public static final int common_google_signin_btn_text_dark_pressed=0x7f030006;
+ public static final int common_google_signin_btn_text_light=0x7f030007;
+ public static final int common_google_signin_btn_text_light_default=0x7f030008;
+ public static final int common_google_signin_btn_text_light_disabled=0x7f030009;
+ public static final int common_google_signin_btn_text_light_focused=0x7f03000a;
+ public static final int common_google_signin_btn_text_light_pressed=0x7f03000b;
+ public static final int common_google_signin_btn_tint=0x7f03000c;
+ public static final int notification_action_color_filter=0x7f03000d;
+ public static final int notification_icon_bg_color=0x7f03000e;
+ public static final int notification_material_background_media_default_color=0x7f03000f;
+ public static final int primary_text_default_material_dark=0x7f030010;
+ public static final int secondary_text_default_material_dark=0x7f030011;
+ }
+ public static final class dimen {
+ public static final int compat_button_inset_horizontal_material=0x7f040000;
+ public static final int compat_button_inset_vertical_material=0x7f040001;
+ public static final int compat_button_padding_horizontal_material=0x7f040002;
+ public static final int compat_button_padding_vertical_material=0x7f040003;
+ public static final int compat_control_corner_material=0x7f040004;
+ public static final int compat_notification_large_icon_max_height=0x7f040005;
+ public static final int compat_notification_large_icon_max_width=0x7f040006;
+ public static final int def_drawer_elevation=0x7f040007;
+ public static final int notification_action_icon_size=0x7f040008;
+ public static final int notification_action_text_size=0x7f040009;
+ public static final int notification_big_circle_margin=0x7f04000a;
+ public static final int notification_content_margin_start=0x7f04000b;
+ public static final int notification_large_icon_height=0x7f04000c;
+ public static final int notification_large_icon_width=0x7f04000d;
+ public static final int notification_main_column_padding_top=0x7f04000e;
+ public static final int notification_media_narrow_margin=0x7f04000f;
+ public static final int notification_right_icon_size=0x7f040010;
+ public static final int notification_right_side_padding_top=0x7f040011;
+ public static final int notification_small_icon_background_padding=0x7f040012;
+ public static final int notification_small_icon_size_as_large=0x7f040013;
+ public static final int notification_subtext_size=0x7f040014;
+ public static final int notification_top_pad=0x7f040015;
+ public static final int notification_top_pad_large_text=0x7f040016;
+ public static final int subtitle_corner_radius=0x7f040017;
+ public static final int subtitle_outline_width=0x7f040018;
+ public static final int subtitle_shadow_offset=0x7f040019;
+ public static final int subtitle_shadow_radius=0x7f04001a;
+ }
+ public static final class drawable {
+ public static final int common_full_open_on_phone=0x7f050000;
+ public static final int common_google_signin_btn_icon_dark=0x7f050001;
+ public static final int common_google_signin_btn_icon_dark_focused=0x7f050002;
+ public static final int common_google_signin_btn_icon_dark_normal=0x7f050003;
+ public static final int common_google_signin_btn_icon_dark_normal_background=0x7f050004;
+ public static final int common_google_signin_btn_icon_disabled=0x7f050005;
+ public static final int common_google_signin_btn_icon_light=0x7f050006;
+ public static final int common_google_signin_btn_icon_light_focused=0x7f050007;
+ public static final int common_google_signin_btn_icon_light_normal=0x7f050008;
+ public static final int common_google_signin_btn_icon_light_normal_background=0x7f050009;
+ public static final int common_google_signin_btn_text_dark=0x7f05000a;
+ public static final int common_google_signin_btn_text_dark_focused=0x7f05000b;
+ public static final int common_google_signin_btn_text_dark_normal=0x7f05000c;
+ public static final int common_google_signin_btn_text_dark_normal_background=0x7f05000d;
+ public static final int common_google_signin_btn_text_disabled=0x7f05000e;
+ public static final int common_google_signin_btn_text_light=0x7f05000f;
+ public static final int common_google_signin_btn_text_light_focused=0x7f050010;
+ public static final int common_google_signin_btn_text_light_normal=0x7f050011;
+ public static final int common_google_signin_btn_text_light_normal_background=0x7f050012;
+ public static final int googleg_disabled_color_18=0x7f050013;
+ public static final int googleg_standard_color_18=0x7f050014;
+ public static final int icon=0x7f050015;
+ public static final int notification_action_background=0x7f050016;
+ public static final int notification_bg=0x7f050017;
+ public static final int notification_bg_low=0x7f050018;
+ public static final int notification_bg_low_normal=0x7f050019;
+ public static final int notification_bg_low_pressed=0x7f05001a;
+ public static final int notification_bg_normal=0x7f05001b;
+ public static final int notification_bg_normal_pressed=0x7f05001c;
+ public static final int notification_icon_background=0x7f05001d;
+ public static final int notification_template_icon_bg=0x7f05001e;
+ public static final int notification_template_icon_low_bg=0x7f05001f;
+ public static final int notification_tile_bg=0x7f050020;
+ public static final int notify_panel_notification_icon_bg=0x7f050021;
+ }
+ public static final class id {
+ public static final int accessibility_action_clickable_span=0x7f060000;
+ public static final int accessibility_custom_action_0=0x7f060001;
+ public static final int accessibility_custom_action_1=0x7f060002;
+ public static final int accessibility_custom_action_10=0x7f060003;
+ public static final int accessibility_custom_action_11=0x7f060004;
+ public static final int accessibility_custom_action_12=0x7f060005;
+ public static final int accessibility_custom_action_13=0x7f060006;
+ public static final int accessibility_custom_action_14=0x7f060007;
+ public static final int accessibility_custom_action_15=0x7f060008;
+ public static final int accessibility_custom_action_16=0x7f060009;
+ public static final int accessibility_custom_action_17=0x7f06000a;
+ public static final int accessibility_custom_action_18=0x7f06000b;
+ public static final int accessibility_custom_action_19=0x7f06000c;
+ public static final int accessibility_custom_action_2=0x7f06000d;
+ public static final int accessibility_custom_action_20=0x7f06000e;
+ public static final int accessibility_custom_action_21=0x7f06000f;
+ public static final int accessibility_custom_action_22=0x7f060010;
+ public static final int accessibility_custom_action_23=0x7f060011;
+ public static final int accessibility_custom_action_24=0x7f060012;
+ public static final int accessibility_custom_action_25=0x7f060013;
+ public static final int accessibility_custom_action_26=0x7f060014;
+ public static final int accessibility_custom_action_27=0x7f060015;
+ public static final int accessibility_custom_action_28=0x7f060016;
+ public static final int accessibility_custom_action_29=0x7f060017;
+ public static final int accessibility_custom_action_3=0x7f060018;
+ public static final int accessibility_custom_action_30=0x7f060019;
+ public static final int accessibility_custom_action_31=0x7f06001a;
+ public static final int accessibility_custom_action_4=0x7f06001b;
+ public static final int accessibility_custom_action_5=0x7f06001c;
+ public static final int accessibility_custom_action_6=0x7f06001d;
+ public static final int accessibility_custom_action_7=0x7f06001e;
+ public static final int accessibility_custom_action_8=0x7f06001f;
+ public static final int accessibility_custom_action_9=0x7f060020;
+ public static final int action0=0x7f060021;
+ public static final int action_container=0x7f060022;
+ public static final int action_divider=0x7f060023;
+ public static final int action_image=0x7f060024;
+ public static final int action_text=0x7f060025;
+ public static final int actions=0x7f060026;
+ public static final int adjust_height=0x7f060027;
+ public static final int adjust_width=0x7f060028;
+ public static final int all=0x7f060029;
+ public static final int async=0x7f06002a;
+ public static final int auto=0x7f06002b;
+ public static final int blocking=0x7f06002c;
+ public static final int bottom=0x7f06002d;
+ public static final int cancel_action=0x7f06002e;
+ public static final int center=0x7f06002f;
+ public static final int center_horizontal=0x7f060030;
+ public static final int center_vertical=0x7f060031;
+ public static final int chronometer=0x7f060032;
+ public static final int clip_horizontal=0x7f060033;
+ public static final int clip_vertical=0x7f060034;
+ public static final int dark=0x7f060035;
+ public static final int dialog_button=0x7f060036;
+ public static final int end=0x7f060037;
+ public static final int end_padder=0x7f060038;
+ public static final int fill=0x7f060039;
+ public static final int fill_horizontal=0x7f06003a;
+ public static final int fill_vertical=0x7f06003b;
+ public static final int forever=0x7f06003c;
+ public static final int fragment_container_view_tag=0x7f06003d;
+ public static final int hybrid=0x7f06003e;
+ public static final int icon=0x7f06003f;
+ public static final int icon_group=0x7f060040;
+ public static final int icon_only=0x7f060041;
+ public static final int info=0x7f060042;
+ public static final int italic=0x7f060043;
+ public static final int left=0x7f060044;
+ public static final int light=0x7f060045;
+ public static final int line1=0x7f060046;
+ public static final int line3=0x7f060047;
+ public static final int media_actions=0x7f060048;
+ public static final int none=0x7f060049;
+ public static final int normal=0x7f06004a;
+ public static final int notification_background=0x7f06004b;
+ public static final int notification_main_column=0x7f06004c;
+ public static final int notification_main_column_container=0x7f06004d;
+ public static final int right=0x7f06004e;
+ public static final int right_icon=0x7f06004f;
+ public static final int right_side=0x7f060050;
+ public static final int satellite=0x7f060051;
+ public static final int standard=0x7f060052;
+ public static final int start=0x7f060053;
+ public static final int status_bar_latest_event_content=0x7f060054;
+ public static final int tag_accessibility_actions=0x7f060055;
+ public static final int tag_accessibility_clickable_spans=0x7f060056;
+ public static final int tag_accessibility_heading=0x7f060057;
+ public static final int tag_accessibility_pane_title=0x7f060058;
+ public static final int tag_screen_reader_focusable=0x7f060059;
+ public static final int tag_transition_group=0x7f06005a;
+ public static final int tag_unhandled_key_event_manager=0x7f06005b;
+ public static final int tag_unhandled_key_listeners=0x7f06005c;
+ public static final int terrain=0x7f06005d;
+ public static final int text=0x7f06005e;
+ public static final int text2=0x7f06005f;
+ public static final int time=0x7f060060;
+ public static final int title=0x7f060061;
+ public static final int top=0x7f060062;
+ public static final int visible_removing_fragment_view_tag=0x7f060063;
+ public static final int wide=0x7f060064;
+ }
+ public static final class integer {
+ public static final int cancel_button_image_alpha=0x7f070000;
+ public static final int google_play_services_version=0x7f070001;
+ public static final int status_bar_notification_info_maxnum=0x7f070002;
+ }
+ public static final class layout {
+ public static final int custom_dialog=0x7f080000;
+ public static final int notification_action=0x7f080001;
+ public static final int notification_action_tombstone=0x7f080002;
+ public static final int notification_media_action=0x7f080003;
+ public static final int notification_media_cancel_action=0x7f080004;
+ public static final int notification_template_big_media=0x7f080005;
+ public static final int notification_template_big_media_custom=0x7f080006;
+ public static final int notification_template_big_media_narrow=0x7f080007;
+ public static final int notification_template_big_media_narrow_custom=0x7f080008;
+ public static final int notification_template_custom_big=0x7f080009;
+ public static final int notification_template_icon_group=0x7f08000a;
+ public static final int notification_template_lines_media=0x7f08000b;
+ public static final int notification_template_media=0x7f08000c;
+ public static final int notification_template_media_custom=0x7f08000d;
+ public static final int notification_template_part_chronometer=0x7f08000e;
+ public static final int notification_template_part_time=0x7f08000f;
+ }
+ public static final class string {
+ public static final int common_google_play_services_enable_button=0x7f090000;
+ public static final int common_google_play_services_enable_text=0x7f090001;
+ public static final int common_google_play_services_enable_title=0x7f090002;
+ public static final int common_google_play_services_install_button=0x7f090003;
+ public static final int common_google_play_services_install_text=0x7f090004;
+ public static final int common_google_play_services_install_title=0x7f090005;
+ public static final int common_google_play_services_notification_channel_name=0x7f090006;
+ public static final int common_google_play_services_notification_ticker=0x7f090007;
+ public static final int common_google_play_services_unknown_issue=0x7f090008;
+ public static final int common_google_play_services_unsupported_text=0x7f090009;
+ public static final int common_google_play_services_update_button=0x7f09000a;
+ public static final int common_google_play_services_update_text=0x7f09000b;
+ public static final int common_google_play_services_update_title=0x7f09000c;
+ public static final int common_google_play_services_updating_text=0x7f09000d;
+ public static final int common_google_play_services_wear_update_text=0x7f09000e;
+ public static final int common_open_on_phone=0x7f09000f;
+ public static final int common_signin_button_text=0x7f090010;
+ public static final int common_signin_button_text_long=0x7f090011;
+ public static final int status_bar_notification_info_overflow=0x7f090012;
+ }
+ public static final class style {
+ public static final int LightTheme=0x7f0a0000;
+ public static final int LowerCaseMenu=0x7f0a0001;
+ public static final int TextAppearance_Compat_Notification=0x7f0a0002;
+ public static final int TextAppearance_Compat_Notification_Info=0x7f0a0003;
+ public static final int TextAppearance_Compat_Notification_Info_Media=0x7f0a0004;
+ public static final int TextAppearance_Compat_Notification_Line2=0x7f0a0005;
+ public static final int TextAppearance_Compat_Notification_Line2_Media=0x7f0a0006;
+ public static final int TextAppearance_Compat_Notification_Media=0x7f0a0007;
+ public static final int TextAppearance_Compat_Notification_Time=0x7f0a0008;
+ public static final int TextAppearance_Compat_Notification_Time_Media=0x7f0a0009;
+ public static final int TextAppearance_Compat_Notification_Title=0x7f0a000a;
+ public static final int TextAppearance_Compat_Notification_Title_Media=0x7f0a000b;
+ public static final int Widget_Compat_NotificationActionContainer=0x7f0a000c;
+ public static final int Widget_Compat_NotificationActionText=0x7f0a000d;
+ public static final int Widget_Support_CoordinatorLayout=0x7f0a000e;
+ }
+ public static final class styleable {
+ /**
+ * Attributes that can be used with a ColorStateListItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #ColorStateListItem_android_color android:color} | |
+ * {@link #ColorStateListItem_android_alpha android:alpha} | |
+ * {@link #ColorStateListItem_alpha reparto_mazapa.keymon.lat:alpha} | Alpha multiplier applied to the base color. |
+ *
+ * @see #ColorStateListItem_android_color
+ * @see #ColorStateListItem_android_alpha
+ * @see #ColorStateListItem_alpha
+ */
+ public static final int[] ColorStateListItem={
+ 0x010101a5, 0x0101031f, 0x7f020000
+ };
+ /**
+ *
+ * @attr description
+ * Base color for this state.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int ColorStateListItem_android_color=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#alpha}
+ * attribute's value can be found in the {@link #ColorStateListItem} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:alpha
+ */
+ public static final int ColorStateListItem_android_alpha=1;
+ /**
+ *
+ * @attr description
+ * Alpha multiplier applied to the base color.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:alpha
+ */
+ public static final int ColorStateListItem_alpha=2;
+ /**
+ * Attributes that can be used with a CoordinatorLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_keylines reparto_mazapa.keymon.lat:keylines} | A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge. |
+ * {@link #CoordinatorLayout_statusBarBackground reparto_mazapa.keymon.lat:statusBarBackground} | Drawable to display behind the status bar when the view is set to draw behind it. |
+ *
+ * @see #CoordinatorLayout_keylines
+ * @see #CoordinatorLayout_statusBarBackground
+ */
+ public static final int[] CoordinatorLayout={
+ 0x7f02001b, 0x7f020029
+ };
+ /**
+ *
+ * @attr description
+ * A reference to an array of integers representing the
+ * locations of horizontal keylines in dp from the starting edge.
+ * Child views can refer to these keylines for alignment using
+ * layout_keyline="index" where index is a 0-based index into
+ * this array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mazapa.keymon.lat:keylines
+ */
+ public static final int CoordinatorLayout_keylines=0;
+ /**
+ *
+ * @attr description
+ * Drawable to display behind the status bar when the view is set to draw behind it.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_mazapa.keymon.lat:statusBarBackground
+ */
+ public static final int CoordinatorLayout_statusBarBackground=1;
+ /**
+ * Attributes that can be used with a CoordinatorLayout_Layout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity} | |
+ * {@link #CoordinatorLayout_Layout_layout_anchor reparto_mazapa.keymon.lat:layout_anchor} | The id of an anchor view that this view should position relative to. |
+ * {@link #CoordinatorLayout_Layout_layout_anchorGravity reparto_mazapa.keymon.lat:layout_anchorGravity} | Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds. |
+ * {@link #CoordinatorLayout_Layout_layout_behavior reparto_mazapa.keymon.lat:layout_behavior} | The class name of a Behavior class defining special runtime behavior
+ * for this child view. |
+ * {@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges reparto_mazapa.keymon.lat:layout_dodgeInsetEdges} | Specifies how this view dodges the inset edges of the CoordinatorLayout. |
+ * {@link #CoordinatorLayout_Layout_layout_insetEdge reparto_mazapa.keymon.lat:layout_insetEdge} | Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it. |
+ * {@link #CoordinatorLayout_Layout_layout_keyline reparto_mazapa.keymon.lat:layout_keyline} | The index of a keyline this view should position relative to. |
+ *
+ * @see #CoordinatorLayout_Layout_android_layout_gravity
+ * @see #CoordinatorLayout_Layout_layout_anchor
+ * @see #CoordinatorLayout_Layout_layout_anchorGravity
+ * @see #CoordinatorLayout_Layout_layout_behavior
+ * @see #CoordinatorLayout_Layout_layout_dodgeInsetEdges
+ * @see #CoordinatorLayout_Layout_layout_insetEdge
+ * @see #CoordinatorLayout_Layout_layout_keyline
+ */
+ public static final int[] CoordinatorLayout_Layout={
+ 0x010100b3, 0x7f020020, 0x7f020021, 0x7f020022,
+ 0x7f020023, 0x7f020024, 0x7f020025
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#layout_gravity}
+ * attribute's value can be found in the {@link #CoordinatorLayout_Layout} array.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | |
+ * | center | 11 | |
+ * | center_horizontal | 1 | |
+ * | center_vertical | 10 | |
+ * | clip_horizontal | 8 | |
+ * | clip_vertical | 80 | |
+ * | end | 800005 | |
+ * | fill | 77 | |
+ * | fill_horizontal | 7 | |
+ * | fill_vertical | 70 | |
+ * | left | 3 | |
+ * | right | 5 | |
+ * | start | 800003 | |
+ * | top | 30 | |
+ *
+ *
+ * @attr name android:layout_gravity
+ */
+ public static final int CoordinatorLayout_Layout_android_layout_gravity=0;
+ /**
+ *
+ * @attr description
+ * The id of an anchor view that this view should position relative to.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mazapa.keymon.lat:layout_anchor
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchor=1;
+ /**
+ *
+ * @attr description
+ * Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ * within its parent's bounds.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Push object to the bottom of its container, not changing its size. |
+ * | center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
+ * | center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
+ * | center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
+ * | clip_horizontal | 8 | Additional option that can be set to have the left and/or right edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the horizontal gravity: a left gravity will clip the right
+ * edge, a right gravity will clip the left edge, and neither will clip both edges. |
+ * | clip_vertical | 80 | Additional option that can be set to have the top and/or bottom edges of
+ * the child clipped to its container's bounds.
+ * The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ * edge, a bottom gravity will clip the top edge, and neither will clip both edges. |
+ * | end | 800005 | Push object to the end of its container, not changing its size. |
+ * | fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
+ * | fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
+ * | fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
+ * | left | 3 | Push object to the left of its container, not changing its size. |
+ * | right | 5 | Push object to the right of its container, not changing its size. |
+ * | start | 800003 | Push object to the beginning of its container, not changing its size. |
+ * | top | 30 | Push object to the top of its container, not changing its size. |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:layout_anchorGravity
+ */
+ public static final int CoordinatorLayout_Layout_layout_anchorGravity=2;
+ /**
+ *
+ * @attr description
+ * The class name of a Behavior class defining special runtime behavior
+ * for this child view.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mazapa.keymon.lat:layout_behavior
+ */
+ public static final int CoordinatorLayout_Layout_layout_behavior=3;
+ /**
+ *
+ * @attr description
+ * Specifies how this view dodges the inset edges of the CoordinatorLayout.
+ *
+ *
Must be one or more (separated by '|') of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | all | 77 | Dodge all the inset edges. |
+ * | bottom | 50 | Dodge the bottom inset edge. |
+ * | end | 800005 | Dodge the end inset edge. |
+ * | left | 3 | Dodge the left inset edge. |
+ * | none | 0 | Don't dodge any edges |
+ * | right | 5 | Dodge the right inset edge. |
+ * | start | 800003 | Dodge the start inset edge. |
+ * | top | 30 | Dodge the top inset edge. |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:layout_dodgeInsetEdges
+ */
+ public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges=4;
+ /**
+ *
+ * @attr description
+ * Specifies how this view insets the CoordinatorLayout and make some other views
+ * dodge it.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | bottom | 50 | Inset the bottom edge. |
+ * | end | 800005 | Inset the end edge. |
+ * | left | 3 | Inset the left edge. |
+ * | none | 0 | Don't inset. |
+ * | right | 5 | Inset the right edge. |
+ * | start | 800003 | Inset the start edge. |
+ * | top | 30 | Inset the top edge. |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:layout_insetEdge
+ */
+ public static final int CoordinatorLayout_Layout_layout_insetEdge=5;
+ /**
+ *
+ * @attr description
+ * The index of a keyline this view should position relative to.
+ * android:layout_gravity will affect how the view aligns to the
+ * specified keyline.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_mazapa.keymon.lat:layout_keyline
+ */
+ public static final int CoordinatorLayout_Layout_layout_keyline=6;
+ /**
+ * Attributes that can be used with a DrawerLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #DrawerLayout_elevation reparto_mazapa.keymon.lat:elevation} | |
+ *
+ * @see #DrawerLayout_elevation
+ */
+ public static final int[] DrawerLayout={
+ 0x7f02000e
+ };
+ /**
+ *
+ * @attr description
+ * The height difference between the drawer and the base surface. Only takes effect on API 21 and above
+ *
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
+ * @attr name reparto_mazapa.keymon.lat:elevation
+ */
+ public static final int DrawerLayout_elevation=0;
+ /**
+ * Attributes that can be used with a FontFamily.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamily_fontProviderAuthority reparto_mazapa.keymon.lat:fontProviderAuthority} | The authority of the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderCerts reparto_mazapa.keymon.lat:fontProviderCerts} | The sets of hashes for the certificates the provider should be signed with. |
+ * {@link #FontFamily_fontProviderFetchStrategy reparto_mazapa.keymon.lat:fontProviderFetchStrategy} | The strategy to be used when fetching font data from a font provider in XML layouts. |
+ * {@link #FontFamily_fontProviderFetchTimeout reparto_mazapa.keymon.lat:fontProviderFetchTimeout} | The length of the timeout during fetching. |
+ * {@link #FontFamily_fontProviderPackage reparto_mazapa.keymon.lat:fontProviderPackage} | The package for the Font Provider to be used for the request. |
+ * {@link #FontFamily_fontProviderQuery reparto_mazapa.keymon.lat:fontProviderQuery} | The query to be sent over to the provider. |
+ *
+ * @see #FontFamily_fontProviderAuthority
+ * @see #FontFamily_fontProviderCerts
+ * @see #FontFamily_fontProviderFetchStrategy
+ * @see #FontFamily_fontProviderFetchTimeout
+ * @see #FontFamily_fontProviderPackage
+ * @see #FontFamily_fontProviderQuery
+ */
+ public static final int[] FontFamily={
+ 0x7f020010, 0x7f020011, 0x7f020012, 0x7f020013,
+ 0x7f020014, 0x7f020015
+ };
+ /**
+ *
+ * @attr description
+ * The authority of the Font Provider to be used for the request.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontProviderAuthority
+ */
+ public static final int FontFamily_fontProviderAuthority=0;
+ /**
+ *
+ * @attr description
+ * The sets of hashes for the certificates the provider should be signed with. This is
+ * used to verify the identity of the provider, and is only required if the provider is not
+ * part of the system image. This value may point to one list or a list of lists, where each
+ * individual list represents one collection of signature hashes. Refer to your font provider's
+ * documentation for these values.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontProviderCerts
+ */
+ public static final int FontFamily_fontProviderCerts=1;
+ /**
+ *
+ * @attr description
+ * The strategy to be used when fetching font data from a font provider in XML layouts.
+ * This attribute is ignored when the resource is loaded from code, as it is equivalent to the
+ * choice of API between {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int)} (blocking) and
+ * {@link
+ * androidx.core.content.res.ResourcesCompat#getFont(Context, int, FontCallback, Handler)}
+ * (async).
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | async | 1 | The async font fetch works as follows.
+ * First, check the local cache, then if the requeted font is not cached, trigger a
+ * request the font and continue with layout inflation. Once the font fetch succeeds, the
+ * target text view will be refreshed with the downloaded font data. The
+ * fontProviderFetchTimeout will be ignored if async loading is specified. |
+ * | blocking | 0 | The blocking font fetch works as follows.
+ * First, check the local cache, then if the requested font is not cached, request the
+ * font from the provider and wait until it is finished. You can change the length of
+ * the timeout by modifying fontProviderFetchTimeout. If the timeout happens, the
+ * default typeface will be used instead. |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontProviderFetchStrategy
+ */
+ public static final int FontFamily_fontProviderFetchStrategy=2;
+ /**
+ *
+ * @attr description
+ * The length of the timeout during fetching.
+ *
+ *
May be an integer value, such as "100".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | forever | ffffffff | A special value for the timeout. In this case, the blocking font fetching will not
+ * timeout and wait until a reply is received from the font provider. |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontProviderFetchTimeout
+ */
+ public static final int FontFamily_fontProviderFetchTimeout=3;
+ /**
+ *
+ * @attr description
+ * The package for the Font Provider to be used for the request. This is used to verify
+ * the identity of the provider.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontProviderPackage
+ */
+ public static final int FontFamily_fontProviderPackage=4;
+ /**
+ *
+ * @attr description
+ * The query to be sent over to the provider. Refer to your font provider's documentation
+ * on the format of this string.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontProviderQuery
+ */
+ public static final int FontFamily_fontProviderQuery=5;
+ /**
+ * Attributes that can be used with a FontFamilyFont.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FontFamilyFont_android_font android:font} | |
+ * {@link #FontFamilyFont_android_fontWeight android:fontWeight} | |
+ * {@link #FontFamilyFont_android_fontStyle android:fontStyle} | |
+ * {@link #FontFamilyFont_android_ttcIndex android:ttcIndex} | |
+ * {@link #FontFamilyFont_android_fontVariationSettings android:fontVariationSettings} | |
+ * {@link #FontFamilyFont_font reparto_mazapa.keymon.lat:font} | The reference to the font file to be used. |
+ * {@link #FontFamilyFont_fontStyle reparto_mazapa.keymon.lat:fontStyle} | The style of the given font file. |
+ * {@link #FontFamilyFont_fontVariationSettings reparto_mazapa.keymon.lat:fontVariationSettings} | The variation settings to be applied to the font. |
+ * {@link #FontFamilyFont_fontWeight reparto_mazapa.keymon.lat:fontWeight} | The weight of the given font file. |
+ * {@link #FontFamilyFont_ttcIndex reparto_mazapa.keymon.lat:ttcIndex} | The index of the font in the tcc font file. |
+ *
+ * @see #FontFamilyFont_android_font
+ * @see #FontFamilyFont_android_fontWeight
+ * @see #FontFamilyFont_android_fontStyle
+ * @see #FontFamilyFont_android_ttcIndex
+ * @see #FontFamilyFont_android_fontVariationSettings
+ * @see #FontFamilyFont_font
+ * @see #FontFamilyFont_fontStyle
+ * @see #FontFamilyFont_fontVariationSettings
+ * @see #FontFamilyFont_fontWeight
+ * @see #FontFamilyFont_ttcIndex
+ */
+ public static final int[] FontFamilyFont={
+ 0x01010532, 0x01010533, 0x0101053f, 0x0101056f,
+ 0x01010570, 0x7f02000f, 0x7f020016, 0x7f020017,
+ 0x7f020018, 0x7f02002b
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#font}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:font
+ */
+ public static final int FontFamilyFont_android_font=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontWeight}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:fontWeight
+ */
+ public static final int FontFamilyFont_android_fontWeight=1;
+ /**
+ *
+ * @attr description
+ * References to the framework attrs
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name android:fontStyle
+ */
+ public static final int FontFamilyFont_android_fontStyle=2;
+ /**
+ * This symbol is the offset where the {@link android.R.attr#ttcIndex}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name android:ttcIndex
+ */
+ public static final int FontFamilyFont_android_ttcIndex=3;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#fontVariationSettings}
+ * attribute's value can be found in the {@link #FontFamilyFont} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:fontVariationSettings
+ */
+ public static final int FontFamilyFont_android_fontVariationSettings=4;
+ /**
+ *
+ * @attr description
+ * The reference to the font file to be used. This should be a file in the res/font folder
+ * and should therefore have an R reference value. E.g. @font/myfont
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name reparto_mazapa.keymon.lat:font
+ */
+ public static final int FontFamilyFont_font=5;
+ /**
+ *
+ * @attr description
+ * The style of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any style information in the font's header tables. If
+ * unspecified, the value in the font's header tables will be used.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | italic | 1 | |
+ * | normal | 0 | |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontStyle
+ */
+ public static final int FontFamilyFont_fontStyle=6;
+ /**
+ *
+ * @attr description
+ * The variation settings to be applied to the font. The string should be in the following
+ * format: "'tag1' value1, 'tag2' value2, ...". If the default variation settings should be
+ * used, or the font used does not support variation settings, this attribute needs not be
+ * specified.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontVariationSettings
+ */
+ public static final int FontFamilyFont_fontVariationSettings=7;
+ /**
+ *
+ * @attr description
+ * The weight of the given font file. This will be used when the font is being loaded into
+ * the font stack and will override any weight information in the font's header tables. Must
+ * be a positive number, a multiple of 100, and between 100 and 900, inclusive. The most
+ * common values are 400 for regular weight and 700 for bold weight. If unspecified, the value
+ * in the font's header tables will be used.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_mazapa.keymon.lat:fontWeight
+ */
+ public static final int FontFamilyFont_fontWeight=8;
+ /**
+ *
+ * @attr description
+ * The index of the font in the tcc font file. If the font file referenced is not in the
+ * tcc format, this attribute needs not be specified.
+ *
+ *
May be an integer value, such as "100".
+ *
+ * @attr name reparto_mazapa.keymon.lat:ttcIndex
+ */
+ public static final int FontFamilyFont_ttcIndex=9;
+ /**
+ * Attributes that can be used with a Fragment.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #Fragment_android_name android:name} | |
+ * {@link #Fragment_android_id android:id} | |
+ * {@link #Fragment_android_tag android:tag} | |
+ *
+ * @see #Fragment_android_name
+ * @see #Fragment_android_id
+ * @see #Fragment_android_tag
+ */
+ public static final int[] Fragment={
+ 0x01010003, 0x010100d0, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int Fragment_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#id}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
+ * @attr name android:id
+ */
+ public static final int Fragment_android_id=1;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #Fragment} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int Fragment_android_tag=2;
+ /**
+ * Attributes that can be used with a FragmentContainerView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #FragmentContainerView_android_name android:name} | |
+ * {@link #FragmentContainerView_android_tag android:tag} | |
+ *
+ * @see #FragmentContainerView_android_name
+ * @see #FragmentContainerView_android_tag
+ */
+ public static final int[] FragmentContainerView={
+ 0x01010003, 0x010100d1
+ };
+ /**
+ * This symbol is the offset where the {@link android.R.attr#name}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:name
+ */
+ public static final int FragmentContainerView_android_name=0;
+ /**
+ *
This symbol is the offset where the {@link android.R.attr#tag}
+ * attribute's value can be found in the {@link #FragmentContainerView} array.
+ *
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name android:tag
+ */
+ public static final int FragmentContainerView_android_tag=1;
+ /**
+ * Attributes that can be used with a GradientColor.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColor_android_startColor android:startColor} | |
+ * {@link #GradientColor_android_endColor android:endColor} | |
+ * {@link #GradientColor_android_type android:type} | |
+ * {@link #GradientColor_android_centerX android:centerX} | |
+ * {@link #GradientColor_android_centerY android:centerY} | |
+ * {@link #GradientColor_android_gradientRadius android:gradientRadius} | |
+ * {@link #GradientColor_android_tileMode android:tileMode} | |
+ * {@link #GradientColor_android_centerColor android:centerColor} | |
+ * {@link #GradientColor_android_startX android:startX} | |
+ * {@link #GradientColor_android_startY android:startY} | |
+ * {@link #GradientColor_android_endX android:endX} | |
+ * {@link #GradientColor_android_endY android:endY} | |
+ *
+ * @see #GradientColor_android_startColor
+ * @see #GradientColor_android_endColor
+ * @see #GradientColor_android_type
+ * @see #GradientColor_android_centerX
+ * @see #GradientColor_android_centerY
+ * @see #GradientColor_android_gradientRadius
+ * @see #GradientColor_android_tileMode
+ * @see #GradientColor_android_centerColor
+ * @see #GradientColor_android_startX
+ * @see #GradientColor_android_startY
+ * @see #GradientColor_android_endX
+ * @see #GradientColor_android_endY
+ */
+ public static final int[] GradientColor={
+ 0x0101019d, 0x0101019e, 0x010101a1, 0x010101a2,
+ 0x010101a3, 0x010101a4, 0x01010201, 0x0101020b,
+ 0x01010510, 0x01010511, 0x01010512, 0x01010513
+ };
+ /**
+ *
+ * @attr description
+ * Start color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:startColor
+ */
+ public static final int GradientColor_android_startColor=0;
+ /**
+ *
+ * @attr description
+ * End color of the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:endColor
+ */
+ public static final int GradientColor_android_endColor=1;
+ /**
+ *
+ * @attr description
+ * Type of gradient. The default type is linear.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | linear | 0 | |
+ * | radial | 1 | |
+ * | sweep | 2 | |
+ *
+ *
+ * @attr name android:type
+ */
+ public static final int GradientColor_android_type=2;
+ /**
+ *
+ * @attr description
+ * X coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerX
+ */
+ public static final int GradientColor_android_centerX=3;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the center of the gradient within the path.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:centerY
+ */
+ public static final int GradientColor_android_centerY=4;
+ /**
+ *
+ * @attr description
+ * Radius of the gradient, used only with radial gradient.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
May be a dimension value, which is a floating point number appended with a
+ * unit such as "14.5sp".
+ * Available units are: px (pixels), dp (density-independent pixels),
+ * sp (scaled pixels based on preferred font size), in (inches), and
+ * mm (millimeters).
+ *
May be a fractional value, which is a floating point number appended with
+ * either % or %p, such as "14.5%".
+ * The % suffix always means a percentage of the base size;
+ * the optional %p suffix provides a size relative to some parent container.
+ *
+ * @attr name android:gradientRadius
+ */
+ public static final int GradientColor_android_gradientRadius=5;
+ /**
+ *
+ * @attr description
+ * Defines the tile mode of the gradient. SweepGradient doesn't support tiling.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | clamp | 0 | |
+ * | disabled | ffffffff | |
+ * | mirror | 2 | |
+ * | repeat | 1 | |
+ *
+ *
+ * @attr name android:tileMode
+ */
+ public static final int GradientColor_android_tileMode=6;
+ /**
+ *
+ * @attr description
+ * Optional center color.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:centerColor
+ */
+ public static final int GradientColor_android_centerColor=7;
+ /**
+ *
+ * @attr description
+ * X coordinate of the start point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startX
+ */
+ public static final int GradientColor_android_startX=8;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the start point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:startY
+ */
+ public static final int GradientColor_android_startY=9;
+ /**
+ *
+ * @attr description
+ * X coordinate of the end point origin of the gradient.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endX
+ */
+ public static final int GradientColor_android_endX=10;
+ /**
+ *
+ * @attr description
+ * Y coordinate of the end point of the gradient within the shape.
+ * Defined in same coordinates as the path itself
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:endY
+ */
+ public static final int GradientColor_android_endY=11;
+ /**
+ * Attributes that can be used with a GradientColorItem.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #GradientColorItem_android_color android:color} | |
+ * {@link #GradientColorItem_android_offset android:offset} | |
+ *
+ * @see #GradientColorItem_android_color
+ * @see #GradientColorItem_android_offset
+ */
+ public static final int[] GradientColorItem={
+ 0x010101a5, 0x01010514
+ };
+ /**
+ *
+ * @attr description
+ * The current color for the offset inside the gradient.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name android:color
+ */
+ public static final int GradientColorItem_android_color=0;
+ /**
+ *
+ * @attr description
+ * The offset (or ratio) of this current color item inside the gradient.
+ * The value is only meaningful when it is between 0 and 1.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name android:offset
+ */
+ public static final int GradientColorItem_android_offset=1;
+ /**
+ * Attributes that can be used with a LoadingImageView.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #LoadingImageView_circleCrop reparto_mazapa.keymon.lat:circleCrop} | |
+ * {@link #LoadingImageView_imageAspectRatio reparto_mazapa.keymon.lat:imageAspectRatio} | |
+ * {@link #LoadingImageView_imageAspectRatioAdjust reparto_mazapa.keymon.lat:imageAspectRatioAdjust} | |
+ *
+ * @see #LoadingImageView_circleCrop
+ * @see #LoadingImageView_imageAspectRatio
+ * @see #LoadingImageView_imageAspectRatioAdjust
+ */
+ public static final int[] LoadingImageView={
+ 0x7f02000a, 0x7f020019, 0x7f02001a
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#circleCrop}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:circleCrop
+ */
+ public static final int LoadingImageView_circleCrop=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#imageAspectRatio}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:imageAspectRatio
+ */
+ public static final int LoadingImageView_imageAspectRatio=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#imageAspectRatioAdjust}
+ * attribute's value can be found in the {@link #LoadingImageView} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | adjust_height | 2 | |
+ * | adjust_width | 1 | |
+ * | none | 0 | |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:imageAspectRatioAdjust
+ */
+ public static final int LoadingImageView_imageAspectRatioAdjust=2;
+ /**
+ * Attributes that can be used with a MapAttrs.
+ * Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #MapAttrs_ambientEnabled reparto_mazapa.keymon.lat:ambientEnabled} | |
+ * {@link #MapAttrs_cameraBearing reparto_mazapa.keymon.lat:cameraBearing} | |
+ * {@link #MapAttrs_cameraMaxZoomPreference reparto_mazapa.keymon.lat:cameraMaxZoomPreference} | |
+ * {@link #MapAttrs_cameraMinZoomPreference reparto_mazapa.keymon.lat:cameraMinZoomPreference} | |
+ * {@link #MapAttrs_cameraTargetLat reparto_mazapa.keymon.lat:cameraTargetLat} | |
+ * {@link #MapAttrs_cameraTargetLng reparto_mazapa.keymon.lat:cameraTargetLng} | |
+ * {@link #MapAttrs_cameraTilt reparto_mazapa.keymon.lat:cameraTilt} | |
+ * {@link #MapAttrs_cameraZoom reparto_mazapa.keymon.lat:cameraZoom} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLatitude reparto_mazapa.keymon.lat:latLngBoundsNorthEastLatitude} | |
+ * {@link #MapAttrs_latLngBoundsNorthEastLongitude reparto_mazapa.keymon.lat:latLngBoundsNorthEastLongitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLatitude reparto_mazapa.keymon.lat:latLngBoundsSouthWestLatitude} | |
+ * {@link #MapAttrs_latLngBoundsSouthWestLongitude reparto_mazapa.keymon.lat:latLngBoundsSouthWestLongitude} | |
+ * {@link #MapAttrs_liteMode reparto_mazapa.keymon.lat:liteMode} | |
+ * {@link #MapAttrs_mapType reparto_mazapa.keymon.lat:mapType} | |
+ * {@link #MapAttrs_uiCompass reparto_mazapa.keymon.lat:uiCompass} | |
+ * {@link #MapAttrs_uiMapToolbar reparto_mazapa.keymon.lat:uiMapToolbar} | |
+ * {@link #MapAttrs_uiRotateGestures reparto_mazapa.keymon.lat:uiRotateGestures} | |
+ * {@link #MapAttrs_uiScrollGestures reparto_mazapa.keymon.lat:uiScrollGestures} | |
+ * {@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom reparto_mazapa.keymon.lat:uiScrollGesturesDuringRotateOrZoom} | |
+ * {@link #MapAttrs_uiTiltGestures reparto_mazapa.keymon.lat:uiTiltGestures} | |
+ * {@link #MapAttrs_uiZoomControls reparto_mazapa.keymon.lat:uiZoomControls} | |
+ * {@link #MapAttrs_uiZoomGestures reparto_mazapa.keymon.lat:uiZoomGestures} | |
+ * {@link #MapAttrs_useViewLifecycle reparto_mazapa.keymon.lat:useViewLifecycle} | |
+ * {@link #MapAttrs_zOrderOnTop reparto_mazapa.keymon.lat:zOrderOnTop} | |
+ *
+ * @see #MapAttrs_ambientEnabled
+ * @see #MapAttrs_cameraBearing
+ * @see #MapAttrs_cameraMaxZoomPreference
+ * @see #MapAttrs_cameraMinZoomPreference
+ * @see #MapAttrs_cameraTargetLat
+ * @see #MapAttrs_cameraTargetLng
+ * @see #MapAttrs_cameraTilt
+ * @see #MapAttrs_cameraZoom
+ * @see #MapAttrs_latLngBoundsNorthEastLatitude
+ * @see #MapAttrs_latLngBoundsNorthEastLongitude
+ * @see #MapAttrs_latLngBoundsSouthWestLatitude
+ * @see #MapAttrs_latLngBoundsSouthWestLongitude
+ * @see #MapAttrs_liteMode
+ * @see #MapAttrs_mapType
+ * @see #MapAttrs_uiCompass
+ * @see #MapAttrs_uiMapToolbar
+ * @see #MapAttrs_uiRotateGestures
+ * @see #MapAttrs_uiScrollGestures
+ * @see #MapAttrs_uiScrollGesturesDuringRotateOrZoom
+ * @see #MapAttrs_uiTiltGestures
+ * @see #MapAttrs_uiZoomControls
+ * @see #MapAttrs_uiZoomGestures
+ * @see #MapAttrs_useViewLifecycle
+ * @see #MapAttrs_zOrderOnTop
+ */
+ public static final int[] MapAttrs={
+ 0x7f020001, 0x7f020003, 0x7f020004, 0x7f020005,
+ 0x7f020006, 0x7f020007, 0x7f020008, 0x7f020009,
+ 0x7f02001c, 0x7f02001d, 0x7f02001e, 0x7f02001f,
+ 0x7f020026, 0x7f020027, 0x7f02002c, 0x7f02002d,
+ 0x7f02002e, 0x7f02002f, 0x7f020030, 0x7f020031,
+ 0x7f020032, 0x7f020033, 0x7f020034, 0x7f020035
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#ambientEnabled}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:ambientEnabled
+ */
+ public static final int MapAttrs_ambientEnabled=0;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#cameraBearing}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing=1;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#cameraMaxZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:cameraMaxZoomPreference
+ */
+ public static final int MapAttrs_cameraMaxZoomPreference=2;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#cameraMinZoomPreference}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:cameraMinZoomPreference
+ */
+ public static final int MapAttrs_cameraMinZoomPreference=3;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#cameraTargetLat}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat=4;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#cameraTargetLng}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng=5;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#cameraTilt}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt=6;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#cameraZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom=7;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#latLngBoundsNorthEastLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:latLngBoundsNorthEastLatitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLatitude=8;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#latLngBoundsNorthEastLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:latLngBoundsNorthEastLongitude
+ */
+ public static final int MapAttrs_latLngBoundsNorthEastLongitude=9;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#latLngBoundsSouthWestLatitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:latLngBoundsSouthWestLatitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLatitude=10;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#latLngBoundsSouthWestLongitude}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a floating point value, such as "1.2".
+ *
+ * @attr name reparto_mazapa.keymon.lat:latLngBoundsSouthWestLongitude
+ */
+ public static final int MapAttrs_latLngBoundsSouthWestLongitude=11;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#liteMode}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:liteMode
+ */
+ public static final int MapAttrs_liteMode=12;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#mapType}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | hybrid | 4 | |
+ * | none | 0 | |
+ * | normal | 1 | |
+ * | satellite | 2 | |
+ * | terrain | 3 | |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:mapType
+ */
+ public static final int MapAttrs_mapType=13;
+ /**
+ * This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiCompass}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiCompass
+ */
+ public static final int MapAttrs_uiCompass=14;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiMapToolbar}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiMapToolbar
+ */
+ public static final int MapAttrs_uiMapToolbar=15;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiRotateGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures=16;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiScrollGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures=17;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiScrollGesturesDuringRotateOrZoom}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiScrollGesturesDuringRotateOrZoom
+ */
+ public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiTiltGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures=19;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiZoomControls}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls=20;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#uiZoomGestures}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures=21;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#useViewLifecycle}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle=22;
+ /**
+ *
This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#zOrderOnTop}
+ * attribute's value can be found in the {@link #MapAttrs} array.
+ *
+ *
May be a boolean value, such as "true" or
+ * "false".
+ *
+ * @attr name reparto_mazapa.keymon.lat:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop=23;
+ /**
+ * Attributes that can be used with a SignInButton.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SignInButton_buttonSize reparto_mazapa.keymon.lat:buttonSize} | |
+ * {@link #SignInButton_colorScheme reparto_mazapa.keymon.lat:colorScheme} | |
+ * {@link #SignInButton_scopeUris reparto_mazapa.keymon.lat:scopeUris} | |
+ *
+ * @see #SignInButton_buttonSize
+ * @see #SignInButton_colorScheme
+ * @see #SignInButton_scopeUris
+ */
+ public static final int[] SignInButton={
+ 0x7f020002, 0x7f02000b, 0x7f020028
+ };
+ /**
+ * This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#buttonSize}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | icon_only | 2 | |
+ * | standard | 0 | |
+ * | wide | 1 | |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:buttonSize
+ */
+ public static final int SignInButton_buttonSize=0;
+ /**
+ * This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#colorScheme}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
Must be one of the following constant values.
+ *
+ *
+ *
+ *
+ * | Constant | Value | Description |
+ * | auto | 2 | |
+ * | dark | 0 | |
+ * | light | 1 | |
+ *
+ *
+ * @attr name reparto_mazapa.keymon.lat:colorScheme
+ */
+ public static final int SignInButton_colorScheme=1;
+ /**
+ * This symbol is the offset where the {@link reparto_mazapa.keymon.lat.R.attr#scopeUris}
+ * attribute's value can be found in the {@link #SignInButton} array.
+ *
+ *
May be a reference to another resource, in the form
+ * "@[+][package:]type/name" or a theme
+ * attribute in the form
+ * "?[package:]type/name".
+ *
May be a string value, using '\\;' to escape characters such as
+ * '\\n' or '\\uxxxx' for a unicode character;
+ *
+ * @attr name reparto_mazapa.keymon.lat:scopeUris
+ */
+ public static final int SignInButton_scopeUris=2;
+ /**
+ * Attributes that can be used with a SwipeRefreshLayout.
+ *
Includes the following attributes:
+ *
+ *
+ *
+ * | Attribute | Description |
+ * {@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor reparto_mazapa.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor} | Background color for SwipeRefreshLayout progress spinner. |
+ *
+ * @see #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int[] SwipeRefreshLayout={
+ 0x7f02002a
+ };
+ /**
+ *
+ * @attr description
+ * Background color for SwipeRefreshLayout progress spinner.
+ *
+ *
May be a color value, in the form of "#rgb",
+ * "#argb", "#rrggbb", or
+ * "#aarrggbb".
+ *
+ * @attr name reparto_mazapa.keymon.lat:swipeRefreshLayoutProgressSpinnerBackgroundColor
+ */
+ public static final int SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor=0;
+ }
+ public static final class xml {
+ public static final int provider_paths=0x7f0c0000;
+ }
+}
\ No newline at end of file
diff --git a/B4A/Objects/res/drawable/icon.jpg b/B4A/Objects/res/drawable/icon.jpg
new file mode 100644
index 0000000..2ed8649
Binary files /dev/null and b/B4A/Objects/res/drawable/icon.jpg differ
diff --git a/B4A/Objects/res/values-v14/theme.xml b/B4A/Objects/res/values-v14/theme.xml
new file mode 100644
index 0000000..dce838a
--- /dev/null
+++ b/B4A/Objects/res/values-v14/theme.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/B4A/Objects/res/values-v20/theme.xml b/B4A/Objects/res/values-v20/theme.xml
new file mode 100644
index 0000000..2d18e78
--- /dev/null
+++ b/B4A/Objects/res/values-v20/theme.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/B4A/Objects/res/xml/provider_paths b/B4A/Objects/res/xml/provider_paths
new file mode 100644
index 0000000..e6f0871
--- /dev/null
+++ b/B4A/Objects/res/xml/provider_paths
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/animatedcounter.java b/B4A/Objects/src/reparto_izca/keymon/lat/animatedcounter.java
new file mode 100644
index 0000000..18111c2
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/animatedcounter.java
@@ -0,0 +1,338 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class animatedcounter extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.animatedcounter");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.animatedcounter.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.collections.List _imageviews = null;
+public int _mdigits = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lbltemplate = null;
+public anywheresoftware.b4a.objects.collections.List _mvalue = null;
+public int _digitheight = 0;
+public int _digitwidth = 0;
+public int _mduration = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _fade = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _xfadeiv = null;
+public Object _tag = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+int _columns = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp = null;
+int _left = 0;
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _iv = null;
+ //BA.debugLineNum = 70;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 71;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width";
+_mbase.GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 72;BA.debugLine="xfadeIv.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_xfadeiv.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 73;BA.debugLine="xfadeIv.SetBitmap(fade.Resize(Width, Height, Fals";
+_xfadeiv.SetBitmap((android.graphics.Bitmap)(_fade.Resize((int) (_width),(int) (_height),__c.False).getObject()));
+ //BA.debugLineNum = 74;BA.debugLine="DigitHeight = Height";
+_digitheight = (int) (_height);
+ //BA.debugLineNum = 75;BA.debugLine="Dim Columns As Int = mdigits";
+_columns = _mdigits;
+ //BA.debugLineNum = 76;BA.debugLine="DigitWidth = Width / Columns";
+_digitwidth = (int) (_width/(double)_columns);
+ //BA.debugLineNum = 77;BA.debugLine="Dim bmp As B4XBitmap = CreateBitmap(lblTemplate)";
+_bmp = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_bmp = _createbitmap(_lbltemplate);
+ //BA.debugLineNum = 78;BA.debugLine="Dim left As Int = Width";
+_left = (int) (_width);
+ //BA.debugLineNum = 79;BA.debugLine="For i = 0 To ImageViews.Size - 1";
+{
+final int step9 = 1;
+final int limit9 = (int) (_imageviews.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit9 ;_i = _i + step9 ) {
+ //BA.debugLineNum = 80;BA.debugLine="Dim iv As B4XView = ImageViews.Get(i)";
+_iv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_iv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_imageviews.Get(_i)));
+ //BA.debugLineNum = 82;BA.debugLine="left = left - DigitWidth";
+_left = (int) (_left-_digitwidth);
+ //BA.debugLineNum = 83;BA.debugLine="iv.SetLayoutAnimated(0, left, TopFromValue(i), D";
+_iv.SetLayoutAnimated((int) (0),_left,_topfromvalue(_i),_digitwidth,(int) (_digitheight*10));
+ //BA.debugLineNum = 84;BA.debugLine="iv.SetBitmap(bmp)";
+_iv.SetBitmap((android.graphics.Bitmap)(_bmp.getObject()));
+ }
+};
+ //BA.debugLineNum = 86;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 6;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 7;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 8;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 10;BA.debugLine="Private ImageViews As List";
+_imageviews = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 11;BA.debugLine="Private mdigits As Int";
+_mdigits = 0;
+ //BA.debugLineNum = 12;BA.debugLine="Private lblTemplate As B4XView";
+_lbltemplate = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Private mValue As List";
+_mvalue = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 14;BA.debugLine="Private DigitHeight, DigitWidth As Int";
+_digitheight = 0;
+_digitwidth = 0;
+ //BA.debugLineNum = 15;BA.debugLine="Private mDuration As Int";
+_mduration = 0;
+ //BA.debugLineNum = 16;BA.debugLine="Private fade As B4XBitmap";
+_fade = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+ //BA.debugLineNum = 17;BA.debugLine="Private xfadeIv As B4XView";
+_xfadeiv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 20;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _createbitmap(anywheresoftware.b4a.objects.B4XViewWrapper _lbl) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+int _baseline = 0;
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _res = null;
+ //BA.debugLineNum = 93;BA.debugLine="Private Sub CreateBitmap (lbl As B4XView) As B4XBi";
+ //BA.debugLineNum = 94;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 95;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, DigitWidth, DigitHei";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_digitwidth,(int) (_digitheight*10));
+ //BA.debugLineNum = 96;BA.debugLine="Dim cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 97;BA.debugLine="cvs.Initialize(p)";
+_cvs.Initialize(_p);
+ //BA.debugLineNum = 98;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(\"5\", lbl.Font)";
+_r = _cvs.MeasureText("5",_lbl.getFont());
+ //BA.debugLineNum = 99;BA.debugLine="Dim BaseLine As Int = DigitHeight / 2 - r.Height";
+_baseline = (int) (_digitheight/(double)2-_r.getHeight()/(double)2-_r.getTop());
+ //BA.debugLineNum = 100;BA.debugLine="For i = 0 To 9";
+{
+final int step7 = 1;
+final int limit7 = (int) (9);
+_i = (int) (0) ;
+for (;_i <= limit7 ;_i = _i + step7 ) {
+ //BA.debugLineNum = 101;BA.debugLine="cvs.DrawText(i, DigitWidth / 2, i * DigitHeight";
+_cvs.DrawText(ba,BA.NumberToString(_i),(float) (_digitwidth/(double)2),(float) (_i*_digitheight+_baseline),_lbl.getFont(),_lbl.getTextColor(),BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER"));
+ }
+};
+ //BA.debugLineNum = 103;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 104;BA.debugLine="Dim res As B4XBitmap = cvs.CreateBitmap";
+_res = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_res = _cvs.CreateBitmap();
+ //BA.debugLineNum = 105;BA.debugLine="cvs.Release";
+_cvs.Release();
+ //BA.debugLineNum = 106;BA.debugLine="Return res";
+if (true) return _res;
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _createfadebitmap(int _clr) throws Exception{
+b4a.example.bitmapcreator _bc = null;
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+int _tclr = 0;
+ //BA.debugLineNum = 56;BA.debugLine="Private Sub CreateFadeBitmap (clr As Int) As B4XBi";
+ //BA.debugLineNum = 57;BA.debugLine="Dim bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 58;BA.debugLine="bc.Initialize(200, 50)";
+_bc._initialize(ba,(int) (200),(int) (50));
+ //BA.debugLineNum = 59;BA.debugLine="Dim r As B4XRect";
+_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 60;BA.debugLine="r.Initialize(0, 0, bc.mWidth, bc.mHeight / 3)";
+_r.Initialize((float) (0),(float) (0),(float) (_bc._mwidth),(float) (_bc._mheight/(double)3));
+ //BA.debugLineNum = 61;BA.debugLine="Dim tclr As Int = Bit.And(0x00ffffff, clr)";
+_tclr = __c.Bit.And(((int)0x00ffffff),_clr);
+ //BA.debugLineNum = 62;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"TOP_";
+_bc._fillgradient(new int[]{_clr,_tclr},_r,"TOP_BOTTOM");
+ //BA.debugLineNum = 63;BA.debugLine="r.Top = bc.mHeight * 2 / 3";
+_r.setTop((float) (_bc._mheight*2/(double)3));
+ //BA.debugLineNum = 64;BA.debugLine="r.Bottom = bc.mHeight";
+_r.setBottom((float) (_bc._mheight));
+ //BA.debugLineNum = 65;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"BOTT";
+_bc._fillgradient(new int[]{_clr,_tclr},_r,"BOTTOM_TOP");
+ //BA.debugLineNum = 66;BA.debugLine="Return bc.Bitmap";
+if (true) return _bc._getbitmap();
+ //BA.debugLineNum = 67;BA.debugLine="End Sub";
+return null;
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+int _i = 0;
+anywheresoftware.b4a.objects.ImageViewWrapper _iv = null;
+anywheresoftware.b4a.objects.ImageViewWrapper _fadeiv = null;
+ //BA.debugLineNum = 30;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl";
+ //BA.debugLineNum = 31;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 32;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 32;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 33;BA.debugLine="Dim pnl As B4XView = xui.CreatePanel(\"\") 'needed";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 34;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 35;BA.debugLine="mdigits = Props.Get(\"Digits\")";
+_mdigits = (int)(BA.ObjectToNumber(_props.Get((Object)("Digits"))));
+ //BA.debugLineNum = 36;BA.debugLine="mDuration = Props.Get(\"Duration\")";
+_mduration = (int)(BA.ObjectToNumber(_props.Get((Object)("Duration"))));
+ //BA.debugLineNum = 37;BA.debugLine="lblTemplate = lbl";
+_lbltemplate = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 38;BA.debugLine="fade = CreateFadeBitmap(xui.PaintOrColorToColor(P";
+_fade = _createfadebitmap(_xui.PaintOrColorToColor(_props.GetDefault((Object)("FadeColor"),(Object)(_xui.Color_White))));
+ //BA.debugLineNum = 39;BA.debugLine="For i = 0 To mdigits - 1";
+{
+final int step10 = 1;
+final int limit10 = (int) (_mdigits-1);
+_i = (int) (0) ;
+for (;_i <= limit10 ;_i = _i + step10 ) {
+ //BA.debugLineNum = 40;BA.debugLine="Dim iv As ImageView";
+_iv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 41;BA.debugLine="iv.Initialize(\"\")";
+_iv.Initialize(ba,"");
+ //BA.debugLineNum = 42;BA.debugLine="ImageViews.Add(iv)";
+_imageviews.Add((Object)(_iv.getObject()));
+ //BA.debugLineNum = 43;BA.debugLine="mBase.GetView(0).AddView(iv, 0, 0, 0, 0)";
+_mbase.GetView((int) (0)).AddView((android.view.View)(_iv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ }
+};
+ //BA.debugLineNum = 45;BA.debugLine="Dim fadeIv As ImageView";
+_fadeiv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 46;BA.debugLine="fadeIv.Initialize(\"\")";
+_fadeiv.Initialize(ba,"");
+ //BA.debugLineNum = 47;BA.debugLine="xfadeIv = fadeIv";
+_xfadeiv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_fadeiv.getObject()));
+ //BA.debugLineNum = 48;BA.debugLine="mBase.GetView(0).AddView(fadeIv, 0, 0, 0, 0)";
+_mbase.GetView((int) (0)).AddView((android.view.View)(_fadeiv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 49;BA.debugLine="setValue(0)";
+_setvalue((int) (0));
+ //BA.debugLineNum = 50;BA.debugLine="If xui.IsB4A Then";
+if (_xui.getIsB4A()) {
+ //BA.debugLineNum = 51;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 52;BA.debugLine="setValue(getValue)";
+_setvalue(_getvalue());
+ };
+ //BA.debugLineNum = 54;BA.debugLine="End Sub";
+return "";
+}
+public int _getvalue() throws Exception{
+int _res = 0;
+int _i = 0;
+ //BA.debugLineNum = 120;BA.debugLine="Public Sub getValue As Int";
+ //BA.debugLineNum = 121;BA.debugLine="Dim res As Int";
+_res = 0;
+ //BA.debugLineNum = 122;BA.debugLine="For i = 0 To mValue.Size - 1";
+{
+final int step2 = 1;
+final int limit2 = (int) (_mvalue.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit2 ;_i = _i + step2 ) {
+ //BA.debugLineNum = 123;BA.debugLine="res = res + mValue.Get(i) * Power(10, i)";
+_res = (int) (_res+(double)(BA.ObjectToNumber(_mvalue.Get(_i)))*__c.Power(10,_i));
+ }
+};
+ //BA.debugLineNum = 125;BA.debugLine="Return res";
+if (true) return _res;
+ //BA.debugLineNum = 126;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 22;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 23;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 24;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 25;BA.debugLine="ImageViews.Initialize";
+_imageviews.Initialize();
+ //BA.debugLineNum = 26;BA.debugLine="mValue.Initialize";
+_mvalue.Initialize();
+ //BA.debugLineNum = 27;BA.debugLine="End Sub";
+return "";
+}
+public String _setvalue(int _v) throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _iv = null;
+ //BA.debugLineNum = 109;BA.debugLine="Public Sub setValue(v As Int)";
+ //BA.debugLineNum = 110;BA.debugLine="mValue.Clear";
+_mvalue.Clear();
+ //BA.debugLineNum = 111;BA.debugLine="For i = 0 To mdigits - 1";
+{
+final int step2 = 1;
+final int limit2 = (int) (_mdigits-1);
+_i = (int) (0) ;
+for (;_i <= limit2 ;_i = _i + step2 ) {
+ //BA.debugLineNum = 112;BA.debugLine="mValue.Add(v Mod 10)";
+_mvalue.Add((Object)(_v%10));
+ //BA.debugLineNum = 113;BA.debugLine="v = v / 10";
+_v = (int) (_v/(double)10);
+ //BA.debugLineNum = 114;BA.debugLine="Dim iv As B4XView = ImageViews.Get(i)";
+_iv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_iv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_imageviews.Get(_i)));
+ //BA.debugLineNum = 115;BA.debugLine="iv.SetLayoutAnimated(mDuration, iv.Left, TopFrom";
+_iv.SetLayoutAnimated(_mduration,_iv.getLeft(),_topfromvalue(_i),(int) (__c.Max(1,_iv.getWidth())),(int) (__c.Max(1,_iv.getHeight())));
+ }
+};
+ //BA.debugLineNum = 118;BA.debugLine="End Sub";
+return "";
+}
+public int _topfromvalue(int _digit) throws Exception{
+int _d = 0;
+ //BA.debugLineNum = 88;BA.debugLine="Private Sub TopFromValue (Digit As Int) As Int";
+ //BA.debugLineNum = 89;BA.debugLine="Dim d As Int = mValue.Get(Digit)";
+_d = (int)(BA.ObjectToNumber(_mvalue.Get(_digit)));
+ //BA.debugLineNum = 90;BA.debugLine="Return -d * DigitHeight";
+if (true) return (int) (-_d*_digitheight);
+ //BA.debugLineNum = 91;BA.debugLine="End Sub";
+return 0;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/anotherprogressbar.java b/B4A/Objects/src/reparto_izca/keymon/lat/anotherprogressbar.java
new file mode 100644
index 0000000..0400476
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/anotherprogressbar.java
@@ -0,0 +1,551 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class anotherprogressbar extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.anotherprogressbar");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.anotherprogressbar.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.bcpath._bcbrush _busybrush = null;
+public int _backgroundcolor = 0;
+public int _busyindex = 0;
+public b4a.example.bitmapcreator _bc = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _miv = null;
+public b4a.example.bcpath._bcbrush _transparentbrush = null;
+public boolean _vertical = false;
+public float _currentvalue = 0f;
+public int _emptycolor = 0;
+public b4a.example.bcpath._bcbrush _emptybrush = null;
+public int _mvalue = 0;
+public Object _tag = null;
+public float _valuechangepersecond = 0f;
+public int _cornerradius = 0;
+public int _brushoffsetdelta = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _v = null;
+ //BA.debugLineNum = 49;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 50;BA.debugLine="For Each v As B4XView In mBase.GetAllViewsRecursi";
+_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
+{
+final anywheresoftware.b4a.BA.IterableList group1 = _mbase.GetAllViewsRecursive();
+final int groupLen1 = group1.getSize()
+;int index1 = 0;
+;
+for (; index1 < groupLen1;index1++){
+_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group1.Get(index1)));
+ //BA.debugLineNum = 51;BA.debugLine="v.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_v.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ }
+};
+ //BA.debugLineNum = 53;BA.debugLine="bc.Initialize(mBase.Width / xui.Scale, mBase.Heig";
+_bc._initialize(ba,(int) (_mbase.getWidth()/(double)_xui.getScale()),(int) (_mbase.getHeight()/(double)_xui.getScale()));
+ //BA.debugLineNum = 54;BA.debugLine="Vertical = mBase.Height > mBase.Width";
+_vertical = _mbase.getHeight()>_mbase.getWidth();
+ //BA.debugLineNum = 55;BA.debugLine="UpdateGraphics";
+_updategraphics();
+ //BA.debugLineNum = 57;BA.debugLine="End Sub";
+return "";
+}
+public void _busyloop() throws Exception{
+ResumableSub_BusyLoop rsub = new ResumableSub_BusyLoop(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_BusyLoop extends BA.ResumableSub {
+public ResumableSub_BusyLoop(reparto_izca.keymon.lat.anotherprogressbar parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.anotherprogressbar parent;
+int _myindex = 0;
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+long _lasttime = 0L;
+anywheresoftware.b4a.objects.collections.List _tasks = null;
+float _delta = 0f;
+float _change = 0f;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 60;BA.debugLine="Dim MyIndex As Int = BusyIndex";
+_myindex = parent._busyindex;
+ //BA.debugLineNum = 61;BA.debugLine="Dim r As B4XRect";
+_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 62;BA.debugLine="r.Initialize(0, 0, bc.mWidth, bc.mHeight)";
+_r.Initialize((float) (0),(float) (0),(float) (parent._bc._mwidth),(float) (parent._bc._mheight));
+ //BA.debugLineNum = 63;BA.debugLine="Dim LastTime As Long = DateTime.Now";
+_lasttime = parent.__c.DateTime.getNow();
+ //BA.debugLineNum = 64;BA.debugLine="Do While MyIndex = BusyIndex";
+if (true) break;
+
+case 1:
+//do while
+this.state = 37;
+while (_myindex==parent._busyindex) {
+this.state = 3;
+if (true) break;
+}
+if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 65;BA.debugLine="If Vertical Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 9;
+if (parent._vertical) {
+this.state = 6;
+}else {
+this.state = 8;
+}if (true) break;
+
+case 6:
+//C
+this.state = 9;
+ //BA.debugLineNum = 66;BA.debugLine="BusyBrush.SrcOffsetY = BusyBrush.SrcOffsetY + B";
+parent._busybrush.SrcOffsetY = (int) (parent._busybrush.SrcOffsetY+parent._brushoffsetdelta);
+ if (true) break;
+
+case 8:
+//C
+this.state = 9;
+ //BA.debugLineNum = 68;BA.debugLine="BusyBrush.SrcOffsetX = BusyBrush.SrcOffsetX + B";
+parent._busybrush.SrcOffsetX = (int) (parent._busybrush.SrcOffsetX+parent._brushoffsetdelta);
+ if (true) break;
+
+case 9:
+//C
+this.state = 10;
+;
+ //BA.debugLineNum = 70;BA.debugLine="Dim tasks As List";
+_tasks = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 71;BA.debugLine="tasks.Initialize";
+_tasks.Initialize();
+ //BA.debugLineNum = 72;BA.debugLine="tasks.Add(bc.AsyncDrawRect(bc.TargetRect, Transp";
+_tasks.Add((Object)(parent._bc._asyncdrawrect(parent._bc._targetrect,parent._transparentbrush,parent.__c.True,(int) (0))));
+ //BA.debugLineNum = 73;BA.debugLine="Dim delta As Float = mValue - CurrentValue";
+_delta = (float) (parent._mvalue-parent._currentvalue);
+ //BA.debugLineNum = 74;BA.debugLine="If Abs(delta) <= 1 Then";
+if (true) break;
+
+case 10:
+//if
+this.state = 21;
+if (parent.__c.Abs(_delta)<=1) {
+this.state = 12;
+}else {
+this.state = 14;
+}if (true) break;
+
+case 12:
+//C
+this.state = 21;
+ //BA.debugLineNum = 75;BA.debugLine="CurrentValue = mValue";
+parent._currentvalue = (float) (parent._mvalue);
+ if (true) break;
+
+case 14:
+//C
+this.state = 15;
+ //BA.debugLineNum = 77;BA.debugLine="Dim change As Float = (DateTime.Now - LastTime)";
+_change = (float) ((parent.__c.DateTime.getNow()-_lasttime)/(double)1000*parent._valuechangepersecond);
+ //BA.debugLineNum = 78;BA.debugLine="If delta > 0 Then";
+if (true) break;
+
+case 15:
+//if
+this.state = 20;
+if (_delta>0) {
+this.state = 17;
+}else {
+this.state = 19;
+}if (true) break;
+
+case 17:
+//C
+this.state = 20;
+ //BA.debugLineNum = 79;BA.debugLine="CurrentValue = CurrentValue + Min(change, mVal";
+parent._currentvalue = (float) (parent._currentvalue+parent.__c.Min(_change,parent._mvalue-parent._currentvalue));
+ if (true) break;
+
+case 19:
+//C
+this.state = 20;
+ //BA.debugLineNum = 81;BA.debugLine="CurrentValue = CurrentValue - Min(change, Curr";
+parent._currentvalue = (float) (parent._currentvalue-parent.__c.Min(_change,parent._currentvalue-parent._mvalue));
+ if (true) break;
+
+case 20:
+//C
+this.state = 21;
+;
+ if (true) break;
+
+case 21:
+//C
+this.state = 22;
+;
+ //BA.debugLineNum = 84;BA.debugLine="LastTime = DateTime.Now";
+_lasttime = parent.__c.DateTime.getNow();
+ //BA.debugLineNum = 85;BA.debugLine="If CurrentValue < 100 Then";
+if (true) break;
+
+case 22:
+//if
+this.state = 25;
+if (parent._currentvalue<100) {
+this.state = 24;
+}if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 86;BA.debugLine="tasks.Add(bc.AsyncDrawRectRounded(bc.TargetRect";
+_tasks.Add((Object)(parent._bc._asyncdrawrectrounded(parent._bc._targetrect,parent._emptybrush,parent.__c.True,(int) (0),parent._cornerradius)));
+ if (true) break;
+;
+ //BA.debugLineNum = 88;BA.debugLine="If Vertical Then";
+
+case 25:
+//if
+this.state = 30;
+if (parent._vertical) {
+this.state = 27;
+}else {
+this.state = 29;
+}if (true) break;
+
+case 27:
+//C
+this.state = 30;
+ //BA.debugLineNum = 89;BA.debugLine="r.Bottom = Round(CurrentValue / 100 * bc.mHeigh";
+_r.setBottom((float) (parent.__c.Round(parent._currentvalue/(double)100*parent._bc._mheight)));
+ if (true) break;
+
+case 29:
+//C
+this.state = 30;
+ //BA.debugLineNum = 91;BA.debugLine="r.Right = Round(CurrentValue / 100 * bc.mWidth)";
+_r.setRight((float) (parent.__c.Round(parent._currentvalue/(double)100*parent._bc._mwidth)));
+ if (true) break;
+
+case 30:
+//C
+this.state = 31;
+;
+ //BA.debugLineNum = 94;BA.debugLine="tasks.Add(bc.AsyncDrawRectRounded(r, BusyBrush,";
+_tasks.Add((Object)(parent._bc._asyncdrawrectrounded(_r,parent._busybrush,parent.__c.True,(int) (0),parent._cornerradius)));
+ //BA.debugLineNum = 95;BA.debugLine="bc.DrawBitmapCreatorsAsync(Me, \"BC\", tasks)";
+parent._bc._drawbitmapcreatorsasync(parent,"BC",_tasks);
+ //BA.debugLineNum = 96;BA.debugLine="Wait For BC_BitmapReady (bmp As B4XBitmap)";
+parent.__c.WaitFor("bc_bitmapready", ba, this, null);
+this.state = 38;
+return;
+case 38:
+//C
+this.state = 31;
+_bmp = (anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) result[0];
+;
+ //BA.debugLineNum = 97;BA.debugLine="If xui.IsB4J Then bmp = bc.Bitmap";
+if (true) break;
+
+case 31:
+//if
+this.state = 36;
+if (parent._xui.getIsB4J()) {
+this.state = 33;
+;}if (true) break;
+
+case 33:
+//C
+this.state = 36;
+_bmp = parent._bc._getbitmap();
+if (true) break;
+
+case 36:
+//C
+this.state = 1;
+;
+ //BA.debugLineNum = 98;BA.debugLine="bc.SetBitmapToImageView(bmp, mIV)";
+parent._bc._setbitmaptoimageview(_bmp,parent._miv);
+ //BA.debugLineNum = 99;BA.debugLine="Sleep(30)";
+parent.__c.Sleep(ba,this,(int) (30));
+this.state = 39;
+return;
+case 39:
+//C
+this.state = 1;
+;
+ if (true) break;
+
+case 37:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 101;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _bc_bitmapready(anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 4;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 5;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 6;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 7;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 9;BA.debugLine="Private BusyBrush As BCBrush";
+_busybrush = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 10;BA.debugLine="Private BackgroundColor As Int";
+_backgroundcolor = 0;
+ //BA.debugLineNum = 11;BA.debugLine="Private BusyIndex As Int";
+_busyindex = 0;
+ //BA.debugLineNum = 12;BA.debugLine="Private bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 13;BA.debugLine="Private mIV As B4XView";
+_miv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Private TransparentBrush As BCBrush";
+_transparentbrush = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 15;BA.debugLine="Private Vertical As Boolean";
+_vertical = false;
+ //BA.debugLineNum = 16;BA.debugLine="Private CurrentValue As Float";
+_currentvalue = 0f;
+ //BA.debugLineNum = 17;BA.debugLine="Public EmptyColor As Int = xui.Color_White";
+_emptycolor = _xui.Color_White;
+ //BA.debugLineNum = 18;BA.debugLine="Private EmptyBrush As BCBrush";
+_emptybrush = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 19;BA.debugLine="Private mValue As Int";
+_mvalue = 0;
+ //BA.debugLineNum = 20;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 21;BA.debugLine="Public ValueChangePerSecond As Float = 60";
+_valuechangepersecond = (float) (60);
+ //BA.debugLineNum = 22;BA.debugLine="Public CornerRadius As Int";
+_cornerradius = 0;
+ //BA.debugLineNum = 23;BA.debugLine="Public BrushOffsetDelta As Int = 3";
+_brushoffsetdelta = (int) (3);
+ //BA.debugLineNum = 24;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.ImageViewWrapper _iv = null;
+ //BA.debugLineNum = 32;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl";
+ //BA.debugLineNum = 33;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 35;BA.debugLine="Dim iv As ImageView";
+_iv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 36;BA.debugLine="iv.Initialize(\"\")";
+_iv.Initialize(ba,"");
+ //BA.debugLineNum = 37;BA.debugLine="mIV = iv";
+_miv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject()));
+ //BA.debugLineNum = 38;BA.debugLine="mIV.Color = xui.Color_Transparent";
+_miv.setColor(_xui.Color_Transparent);
+ //BA.debugLineNum = 39;BA.debugLine="setValue(Props.GetDefault(\"Value\", 100))";
+_setvalue((int)(BA.ObjectToNumber(_props.GetDefault((Object)("Value"),(Object)(100)))));
+ //BA.debugLineNum = 40;BA.debugLine="CurrentValue = mValue";
+_currentvalue = (float) (_mvalue);
+ //BA.debugLineNum = 41;BA.debugLine="mBase.AddView(mIV, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_miv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 42;BA.debugLine="mBase.AddView(lbl, 0, 0, mBase.Width, mBase.Heigh";
+_mbase.AddView((android.view.View)(_lbl.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 43;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 44;BA.debugLine="BackgroundColor = xui.PaintOrColorToColor(Props.G";
+_backgroundcolor = _xui.PaintOrColorToColor(_props.Get((Object)("ProgressColor")));
+ //BA.debugLineNum = 45;BA.debugLine="CornerRadius = Props.GetDefault(\"CornerRadius\", 1";
+_cornerradius = (int)(BA.ObjectToNumber(_props.GetDefault((Object)("CornerRadius"),(Object)(15))));
+ //BA.debugLineNum = 46;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 47;BA.debugLine="End Sub";
+return "";
+}
+public int _getprogresscolor() throws Exception{
+ //BA.debugLineNum = 103;BA.debugLine="Public Sub getProgressColor As Int";
+ //BA.debugLineNum = 104;BA.debugLine="Return BackgroundColor";
+if (true) return _backgroundcolor;
+ //BA.debugLineNum = 105;BA.debugLine="End Sub";
+return 0;
+}
+public int _getvalue() throws Exception{
+ //BA.debugLineNum = 157;BA.debugLine="Public Sub getValue As Int";
+ //BA.debugLineNum = 158;BA.debugLine="Return mValue";
+if (true) return _mvalue;
+ //BA.debugLineNum = 159;BA.debugLine="End Sub";
+return 0;
+}
+public boolean _getvisible() throws Exception{
+ //BA.debugLineNum = 153;BA.debugLine="Public Sub getVisible As Boolean";
+ //BA.debugLineNum = 154;BA.debugLine="Return mBase.Visible";
+if (true) return _mbase.getVisible();
+ //BA.debugLineNum = 155;BA.debugLine="End Sub";
+return false;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 26;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 27;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 28;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return "";
+}
+public String _setprogresscolor(int _c) throws Exception{
+ //BA.debugLineNum = 107;BA.debugLine="Public Sub setProgressColor (c As Int)";
+ //BA.debugLineNum = 108;BA.debugLine="BackgroundColor = c";
+_backgroundcolor = _c;
+ //BA.debugLineNum = 109;BA.debugLine="UpdateGraphics";
+_updategraphics();
+ //BA.debugLineNum = 110;BA.debugLine="End Sub";
+return "";
+}
+public String _setvalue(int _v) throws Exception{
+ //BA.debugLineNum = 161;BA.debugLine="Public Sub setValue (v As Int)";
+ //BA.debugLineNum = 162;BA.debugLine="mValue = Max(0, Min(100, v))";
+_mvalue = (int) (__c.Max(0,__c.Min(100,_v)));
+ //BA.debugLineNum = 163;BA.debugLine="End Sub";
+return "";
+}
+public String _setvaluenoanimation(int _v) throws Exception{
+ //BA.debugLineNum = 165;BA.debugLine="Public Sub SetValueNoAnimation (v As Int)";
+ //BA.debugLineNum = 166;BA.debugLine="setValue(v)";
+_setvalue(_v);
+ //BA.debugLineNum = 167;BA.debugLine="CurrentValue = mValue";
+_currentvalue = (float) (_mvalue);
+ //BA.debugLineNum = 168;BA.debugLine="End Sub";
+return "";
+}
+public String _setvisible(boolean _b) throws Exception{
+ //BA.debugLineNum = 145;BA.debugLine="Public Sub setVisible(b As Boolean)";
+ //BA.debugLineNum = 146;BA.debugLine="BusyIndex = BusyIndex + 1";
+_busyindex = (int) (_busyindex+1);
+ //BA.debugLineNum = 147;BA.debugLine="If b Then";
+if (_b) {
+ //BA.debugLineNum = 148;BA.debugLine="BusyLoop";
+_busyloop();
+ };
+ //BA.debugLineNum = 150;BA.debugLine="mBase.Visible = b";
+_mbase.setVisible(_b);
+ //BA.debugLineNum = 151;BA.debugLine="End Sub";
+return "";
+}
+public String _updategraphics() throws Exception{
+int _width = 0;
+b4a.example.bitmapcreator _template = null;
+b4a.example.bitmapcreator._argbcolor _bcolor = null;
+ //BA.debugLineNum = 112;BA.debugLine="Public Sub UpdateGraphics";
+ //BA.debugLineNum = 113;BA.debugLine="EmptyBrush = bc.CreateBrushFromColor(EmptyColor)";
+_emptybrush = _bc._createbrushfromcolor(_emptycolor);
+ //BA.debugLineNum = 114;BA.debugLine="TransparentBrush = bc.CreateBrushFromColor(xui.Co";
+_transparentbrush = _bc._createbrushfromcolor(_xui.Color_Transparent);
+ //BA.debugLineNum = 115;BA.debugLine="Dim Width As Int = 40";
+_width = (int) (40);
+ //BA.debugLineNum = 116;BA.debugLine="Dim Template As BitmapCreator";
+_template = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 117;BA.debugLine="Dim bcolor As ARGBColor";
+_bcolor = new b4a.example.bitmapcreator._argbcolor();
+ //BA.debugLineNum = 118;BA.debugLine="bc.ColorToARGB(BackgroundColor, bcolor)";
+_bc._colortoargb(_backgroundcolor,_bcolor);
+ //BA.debugLineNum = 119;BA.debugLine="bcolor.r = Min(255, bcolor.r * 1.5)";
+_bcolor.r = (int) (__c.Min(255,_bcolor.r*1.5));
+ //BA.debugLineNum = 120;BA.debugLine="bcolor.g = Min(255, bcolor.g * 1.5)";
+_bcolor.g = (int) (__c.Min(255,_bcolor.g*1.5));
+ //BA.debugLineNum = 121;BA.debugLine="bcolor.b = Min(255, bcolor.b * 1.5)";
+_bcolor.b = (int) (__c.Min(255,_bcolor.b*1.5));
+ //BA.debugLineNum = 122;BA.debugLine="If Vertical Then";
+if (_vertical) {
+ //BA.debugLineNum = 123;BA.debugLine="Template.Initialize(mBase.Width / xui.Scale, mBa";
+_template._initialize(ba,(int) (_mbase.getWidth()/(double)_xui.getScale()),(int) (_mbase.getWidth()/(double)_xui.getScale()+_width));
+ }else {
+ //BA.debugLineNum = 125;BA.debugLine="Template.Initialize(mBase.Height / xui.Scale + W";
+_template._initialize(ba,(int) (_mbase.getHeight()/(double)_xui.getScale()+_width),(int) (_mbase.getHeight()/(double)_xui.getScale()));
+ };
+ //BA.debugLineNum = 128;BA.debugLine="Template.DrawRect(Template.TargetRect, Background";
+_template._drawrect(_template._targetrect,_backgroundcolor,__c.True,(int) (0));
+ //BA.debugLineNum = 129;BA.debugLine="If Vertical Then";
+if (_vertical) {
+ //BA.debugLineNum = 130;BA.debugLine="Template.DrawLine(-Width / 2, Width / 2, Templat";
+_template._drawline((float) (-_width/(double)2),(float) (_width/(double)2),(float) (_template._mwidth+_width/(double)2),(float) (_template._mheight-_width/(double)2),_bc._argbtocolor(_bcolor),_width);
+ }else {
+ //BA.debugLineNum = 132;BA.debugLine="Template.DrawLine(Width / 2, -Width / 2, Templat";
+_template._drawline((float) (_width/(double)2),(float) (-_width/(double)2),(float) (_template._mwidth-_width/(double)2),(float) (_template._mheight+_width/(double)2),_bc._argbtocolor(_bcolor),_width);
+ };
+ //BA.debugLineNum = 134;BA.debugLine="BusyBrush = bc.CreateBrushFromBitmapCreator(Templ";
+_busybrush = _bc._createbrushfrombitmapcreator(_template);
+ //BA.debugLineNum = 135;BA.debugLine="If mValue = 100 Then";
+if (_mvalue==100) {
+ //BA.debugLineNum = 136;BA.debugLine="bc.DrawRectRounded(bc.TargetRect, BackgroundColo";
+_bc._drawrectrounded(_bc._targetrect,_backgroundcolor,__c.True,(int) (0),(int) (15));
+ }else {
+ //BA.debugLineNum = 138;BA.debugLine="bc.DrawRectRounded2(bc.TargetRect, EmptyBrush, T";
+_bc._drawrectrounded2(_bc._targetrect,_emptybrush,__c.True,(int) (0),(int) (15));
+ };
+ //BA.debugLineNum = 140;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, mIV)";
+_bc._setbitmaptoimageview(_bc._getbitmap(),_miv);
+ //BA.debugLineNum = 141;BA.debugLine="setVisible(mBase.Visible)";
+_setvisible(_mbase.getVisible());
+ //BA.debugLineNum = 142;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/appupdater.java b/B4A/Objects/src/reparto_izca/keymon/lat/appupdater.java
new file mode 100644
index 0000000..320f188
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/appupdater.java
@@ -0,0 +1,676 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.objects.ServiceHelper;
+import anywheresoftware.b4a.debug.*;
+
+public class appupdater extends android.app.Service{
+ public static class appupdater_BR extends android.content.BroadcastReceiver {
+
+ @Override
+ public void onReceive(android.content.Context context, android.content.Intent intent) {
+ BA.LogInfo("** Receiver (appupdater) OnReceive **");
+ android.content.Intent in = new android.content.Intent(context, appupdater.class);
+ if (intent != null)
+ in.putExtra("b4a_internal_intent", intent);
+ ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, false, BA.class);
+ }
+
+ }
+ static appupdater mostCurrent;
+ public static BA processBA;
+ private ServiceHelper _service;
+ public static Class> getObject() {
+ return appupdater.class;
+ }
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.appupdater");
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ }
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ processBA.loadHtSubs(this.getClass());
+ ServiceHelper.init();
+ }
+ _service = new ServiceHelper(this);
+ processBA.service = this;
+
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.appupdater", processBA, _service, anywheresoftware.b4a.keywords.Common.Density);
+ }
+ if (!false && ServiceHelper.StarterHelper.startFromServiceCreate(processBA, false) == false) {
+
+ }
+ else {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("*** Service (appupdater) Create ***");
+ processBA.raiseEvent(null, "service_create");
+ }
+ processBA.runHook("oncreate", this, null);
+ if (false) {
+ if (ServiceHelper.StarterHelper.runWaitForLayouts() == false) {
+ BA.LogInfo("stopping spontaneous created service");
+ stopSelf();
+ }
+ }
+ }
+ @Override
+ public void onStart(android.content.Intent intent, int startId) {
+ onStartCommand(intent, 0, 0);
+ }
+ @Override
+ public int onStartCommand(final android.content.Intent intent, int flags, int startId) {
+ if (ServiceHelper.StarterHelper.onStartCommand(processBA, new Runnable() {
+ public void run() {
+ handleStart(intent);
+ }}))
+ ;
+ else {
+ ServiceHelper.StarterHelper.addWaitForLayout (new Runnable() {
+ public void run() {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Service (appupdater) Create **");
+ processBA.raiseEvent(null, "service_create");
+ handleStart(intent);
+ ServiceHelper.StarterHelper.removeWaitForLayout();
+ }
+ });
+ }
+ processBA.runHook("onstartcommand", this, new Object[] {intent, flags, startId});
+ return android.app.Service.START_NOT_STICKY;
+ }
+ public void onTaskRemoved(android.content.Intent rootIntent) {
+ super.onTaskRemoved(rootIntent);
+ if (false)
+ processBA.raiseEvent(null, "service_taskremoved");
+
+ }
+ private void handleStart(android.content.Intent intent) {
+ BA.LogInfo("** Service (appupdater) Start **");
+ java.lang.reflect.Method startEvent = processBA.htSubs.get("service_start");
+ if (startEvent != null) {
+ if (startEvent.getParameterTypes().length > 0) {
+ anywheresoftware.b4a.objects.IntentWrapper iw = ServiceHelper.StarterHelper.handleStartIntent(intent, _service, processBA);
+ processBA.raiseEvent(null, "service_start", iw);
+ }
+ else {
+ processBA.raiseEvent(null, "service_start");
+ }
+ }
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ if (false) {
+ BA.LogInfo("** Service (appupdater) Destroy (ignored)**");
+ }
+ else {
+ BA.LogInfo("** Service (appupdater) Destroy **");
+ processBA.raiseEvent(null, "service_destroy");
+ processBA.service = null;
+ mostCurrent = null;
+ processBA.setActivityPaused(true);
+ processBA.runHook("ondestroy", this, null);
+ }
+ }
+
+@Override
+ public android.os.IBinder onBind(android.content.Intent intent) {
+ return null;
+ }public anywheresoftware.b4a.keywords.Common __c = null;
+public static String _lnk = "";
+public static anywheresoftware.b4a.objects.NotificationWrapper _nnewapp = null;
+public static int _nnewappnid = 0;
+public static anywheresoftware.b4j.object.JavaObject _nativeme = null;
+public static anywheresoftware.b4a.objects.NotificationWrapper _n2 = null;
+public static int _n2id = 0;
+public static String _sharedfolder = "";
+public static boolean _usefileprovider = false;
+public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+public static reparto_izca.keymon.lat.appupdater._mnewversion _newapp = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _mnewversion{
+public boolean IsInitialized;
+public boolean update;
+public boolean nonewAPP;
+public boolean notifyUser;
+public String version;
+public String newMsg;
+public String okMsg;
+public String appLink;
+public void Initialize() {
+IsInitialized = true;
+update = false;
+nonewAPP = false;
+notifyUser = false;
+version = "";
+newMsg = "";
+okMsg = "";
+appLink = "";
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public static anywheresoftware.b4a.objects.NotificationWrapper _createnotification(String _title,String _content,String _icon,Object _targetactivity,boolean _sound,boolean _vibrate) throws Exception{
+ //BA.debugLineNum = 222;BA.debugLine="Private Sub CreateNotification(Title As String, Co";
+ //BA.debugLineNum = 223;BA.debugLine="n2.Initialize";
+_n2.Initialize();
+ //BA.debugLineNum = 224;BA.debugLine="n2.Light = False";
+_n2.setLight(anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 225;BA.debugLine="n2.Vibrate = Vibrate";
+_n2.setVibrate(_vibrate);
+ //BA.debugLineNum = 226;BA.debugLine="n2.Sound = Sound";
+_n2.setSound(_sound);
+ //BA.debugLineNum = 227;BA.debugLine="n2.OnGoingEvent = True";
+_n2.setOnGoingEvent(anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 228;BA.debugLine="n2.Icon = Icon";
+_n2.setIcon(_icon);
+ //BA.debugLineNum = 229;BA.debugLine="n2.SetInfo(Title, Content, TargetActivity)";
+_n2.SetInfoNew(processBA,BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_content),_targetactivity);
+ //BA.debugLineNum = 230;BA.debugLine="n2.Notify(nNewAppnID)";
+_n2.Notify(_nnewappnid);
+ //BA.debugLineNum = 231;BA.debugLine="End Sub";
+return null;
+}
+public static anywheresoftware.b4a.objects.NotificationWrapper _createnotification2(String _title,String _content,String _icon,Object _targetactivity,boolean _sound,boolean _vibrate,anywheresoftware.b4a.objects.NotificationWrapper _pn,int _pnid) throws Exception{
+ //BA.debugLineNum = 206;BA.debugLine="Private Sub CreateNotification2(Title As String, C";
+ //BA.debugLineNum = 209;BA.debugLine="pN.Initialize2(pN.IMPORTANCE_HIGH)";
+_pn.Initialize2(_pn.IMPORTANCE_HIGH);
+ //BA.debugLineNum = 212;BA.debugLine="pN.Vibrate = Vibrate";
+_pn.setVibrate(_vibrate);
+ //BA.debugLineNum = 213;BA.debugLine="pN.Sound = Sound";
+_pn.setSound(_sound);
+ //BA.debugLineNum = 215;BA.debugLine="pN.Icon = Icon";
+_pn.setIcon(_icon);
+ //BA.debugLineNum = 216;BA.debugLine="pN.AutoCancel = True";
+_pn.setAutoCancel(anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 217;BA.debugLine="pN.SetInfo(Title, Content, TargetActivity)";
+_pn.SetInfoNew(processBA,BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_content),_targetactivity);
+ //BA.debugLineNum = 218;BA.debugLine="pN.Notify(pNID)";
+_pn.Notify(_pnid);
+ //BA.debugLineNum = 219;BA.debugLine="Return pN";
+if (true) return _pn;
+ //BA.debugLineNum = 220;BA.debugLine="End Sub";
+return null;
+}
+public static reparto_izca.keymon.lat.httpjob _download(Object _callback,String _link) throws Exception{
+reparto_izca.keymon.lat.httpjob _j = null;
+ //BA.debugLineNum = 199;BA.debugLine="Sub Download (Callback As Object, link As String)";
+ //BA.debugLineNum = 200;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 201;BA.debugLine="j.Initialize(\"\", Callback)";
+_j._initialize /*String*/ (processBA,"",_callback);
+ //BA.debugLineNum = 202;BA.debugLine="j.Download(link)";
+_j._download /*String*/ (_link);
+ //BA.debugLineNum = 203;BA.debugLine="Return j";
+if (true) return _j;
+ //BA.debugLineNum = 204;BA.debugLine="End Sub";
+return null;
+}
+public static String _download_destroy() throws Exception{
+ //BA.debugLineNum = 194;BA.debugLine="Sub download_Destroy";
+ //BA.debugLineNum = 195;BA.debugLine="n2.Cancel(n2ID)";
+_n2.Cancel(_n2id);
+ //BA.debugLineNum = 196;BA.debugLine="Service.StopForeground(n2ID)";
+mostCurrent._service.StopForeground(_n2id);
+ //BA.debugLineNum = 197;BA.debugLine="End Sub";
+return "";
+}
+public static void _download_newapk() throws Exception{
+ResumableSub_download_newApk rsub = new ResumableSub_download_newApk(null);
+rsub.resume(processBA, null);
+}
+public static class ResumableSub_download_newApk extends BA.ResumableSub {
+public ResumableSub_download_newApk(reparto_izca.keymon.lat.appupdater parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.appupdater parent;
+reparto_izca.keymon.lat.httpjob _job_newapp = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _outnewapk = null;
+anywheresoftware.b4a.objects.IntentWrapper _in = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 159;BA.debugLine="Log(\"Descargando actualización\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("5851971","Descargando actualización",0);
+ //BA.debugLineNum = 160;BA.debugLine="B4XPages.ShowPage(\"login\")";
+parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"login");
+ //BA.debugLineNum = 161;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Descargando ac";
+parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Descargando actualización");
+ //BA.debugLineNum = 162;BA.debugLine="Starter.muestraProgreso = 1";
+parent.mostCurrent._starter._muestraprogreso /*String*/ = BA.NumberToString(1);
+ //BA.debugLineNum = 163;BA.debugLine="Dim job_newAPP As HttpJob";
+_job_newapp = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 164;BA.debugLine="job_newAPP.Initialize(\"job_newAPP\",Me)";
+_job_newapp._initialize /*String*/ (processBA,"job_newAPP",appupdater.getObject());
+ //BA.debugLineNum = 165;BA.debugLine="job_newAPP.Download(newApp.appLink)";
+_job_newapp._download /*String*/ (parent._newapp.appLink /*String*/ );
+ //BA.debugLineNum = 166;BA.debugLine="Wait for (job_newAPP) JobDone (job_newAPP As Http";
+anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, this, (Object)(_job_newapp));
+this.state = 9;
+return;
+case 9:
+//C
+this.state = 1;
+_job_newapp = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 167;BA.debugLine="If job_newAPP.Success = True Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 8;
+if (_job_newapp._success /*boolean*/ ==anywheresoftware.b4a.keywords.Common.True) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 169;BA.debugLine="If File.Exists(SharedFolder,\"newapp.apk\") Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 7;
+if (anywheresoftware.b4a.keywords.Common.File.Exists(parent._sharedfolder,"newapp.apk")) {
+this.state = 6;
+}if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 170;BA.debugLine="File.Delete(SharedFolder,\"newapp.apk\")";
+anywheresoftware.b4a.keywords.Common.File.Delete(parent._sharedfolder,"newapp.apk");
+ if (true) break;
+
+case 7:
+//C
+this.state = 8;
+;
+ //BA.debugLineNum = 173;BA.debugLine="Dim outNewAPK As OutputStream = File.OpenOutput(";
+_outnewapk = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_outnewapk = anywheresoftware.b4a.keywords.Common.File.OpenOutput(parent._sharedfolder,"newapp.apk",anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 174;BA.debugLine="File.Copy2(job_newAPP.GetInputStream, outNewAPK)";
+anywheresoftware.b4a.keywords.Common.File.Copy2((java.io.InputStream)(_job_newapp._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ ().getObject()),(java.io.OutputStream)(_outnewapk.getObject()));
+ //BA.debugLineNum = 175;BA.debugLine="outNewAPK.Close";
+_outnewapk.Close();
+ //BA.debugLineNum = 177;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
+parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ocultaprogreso /*String*/ ();
+ //BA.debugLineNum = 178;BA.debugLine="Log(\"ocultamos prigreso DOWNLOAD APK\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("5851990","ocultamos prigreso DOWNLOAD APK",0);
+ if (true) break;
+
+case 8:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 180;BA.debugLine="job_newAPP.Release";
+_job_newapp._release /*String*/ ();
+ //BA.debugLineNum = 182;BA.debugLine="Dim in As Intent";
+_in = new anywheresoftware.b4a.objects.IntentWrapper();
+ //BA.debugLineNum = 183;BA.debugLine="in.Initialize(in.ACTION_VIEW,\"\" )";
+_in.Initialize(_in.ACTION_VIEW,"");
+ //BA.debugLineNum = 184;BA.debugLine="SetFileUriAsIntentData(in, \"newapp.apk\")";
+_setfileuriasintentdata(_in,"newapp.apk");
+ //BA.debugLineNum = 186;BA.debugLine="in.SetType(\"application/vnd.android.package-archi";
+_in.SetType("application/vnd.android.package-archive");
+ //BA.debugLineNum = 187;BA.debugLine="StartActivity(in)";
+anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(_in.getObject()));
+ //BA.debugLineNum = 188;BA.debugLine="n2.Cancel(nNewAppnID)";
+parent._n2.Cancel(parent._nnewappnid);
+ //BA.debugLineNum = 190;BA.debugLine="StopService(Me)";
+anywheresoftware.b4a.keywords.Common.StopService(processBA,appupdater.getObject());
+ //BA.debugLineNum = 192;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public static void _jobdone(reparto_izca.keymon.lat.httpjob _job_newapp) throws Exception{
+}
+public static String _download_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
+ //BA.debugLineNum = 152;BA.debugLine="Sub download_Start (StartingIntent As Intent)";
+ //BA.debugLineNum = 153;BA.debugLine="download_newApk";
+_download_newapk();
+ //BA.debugLineNum = 154;BA.debugLine="End Sub";
+return "";
+}
+public static String _fileprovider_init() throws Exception{
+anywheresoftware.b4a.phone.Phone _p = null;
+ //BA.debugLineNum = 237;BA.debugLine="Sub fileProvider_init";
+ //BA.debugLineNum = 238;BA.debugLine="Dim p As Phone";
+_p = new anywheresoftware.b4a.phone.Phone();
+ //BA.debugLineNum = 239;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable =";
+if (_p.getSdkVersion()>=24 || anywheresoftware.b4a.keywords.Common.File.getExternalWritable()==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 240;BA.debugLine="UseFileProvider = True";
+_usefileprovider = anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 241;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s";
+_sharedfolder = anywheresoftware.b4a.keywords.Common.File.Combine(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"shared");
+ //BA.debugLineNum = 242;BA.debugLine="If Not(File.IsDirectory(File.DirInternal,\"shared";
+if (anywheresoftware.b4a.keywords.Common.Not(anywheresoftware.b4a.keywords.Common.File.IsDirectory(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"shared"))) {
+ //BA.debugLineNum = 243;BA.debugLine="File.MakeDir(\"\", SharedFolder)";
+anywheresoftware.b4a.keywords.Common.File.MakeDir("",_sharedfolder);
+ };
+ }else {
+ //BA.debugLineNum = 246;BA.debugLine="UseFileProvider = False";
+_usefileprovider = anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 247;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha";
+_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
+ };
+ //BA.debugLineNum = 249;BA.debugLine="Log($\"Using FileProvider? - ${UseFileProvider}\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("51245196",("Using FileProvider? - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
+ //BA.debugLineNum = 250;BA.debugLine="End Sub";
+return "";
+}
+public static Object _getfileuri(String _filename) throws Exception{
+anywheresoftware.b4j.object.JavaObject _uri = null;
+anywheresoftware.b4j.object.JavaObject _f = null;
+anywheresoftware.b4j.object.JavaObject _fp = null;
+anywheresoftware.b4j.object.JavaObject _context = null;
+ //BA.debugLineNum = 253;BA.debugLine="Sub GetFileUri (FileName As String) As Object";
+ //BA.debugLineNum = 254;BA.debugLine="Try";
+try { //BA.debugLineNum = 255;BA.debugLine="If Not(UseFileProvider) Then";
+if (anywheresoftware.b4a.keywords.Common.Not(_usefileprovider)) {
+ //BA.debugLineNum = 256;BA.debugLine="Dim uri As JavaObject";
+_uri = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 257;BA.debugLine="Return uri.InitializeStatic(\"android.net.Uri\").";
+if (true) return _uri.InitializeStatic("android.net.Uri").RunMethod("parse",new Object[]{(Object)("file://"+anywheresoftware.b4a.keywords.Common.File.Combine(_sharedfolder,_filename))});
+ };
+ //BA.debugLineNum = 259;BA.debugLine="Dim f As JavaObject";
+_f = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 260;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh";
+_f.InitializeNewInstance("java.io.File",new Object[]{(Object)(_sharedfolder),(Object)(_filename)});
+ //BA.debugLineNum = 261;BA.debugLine="Dim fp As JavaObject";
+_fp = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 262;BA.debugLine="Dim context As JavaObject";
+_context = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 263;BA.debugLine="context.InitializeContext";
+_context.InitializeContext(processBA);
+ //BA.debugLineNum = 264;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content.";
+_fp.InitializeStatic("androidx.core.content.FileProvider");
+ //BA.debugLineNum = 265;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte";
+if (true) return _fp.RunMethod("getUriForFile",new Object[]{(Object)(_context.getObject()),(Object)(anywheresoftware.b4a.keywords.Common.Application.getPackageName()+".provider"),(Object)(_f.getObject())});
+ }
+ catch (Exception e14) {
+ processBA.setLastException(e14); //BA.debugLineNum = 267;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last";
+anywheresoftware.b4a.keywords.Common.LogImpl("51310734","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
+ //BA.debugLineNum = 268;BA.debugLine="Return \"\"";
+if (true) return (Object)("");
+ };
+ //BA.debugLineNum = 270;BA.debugLine="End Sub";
+return null;
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 70;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 75;BA.debugLine="Public lnk As String = \"https://keymon.net/movil/";
+_lnk = "https://keymon.net/movil/izca/izca_reparto.ver";
+ //BA.debugLineNum = 85;BA.debugLine="Public nNewApp As Notification";
+_nnewapp = new anywheresoftware.b4a.objects.NotificationWrapper();
+ //BA.debugLineNum = 86;BA.debugLine="Public nNewAppnID As Int = 16";
+_nnewappnid = (int) (16);
+ //BA.debugLineNum = 88;BA.debugLine="Dim nativeMe As JavaObject";
+_nativeme = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 89;BA.debugLine="Dim n2 As Notification";
+_n2 = new anywheresoftware.b4a.objects.NotificationWrapper();
+ //BA.debugLineNum = 90;BA.debugLine="Dim n2ID As Int = 16";
+_n2id = (int) (16);
+ //BA.debugLineNum = 92;BA.debugLine="Public SharedFolder As String";
+_sharedfolder = "";
+ //BA.debugLineNum = 93;BA.debugLine="Public UseFileProvider As Boolean";
+_usefileprovider = false;
+ //BA.debugLineNum = 94;BA.debugLine="Private rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 96;BA.debugLine="Type mNewVersion(update As Boolean, nonewAPP As B";
+;
+ //BA.debugLineNum = 98;BA.debugLine="Public newApp As mNewVersion";
+_newapp = new reparto_izca.keymon.lat.appupdater._mnewversion();
+ //BA.debugLineNum = 99;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_create() throws Exception{
+ //BA.debugLineNum = 101;BA.debugLine="Sub Service_Create";
+ //BA.debugLineNum = 102;BA.debugLine="Log(\"appUpdater(), Service_Create\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("5655361","appUpdater(), Service_Create",0);
+ //BA.debugLineNum = 103;BA.debugLine="newApp.Initialize";
+_newapp.Initialize();
+ //BA.debugLineNum = 104;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT";
+mostCurrent._service.AutomaticForegroundMode = mostCurrent._service.AUTOMATIC_FOREGROUND_NEVER;
+ //BA.debugLineNum = 105;BA.debugLine="n2.Initialize";
+_n2.Initialize();
+ //BA.debugLineNum = 106;BA.debugLine="nativeMe.InitializeContext";
+_nativeme.InitializeContext(processBA);
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_destroy() throws Exception{
+ //BA.debugLineNum = 233;BA.debugLine="Sub Service_Destroy";
+ //BA.debugLineNum = 234;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("51179649","appUpdater(), Service_Destroy",0);
+ //BA.debugLineNum = 235;BA.debugLine="End Sub";
+return "";
+}
+public static void _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
+ResumableSub_Service_Start rsub = new ResumableSub_Service_Start(null,_startingintent);
+rsub.resume(processBA, null);
+}
+public static class ResumableSub_Service_Start extends BA.ResumableSub {
+public ResumableSub_Service_Start(reparto_izca.keymon.lat.appupdater parent,anywheresoftware.b4a.objects.IntentWrapper _startingintent) {
+this.parent = parent;
+this._startingintent = _startingintent;
+}
+reparto_izca.keymon.lat.appupdater parent;
+anywheresoftware.b4a.objects.IntentWrapper _startingintent;
+reparto_izca.keymon.lat.httpjob _j = null;
+String[] _app = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+try {
+
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 110;BA.debugLine="Log(\"appUpdater(), Service_Start\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("5720897","appUpdater(), Service_Start",0);
+ //BA.debugLineNum = 112;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua";
+parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Buscando actualización");
+ //BA.debugLineNum = 113;BA.debugLine="Log(\"Buscando actualización\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("5720900","Buscando actualización",0);
+ //BA.debugLineNum = 114;BA.debugLine="fileProvider_init";
+_fileprovider_init();
+ //BA.debugLineNum = 115;BA.debugLine="Wait For (Download(Me, lnk)) JobDone (j As HttpJo";
+anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, this, (Object)(_download(appupdater.getObject(),parent._lnk)));
+this.state = 20;
+return;
+case 20:
+//C
+this.state = 1;
+_j = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 116;BA.debugLine="If j.Success Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 19;
+if (_j._success /*boolean*/ ) {
+this.state = 3;
+}else {
+this.state = 18;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 117;BA.debugLine="Try";
+if (true) break;
+
+case 4:
+//try
+this.state = 16;
+this.catchState = 15;
+this.state = 6;
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+this.catchState = 15;
+ //BA.debugLineNum = 118;BA.debugLine="Dim app() As String = Regex.Split(Chr(9),j.GetS";
+_app = anywheresoftware.b4a.keywords.Common.Regex.Split(BA.ObjectToString(anywheresoftware.b4a.keywords.Common.Chr((int) (9))),_j._getstring /*String*/ ());
+ //BA.debugLineNum = 120;BA.debugLine="newApp.appLink = app(3) 'Liga a nueva app";
+parent._newapp.appLink /*String*/ = _app[(int) (3)];
+ //BA.debugLineNum = 121;BA.debugLine="newApp.newMsg = app(1) 'Texto de que hay actual";
+parent._newapp.newMsg /*String*/ = _app[(int) (1)];
+ //BA.debugLineNum = 122;BA.debugLine="newApp.okMsg = app(2) 'Texto de app al corrient";
+parent._newapp.okMsg /*String*/ = _app[(int) (2)];
+ //BA.debugLineNum = 123;BA.debugLine="newApp.version = app(0) 'Version actual";
+parent._newapp.version /*String*/ = _app[(int) (0)];
+ //BA.debugLineNum = 125;BA.debugLine="Log($\"Application.VersionName=${Application.Ver";
+anywheresoftware.b4a.keywords.Common.LogImpl("5720912",("Application.VersionName="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()))+", newApp="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._newapp))+""),0);
+ //BA.debugLineNum = 128;BA.debugLine="If newApp.version = Application.VersionName Th";
+if (true) break;
+
+case 7:
+//if
+this.state = 10;
+if ((parent._newapp.version /*String*/ ).equals(anywheresoftware.b4a.keywords.Common.Application.getVersionName())) {
+this.state = 9;
+}if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 129;BA.debugLine="newApp.update = False";
+parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 130;BA.debugLine="Log(\"No new app\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("5720917","No new app",0);
+ //BA.debugLineNum = 131;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
+parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
+ //BA.debugLineNum = 133;BA.debugLine="CreateNotification2(\"Aplicacion al corriente\",";
+_createnotification2("Aplicacion al corriente","No hay actualizaciones disponibles","ic_file_download_white_24dp",(Object)(parent.mostCurrent._main.getObject()),anywheresoftware.b4a.keywords.Common.True,anywheresoftware.b4a.keywords.Common.True,parent._nnewapp,parent._nnewappnid);
+ if (true) break;
+;
+ //BA.debugLineNum = 135;BA.debugLine="If newApp.version <> Application.VersionName T";
+
+case 10:
+//if
+this.state = 13;
+if ((parent._newapp.version /*String*/ ).equals(anywheresoftware.b4a.keywords.Common.Application.getVersionName()) == false) {
+this.state = 12;
+}if (true) break;
+
+case 12:
+//C
+this.state = 13;
+ //BA.debugLineNum = 136;BA.debugLine="newApp.update = True";
+parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 137;BA.debugLine="Log(\"New app true\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("5720924","New app true",0);
+ //BA.debugLineNum = 138;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
+parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
+ if (true) break;
+
+case 13:
+//C
+this.state = 16;
+;
+ if (true) break;
+
+case 15:
+//C
+this.state = 16;
+this.catchState = 0;
+ //BA.debugLineNum = 143;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE";
+anywheresoftware.b4a.keywords.Common.LogImpl("5720930","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
+ if (true) break;
+if (true) break;
+
+case 16:
+//C
+this.state = 19;
+this.catchState = 0;
+;
+ if (true) break;
+
+case 18:
+//C
+this.state = 19;
+ //BA.debugLineNum = 146;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)";
+anywheresoftware.b4a.keywords.Common.LogImpl("5720933","appUpdater(), Job Failed "+parent._lnk,0);
+ if (true) break;
+
+case 19:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 148;BA.debugLine="j.Release";
+_j._release /*String*/ ();
+ //BA.debugLineNum = 150;BA.debugLine="End Sub";
+if (true) break;
+}}
+ catch (Exception e0) {
+
+if (catchState == 0)
+ throw e0;
+else {
+ state = catchState;
+processBA.setLastException(e0);}
+ }
+ }
+ }
+}
+public static String _setfileuriasintentdata(anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 274;BA.debugLine="Sub SetFileUriAsIntentData (Intent As Intent, File";
+ //BA.debugLineNum = 275;BA.debugLine="Dim jo As JavaObject = Intent";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_intent.getObject()));
+ //BA.debugLineNum = 276;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName";
+_jo.RunMethod("setData",new Object[]{_getfileuri(_filename)});
+ //BA.debugLineNum = 277;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN";
+_intent.setFlags(anywheresoftware.b4a.keywords.Common.Bit.Or(_intent.getFlags(),(int) (1)));
+ //BA.debugLineNum = 278;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbitset.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbitset.java
new file mode 100644
index 0000000..f54157f
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbitset.java
@@ -0,0 +1,125 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xbitset extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbitset");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xbitset.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public int[] _data = null;
+public int _msize = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 5;BA.debugLine="Private data() As Int";
+_data = new int[(int) (0)];
+;
+ //BA.debugLineNum = 7;BA.debugLine="Private mSize As Int";
+_msize = 0;
+ //BA.debugLineNum = 8;BA.debugLine="End Sub";
+return "";
+}
+public String _clear() throws Exception{
+ //BA.debugLineNum = 54;BA.debugLine="Public Sub Clear";
+ //BA.debugLineNum = 58;BA.debugLine="Dim data(Bit.ShiftRight(mSize, 5) + 1) As Int";
+_data = new int[(int) (__c.Bit.ShiftRight(_msize,(int) (5))+1)];
+;
+ //BA.debugLineNum = 60;BA.debugLine="End Sub";
+return "";
+}
+public boolean _get(int _index) throws Exception{
+int _dindex = 0;
+int _offset = 0;
+int _blockvalue = 0;
+ //BA.debugLineNum = 38;BA.debugLine="Public Sub Get(Index As Int) As Boolean";
+ //BA.debugLineNum = 39;BA.debugLine="Dim dindex As Int = Bit.ShiftRight(Index, 5)";
+_dindex = __c.Bit.ShiftRight(_index,(int) (5));
+ //BA.debugLineNum = 40;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)";
+_offset = __c.Bit.And(((int)0x0000001f),_index);
+ //BA.debugLineNum = 44;BA.debugLine="Dim BlockValue As Int = data(dindex)";
+_blockvalue = _data[_dindex];
+ //BA.debugLineNum = 46;BA.debugLine="Return Bit.And(BlockValue, Bit.ShiftLeft(1, offse";
+if (true) return __c.Bit.And(_blockvalue,__c.Bit.ShiftLeft((int) (1),_offset))!=0;
+ //BA.debugLineNum = 47;BA.debugLine="End Sub";
+return false;
+}
+public int _getsize() throws Exception{
+ //BA.debugLineNum = 49;BA.debugLine="Public Sub getSize As Int";
+ //BA.debugLineNum = 50;BA.debugLine="Return mSize";
+if (true) return _msize;
+ //BA.debugLineNum = 51;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,int _size) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 10;BA.debugLine="Public Sub Initialize (Size As Int)";
+ //BA.debugLineNum = 11;BA.debugLine="mSize = Size";
+_msize = _size;
+ //BA.debugLineNum = 12;BA.debugLine="Clear";
+_clear();
+ //BA.debugLineNum = 13;BA.debugLine="End Sub";
+return "";
+}
+public String _set(int _index,boolean _value) throws Exception{
+int _dindex = 0;
+int _offset = 0;
+int _blockvalue = 0;
+int _newblockvalue = 0;
+ //BA.debugLineNum = 16;BA.debugLine="Public Sub Set(Index As Int, Value As Boolean)";
+ //BA.debugLineNum = 17;BA.debugLine="Dim dindex As Int = Bit.ShiftRight(Index, 5)";
+_dindex = __c.Bit.ShiftRight(_index,(int) (5));
+ //BA.debugLineNum = 18;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)";
+_offset = __c.Bit.And(((int)0x0000001f),_index);
+ //BA.debugLineNum = 22;BA.debugLine="Dim BlockValue As Int = data(dindex)";
+_blockvalue = _data[_dindex];
+ //BA.debugLineNum = 24;BA.debugLine="Dim NewBlockValue As Int";
+_newblockvalue = 0;
+ //BA.debugLineNum = 25;BA.debugLine="If Value Then";
+if (_value) {
+ //BA.debugLineNum = 26;BA.debugLine="NewBlockValue = Bit.Or(BlockValue, Bit.ShiftLeft";
+_newblockvalue = __c.Bit.Or(_blockvalue,__c.Bit.ShiftLeft((int) (1),_offset));
+ }else {
+ //BA.debugLineNum = 28;BA.debugLine="NewBlockValue = Bit.And(BlockValue, Bit.Not(Bit.";
+_newblockvalue = __c.Bit.And(_blockvalue,__c.Bit.Not(__c.Bit.ShiftLeft((int) (1),_offset)));
+ };
+ //BA.debugLineNum = 33;BA.debugLine="data(dindex) = NewBlockValue";
+_data[_dindex] = _newblockvalue;
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbreadcrumb.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbreadcrumb.java
new file mode 100644
index 0000000..69c4445
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbreadcrumb.java
@@ -0,0 +1,396 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xbreadcrumb extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbreadcrumb");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xbreadcrumb.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public anywheresoftware.b4a.objects.collections.List _mitems = null;
+public anywheresoftware.b4a.objects.collections.List _rightpositions = null;
+public int _textcolor = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _fnt = null;
+public int _offset = 0;
+public b4a.example.bitmapcreator _bc = null;
+public int _crumbcolor = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _touchpanel = null;
+public int _presseditem = 0;
+public Object _tag = null;
+public boolean _mhaptic = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 51;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As";
+ //BA.debugLineNum = 52;BA.debugLine="cvs.Resize(Width, Height)";
+_cvs.Resize((float) (_width),(float) (_height));
+ //BA.debugLineNum = 53;BA.debugLine="TouchPanel.SetLayoutAnimated(0, 0, 0, Width, Heig";
+_touchpanel.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 54;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 6;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 7;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 8;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 10;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 11;BA.debugLine="Private mItems As List";
+_mitems = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 12;BA.debugLine="Private RightPositions As List";
+_rightpositions = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 13;BA.debugLine="Public TextColor As Int";
+_textcolor = 0;
+ //BA.debugLineNum = 14;BA.debugLine="Public fnt As B4XFont";
+_fnt = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
+ //BA.debugLineNum = 15;BA.debugLine="Private offset As Int = 10dip";
+_offset = __c.DipToCurrent((int) (10));
+ //BA.debugLineNum = 16;BA.debugLine="Private bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 17;BA.debugLine="Public CrumbColor As Int";
+_crumbcolor = 0;
+ //BA.debugLineNum = 18;BA.debugLine="Private TouchPanel As B4XView";
+_touchpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Private PressedItem As Int = -1";
+_presseditem = (int) (-1);
+ //BA.debugLineNum = 20;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 21;BA.debugLine="Public mHaptic As Boolean";
+_mhaptic = false;
+ //BA.debugLineNum = 22;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+String _items = "";
+String _s = "";
+ //BA.debugLineNum = 33;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 34;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 36;BA.debugLine="cvs.Initialize(mBase)";
+_cvs.Initialize(_mbase);
+ //BA.debugLineNum = 37;BA.debugLine="Dim xlbl As B4XView = Lbl";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 38;BA.debugLine="fnt = xlbl.Font";
+_fnt = _xlbl.getFont();
+ //BA.debugLineNum = 39;BA.debugLine="TextColor = xlbl.TextColor";
+_textcolor = _xlbl.getTextColor();
+ //BA.debugLineNum = 40;BA.debugLine="CrumbColor = xui.PaintOrColorToColor(Props.Get(\"C";
+_crumbcolor = _xui.PaintOrColorToColor(_props.Get((Object)("CrumbColor")));
+ //BA.debugLineNum = 41;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals";
+_mhaptic = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False)));
+ //BA.debugLineNum = 42;BA.debugLine="TouchPanel = xui.CreatePanel(\"Touch\")";
+_touchpanel = _xui.CreatePanel(ba,"Touch");
+ //BA.debugLineNum = 43;BA.debugLine="mBase.AddView(TouchPanel, 0, 0, mBase.Width, mBas";
+_mbase.AddView((android.view.View)(_touchpanel.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 44;BA.debugLine="Dim items As String = Props.Get(\"Items\")";
+_items = BA.ObjectToString(_props.Get((Object)("Items")));
+ //BA.debugLineNum = 45;BA.debugLine="For Each s As String In Regex.Split(\"\\|\", items)";
+{
+final String[] group13 = __c.Regex.Split("\\|",_items);
+final int groupLen13 = group13.length
+;int index13 = 0;
+;
+for (; index13 < groupLen13;index13++){
+_s = group13[index13];
+ //BA.debugLineNum = 46;BA.debugLine="mItems.Add(s)";
+_mitems.Add((Object)(_s));
+ }
+};
+ //BA.debugLineNum = 48;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 49;BA.debugLine="End Sub";
+return "";
+}
+public String _draw() throws Exception{
+b4a.example.bitmapcreator._argbcolor _bcolor = null;
+int _strokecolor = 0;
+int[] _clrs = null;
+int _left = 0;
+int _i = 0;
+int _sc = 0;
+int _width = 0;
+ //BA.debugLineNum = 57;BA.debugLine="Private Sub Draw";
+ //BA.debugLineNum = 58;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
+_cvs.ClearRect(_cvs.getTargetRect());
+ //BA.debugLineNum = 59;BA.debugLine="Dim bcolor As ARGBColor";
+_bcolor = new b4a.example.bitmapcreator._argbcolor();
+ //BA.debugLineNum = 60;BA.debugLine="bc.ColorToARGB(CrumbColor, bcolor)";
+_bc._colortoargb(_crumbcolor,_bcolor);
+ //BA.debugLineNum = 61;BA.debugLine="bcolor.r = Min(255, bcolor.r * 2)";
+_bcolor.r = (int) (__c.Min(255,_bcolor.r*2));
+ //BA.debugLineNum = 62;BA.debugLine="bcolor.g = Min(255, bcolor.g * 2)";
+_bcolor.g = (int) (__c.Min(255,_bcolor.g*2));
+ //BA.debugLineNum = 63;BA.debugLine="bcolor.b = Min(255, bcolor.b * 2)";
+_bcolor.b = (int) (__c.Min(255,_bcolor.b*2));
+ //BA.debugLineNum = 64;BA.debugLine="Dim strokeColor As Int = bc.ARGBToColor(bcolor)";
+_strokecolor = _bc._argbtocolor(_bcolor);
+ //BA.debugLineNum = 66;BA.debugLine="bc.ColorToARGB(CrumbColor, bcolor)";
+_bc._colortoargb(_crumbcolor,_bcolor);
+ //BA.debugLineNum = 67;BA.debugLine="bcolor.r = bcolor.r * 0.8";
+_bcolor.r = (int) (_bcolor.r*0.8);
+ //BA.debugLineNum = 68;BA.debugLine="bcolor.g = bcolor.g * 0.8";
+_bcolor.g = (int) (_bcolor.g*0.8);
+ //BA.debugLineNum = 69;BA.debugLine="bcolor.b = bcolor.b * 0.8";
+_bcolor.b = (int) (_bcolor.b*0.8);
+ //BA.debugLineNum = 70;BA.debugLine="Dim Clrs() As Int = Array As Int(CrumbColor, bc.A";
+_clrs = new int[]{_crumbcolor,_bc._argbtocolor(_bcolor)};
+ //BA.debugLineNum = 72;BA.debugLine="RightPositions.Clear";
+_rightpositions.Clear();
+ //BA.debugLineNum = 73;BA.debugLine="If mItems.Size = 0 Then Return";
+if (_mitems.getSize()==0) {
+if (true) return "";};
+ //BA.debugLineNum = 74;BA.debugLine="Dim Left As Int = 0";
+_left = (int) (0);
+ //BA.debugLineNum = 75;BA.debugLine="For i = 0 To mItems.Size - 1";
+{
+final int step16 = 1;
+final int limit16 = (int) (_mitems.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit16 ;_i = _i + step16 ) {
+ //BA.debugLineNum = 76;BA.debugLine="Dim sc As Int";
+_sc = 0;
+ //BA.debugLineNum = 77;BA.debugLine="If PressedItem = i Then sc = strokeColor Else sc";
+if (_presseditem==_i) {
+_sc = _strokecolor;}
+else {
+_sc = (int) (0);};
+ //BA.debugLineNum = 78;BA.debugLine="Dim width As Int = DrawItem(Left, mItems.Get(i),";
+_width = _drawitem(_left,BA.ObjectToString(_mitems.Get(_i)),_i==0,_i==_mitems.getSize()-1,_clrs[(int) (_i%_clrs.length)],_sc);
+ //BA.debugLineNum = 79;BA.debugLine="Left = Left + width + offset + 2dip";
+_left = (int) (_left+_width+_offset+__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 80;BA.debugLine="RightPositions.Add(Left)";
+_rightpositions.Add((Object)(_left));
+ }
+};
+ //BA.debugLineNum = 82;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 83;BA.debugLine="End Sub";
+return "";
+}
+public int _drawitem(int _left,String _text,boolean _first,boolean _last,int _clr,int _strokecolor) throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+int _itemwidth = 0;
+int _itemheight = 0;
+int _baseline = 0;
+anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null;
+ //BA.debugLineNum = 85;BA.debugLine="Private Sub DrawItem(Left As Int, Text As String,";
+ //BA.debugLineNum = 86;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(Text, fnt)";
+_r = _cvs.MeasureText(_text,_fnt);
+ //BA.debugLineNum = 87;BA.debugLine="Dim ItemWidth As Int = r.Width + 30dip";
+_itemwidth = (int) (_r.getWidth()+__c.DipToCurrent((int) (30)));
+ //BA.debugLineNum = 88;BA.debugLine="Dim ItemHeight As Int = cvs.TargetRect.Height";
+_itemheight = (int) (_cvs.getTargetRect().getHeight());
+ //BA.debugLineNum = 89;BA.debugLine="Dim BaseLine As Int = cvs.TargetRect.CenterY - r.";
+_baseline = (int) (_cvs.getTargetRect().getCenterY()-_r.getHeight()/(double)2-_r.getTop());
+ //BA.debugLineNum = 90;BA.debugLine="Dim p As B4XPath";
+_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
+ //BA.debugLineNum = 91;BA.debugLine="p.Initialize(Left, 0)";
+_p.Initialize((float) (_left),(float) (0));
+ //BA.debugLineNum = 92;BA.debugLine="p.LineTo(Left + ItemWidth, 0)";
+_p.LineTo((float) (_left+_itemwidth),(float) (0));
+ //BA.debugLineNum = 93;BA.debugLine="If Last = False Then";
+if (_last==__c.False) {
+ //BA.debugLineNum = 94;BA.debugLine="p.LineTo(Left + ItemWidth + offset, ItemHeight /";
+_p.LineTo((float) (_left+_itemwidth+_offset),(float) (_itemheight/(double)2));
+ };
+ //BA.debugLineNum = 96;BA.debugLine="p.LineTo(Left + ItemWidth, ItemHeight)";
+_p.LineTo((float) (_left+_itemwidth),(float) (_itemheight));
+ //BA.debugLineNum = 97;BA.debugLine="If First = False Then";
+if (_first==__c.False) {
+ //BA.debugLineNum = 98;BA.debugLine="p.LineTo(Left - offset, ItemHeight)";
+_p.LineTo((float) (_left-_offset),(float) (_itemheight));
+ //BA.debugLineNum = 99;BA.debugLine="p.LineTo(Left, ItemHeight / 2)";
+_p.LineTo((float) (_left),(float) (_itemheight/(double)2));
+ //BA.debugLineNum = 100;BA.debugLine="p.LineTo(Left - offset, 0)";
+_p.LineTo((float) (_left-_offset),(float) (0));
+ }else {
+ //BA.debugLineNum = 102;BA.debugLine="p.LineTo(Left, ItemHeight)";
+_p.LineTo((float) (_left),(float) (_itemheight));
+ };
+ //BA.debugLineNum = 104;BA.debugLine="p.LineTo(Left, 0)";
+_p.LineTo((float) (_left),(float) (0));
+ //BA.debugLineNum = 105;BA.debugLine="cvs.DrawPath(p, clr, True, 0)";
+_cvs.DrawPath(_p,_clr,__c.True,(float) (0));
+ //BA.debugLineNum = 106;BA.debugLine="If strokeColor <> 0 Then";
+if (_strokecolor!=0) {
+ //BA.debugLineNum = 107;BA.debugLine="cvs.DrawPath(p, strokeColor, False, 3dip)";
+_cvs.DrawPath(_p,_strokecolor,__c.False,(float) (__c.DipToCurrent((int) (3))));
+ };
+ //BA.debugLineNum = 110;BA.debugLine="cvs.DrawText(Text, Left + ItemWidth / 2, BaseLine";
+_cvs.DrawText(ba,_text,(float) (_left+_itemwidth/(double)2),(float) (_baseline),_fnt,_textcolor,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER"));
+ //BA.debugLineNum = 111;BA.debugLine="Return ItemWidth";
+if (true) return _itemwidth;
+ //BA.debugLineNum = 112;BA.debugLine="End Sub";
+return 0;
+}
+public int _finditem(int _x,int _y) throws Exception{
+int _r = 0;
+int _i = 0;
+ //BA.debugLineNum = 136;BA.debugLine="Private Sub FindItem (x As Int, y As Int) As Int";
+ //BA.debugLineNum = 137;BA.debugLine="If RightPositions.Size = 0 Then Return -1";
+if (_rightpositions.getSize()==0) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 138;BA.debugLine="If y < 0 Or y > cvs.TargetRect.Height Then Return";
+if (_y<0 || _y>_cvs.getTargetRect().getHeight()) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 139;BA.debugLine="Dim r As Int = RightPositions.Get(RightPositions.";
+_r = (int)(BA.ObjectToNumber(_rightpositions.Get((int) (_rightpositions.getSize()-1))));
+ //BA.debugLineNum = 140;BA.debugLine="If x > r Then Return -1";
+if (_x>_r) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 141;BA.debugLine="For i = RightPositions.Size - 2 To 0 Step -1";
+{
+final int step5 = -1;
+final int limit5 = (int) (0);
+_i = (int) (_rightpositions.getSize()-2) ;
+for (;_i >= limit5 ;_i = _i + step5 ) {
+ //BA.debugLineNum = 142;BA.debugLine="Dim r As Int = RightPositions.Get(i)";
+_r = (int)(BA.ObjectToNumber(_rightpositions.Get(_i)));
+ //BA.debugLineNum = 143;BA.debugLine="If x > r Then Return i + 1";
+if (_x>_r) {
+if (true) return (int) (_i+1);};
+ }
+};
+ //BA.debugLineNum = 145;BA.debugLine="Return 0";
+if (true) return (int) (0);
+ //BA.debugLineNum = 146;BA.debugLine="End Sub";
+return 0;
+}
+public anywheresoftware.b4a.objects.collections.List _getitems() throws Exception{
+ //BA.debugLineNum = 153;BA.debugLine="Public Sub getItems As List";
+ //BA.debugLineNum = 154;BA.debugLine="Return mItems";
+if (true) return _mitems;
+ //BA.debugLineNum = 155;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 24;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 25;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 26;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 27;BA.debugLine="mItems.Initialize";
+_mitems.Initialize();
+ //BA.debugLineNum = 28;BA.debugLine="RightPositions.Initialize";
+_rightpositions.Initialize();
+ //BA.debugLineNum = 29;BA.debugLine="bc.Initialize(1, 1)";
+_bc._initialize(ba,(int) (1),(int) (1));
+ //BA.debugLineNum = 30;BA.debugLine="End Sub";
+return "";
+}
+public String _setitems(anywheresoftware.b4a.objects.collections.List _i) throws Exception{
+ //BA.debugLineNum = 148;BA.debugLine="Public Sub setItems (i As List)";
+ //BA.debugLineNum = 149;BA.debugLine="mItems = i";
+_mitems = _i;
+ //BA.debugLineNum = 150;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 151;BA.debugLine="End Sub";
+return "";
+}
+public String _touch_touch(int _action,float _x,float _y) throws Exception{
+int _prev = 0;
+int _index = 0;
+anywheresoftware.b4a.objects.collections.List _items = null;
+int _i = 0;
+ //BA.debugLineNum = 114;BA.debugLine="Private Sub Touch_Touch (Action As Int, X As Float";
+ //BA.debugLineNum = 115;BA.debugLine="Select Action";
+switch (BA.switchObjectToInt(_action,_touchpanel.TOUCH_ACTION_DOWN,_touchpanel.TOUCH_ACTION_MOVE,_touchpanel.TOUCH_ACTION_UP)) {
+case 0:
+case 1: {
+ //BA.debugLineNum = 117;BA.debugLine="Dim prev As Int = PressedItem";
+_prev = _presseditem;
+ //BA.debugLineNum = 118;BA.debugLine="PressedItem = FindItem(X, Y)";
+_presseditem = _finditem((int) (_x),(int) (_y));
+ //BA.debugLineNum = 119;BA.debugLine="If prev <> PressedItem Then Draw";
+if (_prev!=_presseditem) {
+_draw();};
+ break; }
+case 2: {
+ //BA.debugLineNum = 121;BA.debugLine="Dim index As Int = FindItem(X, Y)";
+_index = _finditem((int) (_x),(int) (_y));
+ //BA.debugLineNum = 122;BA.debugLine="If index = PressedItem And index > -1 Then";
+if (_index==_presseditem && _index>-1) {
+ //BA.debugLineNum = 123;BA.debugLine="Dim Items As List";
+_items = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 124;BA.debugLine="Items.Initialize";
+_items.Initialize();
+ //BA.debugLineNum = 125;BA.debugLine="For i = 0 To index";
+{
+final int step11 = 1;
+final int limit11 = _index;
+_i = (int) (0) ;
+for (;_i <= limit11 ;_i = _i + step11 ) {
+ //BA.debugLineNum = 126;BA.debugLine="Items.Add(mItems.Get(i))";
+_items.Add(_mitems.Get(_i));
+ }
+};
+ //BA.debugLineNum = 128;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFee";
+if (_mhaptic) {
+_xuiviewsutils._performhapticfeedback /*String*/ (ba,_mbase);};
+ //BA.debugLineNum = 129;BA.debugLine="CallSub2(mCallBack, mEventName & \"_CrumbClick\"";
+__c.CallSubNew2(ba,_mcallback,_meventname+"_CrumbClick",(Object)(_items));
+ };
+ //BA.debugLineNum = 131;BA.debugLine="PressedItem = -1";
+_presseditem = (int) (-1);
+ //BA.debugLineNum = 132;BA.debugLine="Draw";
+_draw();
+ break; }
+}
+;
+ //BA.debugLineNum = 134;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbytesbuilder.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbytesbuilder.java
new file mode 100644
index 0000000..ec5058e
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbytesbuilder.java
@@ -0,0 +1,269 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xbytesbuilder extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbytesbuilder");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xbytesbuilder.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public byte[] _mbuffer = null;
+public int _mlength = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public reparto_izca.keymon.lat.b4xbytesbuilder _append(byte[] _data) throws Exception{
+ //BA.debugLineNum = 24;BA.debugLine="Public Sub Append(Data() As Byte) As B4XBytesBuild";
+ //BA.debugLineNum = 25;BA.debugLine="Return Append2(Data, 0, Data.Length)";
+if (true) return _append2(_data,(int) (0),_data.length);
+ //BA.debugLineNum = 26;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xbytesbuilder _append2(byte[] _data,int _startindex,int _length) throws Exception{
+int _oldlength = 0;
+ //BA.debugLineNum = 31;BA.debugLine="Public Sub Append2(Data() As Byte, StartIndex As I";
+ //BA.debugLineNum = 32;BA.debugLine="Dim OldLength As Int = ChangeLength(mLength + Len";
+_oldlength = _changelength((int) (_mlength+_length));
+ //BA.debugLineNum = 33;BA.debugLine="Bit.ArrayCopy(Data, StartIndex, mBuffer, OldLengt";
+__c.Bit.ArrayCopy((Object)(_data),_startindex,(Object)(_mbuffer),_oldlength,_length);
+ //BA.debugLineNum = 34;BA.debugLine="Return Me";
+if (true) return (reparto_izca.keymon.lat.b4xbytesbuilder)(this);
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return null;
+}
+public int _changelength(int _newlength) throws Exception{
+int _oldlength = 0;
+byte[] _b = null;
+ //BA.debugLineNum = 12;BA.debugLine="Private Sub ChangeLength (NewLength As Int) As Int";
+ //BA.debugLineNum = 13;BA.debugLine="Dim OldLength As Int = mLength";
+_oldlength = _mlength;
+ //BA.debugLineNum = 14;BA.debugLine="mLength = NewLength";
+_mlength = _newlength;
+ //BA.debugLineNum = 15;BA.debugLine="If mBuffer.Length < mLength Then";
+if (_mbuffer.length<_mlength) {
+ //BA.debugLineNum = 16;BA.debugLine="Dim b(Max(mBuffer.Length * 2, NewLength)) As Byt";
+_b = new byte[(int) (__c.Max(_mbuffer.length*2,_newlength))];
+;
+ //BA.debugLineNum = 17;BA.debugLine="Bit.ArrayCopy(mBuffer, 0, b, 0, mBuffer.Length)";
+__c.Bit.ArrayCopy((Object)(_mbuffer),(int) (0),(Object)(_b),(int) (0),_mbuffer.length);
+ //BA.debugLineNum = 18;BA.debugLine="mBuffer = b";
+_mbuffer = _b;
+ };
+ //BA.debugLineNum = 20;BA.debugLine="Return OldLength";
+if (true) return _oldlength;
+ //BA.debugLineNum = 21;BA.debugLine="End Sub";
+return 0;
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private mBuffer() As Byte";
+_mbuffer = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 3;BA.debugLine="Private mLength As Int";
+_mlength = 0;
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public String _clear() throws Exception{
+ //BA.debugLineNum = 37;BA.debugLine="Public Sub Clear";
+ //BA.debugLineNum = 38;BA.debugLine="ChangeLength(0)";
+_changelength((int) (0));
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+return "";
+}
+public byte[] _getbuffer() throws Exception{
+ //BA.debugLineNum = 103;BA.debugLine="Private Sub getBuffer As Byte() 'ignore";
+ //BA.debugLineNum = 104;BA.debugLine="End Sub";
+return null;
+}
+public byte[] _getinternalbuffer() throws Exception{
+ //BA.debugLineNum = 127;BA.debugLine="Public Sub getInternalBuffer As Byte()";
+ //BA.debugLineNum = 128;BA.debugLine="Return mBuffer";
+if (true) return _mbuffer;
+ //BA.debugLineNum = 129;BA.debugLine="End Sub";
+return null;
+}
+public int _getlength() throws Exception{
+ //BA.debugLineNum = 92;BA.debugLine="Public Sub getLength As Int";
+ //BA.debugLineNum = 93;BA.debugLine="Return mLength";
+if (true) return _mlength;
+ //BA.debugLineNum = 94;BA.debugLine="End Sub";
+return 0;
+}
+public int _indexof(byte[] _searchfor) throws Exception{
+ //BA.debugLineNum = 107;BA.debugLine="Public Sub IndexOf(SearchFor() As Byte) As Int";
+ //BA.debugLineNum = 108;BA.debugLine="Return IndexOf2(SearchFor, 0)";
+if (true) return _indexof2(_searchfor,(int) (0));
+ //BA.debugLineNum = 109;BA.debugLine="End Sub";
+return 0;
+}
+public int _indexof2(byte[] _searchfor,int _index) throws Exception{
+int _i1 = 0;
+int _i2 = 0;
+ //BA.debugLineNum = 112;BA.debugLine="Public Sub IndexOf2(SearchFor() As Byte, Index As";
+ //BA.debugLineNum = 113;BA.debugLine="For i1 = Index To mLength - SearchFor.Length";
+{
+final int step1 = 1;
+final int limit1 = (int) (_mlength-_searchfor.length);
+_i1 = _index ;
+for (;_i1 <= limit1 ;_i1 = _i1 + step1 ) {
+ //BA.debugLineNum = 114;BA.debugLine="For i2 = 0 To SearchFor.Length - 1";
+{
+final int step2 = 1;
+final int limit2 = (int) (_searchfor.length-1);
+_i2 = (int) (0) ;
+for (;_i2 <= limit2 ;_i2 = _i2 + step2 ) {
+ //BA.debugLineNum = 115;BA.debugLine="If SearchFor(i2) <> mBuffer(i1 + i2) Then";
+if (_searchfor[_i2]!=_mbuffer[(int) (_i1+_i2)]) {
+ //BA.debugLineNum = 116;BA.debugLine="Exit";
+if (true) break;
+ };
+ }
+};
+ //BA.debugLineNum = 119;BA.debugLine="If i2 = SearchFor.Length Then";
+if (_i2==_searchfor.length) {
+ //BA.debugLineNum = 120;BA.debugLine="Return i1";
+if (true) return _i1;
+ };
+ }
+};
+ //BA.debugLineNum = 123;BA.debugLine="Return -1";
+if (true) return (int) (-1);
+ //BA.debugLineNum = 124;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 6;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 7;BA.debugLine="Dim mBuffer(100) As Byte";
+_mbuffer = new byte[(int) (100)];
+;
+ //BA.debugLineNum = 8;BA.debugLine="mLength = 0";
+_mlength = (int) (0);
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return "";
+}
+public String _insert(int _index,byte[] _data) throws Exception{
+byte[] _afterindex = null;
+ //BA.debugLineNum = 43;BA.debugLine="Public Sub Insert(Index As Int, Data() As Byte)";
+ //BA.debugLineNum = 44;BA.debugLine="If Index >= mLength Then";
+if (_index>=_mlength) {
+ //BA.debugLineNum = 45;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
+if (_index>_mlength) {
+__c.LogImpl("942729474","Index too large",0);};
+ //BA.debugLineNum = 46;BA.debugLine="Append(Data)";
+_append(_data);
+ }else {
+ //BA.debugLineNum = 48;BA.debugLine="Dim AfterIndex() As Byte = SubArray(Index)";
+_afterindex = _subarray(_index);
+ //BA.debugLineNum = 49;BA.debugLine="ChangeLength(mLength + Data.Length)";
+_changelength((int) (_mlength+_data.length));
+ //BA.debugLineNum = 50;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng";
+__c.Bit.ArrayCopy((Object)(_data),(int) (0),(Object)(_mbuffer),_index,_data.length);
+ //BA.debugLineNum = 51;BA.debugLine="Bit.ArrayCopy(AfterIndex, 0, mBuffer, Index + Da";
+__c.Bit.ArrayCopy((Object)(_afterindex),(int) (0),(Object)(_mbuffer),(int) (_index+_data.length),_afterindex.length);
+ };
+ //BA.debugLineNum = 53;BA.debugLine="End Sub";
+return "";
+}
+public byte[] _remove(int _beginindex,int _endindex) throws Exception{
+byte[] _res = null;
+byte[] _afterendindex = null;
+ //BA.debugLineNum = 69;BA.debugLine="Public Sub Remove(BeginIndex As Int, EndIndex As I";
+ //BA.debugLineNum = 70;BA.debugLine="Dim res() As Byte = SubArray2(BeginIndex, EndInde";
+_res = _subarray2(_beginindex,_endindex);
+ //BA.debugLineNum = 71;BA.debugLine="If EndIndex <= mLength Then";
+if (_endindex<=_mlength) {
+ //BA.debugLineNum = 72;BA.debugLine="Dim AfterEndIndex() As Byte = SubArray(EndIndex)";
+_afterendindex = _subarray(_endindex);
+ //BA.debugLineNum = 73;BA.debugLine="Bit.ArrayCopy(AfterEndIndex, 0, mBuffer, BeginIn";
+__c.Bit.ArrayCopy((Object)(_afterendindex),(int) (0),(Object)(_mbuffer),_beginindex,_afterendindex.length);
+ };
+ //BA.debugLineNum = 75;BA.debugLine="ChangeLength(mLength - (EndIndex - BeginIndex))";
+_changelength((int) (_mlength-(_endindex-_beginindex)));
+ //BA.debugLineNum = 76;BA.debugLine="Return res";
+if (true) return _res;
+ //BA.debugLineNum = 77;BA.debugLine="End Sub";
+return null;
+}
+public String _set(int _index,byte[] _data) throws Exception{
+ //BA.debugLineNum = 56;BA.debugLine="Public Sub Set(Index As Int, Data() As Byte)";
+ //BA.debugLineNum = 57;BA.debugLine="If Index >= mLength Then";
+if (_index>=_mlength) {
+ //BA.debugLineNum = 58;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
+if (_index>_mlength) {
+__c.LogImpl("942795010","Index too large",0);};
+ //BA.debugLineNum = 59;BA.debugLine="Append(Data)";
+_append(_data);
+ }else {
+ //BA.debugLineNum = 61;BA.debugLine="If Data.Length + Index > mLength Then";
+if (_data.length+_index>_mlength) {
+ //BA.debugLineNum = 62;BA.debugLine="ChangeLength(Data.Length + Index)";
+_changelength((int) (_data.length+_index));
+ };
+ //BA.debugLineNum = 64;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng";
+__c.Bit.ArrayCopy((Object)(_data),(int) (0),(Object)(_mbuffer),_index,_data.length);
+ };
+ //BA.debugLineNum = 66;BA.debugLine="End Sub";
+return "";
+}
+public byte[] _subarray(int _beginindex) throws Exception{
+ //BA.debugLineNum = 80;BA.debugLine="Public Sub SubArray(BeginIndex As Int) As Byte()";
+ //BA.debugLineNum = 81;BA.debugLine="Return SubArray2(BeginIndex, mLength)";
+if (true) return _subarray2(_beginindex,_mlength);
+ //BA.debugLineNum = 82;BA.debugLine="End Sub";
+return null;
+}
+public byte[] _subarray2(int _beginindex,int _endindex) throws Exception{
+byte[] _b = null;
+ //BA.debugLineNum = 86;BA.debugLine="Public Sub SubArray2(BeginIndex As Int, EndIndex A";
+ //BA.debugLineNum = 87;BA.debugLine="Dim b(EndIndex - BeginIndex) As Byte";
+_b = new byte[(int) (_endindex-_beginindex)];
+;
+ //BA.debugLineNum = 88;BA.debugLine="Bit.ArrayCopy(mBuffer, BeginIndex, b, 0, b.Length";
+__c.Bit.ArrayCopy((Object)(_mbuffer),_beginindex,(Object)(_b),(int) (0),_b.length);
+ //BA.debugLineNum = 89;BA.debugLine="Return b";
+if (true) return _b;
+ //BA.debugLineNum = 90;BA.debugLine="End Sub";
+return null;
+}
+public byte[] _toarray() throws Exception{
+ //BA.debugLineNum = 97;BA.debugLine="Public Sub ToArray() As Byte()";
+ //BA.debugLineNum = 98;BA.debugLine="Return SubArray(0)";
+if (true) return _subarray((int) (0));
+ //BA.debugLineNum = 99;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcache.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcache.java
new file mode 100644
index 0000000..9cbcb12
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcache.java
@@ -0,0 +1,273 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xcache extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcache");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xcache.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public reparto_izca.keymon.lat.b4xorderedmap _data = null;
+public int _mmaxsize = 0;
+public float _removethreshold = 0f;
+public int _eternalcounts = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _b4xcacheitem{
+public boolean IsInitialized;
+public Object Value;
+public long LastAccessedTime;
+public String Key;
+public boolean Eternal;
+public void Initialize() {
+IsInitialized = true;
+Value = new Object();
+LastAccessedTime = 0L;
+Key = "";
+Eternal = false;
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Type B4XCacheItem (Value As Object, LastAccessedT";
+;
+ //BA.debugLineNum = 3;BA.debugLine="Private Data As B4XOrderedMap";
+_data = new reparto_izca.keymon.lat.b4xorderedmap();
+ //BA.debugLineNum = 4;BA.debugLine="Private mMaxSize As Int = 100";
+_mmaxsize = (int) (100);
+ //BA.debugLineNum = 5;BA.debugLine="Private RemoveThreshold As Float = 0.3";
+_removethreshold = (float) (0.3);
+ //BA.debugLineNum = 6;BA.debugLine="Private EternalCounts As Int";
+_eternalcounts = 0;
+ //BA.debugLineNum = 7;BA.debugLine="End Sub";
+return "";
+}
+public boolean _containskey(String _key) throws Exception{
+ //BA.debugLineNum = 66;BA.debugLine="Public Sub ContainsKey(Key As String) As Boolean";
+ //BA.debugLineNum = 67;BA.debugLine="Return Data.ContainsKey(Key)";
+if (true) return _data._containskey /*boolean*/ ((Object)(_key));
+ //BA.debugLineNum = 68;BA.debugLine="End Sub";
+return false;
+}
+public reparto_izca.keymon.lat.b4xcache._b4xcacheitem _createb4xcacheitem(Object _value,String _key) throws Exception{
+reparto_izca.keymon.lat.b4xcache._b4xcacheitem _t1 = null;
+ //BA.debugLineNum = 102;BA.debugLine="Private Sub CreateB4XCacheItem (Value As Object, K";
+ //BA.debugLineNum = 103;BA.debugLine="Dim t1 As B4XCacheItem";
+_t1 = new reparto_izca.keymon.lat.b4xcache._b4xcacheitem();
+ //BA.debugLineNum = 104;BA.debugLine="t1.Initialize";
+_t1.Initialize();
+ //BA.debugLineNum = 105;BA.debugLine="t1.Value = Value";
+_t1.Value /*Object*/ = _value;
+ //BA.debugLineNum = 106;BA.debugLine="t1.LastAccessedTime = DateTime.Now";
+_t1.LastAccessedTime /*long*/ = __c.DateTime.getNow();
+ //BA.debugLineNum = 107;BA.debugLine="t1.Key = Key";
+_t1.Key /*String*/ = _key;
+ //BA.debugLineNum = 108;BA.debugLine="Return t1";
+if (true) return _t1;
+ //BA.debugLineNum = 109;BA.debugLine="End Sub";
+return null;
+}
+public Object _get(String _key) throws Exception{
+reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null;
+ //BA.debugLineNum = 24;BA.debugLine="Public Sub Get (Key As String) As Object";
+ //BA.debugLineNum = 25;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)";
+_ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(_data._get /*Object*/ ((Object)(_key)));
+ //BA.debugLineNum = 26;BA.debugLine="If ci <> Null Then";
+if (_ci!= null) {
+ //BA.debugLineNum = 27;BA.debugLine="If ci.Eternal = False Then ci.LastAccessedTime =";
+if (_ci.Eternal /*boolean*/ ==__c.False) {
+_ci.LastAccessedTime /*long*/ = __c.DateTime.getNow();};
+ //BA.debugLineNum = 28;BA.debugLine="Return ci.Value";
+if (true) return _ci.Value /*Object*/ ;
+ };
+ //BA.debugLineNum = 30;BA.debugLine="Return Null";
+if (true) return __c.Null;
+ //BA.debugLineNum = 31;BA.debugLine="End Sub";
+return null;
+}
+public int _getmaxsize() throws Exception{
+ //BA.debugLineNum = 19;BA.debugLine="Public Sub getMaxSize As Int";
+ //BA.debugLineNum = 20;BA.debugLine="Return mMaxSize";
+if (true) return _mmaxsize;
+ //BA.debugLineNum = 21;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 9;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 10;BA.debugLine="Data.Initialize";
+_data._initialize /*String*/ (ba);
+ //BA.debugLineNum = 11;BA.debugLine="End Sub";
+return "";
+}
+public boolean _iseternal(String _key) throws Exception{
+reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null;
+ //BA.debugLineNum = 60;BA.debugLine="Private Sub IsEternal(Key As String) As Boolean";
+ //BA.debugLineNum = 61;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)";
+_ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(_data._get /*Object*/ ((Object)(_key)));
+ //BA.debugLineNum = 62;BA.debugLine="Return IIf(ci = Null, False, ci.Eternal)";
+if (true) return BA.ObjectToBoolean(((_ci== null) ? ((Object)(__c.False)) : ((Object)(_ci.Eternal /*boolean*/ ))));
+ //BA.debugLineNum = 63;BA.debugLine="End Sub";
+return false;
+}
+public anywheresoftware.b4a.objects.collections.List _keys() throws Exception{
+ //BA.debugLineNum = 98;BA.debugLine="Public Sub Keys As List";
+ //BA.debugLineNum = 99;BA.debugLine="Return Data.Keys";
+if (true) return _data._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 100;BA.debugLine="End Sub";
+return null;
+}
+public Object _put(String _key,Object _value) throws Exception{
+ //BA.debugLineNum = 35;BA.debugLine="Public Sub Put (Key As String, Value As Object) As";
+ //BA.debugLineNum = 36;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou";
+if (_iseternal(_key)) {
+_eternalcounts = (int) (_eternalcounts-1);};
+ //BA.debugLineNum = 37;BA.debugLine="Data.Put(Key, CreateB4XCacheItem(Value, Key))";
+_data._put /*String*/ ((Object)(_key),(Object)(_createb4xcacheitem(_value,_key)));
+ //BA.debugLineNum = 38;BA.debugLine="TrimIfOversize";
+_trimifoversize();
+ //BA.debugLineNum = 39;BA.debugLine="Return Value";
+if (true) return _value;
+ //BA.debugLineNum = 40;BA.debugLine="End Sub";
+return null;
+}
+public Object _puteternal(String _key,Object _value) throws Exception{
+reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null;
+ //BA.debugLineNum = 44;BA.debugLine="Public Sub PutEternal (Key As String, Value As Obj";
+ //BA.debugLineNum = 45;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou";
+if (_iseternal(_key)) {
+_eternalcounts = (int) (_eternalcounts-1);};
+ //BA.debugLineNum = 46;BA.debugLine="Dim ci As B4XCacheItem = CreateB4XCacheItem(Value";
+_ci = _createb4xcacheitem(_value,_key);
+ //BA.debugLineNum = 47;BA.debugLine="ci.Eternal = True";
+_ci.Eternal /*boolean*/ = __c.True;
+ //BA.debugLineNum = 48;BA.debugLine="ci.LastAccessedTime = 9223372036854775807";
+_ci.LastAccessedTime /*long*/ = (long) (9223372036854775807L);
+ //BA.debugLineNum = 49;BA.debugLine="EternalCounts = EternalCounts + 1";
+_eternalcounts = (int) (_eternalcounts+1);
+ //BA.debugLineNum = 50;BA.debugLine="Data.Put(Key, ci)";
+_data._put /*String*/ ((Object)(_key),(Object)(_ci));
+ //BA.debugLineNum = 51;BA.debugLine="Return Value";
+if (true) return _value;
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return null;
+}
+public String _remove(String _key) throws Exception{
+ //BA.debugLineNum = 55;BA.debugLine="Public Sub Remove (Key As String)";
+ //BA.debugLineNum = 56;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou";
+if (_iseternal(_key)) {
+_eternalcounts = (int) (_eternalcounts-1);};
+ //BA.debugLineNum = 57;BA.debugLine="Data.Remove(Key)";
+_data._remove /*String*/ ((Object)(_key));
+ //BA.debugLineNum = 58;BA.debugLine="End Sub";
+return "";
+}
+public String _removeolditems(long _agems) throws Exception{
+anywheresoftware.b4a.objects.collections.List _values = null;
+long _level = 0L;
+reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null;
+ //BA.debugLineNum = 82;BA.debugLine="Public Sub RemoveOldItems (AgeMs As Long)";
+ //BA.debugLineNum = 83;BA.debugLine="Dim values As List = Data.Values";
+_values = new anywheresoftware.b4a.objects.collections.List();
+_values = _data._getvalues /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 84;BA.debugLine="Dim level As Long = DateTime.Now - AgeMs";
+_level = (long) (__c.DateTime.getNow()-_agems);
+ //BA.debugLineNum = 85;BA.debugLine="For Each ci As B4XCacheItem In values";
+{
+final anywheresoftware.b4a.BA.IterableList group3 = _values;
+final int groupLen3 = group3.getSize()
+;int index3 = 0;
+;
+for (; index3 < groupLen3;index3++){
+_ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(group3.Get(index3));
+ //BA.debugLineNum = 86;BA.debugLine="If ci.LastAccessedTime <= level Then";
+if (_ci.LastAccessedTime /*long*/ <=_level) {
+ //BA.debugLineNum = 87;BA.debugLine="Data.Remove(ci.Key)";
+_data._remove /*String*/ ((Object)(_ci.Key /*String*/ ));
+ };
+ }
+};
+ //BA.debugLineNum = 90;BA.debugLine="End Sub";
+return "";
+}
+public String _setmaxsize(int _s) throws Exception{
+ //BA.debugLineNum = 14;BA.debugLine="Public Sub setMaxSize(s As Int)";
+ //BA.debugLineNum = 15;BA.debugLine="mMaxSize = s";
+_mmaxsize = _s;
+ //BA.debugLineNum = 16;BA.debugLine="TrimIfOversize";
+_trimifoversize();
+ //BA.debugLineNum = 17;BA.debugLine="End Sub";
+return "";
+}
+public int _size() throws Exception{
+ //BA.debugLineNum = 93;BA.debugLine="Public Sub Size As Int";
+ //BA.debugLineNum = 94;BA.debugLine="Return Data.Size";
+if (true) return _data._getsize /*int*/ ();
+ //BA.debugLineNum = 95;BA.debugLine="End Sub";
+return 0;
+}
+public String _trimifoversize() throws Exception{
+anywheresoftware.b4a.objects.collections.List _values = null;
+int _numberofitemstoremove = 0;
+int _i = 0;
+ //BA.debugLineNum = 70;BA.debugLine="Private Sub TrimIfOversize";
+ //BA.debugLineNum = 71;BA.debugLine="If Data.Size - EternalCounts > mMaxSize Then";
+if (_data._getsize /*int*/ ()-_eternalcounts>_mmaxsize) {
+ //BA.debugLineNum = 72;BA.debugLine="Dim values As List = Data.Values";
+_values = new anywheresoftware.b4a.objects.collections.List();
+_values = _data._getvalues /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 73;BA.debugLine="values.SortType(\"LastAccessedTime\", True)";
+_values.SortType("LastAccessedTime",__c.True);
+ //BA.debugLineNum = 74;BA.debugLine="Dim NumberOfItemsToRemove As Int = Ceil(mMaxSize";
+_numberofitemstoremove = (int) (__c.Ceil(_mmaxsize*_removethreshold));
+ //BA.debugLineNum = 75;BA.debugLine="For i = 0 To NumberOfItemsToRemove";
+{
+final int step5 = 1;
+final int limit5 = _numberofitemstoremove;
+_i = (int) (0) ;
+for (;_i <= limit5 ;_i = _i + step5 ) {
+ //BA.debugLineNum = 76;BA.debugLine="Data.Remove(values.Get(i).As(B4XCacheItem).Key)";
+_data._remove /*String*/ ((Object)(((reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(_values.Get(_i))).Key /*String*/ ));
+ }
+};
+ };
+ //BA.debugLineNum = 79;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcollections.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcollections.java
new file mode 100644
index 0000000..869de8c
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcollections.java
@@ -0,0 +1,112 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xcollections {
+private static b4xcollections mostCurrent = new b4xcollections();
+public static Object getObject() {
+ throw new RuntimeException("Code module does not support this method.");
+}
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static reparto_izca.keymon.lat.b4xbitset _createbitset(anywheresoftware.b4a.BA _ba,int _size) throws Exception{
+reparto_izca.keymon.lat.b4xbitset _s = null;
+ //BA.debugLineNum = 52;BA.debugLine="Public Sub CreateBitSet (Size As Int) As B4XBitSet";
+ //BA.debugLineNum = 53;BA.debugLine="Dim s As B4XBitSet";
+_s = new reparto_izca.keymon.lat.b4xbitset();
+ //BA.debugLineNum = 54;BA.debugLine="s.Initialize(Size)";
+_s._initialize /*String*/ ((_ba.processBA == null ? _ba : _ba.processBA),_size);
+ //BA.debugLineNum = 55;BA.debugLine="Return s";
+if (true) return _s;
+ //BA.debugLineNum = 56;BA.debugLine="End Sub";
+return null;
+}
+public static reparto_izca.keymon.lat.b4xorderedmap _createorderedmap(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 30;BA.debugLine="Public Sub CreateOrderedMap As B4XOrderedMap";
+ //BA.debugLineNum = 31;BA.debugLine="Return CreateOrderedMap2(Null, Null)";
+if (true) return _createorderedmap2(_ba,(anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(anywheresoftware.b4a.keywords.Common.Null)),(anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(anywheresoftware.b4a.keywords.Common.Null)));
+ //BA.debugLineNum = 32;BA.debugLine="End Sub";
+return null;
+}
+public static reparto_izca.keymon.lat.b4xorderedmap _createorderedmap2(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.List _keys,anywheresoftware.b4a.objects.collections.List _values) throws Exception{
+reparto_izca.keymon.lat.b4xorderedmap _m = null;
+int _i = 0;
+ //BA.debugLineNum = 38;BA.debugLine="Public Sub CreateOrderedMap2 (Keys As List, Values";
+ //BA.debugLineNum = 39;BA.debugLine="Dim m As B4XOrderedMap";
+_m = new reparto_izca.keymon.lat.b4xorderedmap();
+ //BA.debugLineNum = 40;BA.debugLine="m.Initialize";
+_m._initialize /*String*/ ((_ba.processBA == null ? _ba : _ba.processBA));
+ //BA.debugLineNum = 41;BA.debugLine="If Keys <> Null And Values <> Null And Keys.IsIni";
+if (_keys!= null && _values!= null && _keys.IsInitialized() && _values.IsInitialized()) {
+ //BA.debugLineNum = 42;BA.debugLine="For i = 0 To Keys.Size - 1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_keys.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 43;BA.debugLine="m.Put(Keys.Get(i), Values.Get(i))";
+_m._put /*String*/ (_keys.Get(_i),_values.Get(_i));
+ }
+};
+ };
+ //BA.debugLineNum = 46;BA.debugLine="Return m";
+if (true) return _m;
+ //BA.debugLineNum = 47;BA.debugLine="End Sub";
+return null;
+}
+public static reparto_izca.keymon.lat.b4xset _createset(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 9;BA.debugLine="Public Sub CreateSet As B4XSet";
+ //BA.debugLineNum = 10;BA.debugLine="Return CreateSet2(Null)";
+if (true) return _createset2(_ba,(anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(anywheresoftware.b4a.keywords.Common.Null)));
+ //BA.debugLineNum = 11;BA.debugLine="End Sub";
+return null;
+}
+public static reparto_izca.keymon.lat.b4xset _createset2(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.List _values) throws Exception{
+reparto_izca.keymon.lat.b4xset _s = null;
+Object _v = null;
+ //BA.debugLineNum = 16;BA.debugLine="Public Sub CreateSet2 (Values As List) As B4XSet";
+ //BA.debugLineNum = 17;BA.debugLine="Dim s As B4XSet";
+_s = new reparto_izca.keymon.lat.b4xset();
+ //BA.debugLineNum = 18;BA.debugLine="s.Initialize";
+_s._initialize /*String*/ ((_ba.processBA == null ? _ba : _ba.processBA));
+ //BA.debugLineNum = 19;BA.debugLine="If Values <> Null And Values.IsInitialized Then";
+if (_values!= null && _values.IsInitialized()) {
+ //BA.debugLineNum = 20;BA.debugLine="For Each v As Object In Values";
+{
+final anywheresoftware.b4a.BA.IterableList group4 = _values;
+final int groupLen4 = group4.getSize()
+;int index4 = 0;
+;
+for (; index4 < groupLen4;index4++){
+_v = group4.Get(index4);
+ //BA.debugLineNum = 21;BA.debugLine="s.Add(v)";
+_s._add /*String*/ (_v);
+ }
+};
+ };
+ //BA.debugLineNum = 24;BA.debugLine="Return s";
+if (true) return _s;
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return null;
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcolortemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcolortemplate.java
new file mode 100644
index 0000000..b78de80
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcolortemplate.java
@@ -0,0 +1,704 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xcolortemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcolortemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xcolortemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public int _selectedalpha = 0;
+public b4a.example.bitmapcreator _bccolors = null;
+public float _selectedh = 0f;
+public float _selecteds = 0f;
+public float _selectedv = 0f;
+public float _devicescale = 0f;
+public float _colorscale = 0f;
+public b4a.example.bitmapcreator _tempbc = null;
+public int _dont_change = 0;
+public reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _huebar = null;
+public reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _colorpicker = null;
+public reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _alphabar = null;
+public int _borderscolor = 0;
+public reparto_izca.keymon.lat.b4xdialog _xdialog = null;
+public Object[] _initialcolor = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _colorpickerpart{
+public boolean IsInitialized;
+public anywheresoftware.b4a.objects.B4XCanvas cvs;
+public anywheresoftware.b4a.objects.B4XViewWrapper pnl;
+public anywheresoftware.b4a.objects.B4XViewWrapper iv;
+public anywheresoftware.b4a.objects.B4XCanvas checkersCanvas;
+public boolean DrawCheckers;
+public void Initialize() {
+IsInitialized = true;
+cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+iv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+checkersCanvas = new anywheresoftware.b4a.objects.B4XCanvas();
+DrawCheckers = false;
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public String _alpha_touch(int _action,float _x,float _y) throws Exception{
+ //BA.debugLineNum = 263;BA.debugLine="Private Sub Alpha_Touch (Action As Int, X As Float";
+ //BA.debugLineNum = 264;BA.debugLine="If Action = mBase.TOUCH_ACTION_MOVE_NOTOUCH Then";
+if (_action==_mbase.TOUCH_ACTION_MOVE_NOTOUCH) {
+if (true) return "";};
+ //BA.debugLineNum = 265;BA.debugLine="AlphaBarSelectedChange(x)";
+_alphabarselectedchange(_x);
+ //BA.debugLineNum = 266;BA.debugLine="End Sub";
+return "";
+}
+public String _alphabarselectedchange(float _x) throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+ //BA.debugLineNum = 147;BA.debugLine="Private Sub AlphaBarSelectedChange(x As Float)";
+ //BA.debugLineNum = 148;BA.debugLine="SelectedAlpha = 255 * Max(0, Min(1, x / AlphaBar.";
+_selectedalpha = (int) (255*__c.Max(0,__c.Min(1,_x/(double)_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth())));
+ //BA.debugLineNum = 149;BA.debugLine="x = SelectedAlpha / 255 * AlphaBar.pnl.Width";
+_x = (float) (_selectedalpha/(double)255*_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
+ //BA.debugLineNum = 150;BA.debugLine="AlphaBar.cvs.ClearRect(AlphaBar.cvs.TargetRect)";
+_alphabar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(_alphabar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect());
+ //BA.debugLineNum = 151;BA.debugLine="Dim r As B4XRect";
+_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 152;BA.debugLine="r.Initialize(x - 3dip, 1dip, x + 3dip, AlphaBar.c";
+_r.Initialize((float) (_x-__c.DipToCurrent((int) (3))),(float) (__c.DipToCurrent((int) (1))),(float) (_x+__c.DipToCurrent((int) (3))),(float) (_alphabar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getBottom()-__c.DipToCurrent((int) (1))));
+ //BA.debugLineNum = 153;BA.debugLine="AlphaBar.cvs.DrawRect(r, xui.Color_Black, True, 2";
+_alphabar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(_r,_xui.Color_Black,__c.True,(float) (__c.DipToCurrent((int) (2))));
+ //BA.debugLineNum = 154;BA.debugLine="AlphaBar.cvs.Invalidate";
+_alphabar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate();
+ //BA.debugLineNum = 155;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 156;BA.debugLine="End Sub";
+return "";
+}
+public String _base_resize(double _width,double _height) throws Exception{
+int _r = 0;
+int _w = 0;
+reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _cpp = null;
+int _i = 0;
+ //BA.debugLineNum = 51;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 53;BA.debugLine="ColorScale = Max(1, Max(Width, Height) / 100 / De";
+_colorscale = (float) (__c.Max(1,__c.Max(_width,_height)/(double)100/(double)_devicescale));
+ //BA.debugLineNum = 54;BA.debugLine="HueBar.pnl.SetLayoutAnimated(0, 1dip, 1dip, 30dip";
+_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (30)),(int) (_height-__c.DipToCurrent((int) (2))));
+ //BA.debugLineNum = 55;BA.debugLine="Dim r As Int = HueBar.pnl.Width + HueBar.pnl.Left";
+_r = (int) (_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()+_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getLeft()+__c.DipToCurrent((int) (1)));
+ //BA.debugLineNum = 56;BA.debugLine="Dim w As Int = Width - r - 1dip";
+_w = (int) (_width-_r-__c.DipToCurrent((int) (1)));
+ //BA.debugLineNum = 57;BA.debugLine="If xui.IsB4i Then";
+if (_xui.getIsB4i()) {
+ //BA.debugLineNum = 58;BA.debugLine="r = r - 1";
+_r = (int) (_r-1);
+ //BA.debugLineNum = 59;BA.debugLine="w = w + 1";
+_w = (int) (_w+1);
+ };
+ //BA.debugLineNum = 61;BA.debugLine="AlphaBar.pnl.SetLayoutAnimated(0, r, Height - 31d";
+_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),_r,(int) (_height-__c.DipToCurrent((int) (31))),_w,__c.DipToCurrent((int) (30)));
+ //BA.debugLineNum = 62;BA.debugLine="ColorPicker.pnl.SetLayoutAnimated(0, r, 1dip, w,";
+_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),_r,__c.DipToCurrent((int) (1)),_w,(int) (_height-__c.DipToCurrent((int) (3))-_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()));
+ //BA.debugLineNum = 63;BA.debugLine="bcColors.Initialize(ColorPicker.pnl.Width / Color";
+_bccolors._initialize(ba,(int) (_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)_colorscale),(int) (_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)_colorscale));
+ //BA.debugLineNum = 64;BA.debugLine="For Each cpp As ColorPickerPart In Array(HueBar,";
+{
+final Object[] group12 = new Object[]{(Object)(_huebar),(Object)(_colorpicker),(Object)(_alphabar)};
+final int groupLen12 = group12.length
+;int index12 = 0;
+;
+for (; index12 < groupLen12;index12++){
+_cpp = (reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart)(group12[index12]);
+ //BA.debugLineNum = 65;BA.debugLine="For i = 0 To cpp.pnl.NumberOfViews - 1";
+{
+final int step13 = 1;
+final int limit13 = (int) (_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getNumberOfViews()-1);
+_i = (int) (0) ;
+for (;_i <= limit13 ;_i = _i + step13 ) {
+ //BA.debugLineNum = 66;BA.debugLine="cpp.pnl.GetView(i).SetLayoutAnimated(0, 0, 0, c";
+_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView(_i).SetLayoutAnimated((int) (0),(int) (0),(int) (0),_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
+ }
+};
+ //BA.debugLineNum = 68;BA.debugLine="cpp.cvs.Resize(cpp.pnl.Width, cpp.pnl.Height)";
+_cpp.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()),(float) (_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()));
+ //BA.debugLineNum = 69;BA.debugLine="If cpp.DrawCheckers Then";
+if (_cpp.DrawCheckers /*boolean*/ ) {
+ //BA.debugLineNum = 70;BA.debugLine="DrawCheckers(cpp)";
+_drawcheckers(_cpp);
+ };
+ }
+};
+ //BA.debugLineNum = 73;BA.debugLine="DrawHueBar";
+_drawhuebar();
+ //BA.debugLineNum = 74;BA.debugLine="DrawAlphaBar";
+_drawalphabar();
+ //BA.debugLineNum = 75;BA.debugLine="HueBarSelectedChanged (selectedH / 360 * HueBar.p";
+_huebarselectedchanged((float) (_selectedh/(double)360*_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()));
+ //BA.debugLineNum = 76;BA.debugLine="AlphaBarSelectedChange (SelectedAlpha / 255 * Alp";
+_alphabarselectedchange((float) (_selectedalpha/(double)255*_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()));
+ //BA.debugLineNum = 77;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Private SelectedAlpha As Int = 255";
+_selectedalpha = (int) (255);
+ //BA.debugLineNum = 5;BA.debugLine="Private bcColors As BitmapCreator";
+_bccolors = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 6;BA.debugLine="Private selectedH = 60, selectedS = 0.5, selected";
+_selectedh = (float) (60);
+_selecteds = (float) (0.5);
+_selectedv = (float) (0.5);
+ //BA.debugLineNum = 7;BA.debugLine="Private DeviceScale, ColorScale As Float";
+_devicescale = 0f;
+_colorscale = 0f;
+ //BA.debugLineNum = 8;BA.debugLine="Private tempBC As BitmapCreator";
+_tempbc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 9;BA.debugLine="Private const DONT_CHANGE As Int = -999999999";
+_dont_change = (int) (-999999999);
+ //BA.debugLineNum = 10;BA.debugLine="Type ColorPickerPart (cvs As B4XCanvas, pnl As B4";
+;
+ //BA.debugLineNum = 11;BA.debugLine="Private HueBar, ColorPicker, AlphaBar As ColorPic";
+_huebar = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart();
+_colorpicker = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart();
+_alphabar = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart();
+ //BA.debugLineNum = 12;BA.debugLine="Private BordersColor As Int";
+_borderscolor = 0;
+ //BA.debugLineNum = 13;BA.debugLine="Private xDialog As B4XDialog";
+_xdialog = new reparto_izca.keymon.lat.b4xdialog();
+ //BA.debugLineNum = 14;BA.debugLine="Private InitialColor() As Object";
+_initialcolor = new Object[(int) (0)];
+{
+int d0 = _initialcolor.length;
+for (int i0 = 0;i0 < d0;i0++) {
+_initialcolor[i0] = new Object();
+}
+}
+;
+ //BA.debugLineNum = 15;BA.debugLine="End Sub";
+return "";
+}
+public String _colors_touch(int _action,float _x,float _y) throws Exception{
+ //BA.debugLineNum = 253;BA.debugLine="Private Sub Colors_Touch (Action As Int, X As Floa";
+ //BA.debugLineNum = 254;BA.debugLine="If Action = mBase.TOUCH_ACTION_MOVE_NOTOUCH Then";
+if (_action==_mbase.TOUCH_ACTION_MOVE_NOTOUCH) {
+if (true) return "";};
+ //BA.debugLineNum = 255;BA.debugLine="HandleSelectedColorChanged(X, Y)";
+_handleselectedcolorchanged((int) (_x),(int) (_y));
+ //BA.debugLineNum = 256;BA.debugLine="End Sub";
+return "";
+}
+public Object[] _colortohsv(int _clr) throws Exception{
+int _a = 0;
+int _r = 0;
+int _g = 0;
+int _b = 0;
+float _h = 0f;
+float _s = 0f;
+float _v = 0f;
+int _cmax = 0;
+int _cmin = 0;
+float _rc = 0f;
+float _gc = 0f;
+float _bc = 0f;
+ //BA.debugLineNum = 199;BA.debugLine="Public Sub ColorToHSV(clr As Int) As Object()";
+ //BA.debugLineNum = 200;BA.debugLine="Dim a As Int = Bit.And(0xff, Bit.UnsignedShiftRig";
+_a = __c.Bit.And(((int)0xff),__c.Bit.UnsignedShiftRight(_clr,(int) (24)));
+ //BA.debugLineNum = 201;BA.debugLine="Dim r As Int = Bit.And(0xff, Bit.UnsignedShiftRig";
+_r = __c.Bit.And(((int)0xff),__c.Bit.UnsignedShiftRight(_clr,(int) (16)));
+ //BA.debugLineNum = 202;BA.debugLine="Dim g As Int = Bit.And(0xff, Bit.UnsignedShiftRig";
+_g = __c.Bit.And(((int)0xff),__c.Bit.UnsignedShiftRight(_clr,(int) (8)));
+ //BA.debugLineNum = 203;BA.debugLine="Dim b As Int = Bit.And(0xff, Bit.UnsignedShiftRig";
+_b = __c.Bit.And(((int)0xff),__c.Bit.UnsignedShiftRight(_clr,(int) (0)));
+ //BA.debugLineNum = 204;BA.debugLine="Dim h, s, v As Float";
+_h = 0f;
+_s = 0f;
+_v = 0f;
+ //BA.debugLineNum = 205;BA.debugLine="Dim cmax As Int = Max(Max(r, g), b)";
+_cmax = (int) (__c.Max(__c.Max(_r,_g),_b));
+ //BA.debugLineNum = 206;BA.debugLine="Dim cmin As Int = Min(Min(r, g), b)";
+_cmin = (int) (__c.Min(__c.Min(_r,_g),_b));
+ //BA.debugLineNum = 207;BA.debugLine="v = cmax / 255";
+_v = (float) (_cmax/(double)255);
+ //BA.debugLineNum = 208;BA.debugLine="If cmax <> 0 Then";
+if (_cmax!=0) {
+ //BA.debugLineNum = 209;BA.debugLine="s = (cmax - cmin) / cmax";
+_s = (float) ((_cmax-_cmin)/(double)_cmax);
+ };
+ //BA.debugLineNum = 211;BA.debugLine="If s = 0 Then";
+if (_s==0) {
+ //BA.debugLineNum = 212;BA.debugLine="h = 0";
+_h = (float) (0);
+ }else {
+ //BA.debugLineNum = 214;BA.debugLine="Dim rc As Float = (cmax - r) / (cmax - cmin)";
+_rc = (float) ((_cmax-_r)/(double)(_cmax-_cmin));
+ //BA.debugLineNum = 215;BA.debugLine="Dim gc As Float = (cmax - g) / (cmax - cmin)";
+_gc = (float) ((_cmax-_g)/(double)(_cmax-_cmin));
+ //BA.debugLineNum = 216;BA.debugLine="Dim bc As Float = (cmax - b) / (cmax - cmin)";
+_bc = (float) ((_cmax-_b)/(double)(_cmax-_cmin));
+ //BA.debugLineNum = 217;BA.debugLine="If r = cmax Then";
+if (_r==_cmax) {
+ //BA.debugLineNum = 218;BA.debugLine="h = bc - gc";
+_h = (float) (_bc-_gc);
+ }else if(_g==_cmax) {
+ //BA.debugLineNum = 220;BA.debugLine="h = 2 + rc - bc";
+_h = (float) (2+_rc-_bc);
+ }else {
+ //BA.debugLineNum = 222;BA.debugLine="h = 4 + gc - rc";
+_h = (float) (4+_gc-_rc);
+ };
+ //BA.debugLineNum = 224;BA.debugLine="h = h / 6";
+_h = (float) (_h/(double)6);
+ //BA.debugLineNum = 225;BA.debugLine="If h < 0 Then h = h + 1";
+if (_h<0) {
+_h = (float) (_h+1);};
+ };
+ //BA.debugLineNum = 227;BA.debugLine="Return Array (h * 360, s, v, a)";
+if (true) return new Object[]{(Object)(_h*360),(Object)(_s),(Object)(_v),(Object)(_a)};
+ //BA.debugLineNum = 228;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _createpanelforbitmapcreator(String _eventname,boolean _withcheckers) throws Exception{
+reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _cpp = null;
+anywheresoftware.b4a.objects.ImageViewWrapper _iv = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _overlay = null;
+ //BA.debugLineNum = 30;BA.debugLine="Private Sub CreatePanelForBitmapCreator (EventName";
+ //BA.debugLineNum = 31;BA.debugLine="Dim cpp As ColorPickerPart";
+_cpp = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart();
+ //BA.debugLineNum = 32;BA.debugLine="cpp.Initialize";
+_cpp.Initialize();
+ //BA.debugLineNum = 33;BA.debugLine="cpp.pnl = xui.CreatePanel(\"\")";
+_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 34;BA.debugLine="cpp.pnl.SetColorAndBorder(BordersColor, 1dip, Bor";
+_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(_borderscolor,__c.DipToCurrent((int) (1)),_borderscolor,(int) (0));
+ //BA.debugLineNum = 35;BA.debugLine="cpp.pnl.SetLayoutAnimated(0, 1dip, 1dip, 1dip, 1d";
+_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (1)));
+ //BA.debugLineNum = 36;BA.debugLine="If WithCheckers Then";
+if (_withcheckers) {
+ //BA.debugLineNum = 37;BA.debugLine="cpp.checkersCanvas.Initialize(cpp.pnl)";
+_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ );
+ //BA.debugLineNum = 38;BA.debugLine="cpp.DrawCheckers = True";
+_cpp.DrawCheckers /*boolean*/ = __c.True;
+ };
+ //BA.debugLineNum = 40;BA.debugLine="Dim iv As ImageView";
+_iv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 41;BA.debugLine="iv.Initialize(\"\")";
+_iv.Initialize(ba,"");
+ //BA.debugLineNum = 42;BA.debugLine="cpp.iv = iv";
+_cpp.iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject()));
+ //BA.debugLineNum = 43;BA.debugLine="Dim overlay As B4XView = xui.CreatePanel(EventNam";
+_overlay = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_overlay = _xui.CreatePanel(ba,_eventname);
+ //BA.debugLineNum = 44;BA.debugLine="cpp.pnl.AddView(iv, 0, 0, 0, 0)";
+_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_iv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 45;BA.debugLine="cpp.pnl.AddView(overlay, 1dip, 1dip, 1dip, 1dip)";
+_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_overlay.getObject()),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (1)),__c.DipToCurrent((int) (1)));
+ //BA.debugLineNum = 46;BA.debugLine="cpp.cvs.Initialize(overlay)";
+_cpp.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(_overlay);
+ //BA.debugLineNum = 47;BA.debugLine="mBase.AddView(cpp.pnl, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 48;BA.debugLine="Return cpp";
+if (true) return _cpp;
+ //BA.debugLineNum = 49;BA.debugLine="End Sub";
+return null;
+}
+public String _dialogclosed(int _result) throws Exception{
+ //BA.debugLineNum = 241;BA.debugLine="Private Sub DialogClosed(Result As Int)";
+ //BA.debugLineNum = 242;BA.debugLine="If Result <> xui.DialogResponse_Positive Then";
+if (_result!=_xui.DialogResponse_Positive) {
+ //BA.debugLineNum = 243;BA.debugLine="setSelectedHSVColor(InitialColor)";
+_setselectedhsvcolor(_initialcolor);
+ };
+ //BA.debugLineNum = 245;BA.debugLine="End Sub";
+return "";
+}
+public String _drawalphabar() throws Exception{
+b4a.example.bitmapcreator _bc = null;
+b4a.example.bitmapcreator._argbcolor _argb = null;
+int _y = 0;
+int _x = 0;
+ //BA.debugLineNum = 109;BA.debugLine="Private Sub DrawAlphaBar";
+ //BA.debugLineNum = 110;BA.debugLine="Dim bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 111;BA.debugLine="bc.Initialize(AlphaBar.pnl.Width / DeviceScale, A";
+_bc._initialize(ba,(int) (_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)_devicescale),(int) (_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)_devicescale));
+ //BA.debugLineNum = 112;BA.debugLine="Dim argb As ARGBColor";
+_argb = new b4a.example.bitmapcreator._argbcolor();
+ //BA.debugLineNum = 113;BA.debugLine="argb.r = 0xcc";
+_argb.r = ((int)0xcc);
+ //BA.debugLineNum = 114;BA.debugLine="argb.g = 0xcc";
+_argb.g = ((int)0xcc);
+ //BA.debugLineNum = 115;BA.debugLine="argb.b = 0xcc";
+_argb.b = ((int)0xcc);
+ //BA.debugLineNum = 117;BA.debugLine="For y = 0 To bc.mHeight - 1";
+{
+final int step7 = 1;
+final int limit7 = (int) (_bc._mheight-1);
+_y = (int) (0) ;
+for (;_y <= limit7 ;_y = _y + step7 ) {
+ //BA.debugLineNum = 118;BA.debugLine="For x = 0 To bc.mWidth - 1";
+{
+final int step8 = 1;
+final int limit8 = (int) (_bc._mwidth-1);
+_x = (int) (0) ;
+for (;_x <= limit8 ;_x = _x + step8 ) {
+ //BA.debugLineNum = 119;BA.debugLine="argb.a = x / bc.mWidth * 255";
+_argb.a = (int) (_x/(double)_bc._mwidth*255);
+ //BA.debugLineNum = 120;BA.debugLine="bc.SetARGB(x, y, argb)";
+_bc._setargb(_x,_y,_argb);
+ }
+};
+ }
+};
+ //BA.debugLineNum = 123;BA.debugLine="AlphaBar.iv.SetBitmap(bc.Bitmap)";
+_alphabar.iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(_bc._getbitmap().getObject()));
+ //BA.debugLineNum = 124;BA.debugLine="End Sub";
+return "";
+}
+public String _drawcheckers(reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _cpp) throws Exception{
+int _size = 0;
+int[] _clrs = null;
+int _clr = 0;
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+int _x = 0;
+int _xx = 0;
+int _y = 0;
+ //BA.debugLineNum = 79;BA.debugLine="Private Sub DrawCheckers (cpp As ColorPickerPart)";
+ //BA.debugLineNum = 80;BA.debugLine="cpp.checkersCanvas.Resize(cpp.pnl.Width, cpp.pnl.";
+_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()),(float) (_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()));
+ //BA.debugLineNum = 81;BA.debugLine="cpp.checkersCanvas.ClearRect(cpp.checkersCanvas.T";
+_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect());
+ //BA.debugLineNum = 82;BA.debugLine="Dim size As Int = 10dip";
+_size = __c.DipToCurrent((int) (10));
+ //BA.debugLineNum = 83;BA.debugLine="Dim clrs() As Int = Array As Int(0xFFC0C0C0, 0xFF";
+_clrs = new int[]{((int)0xffc0c0c0),((int)0xff757575)};
+ //BA.debugLineNum = 84;BA.debugLine="Dim clr As Int = 0";
+_clr = (int) (0);
+ //BA.debugLineNum = 85;BA.debugLine="Dim r As B4XRect";
+_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 86;BA.debugLine="For x = 0 To cpp.checkersCanvas.TargetRect.Right";
+{
+final int step7 = _size;
+final int limit7 = (int) (_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getRight()-__c.DipToCurrent((int) (1)));
+_x = (int) (0) ;
+for (;(step7 > 0 && _x <= limit7) || (step7 < 0 && _x >= limit7) ;_x = ((int)(0 + _x + step7)) ) {
+ //BA.debugLineNum = 87;BA.debugLine="Dim xx As Int = x / size";
+_xx = (int) (_x/(double)_size);
+ //BA.debugLineNum = 88;BA.debugLine="clr = xx Mod 2";
+_clr = (int) (_xx%2);
+ //BA.debugLineNum = 89;BA.debugLine="For y = 0 To cpp.checkersCanvas.TargetRect.Botto";
+{
+final int step10 = _size;
+final int limit10 = (int) (_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getBottom()-__c.DipToCurrent((int) (1)));
+_y = (int) (0) ;
+for (;(step10 > 0 && _y <= limit10) || (step10 < 0 && _y >= limit10) ;_y = ((int)(0 + _y + step10)) ) {
+ //BA.debugLineNum = 90;BA.debugLine="clr = (clr + 1) Mod 2";
+_clr = (int) ((_clr+1)%2);
+ //BA.debugLineNum = 91;BA.debugLine="r.Initialize(x, y, x + size, y + size)";
+_r.Initialize((float) (_x),(float) (_y),(float) (_x+_size),(float) (_y+_size));
+ //BA.debugLineNum = 92;BA.debugLine="cpp.checkersCanvas.DrawRect(r, clrs(clr), True,";
+_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(_r,_clrs[_clr],__c.True,(float) (0));
+ }
+};
+ }
+};
+ //BA.debugLineNum = 95;BA.debugLine="cpp.checkersCanvas.Invalidate";
+_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate();
+ //BA.debugLineNum = 96;BA.debugLine="End Sub";
+return "";
+}
+public String _drawcolors() throws Exception{
+int _x = 0;
+int _y = 0;
+ //BA.debugLineNum = 126;BA.debugLine="Private Sub DrawColors";
+ //BA.debugLineNum = 127;BA.debugLine="For x = 0 To bcColors.mWidth - 1";
+{
+final int step1 = 1;
+final int limit1 = (int) (_bccolors._mwidth-1);
+_x = (int) (0) ;
+for (;_x <= limit1 ;_x = _x + step1 ) {
+ //BA.debugLineNum = 128;BA.debugLine="For y = 0 To bcColors.mHeight - 1";
+{
+final int step2 = 1;
+final int limit2 = (int) (_bccolors._mheight-1);
+_y = (int) (0) ;
+for (;_y <= limit2 ;_y = _y + step2 ) {
+ //BA.debugLineNum = 129;BA.debugLine="bcColors.SetHSV(x, y, SelectedAlpha, selectedH,";
+_bccolors._sethsv(_x,_y,_selectedalpha,(int) (_selectedh),(float) (_x/(double)_bccolors._mwidth),(float) ((_bccolors._mheight-_y)/(double)_bccolors._mheight));
+ }
+};
+ }
+};
+ //BA.debugLineNum = 133;BA.debugLine="ColorPicker.iv.SetBitmap(bcColors.Bitmap.Resize(C";
+_colorpicker.iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(_bccolors._getbitmap().Resize(_colorpicker.iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),_colorpicker.iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight(),__c.False).getObject()));
+ //BA.debugLineNum = 134;BA.debugLine="End Sub";
+return "";
+}
+public String _drawhuebar() throws Exception{
+b4a.example.bitmapcreator _bchue = null;
+int _y = 0;
+int _x = 0;
+ //BA.debugLineNum = 98;BA.debugLine="Private Sub DrawHueBar";
+ //BA.debugLineNum = 99;BA.debugLine="Dim bcHue As BitmapCreator";
+_bchue = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 100;BA.debugLine="bcHue.Initialize(HueBar.pnl.Width / DeviceScale,";
+_bchue._initialize(ba,(int) (_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)_devicescale),(int) (_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)_devicescale));
+ //BA.debugLineNum = 101;BA.debugLine="For y = 0 To bcHue.mHeight - 1";
+{
+final int step3 = 1;
+final int limit3 = (int) (_bchue._mheight-1);
+_y = (int) (0) ;
+for (;_y <= limit3 ;_y = _y + step3 ) {
+ //BA.debugLineNum = 102;BA.debugLine="For x = 0 To bcHue.mWidth - 1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_bchue._mwidth-1);
+_x = (int) (0) ;
+for (;_x <= limit4 ;_x = _x + step4 ) {
+ //BA.debugLineNum = 103;BA.debugLine="bcHue.SetHSV(x, y, 255, 360 / bcHue.mHeight * y";
+_bchue._sethsv(_x,_y,(int) (255),(int) (360/(double)_bchue._mheight*_y),(float) (1),(float) (1));
+ }
+};
+ }
+};
+ //BA.debugLineNum = 106;BA.debugLine="HueBar.iv.SetBitmap(bcHue.Bitmap)";
+_huebar.iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(_bchue._getbitmap().getObject()));
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 230;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 231;BA.debugLine="Return mBase";
+if (true) return _mbase;
+ //BA.debugLineNum = 232;BA.debugLine="End Sub";
+return null;
+}
+public int _getselectedcolor() throws Exception{
+Object[] _hsv = null;
+ //BA.debugLineNum = 175;BA.debugLine="Public Sub getSelectedColor As Int";
+ //BA.debugLineNum = 176;BA.debugLine="Dim hsv() As Object = getSelectedHSVColor";
+_hsv = _getselectedhsvcolor();
+ //BA.debugLineNum = 177;BA.debugLine="tempBC.SetHSV(0, 0, SelectedAlpha, hsv(0), hsv(1)";
+_tempbc._sethsv((int) (0),(int) (0),_selectedalpha,(int)(BA.ObjectToNumber(_hsv[(int) (0)])),(float)(BA.ObjectToNumber(_hsv[(int) (1)])),(float)(BA.ObjectToNumber(_hsv[(int) (2)])));
+ //BA.debugLineNum = 178;BA.debugLine="Return tempBC.GetColor(0, 0)";
+if (true) return _tempbc._getcolor((int) (0),(int) (0));
+ //BA.debugLineNum = 179;BA.debugLine="End Sub";
+return 0;
+}
+public Object[] _getselectedhsvcolor() throws Exception{
+ //BA.debugLineNum = 186;BA.debugLine="Public Sub getSelectedHSVColor As Object()";
+ //BA.debugLineNum = 187;BA.debugLine="Return Array (selectedH, selectedS, selectedV, Se";
+if (true) return new Object[]{(Object)(_selectedh),(Object)(_selecteds),(Object)(_selectedv),(Object)(_selectedalpha)};
+ //BA.debugLineNum = 188;BA.debugLine="End Sub";
+return null;
+}
+public String _handleselectedcolorchanged(int _x,int _y) throws Exception{
+ //BA.debugLineNum = 163;BA.debugLine="Private Sub HandleSelectedColorChanged (x As Int,";
+ //BA.debugLineNum = 164;BA.debugLine="If x <> DONT_CHANGE Then";
+if (_x!=_dont_change) {
+ //BA.debugLineNum = 165;BA.debugLine="selectedS = Max(0, Min(1, x / ColorPicker.pnl.Wi";
+_selecteds = (float) (__c.Max(0,__c.Min(1,_x/(double)_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth())));
+ //BA.debugLineNum = 166;BA.debugLine="selectedV = Max(0, Min(1, (ColorPicker.pnl.Heigh";
+_selectedv = (float) (__c.Max(0,__c.Min(1,(_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-_y)/(double)_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())));
+ };
+ //BA.debugLineNum = 168;BA.debugLine="ColorPicker.cvs.ClearRect(ColorPicker.cvs.TargetR";
+_colorpicker.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(_colorpicker.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect());
+ //BA.debugLineNum = 169;BA.debugLine="ColorPicker.cvs.DrawCircle(selectedS * ColorPicke";
+_colorpicker.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (_selecteds*_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()),(float) (_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-_selectedv*_colorpicker.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()),(float) (__c.DipToCurrent((int) (10))),_xui.Color_White,__c.False,(float) (__c.DipToCurrent((int) (2))));
+ //BA.debugLineNum = 171;BA.debugLine="ColorPicker.cvs.Invalidate";
+_colorpicker.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate();
+ //BA.debugLineNum = 172;BA.debugLine="UpdateBarColor";
+_updatebarcolor();
+ //BA.debugLineNum = 173;BA.debugLine="End Sub";
+return "";
+}
+public String _huebar_touch(int _action,float _x,float _y) throws Exception{
+ //BA.debugLineNum = 258;BA.debugLine="Private Sub HueBar_Touch (Action As Int, X As Floa";
+ //BA.debugLineNum = 259;BA.debugLine="If Action = mBase.TOUCH_ACTION_MOVE_NOTOUCH Then";
+if (_action==_mbase.TOUCH_ACTION_MOVE_NOTOUCH) {
+if (true) return "";};
+ //BA.debugLineNum = 260;BA.debugLine="HueBarSelectedChanged(Y)";
+_huebarselectedchanged(_y);
+ //BA.debugLineNum = 261;BA.debugLine="End Sub";
+return "";
+}
+public String _huebarselectedchanged(float _y) throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+ //BA.debugLineNum = 136;BA.debugLine="Private Sub HueBarSelectedChanged (y As Float)";
+ //BA.debugLineNum = 137;BA.debugLine="selectedH = Max(0, Min(360, 360 * y / HueBar.pnl.";
+_selectedh = (float) (__c.Max(0,__c.Min(360,360*_y/(double)_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())));
+ //BA.debugLineNum = 138;BA.debugLine="y = selectedH * HueBar.pnl.Height / 360";
+_y = (float) (_selectedh*_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)360);
+ //BA.debugLineNum = 139;BA.debugLine="HueBar.cvs.ClearRect(HueBar.cvs.TargetRect)";
+_huebar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(_huebar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect());
+ //BA.debugLineNum = 140;BA.debugLine="Dim r As B4XRect";
+_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 141;BA.debugLine="r.Initialize(0, y - 3dip, HueBar.cvs.TargetRect.R";
+_r.Initialize((float) (0),(float) (_y-__c.DipToCurrent((int) (3))),_huebar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getRight(),(float) (_y+__c.DipToCurrent((int) (3))));
+ //BA.debugLineNum = 142;BA.debugLine="HueBar.cvs.DrawRect(r, xui.Color_White, False, 2d";
+_huebar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(_r,_xui.Color_White,__c.False,(float) (__c.DipToCurrent((int) (2))));
+ //BA.debugLineNum = 143;BA.debugLine="HueBar.cvs.Invalidate";
+_huebar.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate();
+ //BA.debugLineNum = 144;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 145;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 17;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 18;BA.debugLine="tempBC.Initialize(1, 1)";
+_tempbc._initialize(ba,(int) (1),(int) (1));
+ //BA.debugLineNum = 19;BA.debugLine="DeviceScale = 100dip / 100";
+_devicescale = (float) (__c.DipToCurrent((int) (100))/(double)100);
+ //BA.debugLineNum = 20;BA.debugLine="mBase = xui.CreatePanel(\"\")";
+_mbase = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 21;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 250dip)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (250)));
+ //BA.debugLineNum = 22;BA.debugLine="BordersColor = xui.Color_Black";
+_borderscolor = _xui.Color_Black;
+ //BA.debugLineNum = 23;BA.debugLine="mBase.SetColorAndBorder(BordersColor, 1dip, Borde";
+_mbase.SetColorAndBorder(_borderscolor,__c.DipToCurrent((int) (1)),_borderscolor,__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 24;BA.debugLine="HueBar = CreatePanelForBitmapCreator(\"hueBar\", Fa";
+_huebar = _createpanelforbitmapcreator("hueBar",__c.False);
+ //BA.debugLineNum = 25;BA.debugLine="ColorPicker = CreatePanelForBitmapCreator(\"colors";
+_colorpicker = _createpanelforbitmapcreator("colors",__c.True);
+ //BA.debugLineNum = 26;BA.debugLine="AlphaBar = CreatePanelForBitmapCreator(\"alpha\", T";
+_alphabar = _createpanelforbitmapcreator("alpha",__c.True);
+ //BA.debugLineNum = 27;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 28;BA.debugLine="End Sub";
+return "";
+}
+public String _setselectedcolor(int _i) throws Exception{
+ //BA.debugLineNum = 181;BA.debugLine="Public Sub setSelectedColor(i As Int)";
+ //BA.debugLineNum = 182;BA.debugLine="setSelectedHSVColor(ColorToHSV(i))";
+_setselectedhsvcolor(_colortohsv(_i));
+ //BA.debugLineNum = 183;BA.debugLine="End Sub";
+return "";
+}
+public String _setselectedhsvcolor(Object[] _hsv) throws Exception{
+ //BA.debugLineNum = 190;BA.debugLine="Public Sub setSelectedHSVColor (HSV() As Object)";
+ //BA.debugLineNum = 191;BA.debugLine="selectedH = HSV(0)";
+_selectedh = (float)(BA.ObjectToNumber(_hsv[(int) (0)]));
+ //BA.debugLineNum = 192;BA.debugLine="selectedS = HSV(1)";
+_selecteds = (float)(BA.ObjectToNumber(_hsv[(int) (1)]));
+ //BA.debugLineNum = 193;BA.debugLine="selectedV = HSV(2)";
+_selectedv = (float)(BA.ObjectToNumber(_hsv[(int) (2)]));
+ //BA.debugLineNum = 194;BA.debugLine="SelectedAlpha = HSV(3)";
+_selectedalpha = (int)(BA.ObjectToNumber(_hsv[(int) (3)]));
+ //BA.debugLineNum = 195;BA.debugLine="HueBarSelectedChanged(selectedH / 360 * HueBar.pn";
+_huebarselectedchanged((float) (_selectedh/(double)360*_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()));
+ //BA.debugLineNum = 196;BA.debugLine="AlphaBarSelectedChange(SelectedAlpha / 255 * Alph";
+_alphabarselectedchange((float) (_selectedalpha/(double)255*_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()));
+ //BA.debugLineNum = 197;BA.debugLine="End Sub";
+return "";
+}
+public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_Show extends BA.ResumableSub {
+public ResumableSub_Show(reparto_izca.keymon.lat.b4xcolortemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) {
+this.parent = parent;
+this._dialog = _dialog;
+}
+reparto_izca.keymon.lat.b4xcolortemplate parent;
+reparto_izca.keymon.lat.b4xdialog _dialog;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 235;BA.debugLine="InitialColor = getSelectedHSVColor";
+parent._initialcolor = parent._getselectedhsvcolor();
+ //BA.debugLineNum = 236;BA.debugLine="xDialog = Dialog";
+parent._xdialog = _dialog;
+ //BA.debugLineNum = 237;BA.debugLine="Sleep(0)";
+parent.__c.Sleep(ba,this,(int) (0));
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 238;BA.debugLine="UpdateBarColor";
+parent._updatebarcolor();
+ //BA.debugLineNum = 239;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _update() throws Exception{
+ //BA.debugLineNum = 158;BA.debugLine="Private Sub Update";
+ //BA.debugLineNum = 159;BA.debugLine="DrawColors";
+_drawcolors();
+ //BA.debugLineNum = 160;BA.debugLine="HandleSelectedColorChanged(DONT_CHANGE, DONT_CHAN";
+_handleselectedcolorchanged(_dont_change,_dont_change);
+ //BA.debugLineNum = 161;BA.debugLine="End Sub";
+return "";
+}
+public String _updatebarcolor() throws Exception{
+ //BA.debugLineNum = 247;BA.debugLine="Private Sub UpdateBarColor";
+ //BA.debugLineNum = 248;BA.debugLine="If xDialog.IsInitialized And xDialog.TitleBar.IsI";
+if (_xdialog.IsInitialized /*boolean*/ () && _xdialog._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) {
+ //BA.debugLineNum = 249;BA.debugLine="xDialog.TitleBar.Color = getSelectedColor";
+_xdialog._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(_getselectedcolor());
+ };
+ //BA.debugLineNum = 251;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcombobox.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcombobox.java
new file mode 100644
index 0000000..63734b5
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcombobox.java
@@ -0,0 +1,318 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xcombobox extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcombobox");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xcombobox.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public int _lastselectedindex = 0;
+public anywheresoftware.b4a.objects.SpinnerWrapper _cmbbox = null;
+public int _delaybeforechangeevent = 0;
+public int _delayindex = 0;
+public Object _tag = null;
+public String _b4icancelbutton = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 55;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 56;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width";
+_mbase.GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 57;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 3;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 4;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 5;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 6;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 7;BA.debugLine="Private LastSelectedIndex As Int";
+_lastselectedindex = 0;
+ //BA.debugLineNum = 11;BA.debugLine="Public cmbBox As Spinner";
+_cmbbox = new anywheresoftware.b4a.objects.SpinnerWrapper();
+ //BA.debugLineNum = 17;BA.debugLine="Public DelayBeforeChangeEvent As Int";
+_delaybeforechangeevent = 0;
+ //BA.debugLineNum = 19;BA.debugLine="Private DelayIndex As Int";
+_delayindex = 0;
+ //BA.debugLineNum = 20;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 21;BA.debugLine="Public B4iCancelButton As String = \"Cancel\"";
+_b4icancelbutton = "Cancel";
+ //BA.debugLineNum = 22;BA.debugLine="End Sub";
+return "";
+}
+public String _cmbbox_itemclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 157;BA.debugLine="Private Sub CmbBox_ItemClick (Position As Int, Val";
+ //BA.debugLineNum = 158;BA.debugLine="RaiseEvent";
+_raiseevent();
+ //BA.debugLineNum = 159;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+ //BA.debugLineNum = 32;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 33;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 35;BA.debugLine="Dim xlbl As B4XView = Lbl";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 42;BA.debugLine="cmbBox.Initialize(\"cmbBox\")";
+_cmbbox.Initialize(ba,"cmbBox");
+ //BA.debugLineNum = 43;BA.debugLine="cmbBox.TextSize = xlbl.TextSize";
+_cmbbox.setTextSize(_xlbl.getTextSize());
+ //BA.debugLineNum = 44;BA.debugLine="mBase.AddView(cmbBox, 0, 0, mBase.Width, mBase.He";
+_mbase.AddView((android.view.View)(_cmbbox.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 53;BA.debugLine="End Sub";
+return "";
+}
+public String _getitem(int _index) throws Exception{
+ //BA.debugLineNum = 127;BA.debugLine="Public Sub GetItem(Index As Int) As String";
+ //BA.debugLineNum = 131;BA.debugLine="Return cmbBox.GetItem(Index)";
+if (true) return _cmbbox.GetItem(_index);
+ //BA.debugLineNum = 135;BA.debugLine="End Sub";
+return "";
+}
+public int _getselectedindex() throws Exception{
+ //BA.debugLineNum = 98;BA.debugLine="Public Sub getSelectedIndex As Int";
+ //BA.debugLineNum = 100;BA.debugLine="Return cmbBox.SelectedIndex";
+if (true) return _cmbbox.getSelectedIndex();
+ //BA.debugLineNum = 104;BA.debugLine="End Sub";
+return 0;
+}
+public String _getselecteditem() throws Exception{
+int _i = 0;
+ //BA.debugLineNum = 121;BA.debugLine="Public Sub getSelectedItem As String";
+ //BA.debugLineNum = 122;BA.debugLine="Dim i As Int = getSelectedIndex";
+_i = _getselectedindex();
+ //BA.debugLineNum = 123;BA.debugLine="If i = -1 Then Return \"\"";
+if (_i==-1) {
+if (true) return "";};
+ //BA.debugLineNum = 124;BA.debugLine="Return GetItem(i)";
+if (true) return _getitem(_i);
+ //BA.debugLineNum = 125;BA.debugLine="End Sub";
+return "";
+}
+public int _getsize() throws Exception{
+ //BA.debugLineNum = 76;BA.debugLine="Public Sub getSize As Int";
+ //BA.debugLineNum = 80;BA.debugLine="Return cmbBox.Size";
+if (true) return _cmbbox.getSize();
+ //BA.debugLineNum = 84;BA.debugLine="End Sub";
+return 0;
+}
+public int _indexof(String _item) throws Exception{
+ //BA.debugLineNum = 87;BA.debugLine="Public Sub IndexOf(Item As String) As Int";
+ //BA.debugLineNum = 91;BA.debugLine="Return cmbBox.IndexOf(Item)";
+if (true) return _cmbbox.IndexOf(_item);
+ //BA.debugLineNum = 95;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 24;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 25;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 26;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 27;BA.debugLine="LastSelectedIndex = -1";
+_lastselectedindex = (int) (-1);
+ //BA.debugLineNum = 28;BA.debugLine="If xui.IsB4J Then DelayBeforeChangeEvent = 500";
+if (_xui.getIsB4J()) {
+_delaybeforechangeevent = (int) (500);};
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return "";
+}
+public void _raiseevent() throws Exception{
+ResumableSub_RaiseEvent rsub = new ResumableSub_RaiseEvent(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_RaiseEvent extends BA.ResumableSub {
+public ResumableSub_RaiseEvent(reparto_izca.keymon.lat.b4xcombobox parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.b4xcombobox parent;
+int _index = 0;
+int _myindex = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 138;BA.debugLine="Dim index As Int = getSelectedIndex";
+_index = parent._getselectedindex();
+ //BA.debugLineNum = 139;BA.debugLine="If LastSelectedIndex = index Then Return";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent._lastselectedindex==_index) {
+this.state = 3;
+;}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+if (true) return ;
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 140;BA.debugLine="If DelayBeforeChangeEvent > 0 Then";
+if (true) break;
+
+case 7:
+//if
+this.state = 16;
+if (parent._delaybeforechangeevent>0) {
+this.state = 9;
+}if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 141;BA.debugLine="DelayIndex = DelayIndex + 1";
+parent._delayindex = (int) (parent._delayindex+1);
+ //BA.debugLineNum = 142;BA.debugLine="Dim MyIndex As Int = DelayIndex";
+_myindex = parent._delayindex;
+ //BA.debugLineNum = 143;BA.debugLine="Sleep(DelayBeforeChangeEvent)";
+parent.__c.Sleep(ba,this,parent._delaybeforechangeevent);
+this.state = 21;
+return;
+case 21:
+//C
+this.state = 10;
+;
+ //BA.debugLineNum = 144;BA.debugLine="If MyIndex <> DelayIndex Then Return";
+if (true) break;
+
+case 10:
+//if
+this.state = 15;
+if (_myindex!=parent._delayindex) {
+this.state = 12;
+;}if (true) break;
+
+case 12:
+//C
+this.state = 15;
+if (true) return ;
+if (true) break;
+
+case 15:
+//C
+this.state = 16;
+;
+ if (true) break;
+
+case 16:
+//C
+this.state = 17;
+;
+ //BA.debugLineNum = 146;BA.debugLine="LastSelectedIndex = index";
+parent._lastselectedindex = _index;
+ //BA.debugLineNum = 147;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Select";
+if (true) break;
+
+case 17:
+//if
+this.state = 20;
+if (parent._xui.SubExists(ba,parent._mcallback,parent._meventname+"_SelectedIndexChanged",(int) (1))) {
+this.state = 19;
+}if (true) break;
+
+case 19:
+//C
+this.state = 20;
+ //BA.debugLineNum = 148;BA.debugLine="CallSub2(mCallBack, mEventName & \"_SelectedIndex";
+parent.__c.CallSubNew2(ba,parent._mcallback,parent._meventname+"_SelectedIndexChanged",(Object)(_index));
+ if (true) break;
+
+case 20:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 150;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _setitems(anywheresoftware.b4a.objects.collections.List _items) throws Exception{
+ //BA.debugLineNum = 59;BA.debugLine="Public Sub SetItems(Items As List)";
+ //BA.debugLineNum = 64;BA.debugLine="cmbBox.Clear";
+_cmbbox.Clear();
+ //BA.debugLineNum = 65;BA.debugLine="cmbBox.AddAll(Items)";
+_cmbbox.AddAll(_items);
+ //BA.debugLineNum = 72;BA.debugLine="If Items.Size > 0 Then setSelectedIndex(0)";
+if (_items.getSize()>0) {
+_setselectedindex((int) (0));};
+ //BA.debugLineNum = 73;BA.debugLine="End Sub";
+return "";
+}
+public String _setselectedindex(int _i) throws Exception{
+ //BA.debugLineNum = 106;BA.debugLine="Public Sub setSelectedIndex(i As Int)";
+ //BA.debugLineNum = 107;BA.debugLine="LastSelectedIndex = i";
+_lastselectedindex = _i;
+ //BA.debugLineNum = 109;BA.debugLine="cmbBox.SelectedIndex = i";
+_cmbbox.setSelectedIndex(_i);
+ //BA.debugLineNum = 118;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcomparatorsort.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcomparatorsort.java
new file mode 100644
index 0000000..07e0aed
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcomparatorsort.java
@@ -0,0 +1,126 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xcomparatorsort extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcomparatorsort");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xcomparatorsort.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 4;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 5;BA.debugLine="End Sub";
+return "";
+}
+public int _partition(anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _length,int _pivotindex,Object _comparator) throws Exception{
+Object _pivotvalue = null;
+int _l = 0;
+int _i = 0;
+ //BA.debugLineNum = 30;BA.debugLine="Private Sub Partition(Data As List, StartIndex As";
+ //BA.debugLineNum = 31;BA.debugLine="Dim PivotValue As Object = Data.Get(StartIndex +";
+_pivotvalue = _data.Get((int) (_startindex+_pivotindex));
+ //BA.debugLineNum = 32;BA.debugLine="Swap(Data, StartIndex, PivotIndex, Length - 1)";
+_swap(_data,_startindex,_pivotindex,(int) (_length-1));
+ //BA.debugLineNum = 33;BA.debugLine="Dim L As Int = 0";
+_l = (int) (0);
+ //BA.debugLineNum = 34;BA.debugLine="For i = 0 To Length - 2";
+{
+final int step4 = 1;
+final int limit4 = (int) (_length-2);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 35;BA.debugLine="If CallSub3(Comparator, \"Compare\", Data.Get(Star";
+if (((int)(BA.ObjectToNumber(__c.CallSubNew3(ba,_comparator,"Compare",_data.Get((int) (_startindex+_i)),_pivotvalue))))<0) {
+ //BA.debugLineNum = 36;BA.debugLine="L = L + 1";
+_l = (int) (_l+1);
+ //BA.debugLineNum = 37;BA.debugLine="Swap(Data, StartIndex, L - 1, i)";
+_swap(_data,_startindex,(int) (_l-1),_i);
+ };
+ }
+};
+ //BA.debugLineNum = 40;BA.debugLine="Swap(Data, StartIndex, Length - 1, L)";
+_swap(_data,_startindex,(int) (_length-1),_l);
+ //BA.debugLineNum = 41;BA.debugLine="Return L";
+if (true) return _l;
+ //BA.debugLineNum = 42;BA.debugLine="End Sub";
+return 0;
+}
+public String _quicksort(anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _length,Object _comparator) throws Exception{
+int _pivotindex = 0;
+int _r = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Private Sub QuickSort (Data As List, StartIndex As";
+ //BA.debugLineNum = 22;BA.debugLine="If Length > 1 Then";
+if (_length>1) {
+ //BA.debugLineNum = 23;BA.debugLine="Dim PivotIndex As Int = Rnd(0, Length)";
+_pivotindex = __c.Rnd((int) (0),_length);
+ //BA.debugLineNum = 24;BA.debugLine="Dim r As Int = Partition(Data, StartIndex, Lengt";
+_r = _partition(_data,_startindex,_length,_pivotindex,_comparator);
+ //BA.debugLineNum = 25;BA.debugLine="QuickSort(Data, StartIndex, r, Comparator)";
+_quicksort(_data,_startindex,_r,_comparator);
+ //BA.debugLineNum = 26;BA.debugLine="QuickSort(Data, StartIndex + r + 1, Length - r -";
+_quicksort(_data,(int) (_startindex+_r+1),(int) (_length-_r-1),_comparator);
+ };
+ //BA.debugLineNum = 28;BA.debugLine="End Sub";
+return "";
+}
+public String _sort(anywheresoftware.b4a.objects.collections.List _data,Object _comparator) throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Public Sub Sort (Data As List, Comparator As Objec";
+ //BA.debugLineNum = 14;BA.debugLine="QuickSort(Data, 0, Data.Size, Comparator)";
+_quicksort(_data,(int) (0),_data.getSize(),_comparator);
+ //BA.debugLineNum = 18;BA.debugLine="End Sub";
+return "";
+}
+public String _swap(anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _i1,int _i2) throws Exception{
+Object _o = null;
+ //BA.debugLineNum = 44;BA.debugLine="Private Sub Swap (Data As List, StartIndex As Int,";
+ //BA.debugLineNum = 45;BA.debugLine="Dim o As Object = Data.Get(StartIndex + i1)";
+_o = _data.Get((int) (_startindex+_i1));
+ //BA.debugLineNum = 46;BA.debugLine="Data.Set(StartIndex + i1, Data.Get(StartIndex + i";
+_data.Set((int) (_startindex+_i1),_data.Get((int) (_startindex+_i2)));
+ //BA.debugLineNum = 47;BA.debugLine="Data.Set(StartIndex + i2, o)";
+_data.Set((int) (_startindex+_i2),_o);
+ //BA.debugLineNum = 48;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xdatetemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdatetemplate.java
new file mode 100644
index 0000000..acc244c
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdatetemplate.java
@@ -0,0 +1,546 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xdatetemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xdatetemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xdatetemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public int _month = 0;
+public int _year = 0;
+public float _boxw = 0f;
+public float _boxh = 0f;
+public float _vcorrection = 0f;
+public int _tempselectedday = 0;
+public int _dayofweekoffset = 0;
+public int _daysinmonth = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _dayspanebg = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _dayspanefg = null;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public anywheresoftware.b4a.objects.B4XCanvas _cvsbackground = null;
+public long _selecteddate = 0L;
+public long _previousselecteddate = 0L;
+public int _selectedyear = 0;
+public int _selectedmonth = 0;
+public int _selectedday = 0;
+public int _highlightedcolor = 0;
+public int _selectedcolor = 0;
+public int _daysinmonthcolor = 0;
+public int _daysinweekcolor = 0;
+public anywheresoftware.b4a.objects.B4XCanvas _cvsdays = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _daystitlespane = null;
+public int _firstday = 0;
+public int _minyear = 0;
+public int _maxyear = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _btnmonthleft = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _btnmonthright = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _btnyearleft = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _btnyearright = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lblmonth = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lblyear = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _pnldialog = null;
+public anywheresoftware.b4a.objects.collections.List _months = null;
+public reparto_izca.keymon.lat.b4xdialog _mdialog = null;
+public boolean _closeonselection = false;
+public anywheresoftware.b4a.objects.collections.List _daysofweeknames = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _btnmonth_click() throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _btn = null;
+int _m = 0;
+ //BA.debugLineNum = 160;BA.debugLine="Private Sub btnMonth_Click";
+ //BA.debugLineNum = 161;BA.debugLine="Dim btn As B4XView = Sender";
+_btn = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_btn = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)));
+ //BA.debugLineNum = 162;BA.debugLine="Dim m As Int = 12 + month - 1 + btn.Tag";
+_m = (int) (12+_month-1+(double)(BA.ObjectToNumber(_btn.getTag())));
+ //BA.debugLineNum = 163;BA.debugLine="month = (m Mod 12) + 1";
+_month = (int) ((_m%12)+1);
+ //BA.debugLineNum = 164;BA.debugLine="DrawDays";
+_drawdays();
+ //BA.debugLineNum = 165;BA.debugLine="End Sub";
+return "";
+}
+public String _btnyear_click() throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _btn = null;
+ //BA.debugLineNum = 154;BA.debugLine="Private Sub btnYear_Click";
+ //BA.debugLineNum = 155;BA.debugLine="Dim btn As B4XView = Sender";
+_btn = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_btn = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)));
+ //BA.debugLineNum = 156;BA.debugLine="year = year + btn.Tag";
+_year = (int) (_year+(double)(BA.ObjectToNumber(_btn.getTag())));
+ //BA.debugLineNum = 157;BA.debugLine="DrawDays";
+_drawdays();
+ //BA.debugLineNum = 158;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 3;BA.debugLine="Private month, year As Int";
+_month = 0;
+_year = 0;
+ //BA.debugLineNum = 4;BA.debugLine="Private boxW, boxH As Float";
+_boxw = 0f;
+_boxh = 0f;
+ //BA.debugLineNum = 5;BA.debugLine="Private vCorrection As Float";
+_vcorrection = 0f;
+ //BA.debugLineNum = 6;BA.debugLine="Private tempSelectedDay As Int";
+_tempselectedday = 0;
+ //BA.debugLineNum = 7;BA.debugLine="Private dayOfWeekOffset As Int";
+_dayofweekoffset = 0;
+ //BA.debugLineNum = 8;BA.debugLine="Private daysInMonth As Int";
+_daysinmonth = 0;
+ //BA.debugLineNum = 9;BA.debugLine="Private DaysPaneBg As B4XView";
+_dayspanebg = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Private DaysPaneFg As B4XView";
+_dayspanefg = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 12;BA.debugLine="Private cvsBackground As B4XCanvas";
+_cvsbackground = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 13;BA.debugLine="Private selectedDate As Long";
+_selecteddate = 0L;
+ //BA.debugLineNum = 14;BA.debugLine="Private PreviousSelectedDate As Long";
+_previousselecteddate = 0L;
+ //BA.debugLineNum = 15;BA.debugLine="Private selectedYear, selectedMonth, selectedDay";
+_selectedyear = 0;
+_selectedmonth = 0;
+_selectedday = 0;
+ //BA.debugLineNum = 16;BA.debugLine="Public HighlightedColor As Int = 0xFF001BBD";
+_highlightedcolor = ((int)0xff001bbd);
+ //BA.debugLineNum = 17;BA.debugLine="Public SelectedColor As Int = 0xFF0BA29B";
+_selectedcolor = ((int)0xff0ba29b);
+ //BA.debugLineNum = 18;BA.debugLine="Public DaysInMonthColor As Int = xui.Color_White";
+_daysinmonthcolor = _xui.Color_White;
+ //BA.debugLineNum = 19;BA.debugLine="Public DaysInWeekColor As Int = xui.Color_Gray";
+_daysinweekcolor = _xui.Color_Gray;
+ //BA.debugLineNum = 20;BA.debugLine="Private cvsDays As B4XCanvas";
+_cvsdays = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 21;BA.debugLine="Private DaysTitlesPane As B4XView";
+_daystitlespane = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Public FirstDay As Int = 0";
+_firstday = (int) (0);
+ //BA.debugLineNum = 23;BA.debugLine="Public MinYear = 1970, MaxYear = 2030 As Int";
+_minyear = (int) (1970);
+_maxyear = (int) (2030);
+ //BA.debugLineNum = 24;BA.debugLine="Public btnMonthLeft As B4XView";
+_btnmonthleft = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Public btnMonthRight As B4XView";
+_btnmonthright = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 26;BA.debugLine="Public btnYearLeft As B4XView";
+_btnyearleft = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Public btnYearRight As B4XView";
+_btnyearright = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 28;BA.debugLine="Public lblMonth As B4XView";
+_lblmonth = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Public lblYear As B4XView";
+_lblyear = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="Private pnlDialog As B4XView";
+_pnldialog = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Private months As List";
+_months = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 32;BA.debugLine="Private mDialog As B4XDialog";
+_mdialog = new reparto_izca.keymon.lat.b4xdialog();
+ //BA.debugLineNum = 33;BA.debugLine="Public CloseOnSelection As Boolean = True";
+_closeonselection = __c.True;
+ //BA.debugLineNum = 34;BA.debugLine="Public DaysOfWeekNames As List";
+_daysofweeknames = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return "";
+}
+public String _dayspanefg_touch(int _action,float _x,float _y) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+ //BA.debugLineNum = 167;BA.debugLine="Private Sub DaysPaneFg_Touch (Action As Int, X As";
+ //BA.debugLineNum = 168;BA.debugLine="Dim p As B4XView = DaysPaneFg";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _dayspanefg;
+ //BA.debugLineNum = 169;BA.debugLine="HandleMouse(X, Y, Action <> p.TOUCH_ACTION_UP)";
+_handlemouse(_x,_y,_action!=_p.TOUCH_ACTION_UP);
+ //BA.debugLineNum = 170;BA.debugLine="End Sub";
+return "";
+}
+public String _dialogclosed(int _result) throws Exception{
+ //BA.debugLineNum = 193;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore";
+ //BA.debugLineNum = 194;BA.debugLine="If Result <> xui.DialogResponse_Positive Then";
+if (_result!=_xui.DialogResponse_Positive) {
+ //BA.debugLineNum = 195;BA.debugLine="setDate(PreviousSelectedDate)";
+_setdate(_previousselecteddate);
+ };
+ //BA.debugLineNum = 197;BA.debugLine="End Sub";
+return "";
+}
+public String _drawbox(anywheresoftware.b4a.objects.B4XCanvas _c,int _clr,int _x,int _y) throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+ //BA.debugLineNum = 91;BA.debugLine="Private Sub DrawBox(c As B4XCanvas, clr As Int, x";
+ //BA.debugLineNum = 92;BA.debugLine="Dim r As B4XRect";
+_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 93;BA.debugLine="r.Initialize(x * boxW, y * boxH, x * boxW + boxW,";
+_r.Initialize((float) (_x*_boxw),(float) (_y*_boxh),(float) (_x*_boxw+_boxw),(float) (_y*_boxh+_boxh));
+ //BA.debugLineNum = 94;BA.debugLine="c.DrawRect(r, clr, True, 1dip)";
+_c.DrawRect(_r,_clr,__c.True,(float) (__c.DipToCurrent((int) (1))));
+ //BA.debugLineNum = 95;BA.debugLine="End Sub";
+return "";
+}
+public String _drawdays() throws Exception{
+long _firstdayofmonth = 0L;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _daysfont = null;
+int _day = 0;
+int _row = 0;
+ //BA.debugLineNum = 62;BA.debugLine="Private Sub DrawDays";
+ //BA.debugLineNum = 63;BA.debugLine="lblMonth.Text = months.Get(month - 1)";
+_lblmonth.setText(BA.ObjectToCharSequence(_months.Get((int) (_month-1))));
+ //BA.debugLineNum = 64;BA.debugLine="lblYear.Text = year";
+_lblyear.setText(BA.ObjectToCharSequence(_year));
+ //BA.debugLineNum = 65;BA.debugLine="SetYearsButtonState";
+_setyearsbuttonstate();
+ //BA.debugLineNum = 66;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
+_cvs.ClearRect(_cvs.getTargetRect());
+ //BA.debugLineNum = 67;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect)";
+_cvsbackground.ClearRect(_cvsbackground.getTargetRect());
+ //BA.debugLineNum = 68;BA.debugLine="Dim firstDayOfMonth As Long = DateUtils.setDate(y";
+_firstdayofmonth = (long) (_dateutils._setdate(ba,_year,_month,(int) (1))-1);
+ //BA.debugLineNum = 69;BA.debugLine="dayOfWeekOffset = (7 + DateTime.GetDayOfWeek(firs";
+_dayofweekoffset = (int) ((7+__c.DateTime.GetDayOfWeek(_firstdayofmonth)-_firstday)%7);
+ //BA.debugLineNum = 70;BA.debugLine="daysInMonth = DateUtils.NumberOfDaysInMonth(month";
+_daysinmonth = _dateutils._numberofdaysinmonth(ba,_month,_year);
+ //BA.debugLineNum = 71;BA.debugLine="If year = selectedYear And month = selectedMonth";
+if (_year==_selectedyear && _month==_selectedmonth) {
+ //BA.debugLineNum = 73;BA.debugLine="DrawBox(cvs, SelectedColor, (selectedDay - 1 + d";
+_drawbox(_cvs,_selectedcolor,(int) ((_selectedday-1+_dayofweekoffset)%7),(int) ((_selectedday-1+_dayofweekoffset)/(double)7));
+ };
+ //BA.debugLineNum = 76;BA.debugLine="Dim daysFont As B4XFont = xui.CreateDefaultBoldFo";
+_daysfont = _xui.CreateDefaultBoldFont((float) (14));
+ //BA.debugLineNum = 77;BA.debugLine="For day = 1 To daysInMonth";
+{
+final int step13 = 1;
+final int limit13 = _daysinmonth;
+_day = (int) (1) ;
+for (;_day <= limit13 ;_day = _day + step13 ) {
+ //BA.debugLineNum = 78;BA.debugLine="Dim row As Int = (day - 1 + dayOfWeekOffset) / 7";
+_row = (int) ((_day-1+_dayofweekoffset)/(double)7);
+ //BA.debugLineNum = 79;BA.debugLine="cvs.DrawText(day, (((dayOfWeekOffset + day - 1)";
+_cvs.DrawText(ba,BA.NumberToString(_day),(float) ((((_dayofweekoffset+_day-1)%7)+0.5)*_boxw),(float) ((_row+0.5)*_boxh+_vcorrection),_daysfont,_daysinmonthcolor,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER"));
+ }
+};
+ //BA.debugLineNum = 82;BA.debugLine="cvsBackground.Invalidate";
+_cvsbackground.Invalidate();
+ //BA.debugLineNum = 83;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 84;BA.debugLine="End Sub";
+return "";
+}
+public long _getdate() throws Exception{
+ //BA.debugLineNum = 98;BA.debugLine="Public Sub getDate As Long";
+ //BA.debugLineNum = 99;BA.debugLine="Return selectedDate";
+if (true) return _selecteddate;
+ //BA.debugLineNum = 100;BA.debugLine="End Sub";
+return 0L;
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 172;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 173;BA.debugLine="Return pnlDialog";
+if (true) return _pnldialog;
+ //BA.debugLineNum = 174;BA.debugLine="End Sub";
+return null;
+}
+public String _handlemouse(double _x,double _y,boolean _move) throws Exception{
+int _boxx = 0;
+int _boxy = 0;
+int _newselectedday = 0;
+boolean _validday = false;
+ //BA.debugLineNum = 123;BA.debugLine="Private Sub HandleMouse(x As Double, y As Double,";
+ //BA.debugLineNum = 124;BA.debugLine="Dim boxX = x / boxW, boxY = y / boxH As Int";
+_boxx = (int) (_x/(double)_boxw);
+_boxy = (int) (_y/(double)_boxh);
+ //BA.debugLineNum = 125;BA.debugLine="Dim newSelectedDay As Int = boxY * 7 + boxX + 1 -";
+_newselectedday = (int) (_boxy*7+_boxx+1-_dayofweekoffset);
+ //BA.debugLineNum = 126;BA.debugLine="Dim validDay As Boolean = newSelectedDay > 0 And";
+_validday = _newselectedday>0 && _newselectedday<=_daysinmonth;
+ //BA.debugLineNum = 127;BA.debugLine="If move Then";
+if (_move) {
+ //BA.debugLineNum = 128;BA.debugLine="If newSelectedDay = tempSelectedDay Then Return";
+if (_newselectedday==_tempselectedday) {
+if (true) return "";};
+ //BA.debugLineNum = 129;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect";
+_cvsbackground.ClearRect(_cvsbackground.getTargetRect());
+ //BA.debugLineNum = 130;BA.debugLine="tempSelectedDay = newSelectedDay";
+_tempselectedday = _newselectedday;
+ //BA.debugLineNum = 131;BA.debugLine="If validDay Then";
+if (_validday) {
+ //BA.debugLineNum = 132;BA.debugLine="DrawBox(cvsBackground, HighlightedColor, boxX,";
+_drawbox(_cvsbackground,_highlightedcolor,_boxx,_boxy);
+ };
+ }else {
+ //BA.debugLineNum = 135;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect";
+_cvsbackground.ClearRect(_cvsbackground.getTargetRect());
+ //BA.debugLineNum = 136;BA.debugLine="If validDay Then";
+if (_validday) {
+ //BA.debugLineNum = 137;BA.debugLine="SelectDay(newSelectedDay)";
+_selectday(_newselectedday);
+ //BA.debugLineNum = 138;BA.debugLine="If CloseOnSelection Then";
+if (_closeonselection) {
+ //BA.debugLineNum = 139;BA.debugLine="Hide";
+_hide();
+ }else {
+ //BA.debugLineNum = 141;BA.debugLine="DrawDays";
+_drawdays();
+ };
+ };
+ };
+ //BA.debugLineNum = 146;BA.debugLine="cvsBackground.Invalidate";
+_cvsbackground.Invalidate();
+ //BA.debugLineNum = 147;BA.debugLine="End Sub";
+return "";
+}
+public String _hide() throws Exception{
+ //BA.debugLineNum = 149;BA.debugLine="Private Sub Hide";
+ //BA.debugLineNum = 150;BA.debugLine="mDialog.Close(xui.DialogResponse_Positive)";
+_mdialog._close /*boolean*/ (_xui.DialogResponse_Positive);
+ //BA.debugLineNum = 151;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 37;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 38;BA.debugLine="pnlDialog = xui.CreatePanel(\"\")";
+_pnldialog = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 39;BA.debugLine="pnlDialog.SetLayoutAnimated(0, 0, 0, 320dip,300di";
+_pnldialog.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (320)),__c.DipToCurrent((int) (300)));
+ //BA.debugLineNum = 40;BA.debugLine="pnlDialog.LoadLayout(\"DateTemplate\")";
+_pnldialog.LoadLayout("DateTemplate",ba);
+ //BA.debugLineNum = 41;BA.debugLine="pnlDialog.Tag = Me";
+_pnldialog.setTag(this);
+ //BA.debugLineNum = 42;BA.debugLine="month = DateTime.GetMonth(DateTime.Now)";
+_month = __c.DateTime.GetMonth(__c.DateTime.getNow());
+ //BA.debugLineNum = 43;BA.debugLine="year = DateTime.GetYear(DateTime.Now)";
+_year = __c.DateTime.GetYear(__c.DateTime.getNow());
+ //BA.debugLineNum = 44;BA.debugLine="months = DateUtils.GetMonthsNames";
+_months = _dateutils._getmonthsnames(ba);
+ //BA.debugLineNum = 45;BA.debugLine="selectedDate = DateTime.Now";
+_selecteddate = __c.DateTime.getNow();
+ //BA.debugLineNum = 46;BA.debugLine="setDate(selectedDate)";
+_setdate(_selecteddate);
+ //BA.debugLineNum = 47;BA.debugLine="cvs.Initialize(DaysPaneFg)";
+_cvs.Initialize(_dayspanefg);
+ //BA.debugLineNum = 48;BA.debugLine="cvsBackground.Initialize(DaysPaneBg)";
+_cvsbackground.Initialize(_dayspanebg);
+ //BA.debugLineNum = 49;BA.debugLine="boxW = cvs.TargetRect.Width / 7";
+_boxw = (float) (_cvs.getTargetRect().getWidth()/(double)7);
+ //BA.debugLineNum = 50;BA.debugLine="boxH = cvs.TargetRect.Height / 6";
+_boxh = (float) (_cvs.getTargetRect().getHeight()/(double)6);
+ //BA.debugLineNum = 51;BA.debugLine="vCorrection = 5dip";
+_vcorrection = (float) (__c.DipToCurrent((int) (5)));
+ //BA.debugLineNum = 52;BA.debugLine="cvsDays.Initialize(DaysTitlesPane)";
+_cvsdays.Initialize(_daystitlespane);
+ //BA.debugLineNum = 58;BA.debugLine="DaysOfWeekNames.Initialize";
+_daysofweeknames.Initialize();
+ //BA.debugLineNum = 59;BA.debugLine="DaysOfWeekNames.AddAll(DateUtils.GetDaysNames)";
+_daysofweeknames.AddAll(_dateutils._getdaysnames(ba));
+ //BA.debugLineNum = 60;BA.debugLine="End Sub";
+return "";
+}
+public String _selectday(int _day) throws Exception{
+ //BA.debugLineNum = 115;BA.debugLine="Private Sub SelectDay(day As Int)";
+ //BA.debugLineNum = 116;BA.debugLine="selectedDate = DateUtils.setDate(year, month, day";
+_selecteddate = _dateutils._setdate(ba,_year,_month,_day);
+ //BA.debugLineNum = 117;BA.debugLine="selectedDay = day";
+_selectedday = _day;
+ //BA.debugLineNum = 118;BA.debugLine="selectedMonth = month";
+_selectedmonth = _month;
+ //BA.debugLineNum = 119;BA.debugLine="selectedYear = year";
+_selectedyear = _year;
+ //BA.debugLineNum = 120;BA.debugLine="End Sub";
+return "";
+}
+public String _setdate(long _date) throws Exception{
+ //BA.debugLineNum = 102;BA.debugLine="Public Sub setDate(date As Long)";
+ //BA.debugLineNum = 104;BA.debugLine="If lblYear.IsInitialized = False Then";
+if (_lblyear.IsInitialized()==__c.False) {
+ //BA.debugLineNum = 105;BA.debugLine="selectedDate = date";
+_selecteddate = _date;
+ //BA.debugLineNum = 106;BA.debugLine="Return 'the date will be set after the layout is";
+if (true) return "";
+ };
+ //BA.debugLineNum = 108;BA.debugLine="year = DateTime.GetYear(date)";
+_year = __c.DateTime.GetYear(_date);
+ //BA.debugLineNum = 109;BA.debugLine="month = DateTime.GetMonth(date)";
+_month = __c.DateTime.GetMonth(_date);
+ //BA.debugLineNum = 110;BA.debugLine="SelectDay(DateTime.GetDayOfMonth(date))";
+_selectday(__c.DateTime.GetDayOfMonth(_date));
+ //BA.debugLineNum = 111;BA.debugLine="lblYear.Text = year";
+_lblyear.setText(BA.ObjectToCharSequence(_year));
+ //BA.debugLineNum = 112;BA.debugLine="lblMonth.Text = months.Get(month - 1)";
+_lblmonth.setText(BA.ObjectToCharSequence(_months.Get((int) (_month-1))));
+ //BA.debugLineNum = 113;BA.debugLine="End Sub";
+return "";
+}
+public String _setyearsbuttonstate() throws Exception{
+ //BA.debugLineNum = 86;BA.debugLine="Private Sub SetYearsButtonState";
+ //BA.debugLineNum = 87;BA.debugLine="btnYearLeft.Enabled = year > MinYear";
+_btnyearleft.setEnabled(_year>_minyear);
+ //BA.debugLineNum = 88;BA.debugLine="btnYearRight.Enabled = year < MaxYear";
+_btnyearright.setEnabled(_year<_maxyear);
+ //BA.debugLineNum = 89;BA.debugLine="End Sub";
+return "";
+}
+public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_Show extends BA.ResumableSub {
+public ResumableSub_Show(reparto_izca.keymon.lat.b4xdatetemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) {
+this.parent = parent;
+this._dialog = _dialog;
+}
+reparto_izca.keymon.lat.b4xdatetemplate parent;
+reparto_izca.keymon.lat.b4xdialog _dialog;
+anywheresoftware.b4a.objects.collections.List _days = null;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _daysfont = null;
+int _i = 0;
+String _d = "";
+int step4;
+int limit4;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 177;BA.debugLine="Dim days As List = DaysOfWeekNames";
+_days = new anywheresoftware.b4a.objects.collections.List();
+_days = parent._daysofweeknames;
+ //BA.debugLineNum = 178;BA.debugLine="Dim daysFont As B4XFont = xui.CreateDefaultBoldFo";
+_daysfont = parent._xui.CreateDefaultBoldFont((float) (14));
+ //BA.debugLineNum = 179;BA.debugLine="cvsDays.ClearRect(cvsDays.TargetRect)";
+parent._cvsdays.ClearRect(parent._cvsdays.getTargetRect());
+ //BA.debugLineNum = 180;BA.debugLine="For i = FirstDay To FirstDay + 7 - 1";
+if (true) break;
+
+case 1:
+//for
+this.state = 10;
+step4 = 1;
+limit4 = (int) (parent._firstday+7-1);
+_i = parent._firstday ;
+this.state = 11;
+if (true) break;
+
+case 11:
+//C
+this.state = 10;
+if ((step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4)) this.state = 3;
+if (true) break;
+
+case 12:
+//C
+this.state = 11;
+_i = ((int)(0 + _i + step4)) ;
+if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 181;BA.debugLine="Dim d As String = days.Get(i Mod 7)";
+_d = BA.ObjectToString(_days.Get((int) (_i%7)));
+ //BA.debugLineNum = 182;BA.debugLine="If d.Length > 2 Then d = d.SubString2(0, 2)";
+if (true) break;
+
+case 4:
+//if
+this.state = 9;
+if (_d.length()>2) {
+this.state = 6;
+;}if (true) break;
+
+case 6:
+//C
+this.state = 9;
+_d = _d.substring((int) (0),(int) (2));
+if (true) break;
+
+case 9:
+//C
+this.state = 12;
+;
+ //BA.debugLineNum = 183;BA.debugLine="cvsDays.DrawText(d, (i - FirstDay + 0.5) * boxW,";
+parent._cvsdays.DrawText(ba,_d,(float) ((_i-parent._firstday+0.5)*parent._boxw),(float) (parent.__c.DipToCurrent((int) (20))),_daysfont,parent._daysinweekcolor,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER"));
+ if (true) break;
+if (true) break;
+
+case 10:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 185;BA.debugLine="cvsDays.Invalidate";
+parent._cvsdays.Invalidate();
+ //BA.debugLineNum = 186;BA.debugLine="mDialog = Dialog";
+parent._mdialog = _dialog;
+ //BA.debugLineNum = 187;BA.debugLine="DrawDays";
+parent._drawdays();
+ //BA.debugLineNum = 188;BA.debugLine="PreviousSelectedDate = selectedDate";
+parent._previousselecteddate = parent._selecteddate;
+ //BA.debugLineNum = 189;BA.debugLine="Sleep(0)";
+parent.__c.Sleep(ba,this,(int) (0));
+this.state = 13;
+return;
+case 13:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 190;BA.debugLine="SetYearsButtonState";
+parent._setyearsbuttonstate();
+ //BA.debugLineNum = 191;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xdialog.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdialog.java
new file mode 100644
index 0000000..670f4cf
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdialog.java
@@ -0,0 +1,1188 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xdialog extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xdialog");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xdialog.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public int _buttonsheight = 0;
+public int _titlebarheight = 0;
+public int _buttonwidth = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _base = null;
+public int _backgroundcolor = 0;
+public int _overlaycolor = 0;
+public int _bordercolor = 0;
+public int _bordercornersradius = 0;
+public int _borderwidth = 0;
+public int _buttonscolor = 0;
+public int _buttonstextcolor = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _background = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _blurimageview = null;
+public boolean _blurbackground = false;
+public int _blurreducescale = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mparent = null;
+public Object _title = null;
+public int _titlebarcolor = 0;
+public int _titlebartextcolor = 0;
+public int _bodytextcolor = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _titlebar = null;
+public boolean _putattop = false;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _titlebarfont = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _buttonsfont = null;
+public int _buttonstextcolordisabled = 0;
+public int _visibleanimationduration = 0;
+public int[] _buttonsorder = null;
+public anywheresoftware.b4a.objects.collections.Map _buttonsstate = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _background_click() throws Exception{
+ //BA.debugLineNum = 258;BA.debugLine="Private Sub Background_Click";
+ //BA.debugLineNum = 260;BA.debugLine="End Sub";
+return "";
+}
+public String _background_touch(int _action,float _x,float _y) throws Exception{
+ //BA.debugLineNum = 253;BA.debugLine="Private Sub Background_Touch (Action As Int, X As";
+ //BA.debugLineNum = 255;BA.debugLine="End Sub";
+return "";
+}
+public b4a.example.bitmapcreator _blur(anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{
+b4a.example.bitmapcreator _bc = null;
+int _reducescale = 0;
+int _count = 0;
+b4a.example.bitmapcreator._argbcolor[] _clrs = null;
+b4a.example.bitmapcreator._argbcolor _temp = null;
+int _m = 0;
+int _steps = 0;
+int _y = 0;
+int _x = 0;
+ //BA.debugLineNum = 287;BA.debugLine="Private Sub Blur (bmp As B4XBitmap) As BitmapCreat";
+ //BA.debugLineNum = 288;BA.debugLine="Dim bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 289;BA.debugLine="Dim ReduceScale As Int = BlurReduceScale";
+_reducescale = _blurreducescale;
+ //BA.debugLineNum = 290;BA.debugLine="bc.Initialize(bmp.Width / ReduceScale / bmp.Scale";
+_bc._initialize(ba,(int) (_bmp.getWidth()/(double)_reducescale/(double)_bmp.getScale()),(int) (_bmp.getHeight()/(double)_reducescale/(double)_bmp.getScale()));
+ //BA.debugLineNum = 291;BA.debugLine="bc.CopyPixelsFromBitmap(bmp)";
+_bc._copypixelsfrombitmap(_bmp);
+ //BA.debugLineNum = 292;BA.debugLine="Dim count As Int = 2";
+_count = (int) (2);
+ //BA.debugLineNum = 293;BA.debugLine="Dim clrs(3) As ARGBColor";
+_clrs = new b4a.example.bitmapcreator._argbcolor[(int) (3)];
+{
+int d0 = _clrs.length;
+for (int i0 = 0;i0 < d0;i0++) {
+_clrs[i0] = new b4a.example.bitmapcreator._argbcolor();
+}
+}
+;
+ //BA.debugLineNum = 294;BA.debugLine="Dim temp As ARGBColor";
+_temp = new b4a.example.bitmapcreator._argbcolor();
+ //BA.debugLineNum = 295;BA.debugLine="Dim m As Int";
+_m = 0;
+ //BA.debugLineNum = 296;BA.debugLine="For steps = 1 To count";
+{
+final int step9 = 1;
+final int limit9 = _count;
+_steps = (int) (1) ;
+for (;_steps <= limit9 ;_steps = _steps + step9 ) {
+ //BA.debugLineNum = 297;BA.debugLine="For y = 0 To bc.mHeight - 1";
+{
+final int step10 = 1;
+final int limit10 = (int) (_bc._mheight-1);
+_y = (int) (0) ;
+for (;_y <= limit10 ;_y = _y + step10 ) {
+ //BA.debugLineNum = 298;BA.debugLine="For x = 0 To 2";
+{
+final int step11 = 1;
+final int limit11 = (int) (2);
+_x = (int) (0) ;
+for (;_x <= limit11 ;_x = _x + step11 ) {
+ //BA.debugLineNum = 299;BA.debugLine="bc.GetARGB(x, y, clrs(x))";
+_bc._getargb(_x,_y,_clrs[_x]);
+ }
+};
+ //BA.debugLineNum = 301;BA.debugLine="SetAvg(bc, 1, y, clrs, temp)";
+_setavg(_bc,(int) (1),_y,_clrs,_temp);
+ //BA.debugLineNum = 302;BA.debugLine="m = 0";
+_m = (int) (0);
+ //BA.debugLineNum = 303;BA.debugLine="For x = 2 To bc.mWidth - 2";
+{
+final int step16 = 1;
+final int limit16 = (int) (_bc._mwidth-2);
+_x = (int) (2) ;
+for (;_x <= limit16 ;_x = _x + step16 ) {
+ //BA.debugLineNum = 304;BA.debugLine="bc.GetARGB(x + 1, y, clrs(m))";
+_bc._getargb((int) (_x+1),_y,_clrs[_m]);
+ //BA.debugLineNum = 305;BA.debugLine="m = (m + 1) Mod 3";
+_m = (int) ((_m+1)%3);
+ //BA.debugLineNum = 306;BA.debugLine="SetAvg(bc, x, y, clrs, temp)";
+_setavg(_bc,_x,_y,_clrs,_temp);
+ }
+};
+ }
+};
+ //BA.debugLineNum = 309;BA.debugLine="For x = 0 To bc.mWidth - 1";
+{
+final int step22 = 1;
+final int limit22 = (int) (_bc._mwidth-1);
+_x = (int) (0) ;
+for (;_x <= limit22 ;_x = _x + step22 ) {
+ //BA.debugLineNum = 310;BA.debugLine="For y = 0 To 2";
+{
+final int step23 = 1;
+final int limit23 = (int) (2);
+_y = (int) (0) ;
+for (;_y <= limit23 ;_y = _y + step23 ) {
+ //BA.debugLineNum = 311;BA.debugLine="bc.GetARGB(x, y, clrs(y))";
+_bc._getargb(_x,_y,_clrs[_y]);
+ }
+};
+ //BA.debugLineNum = 313;BA.debugLine="SetAvg(bc, x, 1, clrs, temp)";
+_setavg(_bc,_x,(int) (1),_clrs,_temp);
+ //BA.debugLineNum = 314;BA.debugLine="m = 0";
+_m = (int) (0);
+ //BA.debugLineNum = 315;BA.debugLine="For y = 2 To bc.mHeight - 2";
+{
+final int step28 = 1;
+final int limit28 = (int) (_bc._mheight-2);
+_y = (int) (2) ;
+for (;_y <= limit28 ;_y = _y + step28 ) {
+ //BA.debugLineNum = 316;BA.debugLine="bc.GetARGB(x, y + 1, clrs(m))";
+_bc._getargb(_x,(int) (_y+1),_clrs[_m]);
+ //BA.debugLineNum = 317;BA.debugLine="m = (m + 1) Mod 3";
+_m = (int) ((_m+1)%3);
+ //BA.debugLineNum = 318;BA.debugLine="SetAvg(bc, x, y, clrs, temp)";
+_setavg(_bc,_x,_y,_clrs,_temp);
+ }
+};
+ }
+};
+ }
+};
+ //BA.debugLineNum = 322;BA.debugLine="Return bc";
+if (true) return _bc;
+ //BA.debugLineNum = 323;BA.debugLine="End Sub";
+return null;
+}
+public String _button_click() throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _b = null;
+ //BA.debugLineNum = 233;BA.debugLine="Private Sub Button_Click";
+ //BA.debugLineNum = 234;BA.debugLine="Dim b As B4XView = Sender";
+_b = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_b = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)));
+ //BA.debugLineNum = 235;BA.debugLine="If ButtonsState.GetDefault(b.Tag, True) = False T";
+if ((_buttonsstate.GetDefault(_b.getTag(),(Object)(__c.True))).equals((Object)(__c.False))) {
+if (true) return "";};
+ //BA.debugLineNum = 236;BA.debugLine="Close(b.Tag)";
+_close((int)(BA.ObjectToNumber(_b.getTag())));
+ //BA.debugLineNum = 237;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 4;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 5;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 6;BA.debugLine="Public ButtonsHeight As Int = 40dip";
+_buttonsheight = __c.DipToCurrent((int) (40));
+ //BA.debugLineNum = 7;BA.debugLine="Public TitleBarHeight As Int = 30dip";
+_titlebarheight = __c.DipToCurrent((int) (30));
+ //BA.debugLineNum = 8;BA.debugLine="Private ButtonWidth As Int = 80dip";
+_buttonwidth = __c.DipToCurrent((int) (80));
+ //BA.debugLineNum = 9;BA.debugLine="Public Base As B4XView";
+_base = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Public BackgroundColor As Int = 0xFF555555 'base";
+_backgroundcolor = ((int)0xff555555);
+ //BA.debugLineNum = 11;BA.debugLine="Public OverlayColor As Int = 0xaa000000";
+_overlaycolor = ((int)0xaa000000);
+ //BA.debugLineNum = 12;BA.debugLine="Public BorderColor As Int = 0xff000000";
+_bordercolor = ((int)0xff000000);
+ //BA.debugLineNum = 13;BA.debugLine="Public BorderCornersRadius As Int = 2dip";
+_bordercornersradius = __c.DipToCurrent((int) (2));
+ //BA.debugLineNum = 14;BA.debugLine="Public BorderWidth As Int = 2dip";
+_borderwidth = __c.DipToCurrent((int) (2));
+ //BA.debugLineNum = 15;BA.debugLine="Public ButtonsColor As Int = 0xFF555555";
+_buttonscolor = ((int)0xff555555);
+ //BA.debugLineNum = 16;BA.debugLine="Public ButtonsTextColor As Int = 0xFF89D5FF";
+_buttonstextcolor = ((int)0xff89d5ff);
+ //BA.debugLineNum = 17;BA.debugLine="Private Background As B4XView";
+_background = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Private BlurImageView As B4XView";
+_blurimageview = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Public BlurBackground As Boolean";
+_blurbackground = false;
+ //BA.debugLineNum = 20;BA.debugLine="Private BlurReduceScale As Int";
+_blurreducescale = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Public mParent As B4XView";
+_mparent = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Public Title As Object = \"\"";
+_title = (Object)("");
+ //BA.debugLineNum = 23;BA.debugLine="Public TitleBarColor As Int = 0xFF0083B8";
+_titlebarcolor = ((int)0xff0083b8);
+ //BA.debugLineNum = 24;BA.debugLine="Public TitleBarTextColor As Int";
+_titlebartextcolor = 0;
+ //BA.debugLineNum = 25;BA.debugLine="Public BodyTextColor As Int = xui.Color_White";
+_bodytextcolor = _xui.Color_White;
+ //BA.debugLineNum = 26;BA.debugLine="Public TitleBar As B4XView";
+_titlebar = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Public PutAtTop As Boolean";
+_putattop = false;
+ //BA.debugLineNum = 28;BA.debugLine="Public TitleBarFont As B4XFont";
+_titlebarfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
+ //BA.debugLineNum = 29;BA.debugLine="Public ButtonsFont As B4XFont";
+_buttonsfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
+ //BA.debugLineNum = 30;BA.debugLine="Public ButtonsTextColorDisabled As Int = 0xFF8080";
+_buttonstextcolordisabled = ((int)0xff808080);
+ //BA.debugLineNum = 31;BA.debugLine="Public VisibleAnimationDuration As Int = 100";
+_visibleanimationduration = (int) (100);
+ //BA.debugLineNum = 32;BA.debugLine="Public ButtonsOrder() As Int = Array As Int(xui.D";
+_buttonsorder = new int[]{_xui.DialogResponse_Positive,_xui.DialogResponse_Negative,_xui.DialogResponse_Cancel};
+ //BA.debugLineNum = 33;BA.debugLine="Public ButtonsState As Map";
+_buttonsstate = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 34;BA.debugLine="End Sub";
+return "";
+}
+public boolean _close(int _result) throws Exception{
+ //BA.debugLineNum = 239;BA.debugLine="Public Sub Close (Result As Int) As Boolean";
+ //BA.debugLineNum = 240;BA.debugLine="If getVisible Then";
+if (_getvisible()) {
+ //BA.debugLineNum = 241;BA.debugLine="CallSubDelayed2(Me, \"CloseMessage\", Result)";
+__c.CallSubDelayed2(ba,this,"CloseMessage",(Object)(_result));
+ //BA.debugLineNum = 242;BA.debugLine="Return True";
+if (true) return __c.True;
+ };
+ //BA.debugLineNum = 244;BA.debugLine="Return False";
+if (true) return __c.False;
+ //BA.debugLineNum = 245;BA.debugLine="End Sub";
+return false;
+}
+public String _createbutton(Object _text,int _code) throws Exception{
+anywheresoftware.b4a.objects.LabelWrapper _btn = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _xbtn = null;
+int _numberofbuttons = 0;
+ //BA.debugLineNum = 193;BA.debugLine="Private Sub CreateButton (Text As Object, Code As";
+ //BA.debugLineNum = 194;BA.debugLine="If Text = \"\" Then Return";
+if ((_text).equals((Object)(""))) {
+if (true) return "";};
+ //BA.debugLineNum = 198;BA.debugLine="Dim btn As Label";
+_btn = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 200;BA.debugLine="btn.Initialize(\"Button\")";
+_btn.Initialize(ba,"Button");
+ //BA.debugLineNum = 201;BA.debugLine="Dim xbtn As B4XView = btn";
+_xbtn = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xbtn = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_btn.getObject()));
+ //BA.debugLineNum = 202;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xbtn, Tex";
+_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xbtn,_text);
+ //BA.debugLineNum = 203;BA.debugLine="xbtn.Tag = Code";
+_xbtn.setTag((Object)(_code));
+ //BA.debugLineNum = 204;BA.debugLine="xbtn.SetColorAndBorder(ButtonsColor, 0dip, Border";
+_xbtn.SetColorAndBorder(_buttonscolor,__c.DipToCurrent((int) (0)),_bordercolor,__c.DipToCurrent((int) (5)));
+ //BA.debugLineNum = 205;BA.debugLine="xbtn.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_xbtn.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 206;BA.debugLine="xbtn.TextColor = ButtonsTextColor";
+_xbtn.setTextColor(_buttonstextcolor);
+ //BA.debugLineNum = 207;BA.debugLine="xbtn.Font = ButtonsFont";
+_xbtn.setFont(_buttonsfont);
+ //BA.debugLineNum = 208;BA.debugLine="Dim numberOfButtons As Int = Base.NumberOfViews '";
+_numberofbuttons = _base.getNumberOfViews();
+ //BA.debugLineNum = 209;BA.debugLine="Base.AddView(xbtn, Base.Width - 4dip - numberOfBu";
+_base.AddView((android.view.View)(_xbtn.getObject()),(int) (_base.getWidth()-__c.DipToCurrent((int) (4))-_numberofbuttons*(_buttonwidth+__c.DipToCurrent((int) (5)))-_buttonwidth),(int) (_base.getHeight()-_buttonsheight-__c.DipToCurrent((int) (4))),_buttonwidth,_buttonsheight);
+ //BA.debugLineNum = 211;BA.debugLine="If Code = xui.DialogResponse_Cancel Then xbtn.Req";
+if (_code==_xui.DialogResponse_Cancel) {
+_xbtn.RequestFocus();};
+ //BA.debugLineNum = 212;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getbutton(int _resultcode) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _b = null;
+ //BA.debugLineNum = 215;BA.debugLine="Public Sub GetButton (ResultCode As Int) As B4XVie";
+ //BA.debugLineNum = 216;BA.debugLine="For Each b As B4XView In Base.GetAllViewsRecursiv";
+_b = new anywheresoftware.b4a.objects.B4XViewWrapper();
+{
+final anywheresoftware.b4a.BA.IterableList group1 = _base.GetAllViewsRecursive();
+final int groupLen1 = group1.getSize()
+;int index1 = 0;
+;
+for (; index1 < groupLen1;index1++){
+_b = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group1.Get(index1)));
+ //BA.debugLineNum = 217;BA.debugLine="If b.Tag = ResultCode Then Return b 'ignore";
+if ((_b.getTag()).equals((Object)(_resultcode))) {
+if (true) return _b;};
+ }
+};
+ //BA.debugLineNum = 219;BA.debugLine="Return Null";
+if (true) return (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Null));
+ //BA.debugLineNum = 220;BA.debugLine="End Sub";
+return null;
+}
+public boolean _getvisible() throws Exception{
+ //BA.debugLineNum = 189;BA.debugLine="Public Sub getVisible As Boolean";
+ //BA.debugLineNum = 190;BA.debugLine="Return Background.IsInitialized And Background.Pa";
+if (true) return _background.IsInitialized() && _background.getParent().IsInitialized();
+ //BA.debugLineNum = 191;BA.debugLine="End Sub";
+return false;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _parent) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 36;BA.debugLine="Public Sub Initialize (Parent As B4XView)";
+ //BA.debugLineNum = 37;BA.debugLine="BlurBackground = False";
+_blurbackground = __c.False;
+ //BA.debugLineNum = 38;BA.debugLine="If xui.IsB4i Then";
+if (_xui.getIsB4i()) {
+ //BA.debugLineNum = 39;BA.debugLine="BlurReduceScale = 3";
+_blurreducescale = (int) (3);
+ }else if(_xui.getIsB4J()) {
+ //BA.debugLineNum = 41;BA.debugLine="BlurReduceScale = 1";
+_blurreducescale = (int) (1);
+ }else if(_xui.getIsB4A()) {
+ //BA.debugLineNum = 43;BA.debugLine="BlurReduceScale = 3";
+_blurreducescale = (int) (3);
+ };
+ //BA.debugLineNum = 45;BA.debugLine="mParent = Parent";
+_mparent = _parent;
+ //BA.debugLineNum = 51;BA.debugLine="TitleBarFont = xui.CreateDefaultBoldFont(16)";
+_titlebarfont = _xui.CreateDefaultBoldFont((float) (16));
+ //BA.debugLineNum = 52;BA.debugLine="ButtonsFont = xui.CreateDefaultBoldFont(15)";
+_buttonsfont = _xui.CreateDefaultBoldFont((float) (15));
+ //BA.debugLineNum = 53;BA.debugLine="TitleBarTextColor = xui.Color_White";
+_titlebartextcolor = _xui.Color_White;
+ //BA.debugLineNum = 54;BA.debugLine="ButtonsState.Initialize";
+_buttonsstate.Initialize();
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return "";
+}
+public String _internaladdstubtoclvifneeded(b4a.example3.customlistview _customlistview1,int _color) throws Exception{
+ //BA.debugLineNum = 343;BA.debugLine="Public Sub InternalAddStubToCLVIfNeeded(CustomList";
+ //BA.debugLineNum = 344;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView";
+_xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,_customlistview1,_color);
+ //BA.debugLineNum = 345;BA.debugLine="End Sub";
+return "";
+}
+public String _internalsettextorcsbuildertolabel(anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{
+ //BA.debugLineNum = 339;BA.debugLine="Public Sub InternalSetTextOrCSBuilderToLabel(xlbl";
+ //BA.debugLineNum = 340;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Tex";
+_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xlbl,_text);
+ //BA.debugLineNum = 341;BA.debugLine="End Sub";
+return "";
+}
+public String _resize(int _width,int _height) throws Exception{
+int _top = 0;
+ //BA.debugLineNum = 263;BA.debugLine="Public Sub Resize (Width As Int, Height As Int)";
+ //BA.debugLineNum = 265;BA.debugLine="Dim Top As Int = Round(Background.Height / 2 - Ba";
+_top = (int) (__c.Round(_background.getHeight()/(double)2-_base.getHeight()/(double)2));
+ //BA.debugLineNum = 266;BA.debugLine="If PutAtTop Then Top = 20dip";
+if (_putattop) {
+_top = __c.DipToCurrent((int) (20));};
+ //BA.debugLineNum = 267;BA.debugLine="Background.SetLayoutAnimated(0, 0, 0, Width, Heig";
+_background.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 268;BA.debugLine="Base.SetLayoutAnimated(200, Round(Background.Widt";
+_base.SetLayoutAnimated((int) (200),(int) (__c.Round(_background.getWidth()/(double)2-_base.getWidth()/(double)2)),_top,_base.getWidth(),_base.getHeight());
+ //BA.debugLineNum = 269;BA.debugLine="If xui.IsB4J Then";
+if (_xui.getIsB4J()) {
+ //BA.debugLineNum = 270;BA.debugLine="UpdateBlur";
+_updateblur();
+ };
+ //BA.debugLineNum = 272;BA.debugLine="End Sub";
+return "";
+}
+public String _setavg(b4a.example.bitmapcreator _bc,int _x,int _y,b4a.example.bitmapcreator._argbcolor[] _clrs,b4a.example.bitmapcreator._argbcolor _temp) throws Exception{
+b4a.example.bitmapcreator._argbcolor _c = null;
+ //BA.debugLineNum = 325;BA.debugLine="Private Sub SetAvg(bc As BitmapCreator, x As Int,";
+ //BA.debugLineNum = 326;BA.debugLine="temp.Initialize";
+_temp.Initialize();
+ //BA.debugLineNum = 327;BA.debugLine="For Each c As ARGBColor In clrs";
+{
+final b4a.example.bitmapcreator._argbcolor[] group2 = _clrs;
+final int groupLen2 = group2.length
+;int index2 = 0;
+;
+for (; index2 < groupLen2;index2++){
+_c = group2[index2];
+ //BA.debugLineNum = 328;BA.debugLine="temp.r = temp.r + c.r";
+_temp.r = (int) (_temp.r+_c.r);
+ //BA.debugLineNum = 329;BA.debugLine="temp.g = temp.g + c.g";
+_temp.g = (int) (_temp.g+_c.g);
+ //BA.debugLineNum = 330;BA.debugLine="temp.b = temp.b + c.b";
+_temp.b = (int) (_temp.b+_c.b);
+ }
+};
+ //BA.debugLineNum = 332;BA.debugLine="temp.a = 255";
+_temp.a = (int) (255);
+ //BA.debugLineNum = 333;BA.debugLine="temp.r = temp.r / 3";
+_temp.r = (int) (_temp.r/(double)3);
+ //BA.debugLineNum = 334;BA.debugLine="temp.g = temp.g / 3";
+_temp.g = (int) (_temp.g/(double)3);
+ //BA.debugLineNum = 335;BA.debugLine="temp.b = temp.b / 3";
+_temp.b = (int) (_temp.b/(double)3);
+ //BA.debugLineNum = 336;BA.debugLine="bc.SetARGB(x, y, temp)";
+_bc._setargb(_x,_y,_temp);
+ //BA.debugLineNum = 337;BA.debugLine="End Sub";
+return "";
+}
+public String _setbuttonstate(int _resultcode,boolean _enabled) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _b = null;
+ //BA.debugLineNum = 223;BA.debugLine="Public Sub SetButtonState (ResultCode As Int, Enab";
+ //BA.debugLineNum = 224;BA.debugLine="Dim b As B4XView = GetButton(ResultCode)";
+_b = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_b = _getbutton(_resultcode);
+ //BA.debugLineNum = 225;BA.debugLine="If b.IsInitialized Then";
+if (_b.IsInitialized()) {
+ //BA.debugLineNum = 226;BA.debugLine="b.Enabled = Enabled";
+_b.setEnabled(_enabled);
+ //BA.debugLineNum = 227;BA.debugLine="If Enabled Then b.TextColor = ButtonsTextColor E";
+if (_enabled) {
+_b.setTextColor(_buttonstextcolor);}
+else {
+_b.setTextColor(_buttonstextcolordisabled);};
+ //BA.debugLineNum = 228;BA.debugLine="ButtonsState.Put(ResultCode, Enabled)";
+_buttonsstate.Put((Object)(_resultcode),(Object)(_enabled));
+ };
+ //BA.debugLineNum = 230;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _show(Object _text,Object _yes,Object _no,Object _cancel) throws Exception{
+ResumableSub_Show rsub = new ResumableSub_Show(this,_text,_yes,_no,_cancel);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_Show extends BA.ResumableSub {
+public ResumableSub_Show(reparto_izca.keymon.lat.b4xdialog parent,Object _text,Object _yes,Object _no,Object _cancel) {
+this.parent = parent;
+this._text = _text;
+this._yes = _yes;
+this._no = _no;
+this._cancel = _cancel;
+}
+reparto_izca.keymon.lat.b4xdialog parent;
+Object _text;
+Object _yes;
+Object _no;
+Object _cancel;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+int _result = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 75;BA.debugLine="Dim p As B4XView";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 76;BA.debugLine="p = xui.CreatePanel(\"\")";
+_p = parent._xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 77;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 300dip, 100dip)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),parent.__c.DipToCurrent((int) (300)),parent.__c.DipToCurrent((int) (100)));
+ //BA.debugLineNum = 78;BA.debugLine="Dim lbl As Label";
+_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 79;BA.debugLine="lbl.Initialize(\"\")";
+_lbl.Initialize(ba,"");
+ //BA.debugLineNum = 83;BA.debugLine="lbl.SingleLine = False";
+_lbl.setSingleLine(parent.__c.False);
+ //BA.debugLineNum = 87;BA.debugLine="Dim xlbl As B4XView = lbl";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 88;BA.debugLine="p.AddView(xlbl, 5dip, 0, p.Width - 10dip, p.Heigh";
+_p.AddView((android.view.View)(_xlbl.getObject()),parent.__c.DipToCurrent((int) (5)),(int) (0),(int) (_p.getWidth()-parent.__c.DipToCurrent((int) (10))),_p.getHeight());
+ //BA.debugLineNum = 89;BA.debugLine="xlbl.TextColor = BodyTextColor";
+_xlbl.setTextColor(parent._bodytextcolor);
+ //BA.debugLineNum = 90;BA.debugLine="xlbl.Font = TitleBarFont";
+_xlbl.setFont(parent._titlebarfont);
+ //BA.debugLineNum = 91;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Tex";
+parent._xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xlbl,_text);
+ //BA.debugLineNum = 92;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"LEFT\")";
+_xlbl.SetTextAlignment("CENTER","LEFT");
+ //BA.debugLineNum = 93;BA.debugLine="Wait For (ShowCustom(p, Yes, No, Cancel)) Complet";
+parent.__c.WaitFor("complete", ba, this, parent._showcustom(_p,_yes,_no,_cancel));
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+_result = (Integer) result[0];
+;
+ //BA.debugLineNum = 94;BA.debugLine="Return Result";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(_result));return;};
+ //BA.debugLineNum = 95;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _complete(int _result) throws Exception{
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showcustom(anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) throws Exception{
+ResumableSub_ShowCustom rsub = new ResumableSub_ShowCustom(this,_content,_yes,_no,_cancel);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_ShowCustom extends BA.ResumableSub {
+public ResumableSub_ShowCustom(reparto_izca.keymon.lat.b4xdialog parent,anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) {
+this.parent = parent;
+this._content = _content;
+this._yes = _yes;
+this._no = _no;
+this._cancel = _cancel;
+}
+reparto_izca.keymon.lat.b4xdialog parent;
+anywheresoftware.b4a.objects.B4XViewWrapper _content;
+Object _yes;
+Object _no;
+Object _cancel;
+anywheresoftware.b4a.objects.B4XViewWrapper _v = null;
+anywheresoftware.b4a.objects.ImageViewWrapper _iv = null;
+anywheresoftware.b4a.objects.PanelWrapper _p = null;
+boolean _includetitle = false;
+int _temptitlebarheight = 0;
+int _height = 0;
+int _width = 0;
+int _top = 0;
+boolean _removetitle = false;
+int _i = 0;
+int _btype = 0;
+anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+int _result = 0;
+anywheresoftware.b4a.BA.IterableList group1;
+int index1;
+int groupLen1;
+int step46;
+int limit46;
+anywheresoftware.b4a.BA.IterableList group74;
+int index74;
+int groupLen74;
+anywheresoftware.b4a.BA.IterableList group78;
+int index78;
+int groupLen78;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 98;BA.debugLine="For Each v As B4XView In mParent.GetAllViewsRecur";
+if (true) break;
+
+case 1:
+//for
+this.state = 8;
+_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
+group1 = parent._mparent.GetAllViewsRecursive();
+index1 = 0;
+groupLen1 = group1.getSize();
+this.state = 60;
+if (true) break;
+
+case 60:
+//C
+this.state = 8;
+if (index1 < groupLen1) {
+this.state = 3;
+_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group1.Get(index1)));}
+if (true) break;
+
+case 61:
+//C
+this.state = 60;
+index1++;
+if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 99;BA.debugLine="If v.Tag <> Null And v.Tag = \"b4xdialog_backgrou";
+if (true) break;
+
+case 4:
+//if
+this.state = 7;
+if (_v.getTag()!= null && (_v.getTag()).equals((Object)("b4xdialog_background"))) {
+this.state = 6;
+}if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 100;BA.debugLine="v.RemoveViewFromParent";
+_v.RemoveViewFromParent();
+ //BA.debugLineNum = 101;BA.debugLine="Exit";
+this.state = 8;
+if (true) break;
+ if (true) break;
+
+case 7:
+//C
+this.state = 61;
+;
+ if (true) break;
+if (true) break;
+
+case 8:
+//C
+this.state = 9;
+;
+ //BA.debugLineNum = 104;BA.debugLine="ButtonsState.Clear";
+parent._buttonsstate.Clear();
+ //BA.debugLineNum = 105;BA.debugLine="Dim Background As B4XView = xui.CreatePanel(\"back";
+parent._background = new anywheresoftware.b4a.objects.B4XViewWrapper();
+parent._background = parent._xui.CreatePanel(ba,"background");
+ //BA.debugLineNum = 106;BA.debugLine="Background.Tag = \"b4xdialog_background\"";
+parent._background.setTag((Object)("b4xdialog_background"));
+ //BA.debugLineNum = 107;BA.debugLine="If BlurBackground Then";
+if (true) break;
+
+case 9:
+//if
+this.state = 14;
+if (parent._blurbackground) {
+this.state = 11;
+}else {
+this.state = 13;
+}if (true) break;
+
+case 11:
+//C
+this.state = 14;
+ //BA.debugLineNum = 108;BA.debugLine="Dim iv As ImageView";
+_iv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 109;BA.debugLine="iv.Initialize(\"\")";
+_iv.Initialize(ba,"");
+ //BA.debugLineNum = 110;BA.debugLine="BlurImageView = iv";
+parent._blurimageview = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject()));
+ //BA.debugLineNum = 111;BA.debugLine="Background.AddView(BlurImageView, 0, 0, Backgrou";
+parent._background.AddView((android.view.View)(parent._blurimageview.getObject()),(int) (0),(int) (0),parent._background.getWidth(),parent._background.getHeight());
+ //BA.debugLineNum = 112;BA.debugLine="Background.Color = xui.Color_Transparent";
+parent._background.setColor(parent._xui.Color_Transparent);
+ if (true) break;
+
+case 13:
+//C
+this.state = 14;
+ //BA.debugLineNum = 114;BA.debugLine="Background.Color = OverlayColor";
+parent._background.setColor(parent._overlaycolor);
+ if (true) break;
+
+case 14:
+//C
+this.state = 15;
+;
+ //BA.debugLineNum = 117;BA.debugLine="Dim p As Panel = Background";
+_p = new anywheresoftware.b4a.objects.PanelWrapper();
+_p = (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(parent._background.getObject()));
+ //BA.debugLineNum = 118;BA.debugLine="p.Elevation = 4dip";
+_p.setElevation((float) (parent.__c.DipToCurrent((int) (4))));
+ //BA.debugLineNum = 120;BA.debugLine="mParent.AddView(Background, 0, 0, mParent.Width,";
+parent._mparent.AddView((android.view.View)(parent._background.getObject()),(int) (0),(int) (0),parent._mparent.getWidth(),parent._mparent.getHeight());
+ //BA.debugLineNum = 121;BA.debugLine="UpdateBlur";
+parent._updateblur();
+ //BA.debugLineNum = 122;BA.debugLine="Base = xui.CreatePanel(\"\")";
+parent._base = parent._xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 123;BA.debugLine="Base.SetColorAndBorder(BackgroundColor, BorderWid";
+parent._base.SetColorAndBorder(parent._backgroundcolor,parent._borderwidth,parent._bordercolor,parent._bordercornersradius);
+ //BA.debugLineNum = 124;BA.debugLine="Base.RequestFocus";
+parent._base.RequestFocus();
+ //BA.debugLineNum = 125;BA.debugLine="Dim IncludeTitle As Boolean = Title <> \"\"";
+_includetitle = (parent._title).equals((Object)("")) == false;
+ //BA.debugLineNum = 126;BA.debugLine="Dim TempTitleBarHeight As Int = 0";
+_temptitlebarheight = (int) (0);
+ //BA.debugLineNum = 127;BA.debugLine="If IncludeTitle Then";
+if (true) break;
+
+case 15:
+//if
+this.state = 18;
+if (_includetitle) {
+this.state = 17;
+}if (true) break;
+
+case 17:
+//C
+this.state = 18;
+ //BA.debugLineNum = 128;BA.debugLine="TempTitleBarHeight = TitleBarHeight";
+_temptitlebarheight = parent._titlebarheight;
+ if (true) break;
+
+case 18:
+//C
+this.state = 19;
+;
+ //BA.debugLineNum = 130;BA.debugLine="Dim height As Int = Content.Height + ButtonsHeigh";
+_height = (int) (_content.getHeight()+parent._buttonsheight+parent.__c.DipToCurrent((int) (3))+parent.__c.DipToCurrent((int) (3))+_temptitlebarheight);
+ //BA.debugLineNum = 131;BA.debugLine="Dim width As Int = Content.Width + 4dip";
+_width = (int) (_content.getWidth()+parent.__c.DipToCurrent((int) (4)));
+ //BA.debugLineNum = 132;BA.debugLine="Dim Top As Int = Round(Background.Height / 2 - he";
+_top = (int) (parent.__c.Round(parent._background.getHeight()/(double)2-_height/(double)2));
+ //BA.debugLineNum = 133;BA.debugLine="Dim RemoveTitle As Boolean";
+_removetitle = false;
+ //BA.debugLineNum = 134;BA.debugLine="If PutAtTop Then";
+if (true) break;
+
+case 19:
+//if
+this.state = 28;
+if (parent._putattop) {
+this.state = 21;
+}if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 135;BA.debugLine="Top = 20dip";
+_top = parent.__c.DipToCurrent((int) (20));
+ //BA.debugLineNum = 136;BA.debugLine="If Background.Height - Top - height < 200dip The";
+if (true) break;
+
+case 22:
+//if
+this.state = 27;
+if (parent._background.getHeight()-_top-_height 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 34;
+if (true) break;
+
+case 63:
+//C
+this.state = 62;
+_i = ((int)(0 + _i + step46)) ;
+if (true) break;
+
+case 34:
+//C
+this.state = 35;
+ //BA.debugLineNum = 147;BA.debugLine="Dim btype As Int = ButtonsOrder(i)";
+_btype = parent._buttonsorder[_i];
+ //BA.debugLineNum = 148;BA.debugLine="Select btype";
+if (true) break;
+
+case 35:
+//select
+this.state = 42;
+switch (BA.switchObjectToInt(_btype,parent._xui.DialogResponse_Cancel,parent._xui.DialogResponse_Negative,parent._xui.DialogResponse_Positive)) {
+case 0: {
+this.state = 37;
+if (true) break;
+}
+case 1: {
+this.state = 39;
+if (true) break;
+}
+case 2: {
+this.state = 41;
+if (true) break;
+}
+}
+if (true) break;
+
+case 37:
+//C
+this.state = 42;
+ //BA.debugLineNum = 150;BA.debugLine="CreateButton(Cancel, btype)";
+parent._createbutton(_cancel,_btype);
+ if (true) break;
+
+case 39:
+//C
+this.state = 42;
+ //BA.debugLineNum = 152;BA.debugLine="CreateButton(No, btype)";
+parent._createbutton(_no,_btype);
+ if (true) break;
+
+case 41:
+//C
+this.state = 42;
+ //BA.debugLineNum = 154;BA.debugLine="CreateButton(Yes, btype)";
+parent._createbutton(_yes,_btype);
+ if (true) break;
+
+case 42:
+//C
+this.state = 63;
+;
+ if (true) break;
+if (true) break;
+
+case 43:
+//C
+this.state = 44;
+;
+ //BA.debugLineNum = 157;BA.debugLine="Base.Visible = False";
+parent._base.setVisible(parent.__c.False);
+ //BA.debugLineNum = 158;BA.debugLine="If IncludeTitle Then";
+if (true) break;
+
+case 44:
+//if
+this.state = 47;
+if (_includetitle) {
+this.state = 46;
+}if (true) break;
+
+case 46:
+//C
+this.state = 47;
+ //BA.debugLineNum = 159;BA.debugLine="TitleBar = xui.CreatePanel(\"TitleBar\")";
+parent._titlebar = parent._xui.CreatePanel(ba,"TitleBar");
+ //BA.debugLineNum = 160;BA.debugLine="TitleBar.Color = TitleBarColor";
+parent._titlebar.setColor(parent._titlebarcolor);
+ //BA.debugLineNum = 161;BA.debugLine="Base.AddView(TitleBar, 2dip, 2dip, Content.Width";
+parent._base.AddView((android.view.View)(parent._titlebar.getObject()),parent.__c.DipToCurrent((int) (2)),parent.__c.DipToCurrent((int) (2)),_content.getWidth(),_temptitlebarheight);
+ //BA.debugLineNum = 162;BA.debugLine="Dim lbl As Label";
+_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 163;BA.debugLine="lbl.Initialize(\"\")";
+_lbl.Initialize(ba,"");
+ //BA.debugLineNum = 164;BA.debugLine="Dim xlbl As B4XView = lbl";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 165;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Ti";
+parent._xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xlbl,parent._title);
+ //BA.debugLineNum = 166;BA.debugLine="xlbl.TextColor = TitleBarTextColor";
+_xlbl.setTextColor(parent._titlebartextcolor);
+ //BA.debugLineNum = 167;BA.debugLine="xlbl.Font = TitleBarFont";
+_xlbl.setFont(parent._titlebarfont);
+ //BA.debugLineNum = 168;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_xlbl.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 169;BA.debugLine="TitleBar.AddView(xlbl, 0, 0, TitleBar.Width, Tit";
+parent._titlebar.AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),parent._titlebar.getWidth(),parent._titlebar.getHeight());
+ if (true) break;
+
+case 47:
+//C
+this.state = 48;
+;
+ //BA.debugLineNum = 171;BA.debugLine="Content.RemoveViewFromParent";
+_content.RemoveViewFromParent();
+ //BA.debugLineNum = 172;BA.debugLine="Base.AddView(Content, 2dip, 2dip + TempTitleBarHe";
+parent._base.AddView((android.view.View)(_content.getObject()),parent.__c.DipToCurrent((int) (2)),(int) (parent.__c.DipToCurrent((int) (2))+_temptitlebarheight),_content.getWidth(),_content.getHeight());
+ //BA.debugLineNum = 173;BA.debugLine="Base.SetVisibleAnimated(VisibleAnimationDuration,";
+parent._base.SetVisibleAnimated(parent._visibleanimationduration,parent.__c.True);
+ //BA.debugLineNum = 174;BA.debugLine="For Each v As B4XView In Background.GetAllViewsRe";
+if (true) break;
+
+case 48:
+//for
+this.state = 51;
+_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
+group74 = parent._background.GetAllViewsRecursive();
+index74 = 0;
+groupLen74 = group74.getSize();
+this.state = 64;
+if (true) break;
+
+case 64:
+//C
+this.state = 51;
+if (index74 < groupLen74) {
+this.state = 50;
+_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group74.Get(index74)));}
+if (true) break;
+
+case 65:
+//C
+this.state = 64;
+index74++;
+if (true) break;
+
+case 50:
+//C
+this.state = 65;
+ //BA.debugLineNum = 175;BA.debugLine="v.Enabled = True";
+_v.setEnabled(parent.__c.True);
+ if (true) break;
+if (true) break;
+
+case 51:
+//C
+this.state = 52;
+;
+ //BA.debugLineNum = 177;BA.debugLine="Wait For CloseMessage (Result As Int)";
+parent.__c.WaitFor("closemessage", ba, this, null);
+this.state = 66;
+return;
+case 66:
+//C
+this.state = 52;
+_result = (Integer) result[0];
+;
+ //BA.debugLineNum = 178;BA.debugLine="For Each v As B4XView In Background.GetAllViewsRe";
+if (true) break;
+
+case 52:
+//for
+this.state = 55;
+_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
+group78 = parent._background.GetAllViewsRecursive();
+index78 = 0;
+groupLen78 = group78.getSize();
+this.state = 67;
+if (true) break;
+
+case 67:
+//C
+this.state = 55;
+if (index78 < groupLen78) {
+this.state = 54;
+_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group78.Get(index78)));}
+if (true) break;
+
+case 68:
+//C
+this.state = 67;
+index78++;
+if (true) break;
+
+case 54:
+//C
+this.state = 68;
+ //BA.debugLineNum = 179;BA.debugLine="v.Enabled = False";
+_v.setEnabled(parent.__c.False);
+ if (true) break;
+if (true) break;
+
+case 55:
+//C
+this.state = 56;
+;
+ //BA.debugLineNum = 181;BA.debugLine="Base.SetVisibleAnimated(VisibleAnimationDuration,";
+parent._base.SetVisibleAnimated(parent._visibleanimationduration,parent.__c.False);
+ //BA.debugLineNum = 182;BA.debugLine="If VisibleAnimationDuration > 0 Then";
+if (true) break;
+
+case 56:
+//if
+this.state = 59;
+if (parent._visibleanimationduration>0) {
+this.state = 58;
+}if (true) break;
+
+case 58:
+//C
+this.state = 59;
+ //BA.debugLineNum = 183;BA.debugLine="Sleep(VisibleAnimationDuration)";
+parent.__c.Sleep(ba,this,parent._visibleanimationduration);
+this.state = 69;
+return;
+case 69:
+//C
+this.state = 59;
+;
+ if (true) break;
+
+case 59:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 185;BA.debugLine="Background.RemoveViewFromParent";
+parent._background.RemoveViewFromParent();
+ //BA.debugLineNum = 186;BA.debugLine="Return Result";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(_result));return;};
+ //BA.debugLineNum = 187;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _closemessage(int _result) throws Exception{
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showtemplate(Object _dialogtemplate,Object _yes,Object _no,Object _cancel) throws Exception{
+ResumableSub_ShowTemplate rsub = new ResumableSub_ShowTemplate(this,_dialogtemplate,_yes,_no,_cancel);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_ShowTemplate extends BA.ResumableSub {
+public ResumableSub_ShowTemplate(reparto_izca.keymon.lat.b4xdialog parent,Object _dialogtemplate,Object _yes,Object _no,Object _cancel) {
+this.parent = parent;
+this._dialogtemplate = _dialogtemplate;
+this._yes = _yes;
+this._no = _no;
+this._cancel = _cancel;
+}
+reparto_izca.keymon.lat.b4xdialog parent;
+Object _dialogtemplate;
+Object _yes;
+Object _no;
+Object _cancel;
+anywheresoftware.b4a.objects.B4XViewWrapper _content = null;
+int _result = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 66;BA.debugLine="Dim content As B4XView = CallSub2(DialogTemplate,";
+_content = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_content = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(parent.__c.CallSubNew2(ba,_dialogtemplate,"GetPanel",parent)));
+ //BA.debugLineNum = 67;BA.debugLine="CallSub2(DialogTemplate, \"Show\", Me)";
+parent.__c.CallSubNew2(ba,_dialogtemplate,"Show",parent);
+ //BA.debugLineNum = 68;BA.debugLine="Wait For (ShowCustom(content , Yes, No, Cancel))";
+parent.__c.WaitFor("complete", ba, this, parent._showcustom(_content,_yes,_no,_cancel));
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+_result = (Integer) result[0];
+;
+ //BA.debugLineNum = 69;BA.debugLine="CallSub2(DialogTemplate, \"DialogClosed\", Result)";
+parent.__c.CallSubNew2(ba,_dialogtemplate,"DialogClosed",(Object)(_result));
+ //BA.debugLineNum = 70;BA.debugLine="PutAtTop = False";
+parent._putattop = parent.__c.False;
+ //BA.debugLineNum = 71;BA.debugLine="Return Result";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(_result));return;};
+ //BA.debugLineNum = 72;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _stub_click() throws Exception{
+ //BA.debugLineNum = 349;BA.debugLine="Private Sub Stub_Click";
+ //BA.debugLineNum = 351;BA.debugLine="End Sub";
+return "";
+}
+public String _updateblur() throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _source = null;
+b4a.example.bitmapcreator _blurred = null;
+ //BA.debugLineNum = 274;BA.debugLine="Private Sub UpdateBlur";
+ //BA.debugLineNum = 275;BA.debugLine="If BlurBackground = False Then Return";
+if (_blurbackground==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 276;BA.debugLine="Background.Visible = False";
+_background.setVisible(__c.False);
+ //BA.debugLineNum = 277;BA.debugLine="Dim source As B4XBitmap = Background.Parent.Snaps";
+_source = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_source = _background.getParent().Snapshot();
+ //BA.debugLineNum = 278;BA.debugLine="If source.Width > Background.Width Or source.Heig";
+if (_source.getWidth()>_background.getWidth() || _source.getHeight()>_background.getHeight()) {
+ //BA.debugLineNum = 279;BA.debugLine="source = source.Crop(0, 0, Background.Width, Bac";
+_source = _source.Crop((int) (0),(int) (0),_background.getWidth(),_background.getHeight());
+ };
+ //BA.debugLineNum = 281;BA.debugLine="Background.Visible = True";
+_background.setVisible(__c.True);
+ //BA.debugLineNum = 282;BA.debugLine="BlurImageView.SetLayoutAnimated(0, 0, 0, Backgrou";
+_blurimageview.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_background.getWidth(),_background.getHeight());
+ //BA.debugLineNum = 283;BA.debugLine="Dim blurred As BitmapCreator = Blur(source)";
+_blurred = _blur(_source);
+ //BA.debugLineNum = 284;BA.debugLine="blurred.SetBitmapToImageView(blurred.Bitmap, Blur";
+_blurred._setbitmaptoimageview(_blurred._getbitmap(),_blurimageview);
+ //BA.debugLineNum = 285;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xfloattextfield.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xfloattextfield.java
new file mode 100644
index 0000000..fc1709e
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xfloattextfield.java
@@ -0,0 +1,856 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xfloattextfield extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xfloattextfield");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xfloattextfield.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mtextfield = null;
+public int _animationduration = 0;
+public float _largelabeltextsize = 0f;
+public float _smalllabeltextsize = 0f;
+public boolean _largelabel = false;
+public anywheresoftware.b4a.objects.B4XCanvas _measuringcanvas = null;
+public int _hintcolor = 0;
+public int _nonfocusedhintcolor = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _hintimageview = null;
+public String _hinttext = "";
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _hintfont = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _largefocused = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _largenotfocused = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _smallfocused = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _smallnotfocused = null;
+public boolean _focused = false;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lblclear = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lblv = null;
+public anywheresoftware.b4a.objects.collections.Map _mprops = null;
+public Object _tag = null;
+public String _keyboardtype = "";
+public boolean _multiline = false;
+public reparto_izca.keymon.lat.b4xfloattextfield _mnexttextfield = null;
+public anywheresoftware.b4a.objects.IME _ime = null;
+public int _hintlabellargeoffsetx = 0;
+public int _hintlabelsmalloffsety = 0;
+public int _hintlabelsmalloffsetx = 0;
+public long _lastswitchtextfieldtime = 0L;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+int _firstdistance = 0;
+ //BA.debugLineNum = 196;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As";
+ //BA.debugLineNum = 197;BA.debugLine="mTextField.SetLayoutAnimated(0, 0, 0, Width, Heig";
+_mtextfield.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 198;BA.debugLine="Dim FirstDistance As Int = 2dip";
+_firstdistance = __c.DipToCurrent((int) (2));
+ //BA.debugLineNum = 199;BA.debugLine="If Multiline And xui.IsB4J Then FirstDistance = 2";
+if (_multiline && _xui.getIsB4J()) {
+_firstdistance = __c.DipToCurrent((int) (22));};
+ //BA.debugLineNum = 200;BA.debugLine="If lblV.IsInitialized Then";
+if (_lblv.IsInitialized()) {
+ //BA.debugLineNum = 201;BA.debugLine="lblV.SetLayoutAnimated(0, Width - lblV.Width - F";
+_lblv.SetLayoutAnimated((int) (0),(int) (_width-_lblv.getWidth()-_firstdistance),(int) (0),_lblv.getWidth(),(int) (_height));
+ //BA.debugLineNum = 202;BA.debugLine="FirstDistance = FirstDistance + lblV.Width + 2di";
+_firstdistance = (int) (_firstdistance+_lblv.getWidth()+__c.DipToCurrent((int) (2)));
+ };
+ //BA.debugLineNum = 204;BA.debugLine="If lblClear.IsInitialized Then";
+if (_lblclear.IsInitialized()) {
+ //BA.debugLineNum = 205;BA.debugLine="lblClear.SetLayoutAnimated(0, Width - lblClear.W";
+_lblclear.SetLayoutAnimated((int) (0),(int) (_width-_lblclear.getWidth()-_firstdistance),(int) (0),_lblclear.getWidth(),(int) (_height));
+ };
+ //BA.debugLineNum = 207;BA.debugLine="UpdateLabel(mTextField.Text, True)";
+_updatelabel(_mtextfield.getText(),__c.True);
+ //BA.debugLineNum = 208;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 16;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 17;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 18;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 19;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 21;BA.debugLine="Private mTextField As B4XView";
+_mtextfield = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Public AnimationDuration As Int = 200";
+_animationduration = (int) (200);
+ //BA.debugLineNum = 23;BA.debugLine="Public LargeLabelTextSize = 18, SmallLabelTextSiz";
+_largelabeltextsize = (float) (18);
+_smalllabeltextsize = (float) (14);
+ //BA.debugLineNum = 24;BA.debugLine="Private LargeLabel As Boolean";
+_largelabel = false;
+ //BA.debugLineNum = 25;BA.debugLine="Private MeasuringCanvas As B4XCanvas";
+_measuringcanvas = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 26;BA.debugLine="Public HintColor As Int";
+_hintcolor = 0;
+ //BA.debugLineNum = 27;BA.debugLine="Public NonFocusedHintColor As Int";
+_nonfocusedhintcolor = 0;
+ //BA.debugLineNum = 28;BA.debugLine="Private HintImageView As B4XView";
+_hintimageview = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Public HintText As String";
+_hinttext = "";
+ //BA.debugLineNum = 30;BA.debugLine="Public HintFont As B4XFont";
+_hintfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
+ //BA.debugLineNum = 31;BA.debugLine="Private LargeFocused, LargeNotFocused, SmallFocus";
+_largefocused = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_largenotfocused = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_smallfocused = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_smallnotfocused = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+ //BA.debugLineNum = 32;BA.debugLine="Public Focused As Boolean";
+_focused = false;
+ //BA.debugLineNum = 33;BA.debugLine="Public lblClear As B4XView";
+_lblclear = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 34;BA.debugLine="Public lblV As B4XView";
+_lblv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 35;BA.debugLine="Private mProps As Map";
+_mprops = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 36;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 37;BA.debugLine="Private KeyboardType As String 'ignore";
+_keyboardtype = "";
+ //BA.debugLineNum = 38;BA.debugLine="Private Multiline As Boolean";
+_multiline = false;
+ //BA.debugLineNum = 39;BA.debugLine="Private mNextTextField As B4XFloatTextField";
+_mnexttextfield = new reparto_izca.keymon.lat.b4xfloattextfield();
+ //BA.debugLineNum = 41;BA.debugLine="Private IME As IME";
+_ime = new anywheresoftware.b4a.objects.IME();
+ //BA.debugLineNum = 46;BA.debugLine="Public HintLabelLargeOffsetX, HintLabelSmallOffse";
+_hintlabellargeoffsetx = 0;
+_hintlabelsmalloffsety = __c.DipToCurrent((int) (2));
+_hintlabelsmalloffsetx = __c.DipToCurrent((int) (2));
+ //BA.debugLineNum = 47;BA.debugLine="Private LastSwitchTextFieldTime As Long";
+_lastswitchtextfieldtime = 0L;
+ //BA.debugLineNum = 48;BA.debugLine="End Sub";
+return "";
+}
+public String _createacceptbutton() throws Exception{
+ //BA.debugLineNum = 125;BA.debugLine="Private Sub CreateAcceptButton";
+ //BA.debugLineNum = 126;BA.debugLine="If mProps.GetDefault(\"ShowAccept\", True) = False";
+if ((_mprops.GetDefault((Object)("ShowAccept"),(Object)(__c.True))).equals((Object)(__c.False))) {
+if (true) return "";};
+ //BA.debugLineNum = 127;BA.debugLine="lblV = CreateButton(Chr(0xE5CA))";
+_lblv = _createbutton(BA.ObjectToString(__c.Chr(((int)0xe5ca))));
+ //BA.debugLineNum = 128;BA.debugLine="lblV.Tag = \"v\"";
+_lblv.setTag((Object)("v"));
+ //BA.debugLineNum = 129;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _createbitmap(anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r,int _color,anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _fnt) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.B4XCanvas _c = null;
+int _baseline = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp = null;
+ //BA.debugLineNum = 257;BA.debugLine="Private Sub CreateBitmap(r As B4XRect, Color As In";
+ //BA.debugLineNum = 258;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 259;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Max(1, r.Width + 2di";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (__c.Max(1,_r.getWidth()+__c.DipToCurrent((int) (2)))),(int) (__c.Max(1,_r.getHeight()+__c.DipToCurrent((int) (2)))));
+ //BA.debugLineNum = 260;BA.debugLine="Dim c As B4XCanvas";
+_c = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 261;BA.debugLine="c.Initialize(p)";
+_c.Initialize(_p);
+ //BA.debugLineNum = 262;BA.debugLine="Dim BaseLine As Int = p.Height / 2 - r.Height / 2";
+_baseline = (int) (_p.getHeight()/(double)2-_r.getHeight()/(double)2-_r.getTop());
+ //BA.debugLineNum = 263;BA.debugLine="c.DrawText(HintText, p.Width / 2, BaseLine, Fnt,";
+_c.DrawText(ba,_hinttext,(float) (_p.getWidth()/(double)2),(float) (_baseline),_fnt,_color,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER"));
+ //BA.debugLineNum = 264;BA.debugLine="Dim bmp As B4XBitmap = c.CreateBitmap";
+_bmp = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_bmp = _c.CreateBitmap();
+ //BA.debugLineNum = 265;BA.debugLine="c.Release";
+_c.Release();
+ //BA.debugLineNum = 266;BA.debugLine="Return bmp";
+if (true) return _bmp;
+ //BA.debugLineNum = 267;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _createbutton(String _text) throws Exception{
+anywheresoftware.b4a.objects.LabelWrapper _lc = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _x = null;
+ //BA.debugLineNum = 182;BA.debugLine="Private Sub CreateButton (Text As String) As B4XVi";
+ //BA.debugLineNum = 183;BA.debugLine="Dim lc As Label";
+_lc = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 184;BA.debugLine="lc.Initialize(\"lc\")";
+_lc.Initialize(ba,"lc");
+ //BA.debugLineNum = 185;BA.debugLine="Dim x As B4XView = lc";
+_x = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_x = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lc.getObject()));
+ //BA.debugLineNum = 186;BA.debugLine="x = lc";
+_x = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lc.getObject()));
+ //BA.debugLineNum = 187;BA.debugLine="x.Font = xui.CreateMaterialIcons(20)";
+_x.setFont(_xui.CreateMaterialIcons((float) (20)));
+ //BA.debugLineNum = 188;BA.debugLine="x.Text = Text";
+_x.setText(BA.ObjectToCharSequence(_text));
+ //BA.debugLineNum = 189;BA.debugLine="x.TextColor = mTextField.TextColor";
+_x.setTextColor(_mtextfield.getTextColor());
+ //BA.debugLineNum = 190;BA.debugLine="x.Visible = False";
+_x.setVisible(__c.False);
+ //BA.debugLineNum = 191;BA.debugLine="x.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_x.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 192;BA.debugLine="mBase.AddView(x, 0, 0, 30dip, 30dip)";
+_mbase.AddView((android.view.View)(_x.getObject()),(int) (0),(int) (0),__c.DipToCurrent((int) (30)),__c.DipToCurrent((int) (30)));
+ //BA.debugLineNum = 193;BA.debugLine="Return x";
+if (true) return _x;
+ //BA.debugLineNum = 194;BA.debugLine="End Sub";
+return null;
+}
+public String _createclearbutton() throws Exception{
+ //BA.debugLineNum = 117;BA.debugLine="Private Sub CreateClearButton";
+ //BA.debugLineNum = 118;BA.debugLine="If mProps.GetDefault(\"ShowClear\", True) = False T";
+if ((_mprops.GetDefault((Object)("ShowClear"),(Object)(__c.True))).equals((Object)(__c.False))) {
+if (true) return "";};
+ //BA.debugLineNum = 119;BA.debugLine="If lblClear.IsInitialized And lblClear.Parent.IsI";
+if (_lblclear.IsInitialized() && _lblclear.getParent().IsInitialized()) {
+_lblclear.RemoveViewFromParent();};
+ //BA.debugLineNum = 120;BA.debugLine="lblClear = CreateButton(Chr(0xE14C))";
+_lblclear = _createbutton(BA.ObjectToString(__c.Chr(((int)0xe14c))));
+ //BA.debugLineNum = 121;BA.debugLine="lblClear.Tag = \"clear\"";
+_lblclear.setTag((Object)("clear"));
+ //BA.debugLineNum = 123;BA.debugLine="End Sub";
+return "";
+}
+public String _createrevealbutton() throws Exception{
+ //BA.debugLineNum = 132;BA.debugLine="Private Sub CreateRevealButton";
+ //BA.debugLineNum = 133;BA.debugLine="lblClear = CreateButton(Chr(0xE8F4))";
+_lblclear = _createbutton(BA.ObjectToString(__c.Chr(((int)0xe8f4))));
+ //BA.debugLineNum = 134;BA.debugLine="lblClear.Tag = \"reveal\"";
+_lblclear.setTag((Object)("reveal"));
+ //BA.debugLineNum = 135;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _createtextfield(boolean _password) throws Exception{
+anywheresoftware.b4a.objects.EditTextWrapper _tf = null;
+ //BA.debugLineNum = 328;BA.debugLine="Private Sub CreateTextField (Password As Boolean)";
+ //BA.debugLineNum = 344;BA.debugLine="Dim tf As EditText";
+_tf = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 345;BA.debugLine="tf.Initialize(\"tf\")";
+_tf.Initialize(ba,"tf");
+ //BA.debugLineNum = 346;BA.debugLine="tf.SingleLine = Not(Multiline)";
+_tf.setSingleLine(__c.Not(_multiline));
+ //BA.debugLineNum = 347;BA.debugLine="tf.PasswordMode = Password";
+_tf.setPasswordMode(_password);
+ //BA.debugLineNum = 348;BA.debugLine="If Password Then";
+if (_password) {
+ //BA.debugLineNum = 349;BA.debugLine="If KeyboardType <> \"Text\" Then";
+if ((_keyboardtype).equals("Text") == false) {
+ //BA.debugLineNum = 350;BA.debugLine="tf.InputType = Bit.Or(tf.INPUT_TYPE_NUMBERS, 16";
+_tf.setInputType(__c.Bit.Or(_tf.INPUT_TYPE_NUMBERS,(int) (16)));
+ }else {
+ //BA.debugLineNum = 352;BA.debugLine="tf.InputType = Bit.Or(0x00000080, 0x00080000) '";
+_tf.setInputType(__c.Bit.Or(((int)0x00000080),((int)0x00080000)));
+ };
+ }else {
+ //BA.debugLineNum = 355;BA.debugLine="Select KeyboardType";
+switch (BA.switchObjectToInt(_keyboardtype,"Numbers","Decimal")) {
+case 0: {
+ //BA.debugLineNum = 357;BA.debugLine="tf.InputType = tf.INPUT_TYPE_NUMBERS";
+_tf.setInputType(_tf.INPUT_TYPE_NUMBERS);
+ break; }
+case 1: {
+ //BA.debugLineNum = 359;BA.debugLine="tf.InputType = tf.INPUT_TYPE_DECIMAL_NUMBERS";
+_tf.setInputType(_tf.INPUT_TYPE_DECIMAL_NUMBERS);
+ break; }
+}
+;
+ };
+ //BA.debugLineNum = 362;BA.debugLine="Return tf";
+if (true) return (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_tf.getObject()));
+ //BA.debugLineNum = 386;BA.debugLine="End Sub";
+return null;
+}
+public String _createtextfieldall(boolean _passwordmode,anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _font1,int _textcolor) throws Exception{
+ //BA.debugLineNum = 109;BA.debugLine="Private Sub CreateTextFieldAll (PasswordMode As Bo";
+ //BA.debugLineNum = 110;BA.debugLine="mTextField = CreateTextField (PasswordMode)";
+_mtextfield = _createtextfield(_passwordmode);
+ //BA.debugLineNum = 111;BA.debugLine="mTextField.Font = Font1";
+_mtextfield.setFont(_font1);
+ //BA.debugLineNum = 112;BA.debugLine="mTextField.TextColor = TextColor";
+_mtextfield.setTextColor(_textcolor);
+ //BA.debugLineNum = 113;BA.debugLine="setNextField(mNextTextField)";
+_setnextfield(_mnexttextfield);
+ //BA.debugLineNum = 114;BA.debugLine="mBase.AddView(mTextField, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_mtextfield.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 115;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _passedlabel = null;
+anywheresoftware.b4a.objects.ImageViewWrapper _iv = null;
+boolean _passwordmode = false;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+ //BA.debugLineNum = 67;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl";
+ //BA.debugLineNum = 68;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 69;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 69;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 70;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 71;BA.debugLine="mProps = Props";
+_mprops = _props;
+ //BA.debugLineNum = 72;BA.debugLine="Dim PassedLabel As B4XView = lbl";
+_passedlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_passedlabel = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 73;BA.debugLine="Dim iv As ImageView";
+_iv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 74;BA.debugLine="iv.Initialize(\"HintImageView\")";
+_iv.Initialize(ba,"HintImageView");
+ //BA.debugLineNum = 75;BA.debugLine="HintImageView = iv";
+_hintimageview = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject()));
+ //BA.debugLineNum = 76;BA.debugLine="KeyboardType = Props.GetDefault(\"KeyboardType\", \"";
+_keyboardtype = BA.ObjectToString(_props.GetDefault((Object)("KeyboardType"),(Object)("Text")));
+ //BA.debugLineNum = 82;BA.debugLine="HintColor = xui.PaintOrColorToColor(Props.Get(\"Hi";
+_hintcolor = _xui.PaintOrColorToColor(_props.Get((Object)("HintColor")));
+ //BA.debugLineNum = 83;BA.debugLine="NonFocusedHintColor = xui.PaintOrColorToColor(Pro";
+_nonfocusedhintcolor = _xui.PaintOrColorToColor(_props.Get((Object)("NonFocusedHintColor")));
+ //BA.debugLineNum = 85;BA.debugLine="HintText = Props.Get(\"Hint\")";
+_hinttext = BA.ObjectToString(_props.Get((Object)("Hint")));
+ //BA.debugLineNum = 86;BA.debugLine="HintFont = PassedLabel.Font";
+_hintfont = _passedlabel.getFont();
+ //BA.debugLineNum = 87;BA.debugLine="Dim PasswordMode As Boolean = Props.GetDefault(\"P";
+_passwordmode = BA.ObjectToBoolean(_props.GetDefault((Object)("PasswordField"),(Object)(__c.False)));
+ //BA.debugLineNum = 88;BA.debugLine="Multiline = Props.GetDefault(\"Multiline\", False)";
+_multiline = BA.ObjectToBoolean(_props.GetDefault((Object)("Multiline"),(Object)(__c.False)));
+ //BA.debugLineNum = 89;BA.debugLine="If PasswordMode And Multiline Then";
+if (_passwordmode && _multiline) {
+ //BA.debugLineNum = 90;BA.debugLine="Multiline = False";
+_multiline = __c.False;
+ //BA.debugLineNum = 91;BA.debugLine="Log(\"Multiline not supported with password mode.";
+__c.LogImpl("959310104","Multiline not supported with password mode.",0);
+ };
+ //BA.debugLineNum = 93;BA.debugLine="CreateTextFieldAll(PasswordMode, PassedLabel.Font";
+_createtextfieldall(_passwordmode,_passedlabel.getFont(),_xui.PaintOrColorToColor((Object)(_lbl.getTextColor())));
+ //BA.debugLineNum = 95;BA.debugLine="mBase.AddView(HintImageView, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_hintimageview.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 96;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 97;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 2dip, 2dip)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (2)),__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 98;BA.debugLine="MeasuringCanvas.Initialize(p)";
+_measuringcanvas.Initialize(_p);
+ //BA.debugLineNum = 99;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 100;BA.debugLine="If PasswordMode And Props.GetDefault(\"ShowRevealB";
+if (_passwordmode && BA.ObjectToBoolean(_props.GetDefault((Object)("ShowRevealButton"),(Object)(__c.False)))) {
+ //BA.debugLineNum = 101;BA.debugLine="CreateRevealButton";
+_createrevealbutton();
+ }else {
+ //BA.debugLineNum = 103;BA.debugLine="CreateClearButton";
+_createclearbutton();
+ };
+ //BA.debugLineNum = 105;BA.debugLine="CreateAcceptButton";
+_createacceptbutton();
+ //BA.debugLineNum = 106;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.b4xfloattextfield _getnextfield() throws Exception{
+ //BA.debugLineNum = 295;BA.debugLine="Public Sub getNextField As B4XFloatTextField";
+ //BA.debugLineNum = 296;BA.debugLine="Return mNextTextField";
+if (true) return _mnexttextfield;
+ //BA.debugLineNum = 297;BA.debugLine="End Sub";
+return null;
+}
+public String _gettext() throws Exception{
+ //BA.debugLineNum = 388;BA.debugLine="Public Sub getText As String";
+ //BA.debugLineNum = 389;BA.debugLine="Return mTextField.Text";
+if (true) return _mtextfield.getText();
+ //BA.debugLineNum = 390;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _gettextfield() throws Exception{
+ //BA.debugLineNum = 445;BA.debugLine="Public Sub getTextField As B4XView";
+ //BA.debugLineNum = 446;BA.debugLine="Return mTextField";
+if (true) return _mtextfield;
+ //BA.debugLineNum = 447;BA.debugLine="End Sub";
+return null;
+}
+public boolean _ime_handleaction() throws Exception{
+ //BA.debugLineNum = 314;BA.debugLine="Private Sub ime_HandleAction As Boolean";
+ //BA.debugLineNum = 315;BA.debugLine="tf_EnterPressed";
+_tf_enterpressed();
+ //BA.debugLineNum = 316;BA.debugLine="If mNextTextField.IsInitialized Then Return True";
+if (_mnexttextfield.IsInitialized /*boolean*/ ()) {
+if (true) return __c.True;};
+ //BA.debugLineNum = 317;BA.debugLine="Return False";
+if (true) return __c.False;
+ //BA.debugLineNum = 318;BA.debugLine="End Sub";
+return false;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 50;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 51;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 52;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 53;BA.debugLine="If xui.IsB4A Then";
+if (_xui.getIsB4A()) {
+ //BA.debugLineNum = 54;BA.debugLine="HintLabelLargeOffsetX = 6dip";
+_hintlabellargeoffsetx = __c.DipToCurrent((int) (6));
+ }else {
+ //BA.debugLineNum = 56;BA.debugLine="HintLabelLargeOffsetX = 12dip";
+_hintlabellargeoffsetx = __c.DipToCurrent((int) (12));
+ };
+ //BA.debugLineNum = 59;BA.debugLine="IME.Initialize(\"ime\")";
+_ime.Initialize("ime");
+ //BA.debugLineNum = 65;BA.debugLine="End Sub";
+return "";
+}
+public String _lc_click() throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _btn = null;
+ //BA.debugLineNum = 403;BA.debugLine="Private Sub lc_Click";
+ //BA.debugLineNum = 404;BA.debugLine="Dim btn As B4XView = Sender";
+_btn = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_btn = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)));
+ //BA.debugLineNum = 405;BA.debugLine="Select btn.Tag";
+switch (BA.switchObjectToInt(_btn.getTag(),(Object)("clear"),(Object)("reveal"),(Object)("hide"),(Object)("v"))) {
+case 0: {
+ //BA.debugLineNum = 407;BA.debugLine="setText(\"\")";
+_settext("");
+ break; }
+case 1: {
+ //BA.debugLineNum = 409;BA.debugLine="SwitchFromPasswordToRegular (True)";
+_switchfrompasswordtoregular(__c.True);
+ break; }
+case 2: {
+ //BA.debugLineNum = 411;BA.debugLine="SwitchFromPasswordToRegular(False)";
+_switchfrompasswordtoregular(__c.False);
+ break; }
+case 3: {
+ //BA.debugLineNum = 413;BA.debugLine="tf_EnterPressed";
+_tf_enterpressed();
+ //BA.debugLineNum = 414;BA.debugLine="If mNextTextField.IsInitialized = False Or mNex";
+if (_mnexttextfield.IsInitialized /*boolean*/ ()==__c.False || (_mnexttextfield).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this))) {
+ //BA.debugLineNum = 416;BA.debugLine="IME.HideKeyboard";
+_ime.HideKeyboard(ba);
+ };
+ break; }
+}
+;
+ //BA.debugLineNum = 422;BA.debugLine="End Sub";
+return "";
+}
+public String _requestfocusandshowkeyboard() throws Exception{
+ //BA.debugLineNum = 450;BA.debugLine="Public Sub RequestFocusAndShowKeyboard";
+ //BA.debugLineNum = 451;BA.debugLine="mTextField.RequestFocus";
+_mtextfield.RequestFocus();
+ //BA.debugLineNum = 453;BA.debugLine="IME.ShowKeyboard(mTextField)";
+_ime.ShowKeyboard((android.view.View)(_mtextfield.getObject()));
+ //BA.debugLineNum = 455;BA.debugLine="End Sub";
+return "";
+}
+public String _setnextfield(reparto_izca.keymon.lat.b4xfloattextfield _field) throws Exception{
+anywheresoftware.b4a.objects.EditTextWrapper _et = null;
+Object _o = null;
+ //BA.debugLineNum = 299;BA.debugLine="Public Sub setNextField (Field As B4XFloatTextFiel";
+ //BA.debugLineNum = 300;BA.debugLine="If Field.IsInitialized = False Then Return";
+if (_field.IsInitialized /*boolean*/ ()==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 302;BA.debugLine="If Multiline = False Then";
+if (_multiline==__c.False) {
+ //BA.debugLineNum = 303;BA.debugLine="If Field <> Me Then";
+if ((_field).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this)) == false) {
+ //BA.debugLineNum = 304;BA.debugLine="IME.AddHandleActionEvent(mTextField)";
+_ime.AddHandleActionEvent((android.widget.EditText)(_mtextfield.getObject()),ba);
+ };
+ //BA.debugLineNum = 306;BA.debugLine="Dim et As EditText = mTextField";
+_et = new anywheresoftware.b4a.objects.EditTextWrapper();
+_et = (anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_mtextfield.getObject()));
+ //BA.debugLineNum = 307;BA.debugLine="et.ForceDoneButton = True";
+_et.setForceDoneButton(__c.True);
+ };
+ //BA.debugLineNum = 310;BA.debugLine="Dim o As Object = Field";
+_o = (Object)(_field);
+ //BA.debugLineNum = 311;BA.debugLine="mNextTextField = o";
+_mnexttextfield = (reparto_izca.keymon.lat.b4xfloattextfield)(_o);
+ //BA.debugLineNum = 312;BA.debugLine="End Sub";
+return "";
+}
+public String _settext(String _s) throws Exception{
+String _old = "";
+ //BA.debugLineNum = 392;BA.debugLine="Public Sub setText(s As String)";
+ //BA.debugLineNum = 393;BA.debugLine="Dim old As String = mTextField.Text 'ignore";
+_old = _mtextfield.getText();
+ //BA.debugLineNum = 394;BA.debugLine="mTextField.Text = s";
+_mtextfield.setText(BA.ObjectToCharSequence(_s));
+ //BA.debugLineNum = 396;BA.debugLine="If IsPaused(Me) Then tf_TextChanged(old, s)";
+if (__c.IsPaused(ba,this)) {
+_tf_textchanged(_old,_s);};
+ //BA.debugLineNum = 400;BA.debugLine="End Sub";
+return "";
+}
+public void _switchfrompasswordtoregular(boolean _toregular) throws Exception{
+ResumableSub_SwitchFromPasswordToRegular rsub = new ResumableSub_SwitchFromPasswordToRegular(this,_toregular);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_SwitchFromPasswordToRegular extends BA.ResumableSub {
+public ResumableSub_SwitchFromPasswordToRegular(reparto_izca.keymon.lat.b4xfloattextfield parent,boolean _toregular) {
+this.parent = parent;
+this._toregular = _toregular;
+}
+reparto_izca.keymon.lat.b4xfloattextfield parent;
+boolean _toregular;
+String _text = "";
+int _textcolor = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _font1 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _oldfield = null;
+anywheresoftware.b4a.objects.EditTextWrapper _et = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 138;BA.debugLine="Dim text As String = mTextField.Text";
+_text = parent._mtextfield.getText();
+ //BA.debugLineNum = 139;BA.debugLine="Dim textcolor As Int = mTextField.TextColor";
+_textcolor = parent._mtextfield.getTextColor();
+ //BA.debugLineNum = 140;BA.debugLine="Dim Font1 As B4XFont = mTextField.Font";
+_font1 = parent._mtextfield.getFont();
+ //BA.debugLineNum = 141;BA.debugLine="Dim oldfield As B4XView = mTextField";
+_oldfield = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_oldfield = parent._mtextfield;
+ //BA.debugLineNum = 143;BA.debugLine="CreateTextFieldAll(Not(ToRegular), Font1, textcol";
+parent._createtextfieldall(parent.__c.Not(_toregular),_font1,_textcolor);
+ //BA.debugLineNum = 144;BA.debugLine="mTextField.Text = text";
+parent._mtextfield.setText(BA.ObjectToCharSequence(_text));
+ //BA.debugLineNum = 145;BA.debugLine="If lblClear.IsInitialized Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 10;
+if (parent._lblclear.IsInitialized()) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 146;BA.debugLine="If ToRegular = False Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 9;
+if (_toregular==parent.__c.False) {
+this.state = 6;
+}else {
+this.state = 8;
+}if (true) break;
+
+case 6:
+//C
+this.state = 9;
+ //BA.debugLineNum = 147;BA.debugLine="lblClear.Text = Chr(0xE8F4)";
+parent._lblclear.setText(BA.ObjectToCharSequence(parent.__c.Chr(((int)0xe8f4))));
+ //BA.debugLineNum = 148;BA.debugLine="lblClear.Tag = \"reveal\"";
+parent._lblclear.setTag((Object)("reveal"));
+ if (true) break;
+
+case 8:
+//C
+this.state = 9;
+ //BA.debugLineNum = 150;BA.debugLine="lblClear.Tag = \"hide\"";
+parent._lblclear.setTag((Object)("hide"));
+ //BA.debugLineNum = 151;BA.debugLine="lblClear.Text = Chr(0xE8F5)";
+parent._lblclear.setText(BA.ObjectToCharSequence(parent.__c.Chr(((int)0xe8f5))));
+ if (true) break;
+
+case 9:
+//C
+this.state = 10;
+;
+ //BA.debugLineNum = 153;BA.debugLine="lblClear.BringToFront";
+parent._lblclear.BringToFront();
+ if (true) break;
+;
+ //BA.debugLineNum = 155;BA.debugLine="If lblV.IsInitialized Then lblV.BringToFront";
+
+case 10:
+//if
+this.state = 15;
+if (parent._lblv.IsInitialized()) {
+this.state = 12;
+;}if (true) break;
+
+case 12:
+//C
+this.state = 15;
+parent._lblv.BringToFront();
+if (true) break;
+
+case 15:
+//C
+this.state = 16;
+;
+ //BA.debugLineNum = 156;BA.debugLine="HintImageView.BringToFront";
+parent._hintimageview.BringToFront();
+ //BA.debugLineNum = 157;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+parent._base_resize(parent._mbase.getWidth(),parent._mbase.getHeight());
+ //BA.debugLineNum = 162;BA.debugLine="Dim et As EditText = mTextField";
+_et = new anywheresoftware.b4a.objects.EditTextWrapper();
+_et = (anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(parent._mtextfield.getObject()));
+ //BA.debugLineNum = 163;BA.debugLine="et.SelectionStart = mTextField.Text.Length";
+_et.setSelectionStart(parent._mtextfield.getText().length());
+ //BA.debugLineNum = 165;BA.debugLine="LastSwitchTextFieldTime = DateTime.Now";
+parent._lastswitchtextfieldtime = parent.__c.DateTime.getNow();
+ //BA.debugLineNum = 166;BA.debugLine="mTextField.RequestFocus";
+parent._mtextfield.RequestFocus();
+ //BA.debugLineNum = 167;BA.debugLine="oldfield.RemoveViewFromParent";
+_oldfield.RemoveViewFromParent();
+ //BA.debugLineNum = 169;BA.debugLine="LastSwitchTextFieldTime = DateTime.Now + 200";
+parent._lastswitchtextfieldtime = (long) (parent.__c.DateTime.getNow()+200);
+ //BA.debugLineNum = 170;BA.debugLine="et.Enabled = False";
+_et.setEnabled(parent.__c.False);
+ //BA.debugLineNum = 171;BA.debugLine="Sleep(50)";
+parent.__c.Sleep(ba,this,(int) (50));
+this.state = 20;
+return;
+case 20:
+//C
+this.state = 16;
+;
+ //BA.debugLineNum = 172;BA.debugLine="et.Enabled = True";
+_et.setEnabled(parent.__c.True);
+ //BA.debugLineNum = 173;BA.debugLine="Sleep(50)";
+parent.__c.Sleep(ba,this,(int) (50));
+this.state = 21;
+return;
+case 21:
+//C
+this.state = 16;
+;
+ //BA.debugLineNum = 174;BA.debugLine="et.RequestFocus";
+_et.RequestFocus();
+ //BA.debugLineNum = 175;BA.debugLine="IME.ShowKeyboard(mTextField)";
+parent._ime.ShowKeyboard((android.view.View)(parent._mtextfield.getObject()));
+ //BA.debugLineNum = 177;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Passwo";
+if (true) break;
+
+case 16:
+//if
+this.state = 19;
+if (parent._xui.SubExists(ba,parent._mcallback,parent._meventname+"_PasswordRevealChanged",(int) (1))) {
+this.state = 18;
+}if (true) break;
+
+case 18:
+//C
+this.state = 19;
+ //BA.debugLineNum = 178;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Passwo";
+parent.__c.CallSubDelayed2(ba,parent._mcallback,parent._meventname+"_PasswordRevealChanged",(Object)(_toregular));
+ if (true) break;
+
+case 19:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 180;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _tf_action() throws Exception{
+ //BA.debugLineNum = 277;BA.debugLine="Private Sub tf_Action";
+ //BA.debugLineNum = 278;BA.debugLine="If mNextTextField.IsInitialized And mNextTextFiel";
+if (_mnexttextfield.IsInitialized /*boolean*/ () && (_mnexttextfield).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this)) == false) {
+ //BA.debugLineNum = 279;BA.debugLine="mNextTextField.TextField.RequestFocus";
+_mnexttextfield._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ().RequestFocus();
+ };
+ //BA.debugLineNum = 281;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_EnterP";
+if (_xui.SubExists(ba,_mcallback,_meventname+"_EnterPressed",(int) (0))) {
+ //BA.debugLineNum = 282;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_EnterPr";
+__c.CallSubDelayed(ba,_mcallback,_meventname+"_EnterPressed");
+ };
+ //BA.debugLineNum = 284;BA.debugLine="End Sub";
+return "";
+}
+public String _tf_beginedit() throws Exception{
+ //BA.debugLineNum = 269;BA.debugLine="Private Sub tf_BeginEdit";
+ //BA.debugLineNum = 270;BA.debugLine="tf_FocusChanged(True)";
+_tf_focuschanged(__c.True);
+ //BA.debugLineNum = 271;BA.debugLine="End Sub";
+return "";
+}
+public String _tf_endedit() throws Exception{
+ //BA.debugLineNum = 273;BA.debugLine="Private Sub tf_EndEdit";
+ //BA.debugLineNum = 274;BA.debugLine="tf_FocusChanged(False)";
+_tf_focuschanged(__c.False);
+ //BA.debugLineNum = 275;BA.debugLine="End Sub";
+return "";
+}
+public String _tf_enterpressed() throws Exception{
+ //BA.debugLineNum = 320;BA.debugLine="Private Sub tf_EnterPressed";
+ //BA.debugLineNum = 321;BA.debugLine="tf_Action";
+_tf_action();
+ //BA.debugLineNum = 326;BA.debugLine="End Sub";
+return "";
+}
+public String _tf_focuschanged(boolean _hasfocus) throws Exception{
+ //BA.debugLineNum = 234;BA.debugLine="Private Sub tf_FocusChanged (HasFocus As Boolean)";
+ //BA.debugLineNum = 235;BA.debugLine="Focused = HasFocus";
+_focused = _hasfocus;
+ //BA.debugLineNum = 236;BA.debugLine="UpdateLabel(mTextField.Text, True)";
+_updatelabel(_mtextfield.getText(),__c.True);
+ //BA.debugLineNum = 237;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_FocusC";
+if (_xui.SubExists(ba,_mcallback,_meventname+"_FocusChanged",(int) (1))) {
+ //BA.debugLineNum = 238;BA.debugLine="If LastSwitchTextFieldTime + 100 < DateTime.Now";
+if (_lastswitchtextfieldtime+100<__c.DateTime.getNow()) {
+ //BA.debugLineNum = 239;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Focus";
+__c.CallSubDelayed2(ba,_mcallback,_meventname+"_FocusChanged",(Object)(_focused));
+ };
+ };
+ //BA.debugLineNum = 242;BA.debugLine="End Sub";
+return "";
+}
+public String _tf_textchanged(String _old,String _new) throws Exception{
+ //BA.debugLineNum = 287;BA.debugLine="Private Sub tf_TextChanged (Old As String, New As";
+ //BA.debugLineNum = 288;BA.debugLine="UpdateLabel(New, False)";
+_updatelabel(_new,__c.False);
+ //BA.debugLineNum = 289;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_TextCh";
+if (_xui.SubExists(ba,_mcallback,_meventname+"_TextChanged",(int) (2)) && _mtextfield.IsInitialized()) {
+ //BA.debugLineNum = 290;BA.debugLine="CallSub3(mCallBack, mEventName & \"_TextChanged\",";
+__c.CallSubNew3(ba,_mcallback,_meventname+"_TextChanged",(Object)(_old),(Object)(_new));
+ };
+ //BA.debugLineNum = 292;BA.debugLine="End Sub";
+return "";
+}
+public String _update() throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _f = null;
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+ //BA.debugLineNum = 245;BA.debugLine="Public Sub Update";
+ //BA.debugLineNum = 246;BA.debugLine="Dim f As B4XFont = xui.CreateFont2(HintFont, Lar";
+_f = _xui.CreateFont2(_hintfont,_largelabeltextsize);
+ //BA.debugLineNum = 247;BA.debugLine="Dim r As B4XRect = MeasuringCanvas.MeasureText(Hi";
+_r = _measuringcanvas.MeasureText(_hinttext,_f);
+ //BA.debugLineNum = 248;BA.debugLine="LargeFocused = CreateBitmap(r, HintColor, f)";
+_largefocused = _createbitmap(_r,_hintcolor,_f);
+ //BA.debugLineNum = 249;BA.debugLine="LargeNotFocused = CreateBitmap(r, NonFocusedHintC";
+_largenotfocused = _createbitmap(_r,_nonfocusedhintcolor,_f);
+ //BA.debugLineNum = 250;BA.debugLine="f = xui.CreateFont2(HintFont, SmallLabelTextSize)";
+_f = _xui.CreateFont2(_hintfont,_smalllabeltextsize);
+ //BA.debugLineNum = 251;BA.debugLine="Dim r As B4XRect = MeasuringCanvas.MeasureText(Hi";
+_r = _measuringcanvas.MeasureText(_hinttext,_f);
+ //BA.debugLineNum = 252;BA.debugLine="SmallFocused = CreateBitmap(r, HintColor, f)";
+_smallfocused = _createbitmap(_r,_hintcolor,_f);
+ //BA.debugLineNum = 253;BA.debugLine="SmallNotFocused = CreateBitmap(r, NonFocusedHintC";
+_smallnotfocused = _createbitmap(_r,_nonfocusedhintcolor,_f);
+ //BA.debugLineNum = 254;BA.debugLine="UpdateLabel(mTextField.Text, True)";
+_updatelabel(_mtextfield.getText(),__c.True);
+ //BA.debugLineNum = 255;BA.debugLine="End Sub";
+return "";
+}
+public String _updatelabel(String _txt,boolean _force) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _lbl = null;
+boolean _goingtolarge = false;
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _b = null;
+ //BA.debugLineNum = 210;BA.debugLine="Private Sub UpdateLabel (txt As String, force As B";
+ //BA.debugLineNum = 211;BA.debugLine="For Each lbl As B4XView In Array As B4XView(lblCl";
+{
+final anywheresoftware.b4a.objects.B4XViewWrapper[] group1 = new anywheresoftware.b4a.objects.B4XViewWrapper[]{_lblclear,_lblv};
+final int groupLen1 = group1.length
+;int index1 = 0;
+;
+for (; index1 < groupLen1;index1++){
+_lbl = group1[index1];
+ //BA.debugLineNum = 212;BA.debugLine="If lbl.IsInitialized Then lbl.Visible = Focused";
+if (_lbl.IsInitialized()) {
+_lbl.setVisible(_focused && _txt.length()>0);};
+ }
+};
+ //BA.debugLineNum = 215;BA.debugLine="Dim GoingToLarge As Boolean = txt.Length = 0";
+_goingtolarge = _txt.length()==0;
+ //BA.debugLineNum = 216;BA.debugLine="If GoingToLarge = LargeLabel And force = False Th";
+if (_goingtolarge==_largelabel && _force==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 217;BA.debugLine="Dim b As B4XBitmap";
+_b = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+ //BA.debugLineNum = 218;BA.debugLine="If Focused Then";
+if (_focused) {
+ //BA.debugLineNum = 219;BA.debugLine="If GoingToLarge Then b = LargeFocused Else b = S";
+if (_goingtolarge) {
+_b = _largefocused;}
+else {
+_b = _smallfocused;};
+ }else {
+ //BA.debugLineNum = 221;BA.debugLine="If GoingToLarge Then b = LargeNotFocused Else b";
+if (_goingtolarge) {
+_b = _largenotfocused;}
+else {
+_b = _smallnotfocused;};
+ };
+ //BA.debugLineNum = 223;BA.debugLine="If b.IsInitialized = False Then Return";
+if (_b.IsInitialized()==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 224;BA.debugLine="HintImageView.SetBitmap(b)";
+_hintimageview.SetBitmap((android.graphics.Bitmap)(_b.getObject()));
+ //BA.debugLineNum = 225;BA.debugLine="If GoingToLarge Then";
+if (_goingtolarge) {
+ //BA.debugLineNum = 226;BA.debugLine="HintImageView.SetLayoutAnimated (AnimationDurati";
+_hintimageview.SetLayoutAnimated(_animationduration,_hintlabellargeoffsetx,(int) (_mbase.getHeight()/(double)2-_b.getHeight()/(double)2),(int) (_b.getWidth()),(int) (_b.getHeight()));
+ //BA.debugLineNum = 227;BA.debugLine="LargeLabel = True";
+_largelabel = __c.True;
+ }else {
+ //BA.debugLineNum = 229;BA.debugLine="HintImageView.SetLayoutAnimated(AnimationDuratio";
+_hintimageview.SetLayoutAnimated(_animationduration,_hintlabelsmalloffsetx,_hintlabelsmalloffsety,(int) (_b.getWidth()),(int) (_b.getHeight()));
+ //BA.debugLineNum = 230;BA.debugLine="LargeLabel = False";
+_largelabel = __c.False;
+ };
+ //BA.debugLineNum = 232;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xformatter.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xformatter.java
new file mode 100644
index 0000000..298d318
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xformatter.java
@@ -0,0 +1,379 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xformatter extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xformatter");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xformatter.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.collections.List _formats = null;
+public int _max_value = 0;
+public int _min_value = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _b4xformatdata{
+public boolean IsInitialized;
+public String Prefix;
+public String Postfix;
+public int MinimumIntegers;
+public int MinimumFractions;
+public int MaximumFractions;
+public String GroupingCharacter;
+public String DecimalPoint;
+public int TextColor;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont FormatFont;
+public double RangeStart;
+public double RangeEnd;
+public boolean RemoveMinusSign;
+public String IntegerPaddingChar;
+public String FractionPaddingChar;
+public void Initialize() {
+IsInitialized = true;
+Prefix = "";
+Postfix = "";
+MinimumIntegers = 0;
+MinimumFractions = 0;
+MaximumFractions = 0;
+GroupingCharacter = "";
+DecimalPoint = "";
+TextColor = 0;
+FormatFont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
+RangeStart = 0;
+RangeEnd = 0;
+RemoveMinusSign = false;
+IntegerPaddingChar = "";
+FractionPaddingChar = "";
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public String _addformatdata(reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data,double _rangestart,double _rangeend,boolean _includeedges) throws Exception{
+double _factor = 0;
+ //BA.debugLineNum = 65;BA.debugLine="Public Sub AddFormatData (Data As B4XFormatData, R";
+ //BA.debugLineNum = 66;BA.debugLine="Dim factor As Double = Power(10, -Data.MaximumFra";
+_factor = __c.Power(10,-_data.MaximumFractions /*int*/ );
+ //BA.debugLineNum = 67;BA.debugLine="If IncludeEdges = False Then";
+if (_includeedges==__c.False) {
+ //BA.debugLineNum = 68;BA.debugLine="RangeStart = RangeStart + factor";
+_rangestart = _rangestart+_factor;
+ //BA.debugLineNum = 69;BA.debugLine="RangeEnd = RangeEnd - factor";
+_rangeend = _rangeend-_factor;
+ };
+ //BA.debugLineNum = 71;BA.debugLine="RangeStart = RangeStart - factor / 2";
+_rangestart = _rangestart-_factor/(double)2;
+ //BA.debugLineNum = 72;BA.debugLine="RangeEnd = RangeEnd + factor / 2";
+_rangeend = _rangeend+_factor/(double)2;
+ //BA.debugLineNum = 73;BA.debugLine="Data.RangeStart = RangeStart";
+_data.RangeStart /*double*/ = _rangestart;
+ //BA.debugLineNum = 74;BA.debugLine="Data.RangeEnd = RangeEnd";
+_data.RangeEnd /*double*/ = _rangeend;
+ //BA.debugLineNum = 75;BA.debugLine="formats.Add(Data)";
+_formats.Add((Object)(_data));
+ //BA.debugLineNum = 76;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Type B4XFormatData (Prefix As String, Postfix As";
+;
+ //BA.debugLineNum = 6;BA.debugLine="Private formats As List";
+_formats = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 7;BA.debugLine="Public Const MAX_VALUE = 0x7fffffff, MIN_VALUE =";
+_max_value = ((int)0x7fffffff);
+_min_value = ((int)0x80000000);
+ //BA.debugLineNum = 9;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 11;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _copyformatdata(reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data) throws Exception{
+reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null;
+ //BA.debugLineNum = 38;BA.debugLine="Public Sub CopyFormatData (Data As B4XFormatData)";
+ //BA.debugLineNum = 39;BA.debugLine="Dim d As B4XFormatData";
+_d = new reparto_izca.keymon.lat.b4xformatter._b4xformatdata();
+ //BA.debugLineNum = 40;BA.debugLine="d.Initialize";
+_d.Initialize();
+ //BA.debugLineNum = 41;BA.debugLine="d.DecimalPoint = Data.DecimalPoint";
+_d.DecimalPoint /*String*/ = _data.DecimalPoint /*String*/ ;
+ //BA.debugLineNum = 42;BA.debugLine="If Data.FormatFont.IsInitialized Then";
+if (_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .getIsInitialized()) {
+ //BA.debugLineNum = 44;BA.debugLine="d.FormatFont = xui.CreateFont(Data.FormatFont.To";
+_d.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _xui.CreateFont((android.graphics.Typeface)(_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .ToNativeFont().getObject()),_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .getSize());
+ };
+ //BA.debugLineNum = 47;BA.debugLine="d.GroupingCharacter = Data.GroupingCharacter";
+_d.GroupingCharacter /*String*/ = _data.GroupingCharacter /*String*/ ;
+ //BA.debugLineNum = 48;BA.debugLine="d.MaximumFractions = Data.MaximumFractions";
+_d.MaximumFractions /*int*/ = _data.MaximumFractions /*int*/ ;
+ //BA.debugLineNum = 49;BA.debugLine="d.MinimumFractions = Data.MinimumFractions";
+_d.MinimumFractions /*int*/ = _data.MinimumFractions /*int*/ ;
+ //BA.debugLineNum = 50;BA.debugLine="d.MinimumIntegers = Data.MinimumIntegers";
+_d.MinimumIntegers /*int*/ = _data.MinimumIntegers /*int*/ ;
+ //BA.debugLineNum = 51;BA.debugLine="d.Postfix = Data.Postfix";
+_d.Postfix /*String*/ = _data.Postfix /*String*/ ;
+ //BA.debugLineNum = 52;BA.debugLine="d.Prefix = Data.Prefix";
+_d.Prefix /*String*/ = _data.Prefix /*String*/ ;
+ //BA.debugLineNum = 53;BA.debugLine="d.RangeEnd = Data.RangeEnd";
+_d.RangeEnd /*double*/ = _data.RangeEnd /*double*/ ;
+ //BA.debugLineNum = 54;BA.debugLine="d.RangeStart = Data.RangeStart";
+_d.RangeStart /*double*/ = _data.RangeStart /*double*/ ;
+ //BA.debugLineNum = 55;BA.debugLine="d.RemoveMinusSign = Data.RemoveMinusSign";
+_d.RemoveMinusSign /*boolean*/ = _data.RemoveMinusSign /*boolean*/ ;
+ //BA.debugLineNum = 56;BA.debugLine="d.TextColor = Data.TextColor";
+_d.TextColor /*int*/ = _data.TextColor /*int*/ ;
+ //BA.debugLineNum = 57;BA.debugLine="d.FractionPaddingChar = Data.FractionPaddingChar";
+_d.FractionPaddingChar /*String*/ = _data.FractionPaddingChar /*String*/ ;
+ //BA.debugLineNum = 58;BA.debugLine="d.IntegerPaddingChar = Data.IntegerPaddingChar";
+_d.IntegerPaddingChar /*String*/ = _data.IntegerPaddingChar /*String*/ ;
+ //BA.debugLineNum = 59;BA.debugLine="Return d";
+if (true) return _d;
+ //BA.debugLineNum = 60;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _createdefaultformat() throws Exception{
+reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null;
+ //BA.debugLineNum = 19;BA.debugLine="Private Sub CreateDefaultFormat As B4XFormatData";
+ //BA.debugLineNum = 20;BA.debugLine="Dim d As B4XFormatData";
+_d = new reparto_izca.keymon.lat.b4xformatter._b4xformatdata();
+ //BA.debugLineNum = 21;BA.debugLine="d.Initialize";
+_d.Initialize();
+ //BA.debugLineNum = 22;BA.debugLine="d.GroupingCharacter = \",\"";
+_d.GroupingCharacter /*String*/ = ",";
+ //BA.debugLineNum = 23;BA.debugLine="d.DecimalPoint = \".\"";
+_d.DecimalPoint /*String*/ = ".";
+ //BA.debugLineNum = 24;BA.debugLine="d.MaximumFractions = 3";
+_d.MaximumFractions /*int*/ = (int) (3);
+ //BA.debugLineNum = 25;BA.debugLine="d.MinimumIntegers = 1";
+_d.MinimumIntegers /*int*/ = (int) (1);
+ //BA.debugLineNum = 26;BA.debugLine="d.IntegerPaddingChar = \"0\"";
+_d.IntegerPaddingChar /*String*/ = "0";
+ //BA.debugLineNum = 27;BA.debugLine="d.FractionPaddingChar = \"0\"";
+_d.FractionPaddingChar /*String*/ = "0";
+ //BA.debugLineNum = 28;BA.debugLine="Return d";
+if (true) return _d;
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return null;
+}
+public String _format(double _number) throws Exception{
+reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data = null;
+anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
+int _numberstartindex = 0;
+double _factor = 0;
+int _whole = 0;
+double _frac = 0;
+int _g = 0;
+int _fracstartindex = 0;
+int _lastzerocount = 0;
+int _multipler = 0;
+int _w = 0;
+ //BA.debugLineNum = 92;BA.debugLine="Public Sub Format (Number As Double) As String";
+ //BA.debugLineNum = 93;BA.debugLine="If Number < MIN_VALUE Or Number > MAX_VALUE Then";
+if (_number<_min_value || _number>_max_value) {
+if (true) return "OVERFLOW";};
+ //BA.debugLineNum = 94;BA.debugLine="Dim data As B4XFormatData = GetFormatData (Number";
+_data = _getformatdata(_number);
+ //BA.debugLineNum = 95;BA.debugLine="Dim sb As StringBuilder";
+_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
+ //BA.debugLineNum = 96;BA.debugLine="sb.Initialize";
+_sb.Initialize();
+ //BA.debugLineNum = 97;BA.debugLine="sb.Append(data.Prefix)";
+_sb.Append(_data.Prefix /*String*/ );
+ //BA.debugLineNum = 98;BA.debugLine="Dim NumberStartIndex As Int = sb.Length";
+_numberstartindex = _sb.getLength();
+ //BA.debugLineNum = 99;BA.debugLine="Dim factor As Double = Power(10, -data.MaximumFra";
+_factor = __c.Power(10,-_data.MaximumFractions /*int*/ -1)*5;
+ //BA.debugLineNum = 100;BA.debugLine="If Number < -factor And data.RemoveMinusSign = Fa";
+if (_number<-_factor && _data.RemoveMinusSign /*boolean*/ ==__c.False) {
+ //BA.debugLineNum = 101;BA.debugLine="sb.Append(\"-\")";
+_sb.Append("-");
+ //BA.debugLineNum = 102;BA.debugLine="NumberStartIndex = NumberStartIndex + 1";
+_numberstartindex = (int) (_numberstartindex+1);
+ };
+ //BA.debugLineNum = 104;BA.debugLine="Number = Abs(Number) + factor";
+_number = __c.Abs(_number)+_factor;
+ //BA.debugLineNum = 105;BA.debugLine="Dim whole As Int = Number";
+_whole = (int) (_number);
+ //BA.debugLineNum = 106;BA.debugLine="Dim frac As Double = Number - whole";
+_frac = _number-_whole;
+ //BA.debugLineNum = 107;BA.debugLine="Dim g As Int";
+_g = 0;
+ //BA.debugLineNum = 108;BA.debugLine="Do While whole > 0";
+while (_whole>0) {
+ //BA.debugLineNum = 109;BA.debugLine="If g > 0 And g Mod 3 = 0 And data.GroupingCharac";
+if (_g>0 && _g%3==0 && _data.GroupingCharacter /*String*/ .length()>0) {
+ //BA.debugLineNum = 110;BA.debugLine="sb.Insert(NumberStartIndex, data.GroupingCharac";
+_sb.Insert(_numberstartindex,_data.GroupingCharacter /*String*/ );
+ };
+ //BA.debugLineNum = 112;BA.debugLine="g = g + 1";
+_g = (int) (_g+1);
+ //BA.debugLineNum = 113;BA.debugLine="sb.Insert(NumberStartIndex, whole Mod 10)";
+_sb.Insert(_numberstartindex,BA.NumberToString(_whole%10));
+ //BA.debugLineNum = 114;BA.debugLine="whole = whole / 10";
+_whole = (int) (_whole/(double)10);
+ }
+;
+ //BA.debugLineNum = 116;BA.debugLine="Do While sb.Length - NumberStartIndex < data.Mini";
+while (_sb.getLength()-_numberstartindex<_data.MinimumIntegers /*int*/ ) {
+ //BA.debugLineNum = 117;BA.debugLine="sb.Insert(NumberStartIndex, data.IntegerPaddingC";
+_sb.Insert(_numberstartindex,_data.IntegerPaddingChar /*String*/ );
+ }
+;
+ //BA.debugLineNum = 119;BA.debugLine="If data.MaximumFractions > 0 And (data.MinimumFra";
+if (_data.MaximumFractions /*int*/ >0 && (_data.MinimumFractions /*int*/ >0 || _frac>0)) {
+ //BA.debugLineNum = 120;BA.debugLine="Dim FracStartIndex As Int = sb.Length";
+_fracstartindex = _sb.getLength();
+ //BA.debugLineNum = 121;BA.debugLine="Dim LastZeroCount As Int";
+_lastzerocount = 0;
+ //BA.debugLineNum = 122;BA.debugLine="Dim Multipler As Int = 10";
+_multipler = (int) (10);
+ //BA.debugLineNum = 123;BA.debugLine="Do While frac >= 2 * factor And sb.Length - Frac";
+while (_frac>=2*_factor && _sb.getLength()-_fracstartindex<_data.MaximumFractions /*int*/ ) {
+ //BA.debugLineNum = 124;BA.debugLine="Dim w As Int = (frac * Multipler)";
+_w = (int) ((_frac*_multipler));
+ //BA.debugLineNum = 125;BA.debugLine="w = w Mod 10";
+_w = (int) (_w%10);
+ //BA.debugLineNum = 126;BA.debugLine="If w = 0 Then LastZeroCount = LastZeroCount + 1";
+if (_w==0) {
+_lastzerocount = (int) (_lastzerocount+1);}
+else {
+_lastzerocount = (int) (0);};
+ //BA.debugLineNum = 127;BA.debugLine="sb.Append(w)";
+_sb.Append(BA.NumberToString(_w));
+ //BA.debugLineNum = 128;BA.debugLine="Multipler = Multipler * 10";
+_multipler = (int) (_multipler*10);
+ }
+;
+ //BA.debugLineNum = 130;BA.debugLine="If data.FractionPaddingChar <> \"0\" And LastZeroC";
+if ((_data.FractionPaddingChar /*String*/ ).equals("0") == false && _lastzerocount>0) {
+ //BA.debugLineNum = 131;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)";
+_sb.Remove((int) (_sb.getLength()-_lastzerocount),_sb.getLength());
+ //BA.debugLineNum = 132;BA.debugLine="LastZeroCount = 0";
+_lastzerocount = (int) (0);
+ };
+ //BA.debugLineNum = 134;BA.debugLine="Do While sb.Length - FracStartIndex < data.Minim";
+while (_sb.getLength()-_fracstartindex<_data.MinimumFractions /*int*/ ) {
+ //BA.debugLineNum = 135;BA.debugLine="sb.Append(data.FractionPaddingChar)";
+_sb.Append(_data.FractionPaddingChar /*String*/ );
+ //BA.debugLineNum = 136;BA.debugLine="LastZeroCount = 0";
+_lastzerocount = (int) (0);
+ }
+;
+ //BA.debugLineNum = 138;BA.debugLine="LastZeroCount = Min(LastZeroCount, sb.Length - F";
+_lastzerocount = (int) (__c.Min(_lastzerocount,_sb.getLength()-_fracstartindex-_data.MinimumFractions /*int*/ ));
+ //BA.debugLineNum = 139;BA.debugLine="If LastZeroCount > 0 Then";
+if (_lastzerocount>0) {
+ //BA.debugLineNum = 140;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)";
+_sb.Remove((int) (_sb.getLength()-_lastzerocount),_sb.getLength());
+ };
+ //BA.debugLineNum = 142;BA.debugLine="If sb.Length > FracStartIndex Then sb.Insert(Fra";
+if (_sb.getLength()>_fracstartindex) {
+_sb.Insert(_fracstartindex,_data.DecimalPoint /*String*/ );};
+ };
+ //BA.debugLineNum = 144;BA.debugLine="sb.Append(data.Postfix)";
+_sb.Append(_data.Postfix /*String*/ );
+ //BA.debugLineNum = 145;BA.debugLine="Return sb.ToString";
+if (true) return _sb.ToString();
+ //BA.debugLineNum = 146;BA.debugLine="End Sub";
+return "";
+}
+public String _formatlabel(double _number,anywheresoftware.b4a.objects.B4XViewWrapper _label) throws Exception{
+reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data = null;
+ //BA.debugLineNum = 150;BA.debugLine="Public Sub FormatLabel (Number As Double, Label As";
+ //BA.debugLineNum = 151;BA.debugLine="Label.Text = Format(Number)";
+_label.setText(BA.ObjectToCharSequence(_format(_number)));
+ //BA.debugLineNum = 152;BA.debugLine="Dim data As B4XFormatData = GetFormatData(Number)";
+_data = _getformatdata(_number);
+ //BA.debugLineNum = 153;BA.debugLine="If data.TextColor <> 0 Then Label.TextColor = dat";
+if (_data.TextColor /*int*/ !=0) {
+_label.setTextColor(_data.TextColor /*int*/ );};
+ //BA.debugLineNum = 154;BA.debugLine="If data.FormatFont.IsInitialized Then Label.Font";
+if (_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .getIsInitialized()) {
+_label.setFont(_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ );};
+ //BA.debugLineNum = 155;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _getdefaultformat() throws Exception{
+ //BA.debugLineNum = 78;BA.debugLine="Public Sub GetDefaultFormat As B4XFormatData";
+ //BA.debugLineNum = 79;BA.debugLine="Return formats.Get(0)";
+if (true) return (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(_formats.Get((int) (0)));
+ //BA.debugLineNum = 80;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _getformatdata(double _number) throws Exception{
+int _i = 0;
+reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null;
+ //BA.debugLineNum = 83;BA.debugLine="Public Sub GetFormatData (Number As Double) As B4X";
+ //BA.debugLineNum = 84;BA.debugLine="For i = formats.Size - 1 To 1 Step - 1";
+{
+final int step1 = -1;
+final int limit1 = (int) (1);
+_i = (int) (_formats.getSize()-1) ;
+for (;_i >= limit1 ;_i = _i + step1 ) {
+ //BA.debugLineNum = 85;BA.debugLine="Dim d As B4XFormatData = formats.Get(i)";
+_d = (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(_formats.Get(_i));
+ //BA.debugLineNum = 86;BA.debugLine="If Number <= d.RangeEnd And Number >= d.RangeSta";
+if (_number<=_d.RangeEnd /*double*/ && _number>=_d.RangeStart /*double*/ ) {
+if (true) return _d;};
+ }
+};
+ //BA.debugLineNum = 88;BA.debugLine="Return formats.Get(0)";
+if (true) return (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(_formats.Get((int) (0)));
+ //BA.debugLineNum = 89;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null;
+ //BA.debugLineNum = 13;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 14;BA.debugLine="formats.Initialize";
+_formats.Initialize();
+ //BA.debugLineNum = 15;BA.debugLine="Dim d As B4XFormatData = CreateDefaultFormat";
+_d = _createdefaultformat();
+ //BA.debugLineNum = 16;BA.debugLine="AddFormatData(d, MIN_VALUE, MAX_VALUE, True)";
+_addformatdata(_d,_min_value,_max_value,__c.True);
+ //BA.debugLineNum = 17;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _newformatdata() throws Exception{
+ //BA.debugLineNum = 32;BA.debugLine="Public Sub NewFormatData As B4XFormatData";
+ //BA.debugLineNum = 33;BA.debugLine="Return CopyFormatData(GetDefaultFormat)";
+if (true) return _copyformatdata(_getdefaultformat());
+ //BA.debugLineNum = 34;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4ximageview.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4ximageview.java
new file mode 100644
index 0000000..75e7e94
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4ximageview.java
@@ -0,0 +1,306 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4ximageview extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4ximageview");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4ximageview.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public Object _tag = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _iv = null;
+public String _mresizemode = "";
+public boolean _mround = false;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _mbitmap = null;
+public int _mbackgroundcolor = 0;
+public int _mcornersradius = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 40;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 41;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 42;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 6;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 7;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 8;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 10;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 11;BA.debugLine="Private iv As B4XView";
+_iv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Private mResizeMode As String";
+_mresizemode = "";
+ //BA.debugLineNum = 13;BA.debugLine="Private mRound As Boolean";
+_mround = false;
+ //BA.debugLineNum = 14;BA.debugLine="Private mBitmap As B4XBitmap";
+_mbitmap = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Public mBackgroundColor As Int";
+_mbackgroundcolor = 0;
+ //BA.debugLineNum = 16;BA.debugLine="Private mCornersRadius As Int";
+_mcornersradius = 0;
+ //BA.debugLineNum = 17;BA.debugLine="End Sub";
+return "";
+}
+public String _clear() throws Exception{
+ //BA.debugLineNum = 119;BA.debugLine="Public Sub Clear";
+ //BA.debugLineNum = 120;BA.debugLine="mBitmap = Null";
+_mbitmap = (anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(), (android.graphics.Bitmap)(__c.Null));
+ //BA.debugLineNum = 121;BA.debugLine="iv.SetBitmap(Null)";
+_iv.SetBitmap((android.graphics.Bitmap)(__c.Null));
+ //BA.debugLineNum = 122;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.ImageViewWrapper _iiv = null;
+ //BA.debugLineNum = 25;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 26;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 27;BA.debugLine="Tag = mBase.Tag";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 28;BA.debugLine="mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 29;BA.debugLine="Dim iiv As ImageView";
+_iiv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="iiv.Initialize(\"\")";
+_iiv.Initialize(ba,"");
+ //BA.debugLineNum = 31;BA.debugLine="iv = iiv";
+_iv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iiv.getObject()));
+ //BA.debugLineNum = 32;BA.debugLine="mRound =Props.Get(\"Round\")";
+_mround = BA.ObjectToBoolean(_props.Get((Object)("Round")));
+ //BA.debugLineNum = 33;BA.debugLine="mResizeMode = Props.Get(\"ResizeMode\")";
+_mresizemode = BA.ObjectToString(_props.Get((Object)("ResizeMode")));
+ //BA.debugLineNum = 34;BA.debugLine="mBackgroundColor = xui.PaintOrColorToColor(Props.";
+_mbackgroundcolor = _xui.PaintOrColorToColor(_props.Get((Object)("BackgroundColor")));
+ //BA.debugLineNum = 35;BA.debugLine="mCornersRadius = DipToCurrent(Props.GetDefault(\"C";
+_mcornersradius = __c.DipToCurrent((int)(BA.ObjectToNumber(_props.GetDefault((Object)("CornersRadius"),(Object)(0)))));
+ //BA.debugLineNum = 36;BA.debugLine="mBase.AddView(iv, 0, 0, mBase.Width, mBase.Height";
+_mbase.AddView((android.view.View)(_iv.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 37;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 38;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _getbitmap() throws Exception{
+ //BA.debugLineNum = 130;BA.debugLine="Public Sub getBitmap As B4XBitmap";
+ //BA.debugLineNum = 131;BA.debugLine="Return mBitmap";
+if (true) return _mbitmap;
+ //BA.debugLineNum = 132;BA.debugLine="End Sub";
+return null;
+}
+public int _getcornersradius() throws Exception{
+ //BA.debugLineNum = 56;BA.debugLine="Public Sub getCornersRadius As Int";
+ //BA.debugLineNum = 57;BA.debugLine="Return mCornersRadius";
+if (true) return _mcornersradius;
+ //BA.debugLineNum = 58;BA.debugLine="End Sub";
+return 0;
+}
+public String _getresizemode() throws Exception{
+ //BA.debugLineNum = 67;BA.debugLine="Public Sub getResizeMode As String";
+ //BA.debugLineNum = 68;BA.debugLine="Return mResizeMode";
+if (true) return _mresizemode;
+ //BA.debugLineNum = 69;BA.debugLine="End Sub";
+return "";
+}
+public boolean _getroundedimage() throws Exception{
+ //BA.debugLineNum = 45;BA.debugLine="Public Sub getRoundedImage As Boolean";
+ //BA.debugLineNum = 46;BA.debugLine="Return mRound";
+if (true) return _mround;
+ //BA.debugLineNum = 47;BA.debugLine="End Sub";
+return false;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 19;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 20;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 21;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 22;BA.debugLine="End Sub";
+return "";
+}
+public String _load(String _dir,String _filename) throws Exception{
+ //BA.debugLineNum = 110;BA.debugLine="Public Sub Load (Dir As String, FileName As String";
+ //BA.debugLineNum = 112;BA.debugLine="setBitmap(LoadBitmapSample(Dir, FileName, mBase.W";
+_setbitmap((anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(), (android.graphics.Bitmap)(__c.LoadBitmapSample(_dir,_filename,_mbase.getWidth(),_mbase.getHeight()).getObject())));
+ //BA.debugLineNum = 116;BA.debugLine="End Sub";
+return "";
+}
+public String _setbitmap(anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{
+ //BA.debugLineNum = 124;BA.debugLine="Public Sub setBitmap(Bmp As B4XBitmap)";
+ //BA.debugLineNum = 125;BA.debugLine="mBitmap = Bmp";
+_mbitmap = _bmp;
+ //BA.debugLineNum = 126;BA.debugLine="XUIViewsUtils.SetBitmapAndFill(iv, Bmp)";
+_xuiviewsutils._setbitmapandfill /*String*/ (ba,_iv,_bmp);
+ //BA.debugLineNum = 127;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 128;BA.debugLine="End Sub";
+return "";
+}
+public String _setcornersradius(int _i) throws Exception{
+ //BA.debugLineNum = 60;BA.debugLine="Public Sub setCornersRadius (i As Int)";
+ //BA.debugLineNum = 61;BA.debugLine="mCornersRadius = i";
+_mcornersradius = _i;
+ //BA.debugLineNum = 62;BA.debugLine="UpdateClip";
+_updateclip();
+ //BA.debugLineNum = 63;BA.debugLine="End Sub";
+return "";
+}
+public String _setresizemode(String _s) throws Exception{
+ //BA.debugLineNum = 71;BA.debugLine="Public Sub setResizeMode(s As String)";
+ //BA.debugLineNum = 72;BA.debugLine="If s = mResizeMode Then Return";
+if ((_s).equals(_mresizemode)) {
+if (true) return "";};
+ //BA.debugLineNum = 73;BA.debugLine="mResizeMode = s";
+_mresizemode = _s;
+ //BA.debugLineNum = 74;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 75;BA.debugLine="End Sub";
+return "";
+}
+public String _setroundedimage(boolean _b) throws Exception{
+ //BA.debugLineNum = 49;BA.debugLine="Public Sub setRoundedImage (b As Boolean)";
+ //BA.debugLineNum = 50;BA.debugLine="If b = mRound Then Return";
+if (_b==_mround) {
+if (true) return "";};
+ //BA.debugLineNum = 51;BA.debugLine="mRound = b";
+_mround = _b;
+ //BA.debugLineNum = 52;BA.debugLine="UpdateClip";
+_updateclip();
+ //BA.debugLineNum = 53;BA.debugLine="End Sub";
+return "";
+}
+public String _update() throws Exception{
+float _imageviewwidth = 0f;
+float _imageviewheight = 0f;
+float _bmpratio = 0f;
+float _r = 0f;
+ //BA.debugLineNum = 77;BA.debugLine="Public Sub Update";
+ //BA.debugLineNum = 78;BA.debugLine="If mBitmap.IsInitialized = False Then Return";
+if (_mbitmap.IsInitialized()==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 79;BA.debugLine="UpdateClip";
+_updateclip();
+ //BA.debugLineNum = 80;BA.debugLine="Dim ImageViewWidth, ImageViewHeight As Float";
+_imageviewwidth = 0f;
+_imageviewheight = 0f;
+ //BA.debugLineNum = 81;BA.debugLine="Dim bmpRatio As Float = mBitmap.Width / mBitmap.H";
+_bmpratio = (float) (_mbitmap.getWidth()/(double)_mbitmap.getHeight());
+ //BA.debugLineNum = 82;BA.debugLine="Select mResizeMode";
+switch (BA.switchObjectToInt(_mresizemode,"FILL","FIT","FILL_WIDTH","FILL_HEIGHT","FILL_NO_DISTORTIONS","NONE")) {
+case 0: {
+ //BA.debugLineNum = 84;BA.debugLine="ImageViewWidth = mBase.Width";
+_imageviewwidth = (float) (_mbase.getWidth());
+ //BA.debugLineNum = 85;BA.debugLine="ImageViewHeight = mBase.Height";
+_imageviewheight = (float) (_mbase.getHeight());
+ break; }
+case 1: {
+ //BA.debugLineNum = 87;BA.debugLine="Dim r As Float = Min(mBase.Width / mBitmap.Widt";
+_r = (float) (__c.Min(_mbase.getWidth()/(double)_mbitmap.getWidth(),_mbase.getHeight()/(double)_mbitmap.getHeight()));
+ //BA.debugLineNum = 88;BA.debugLine="ImageViewWidth = mBitmap.Width * r";
+_imageviewwidth = (float) (_mbitmap.getWidth()*_r);
+ //BA.debugLineNum = 89;BA.debugLine="ImageViewHeight = mBitmap.Height * r";
+_imageviewheight = (float) (_mbitmap.getHeight()*_r);
+ break; }
+case 2: {
+ //BA.debugLineNum = 91;BA.debugLine="ImageViewWidth = mBase.Width";
+_imageviewwidth = (float) (_mbase.getWidth());
+ //BA.debugLineNum = 92;BA.debugLine="ImageViewHeight = ImageViewWidth / bmpRatio";
+_imageviewheight = (float) (_imageviewwidth/(double)_bmpratio);
+ break; }
+case 3: {
+ //BA.debugLineNum = 94;BA.debugLine="ImageViewHeight = mBase.Height";
+_imageviewheight = (float) (_mbase.getHeight());
+ //BA.debugLineNum = 95;BA.debugLine="ImageViewWidth = ImageViewHeight * bmpRatio";
+_imageviewwidth = (float) (_imageviewheight*_bmpratio);
+ break; }
+case 4: {
+ //BA.debugLineNum = 97;BA.debugLine="Dim r As Float = Max(mBase.Width / mBitmap.Widt";
+_r = (float) (__c.Max(_mbase.getWidth()/(double)_mbitmap.getWidth(),_mbase.getHeight()/(double)_mbitmap.getHeight()));
+ //BA.debugLineNum = 98;BA.debugLine="ImageViewWidth = mBitmap.Width * r";
+_imageviewwidth = (float) (_mbitmap.getWidth()*_r);
+ //BA.debugLineNum = 99;BA.debugLine="ImageViewHeight = mBitmap.Height * r";
+_imageviewheight = (float) (_mbitmap.getHeight()*_r);
+ break; }
+case 5: {
+ //BA.debugLineNum = 101;BA.debugLine="ImageViewWidth = mBitmap.Width";
+_imageviewwidth = (float) (_mbitmap.getWidth());
+ //BA.debugLineNum = 102;BA.debugLine="ImageViewHeight = mBitmap.Height";
+_imageviewheight = (float) (_mbitmap.getHeight());
+ break; }
+default: {
+ //BA.debugLineNum = 104;BA.debugLine="Log(\"Invalid resize mode: \" & mResizeMode)";
+__c.LogImpl("961669403","Invalid resize mode: "+_mresizemode,0);
+ break; }
+}
+;
+ //BA.debugLineNum = 106;BA.debugLine="iv.SetLayoutAnimated(0, Round(mBase.Width / 2 - I";
+_iv.SetLayoutAnimated((int) (0),(int) (__c.Round(_mbase.getWidth()/(double)2-_imageviewwidth/(double)2)),(int) (__c.Round(_mbase.getHeight()/(double)2-_imageviewheight/(double)2)),(int) (__c.Round(_imageviewwidth)),(int) (__c.Round(_imageviewheight)));
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return "";
+}
+public String _updateclip() throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 135;BA.debugLine="Private Sub UpdateClip";
+ //BA.debugLineNum = 136;BA.debugLine="If mRound Then";
+if (_mround) {
+ //BA.debugLineNum = 137;BA.debugLine="mBase.SetColorAndBorder(mBackgroundColor, 0, 0,";
+_mbase.SetColorAndBorder(_mbackgroundcolor,(int) (0),(int) (0),(int) (__c.Min(_mbase.getWidth()/(double)2,_mbase.getHeight()/(double)2)));
+ }else {
+ //BA.debugLineNum = 139;BA.debugLine="mBase.SetColorAndBorder(mBackgroundColor, 0, 0,";
+_mbase.SetColorAndBorder(_mbackgroundcolor,(int) (0),(int) (0),_mcornersradius);
+ };
+ //BA.debugLineNum = 161;BA.debugLine="Dim jo As JavaObject = mBase";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_mbase.getObject()));
+ //BA.debugLineNum = 162;BA.debugLine="jo.RunMethod(\"setClipToOutline\", Array(mRound Or";
+_jo.RunMethod("setClipToOutline",new Object[]{(Object)(_mround || _mcornersradius>0)});
+ //BA.debugLineNum = 164;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xinputtemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xinputtemplate.java
new file mode 100644
index 0000000..49b543e
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xinputtemplate.java
@@ -0,0 +1,288 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xinputtemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xinputtemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xinputtemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public String _text = "";
+public reparto_izca.keymon.lat.b4xdialog _xdialog = null;
+public String _regexpattern = "";
+public anywheresoftware.b4a.objects.B4XViewWrapper _textfield1 = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lbltitle = null;
+public anywheresoftware.b4a.objects.IME _ime = null;
+public boolean _mallowdecimals = false;
+public int _bordercolor = 0;
+public int _bordercolorinvalid = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 4;BA.debugLine="Public Text As String";
+_text = "";
+ //BA.debugLineNum = 5;BA.debugLine="Private xDialog As B4XDialog";
+_xdialog = new reparto_izca.keymon.lat.b4xdialog();
+ //BA.debugLineNum = 6;BA.debugLine="Public RegexPattern As String";
+_regexpattern = "";
+ //BA.debugLineNum = 7;BA.debugLine="Public TextField1 As B4XView";
+_textfield1 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="Public lblTitle As B4XView";
+_lbltitle = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Private IME As IME";
+_ime = new anywheresoftware.b4a.objects.IME();
+ //BA.debugLineNum = 12;BA.debugLine="Private mAllowDecimals As Boolean";
+_mallowdecimals = false;
+ //BA.debugLineNum = 13;BA.debugLine="Private BorderColor = xui.Color_White, BorderColo";
+_bordercolor = _xui.Color_White;
+_bordercolorinvalid = _xui.Color_Red;
+ //BA.debugLineNum = 14;BA.debugLine="End Sub";
+return "";
+}
+public String _configurefornumbers(boolean _allowdecimals,boolean _allownegative) throws Exception{
+anywheresoftware.b4a.objects.EditTextWrapper _et = null;
+ //BA.debugLineNum = 40;BA.debugLine="Public Sub ConfigureForNumbers (AllowDecimals As B";
+ //BA.debugLineNum = 42;BA.debugLine="Dim et As EditText = TextField1";
+_et = new anywheresoftware.b4a.objects.EditTextWrapper();
+_et = (anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_textfield1.getObject()));
+ //BA.debugLineNum = 43;BA.debugLine="If AllowDecimals Or AllowNegative Then";
+if (_allowdecimals || _allownegative) {
+ //BA.debugLineNum = 44;BA.debugLine="et.InputType = et.INPUT_TYPE_DECIMAL_NUMBERS";
+_et.setInputType(_et.INPUT_TYPE_DECIMAL_NUMBERS);
+ }else {
+ //BA.debugLineNum = 46;BA.debugLine="et.InputType = et.INPUT_TYPE_NUMBERS";
+_et.setInputType(_et.INPUT_TYPE_NUMBERS);
+ };
+ //BA.debugLineNum = 59;BA.debugLine="If AllowDecimals And AllowNegative Then";
+if (_allowdecimals && _allownegative) {
+ //BA.debugLineNum = 60;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$";
+_regexpattern = "^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$";
+ }else if(_allowdecimals && _allownegative==__c.False) {
+ //BA.debugLineNum = 62;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$\"";
+_regexpattern = "^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$";
+ }else if(_allowdecimals==__c.False && _allownegative==__c.True) {
+ //BA.debugLineNum = 64;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)$\"";
+_regexpattern = "^-?(0|[1-9]\\d*)$";
+ }else if(_allowdecimals==__c.False && _allownegative==__c.False) {
+ //BA.debugLineNum = 66;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)$\"";
+_regexpattern = "^(0|[1-9]\\d*)$";
+ };
+ //BA.debugLineNum = 68;BA.debugLine="mAllowDecimals = AllowDecimals";
+_mallowdecimals = _allowdecimals;
+ //BA.debugLineNum = 69;BA.debugLine="End Sub";
+return "";
+}
+public String _dialogclosed(int _result) throws Exception{
+ //BA.debugLineNum = 137;BA.debugLine="Private Sub DialogClosed(Result As Int)";
+ //BA.debugLineNum = 138;BA.debugLine="If Result = xui.DialogResponse_Positive Then";
+if (_result==_xui.DialogResponse_Positive) {
+ //BA.debugLineNum = 139;BA.debugLine="Text = TextField1.Text";
+_text = _textfield1.getText();
+ };
+ //BA.debugLineNum = 141;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 116;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 117;BA.debugLine="Return mBase";
+if (true) return _mbase;
+ //BA.debugLineNum = 118;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 16;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 17;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
+_mbase = _xui.CreatePanel(ba,"mBase");
+ //BA.debugLineNum = 18;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 80dip)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (80)));
+ //BA.debugLineNum = 19;BA.debugLine="mBase.LoadLayout(\"B4XInputTemplate\")";
+_mbase.LoadLayout("B4XInputTemplate",ba);
+ //BA.debugLineNum = 20;BA.debugLine="TextField1.TextColor = xui.Color_White";
+_textfield1.setTextColor(_xui.Color_White);
+ //BA.debugLineNum = 22;BA.debugLine="IME.Initialize(\"\")";
+_ime.Initialize("");
+ //BA.debugLineNum = 23;BA.debugLine="Dim jo As JavaObject = TextField1";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_textfield1.getObject()));
+ //BA.debugLineNum = 24;BA.debugLine="jo.RunMethod(\"setImeOptions\", Array(Bit.Or(335544";
+_jo.RunMethod("setImeOptions",new Object[]{(Object)(__c.Bit.Or((int) (33554432),(int) (6)))});
+ //BA.debugLineNum = 30;BA.debugLine="SetBorder(BorderColor)";
+_setborder(_bordercolor);
+ //BA.debugLineNum = 31;BA.debugLine="End Sub";
+return "";
+}
+public boolean _isvalid(String _new) throws Exception{
+ //BA.debugLineNum = 103;BA.debugLine="Private Sub IsValid(New As String) As Boolean";
+ //BA.debugLineNum = 104;BA.debugLine="Return RegexPattern = \"\" Or Regex.IsMatch(RegexPa";
+if (true) return (_regexpattern).equals("") || __c.Regex.IsMatch(_regexpattern,_new);
+ //BA.debugLineNum = 105;BA.debugLine="End Sub";
+return false;
+}
+public String _setborder(int _bc) throws Exception{
+ //BA.debugLineNum = 99;BA.debugLine="Private Sub SetBorder(bc As Int)";
+ //BA.debugLineNum = 100;BA.debugLine="TextField1.SetColorAndBorder(xui.Color_Transparen";
+_textfield1.SetColorAndBorder(_xui.Color_Transparent,__c.DipToCurrent((int) (1)),_bc,__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 101;BA.debugLine="End Sub";
+return "";
+}
+public String _setbordercolor(int _valid,int _invalid) throws Exception{
+ //BA.debugLineNum = 34;BA.debugLine="Public Sub SetBorderColor(Valid As Int, Invalid As";
+ //BA.debugLineNum = 35;BA.debugLine="BorderColor = Valid";
+_bordercolor = _valid;
+ //BA.debugLineNum = 36;BA.debugLine="BorderColorInvalid = Invalid";
+_bordercolorinvalid = _invalid;
+ //BA.debugLineNum = 37;BA.debugLine="SetBorder(BorderColor)";
+_setborder(_bordercolor);
+ //BA.debugLineNum = 38;BA.debugLine="End Sub";
+return "";
+}
+public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_Show extends BA.ResumableSub {
+public ResumableSub_Show(reparto_izca.keymon.lat.b4xinputtemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) {
+this.parent = parent;
+this._dialog = _dialog;
+}
+reparto_izca.keymon.lat.b4xinputtemplate parent;
+reparto_izca.keymon.lat.b4xdialog _dialog;
+anywheresoftware.b4a.objects.EditTextWrapper _tf = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 121;BA.debugLine="xDialog = Dialog";
+parent._xdialog = _dialog;
+ //BA.debugLineNum = 122;BA.debugLine="xDialog.PutAtTop = xui.IsB4A Or xui.IsB4i";
+parent._xdialog._putattop /*boolean*/ = parent._xui.getIsB4A() || parent._xui.getIsB4i();
+ //BA.debugLineNum = 123;BA.debugLine="Sleep(20)";
+parent.__c.Sleep(ba,this,(int) (20));
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 124;BA.debugLine="TextField1.Text = Text";
+parent._textfield1.setText(BA.ObjectToCharSequence(parent._text));
+ //BA.debugLineNum = 125;BA.debugLine="Validate(Text)";
+parent._validate(parent._text);
+ //BA.debugLineNum = 126;BA.debugLine="TextField1.RequestFocus";
+parent._textfield1.RequestFocus();
+ //BA.debugLineNum = 128;BA.debugLine="Dim tf As EditText = TextField1";
+_tf = new anywheresoftware.b4a.objects.EditTextWrapper();
+_tf = (anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(parent._textfield1.getObject()));
+ //BA.debugLineNum = 129;BA.debugLine="tf.SelectAll";
+_tf.SelectAll();
+ //BA.debugLineNum = 130;BA.debugLine="IME.ShowKeyboard(TextField1)";
+parent._ime.ShowKeyboard((android.view.View)(parent._textfield1.getObject()));
+ //BA.debugLineNum = 135;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _textfield1_action() throws Exception{
+ //BA.debugLineNum = 107;BA.debugLine="Private Sub TextField1_Action";
+ //BA.debugLineNum = 108;BA.debugLine="TextField1_EnterPressed";
+_textfield1_enterpressed();
+ //BA.debugLineNum = 109;BA.debugLine="End Sub";
+return "";
+}
+public String _textfield1_enterpressed() throws Exception{
+ //BA.debugLineNum = 111;BA.debugLine="Private Sub TextField1_EnterPressed";
+ //BA.debugLineNum = 112;BA.debugLine="If IsValid(TextField1.Text) Then xDialog.Close(xu";
+if (_isvalid(_textfield1.getText())) {
+_xdialog._close /*boolean*/ (_xui.DialogResponse_Positive);};
+ //BA.debugLineNum = 113;BA.debugLine="End Sub";
+return "";
+}
+public String _textfield1_textchanged(String _old,String _new) throws Exception{
+ //BA.debugLineNum = 71;BA.debugLine="Private Sub TextField1_TextChanged (Old As String,";
+ //BA.debugLineNum = 83;BA.debugLine="Validate (New)";
+_validate(_new);
+ //BA.debugLineNum = 84;BA.debugLine="End Sub";
+return "";
+}
+public String _validate(String _new) throws Exception{
+int _bc = 0;
+boolean _enabled = false;
+ //BA.debugLineNum = 86;BA.debugLine="Private Sub Validate (New As String)";
+ //BA.debugLineNum = 87;BA.debugLine="Dim bc As Int = BorderColor";
+_bc = _bordercolor;
+ //BA.debugLineNum = 88;BA.debugLine="Dim enabled As Boolean = True";
+_enabled = __c.True;
+ //BA.debugLineNum = 89;BA.debugLine="If IsValid(New) = False Then";
+if (_isvalid(_new)==__c.False) {
+ //BA.debugLineNum = 90;BA.debugLine="If New.Length > 0 Then";
+if (_new.length()>0) {
+ //BA.debugLineNum = 91;BA.debugLine="bc = BorderColorInvalid";
+_bc = _bordercolorinvalid;
+ };
+ //BA.debugLineNum = 93;BA.debugLine="enabled = False";
+_enabled = __c.False;
+ };
+ //BA.debugLineNum = 95;BA.debugLine="xDialog.SetButtonState(xui.DialogResponse_Positiv";
+_xdialog._setbuttonstate /*String*/ (_xui.DialogResponse_Positive,_enabled);
+ //BA.debugLineNum = 96;BA.debugLine="SetBorder(bc)";
+_setborder(_bc);
+ //BA.debugLineNum = 97;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xlisttemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlisttemplate.java
new file mode 100644
index 0000000..3d7dc6c
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlisttemplate.java
@@ -0,0 +1,334 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xlisttemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xlisttemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xlisttemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public b4a.example3.customlistview _customlistview1 = null;
+public anywheresoftware.b4a.objects.collections.List _options = null;
+public String _selecteditem = "";
+public reparto_izca.keymon.lat.b4xdialog _xdialog = null;
+public boolean _allowmultiselection = false;
+public int _selectioncolor = 0;
+public anywheresoftware.b4a.objects.collections.List _selecteditems = null;
+public int _multiselectionminimum = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView";
+_customlistview1 = new b4a.example3.customlistview();
+ //BA.debugLineNum = 5;BA.debugLine="Public Options As List";
+_options = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 6;BA.debugLine="Public SelectedItem As String";
+_selecteditem = "";
+ //BA.debugLineNum = 7;BA.debugLine="Private xDialog As B4XDialog";
+_xdialog = new reparto_izca.keymon.lat.b4xdialog();
+ //BA.debugLineNum = 8;BA.debugLine="Public AllowMultiSelection As Boolean";
+_allowmultiselection = false;
+ //BA.debugLineNum = 9;BA.debugLine="Public SelectionColor As Int = 0xAA0086FF";
+_selectioncolor = ((int)0xaa0086ff);
+ //BA.debugLineNum = 10;BA.debugLine="Public SelectedItems As List";
+_selecteditems = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 11;BA.debugLine="Public MultiSelectionMinimum As Int = 0";
+_multiselectionminimum = (int) (0);
+ //BA.debugLineNum = 12;BA.debugLine="End Sub";
+return "";
+}
+public String _customlistview1_itemclick(int _index,Object _value) throws Exception{
+b4a.example3.customlistview._clvitem _item = null;
+ //BA.debugLineNum = 76;BA.debugLine="Private Sub CustomListView1_ItemClick (Index As In";
+ //BA.debugLineNum = 77;BA.debugLine="If Value = \"\" Then Return";
+if ((_value).equals((Object)(""))) {
+if (true) return "";};
+ //BA.debugLineNum = 78;BA.debugLine="If AllowMultiSelection Then";
+if (_allowmultiselection) {
+ //BA.debugLineNum = 79;BA.debugLine="Dim Item As CLVItem = CustomListView1.GetRawList";
+_item = _customlistview1._getrawlistitem(_index);
+ //BA.debugLineNum = 80;BA.debugLine="SelectItem (Item, True)";
+_selectitem(_item,__c.True);
+ }else {
+ //BA.debugLineNum = 82;BA.debugLine="SelectedItem = Value";
+_selecteditem = BA.ObjectToString(_value);
+ //BA.debugLineNum = 83;BA.debugLine="SelectedItems.Clear";
+_selecteditems.Clear();
+ //BA.debugLineNum = 84;BA.debugLine="SelectedItems.Add(Value)";
+_selecteditems.Add(_value);
+ //BA.debugLineNum = 85;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)";
+_xdialog._close /*boolean*/ (_xui.DialogResponse_Positive);
+ };
+ //BA.debugLineNum = 87;BA.debugLine="End Sub";
+return "";
+}
+public String _dialogclosed(int _result) throws Exception{
+ //BA.debugLineNum = 89;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore";
+ //BA.debugLineNum = 91;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 37;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 38;BA.debugLine="Return mBase";
+if (true) return _mbase;
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 14;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 15;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
+_mbase = _xui.CreatePanel(ba,"mBase");
+ //BA.debugLineNum = 16;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (300)));
+ //BA.debugLineNum = 17;BA.debugLine="mBase.LoadLayout(\"ListTemplate\")";
+_mbase.LoadLayout("ListTemplate",ba);
+ //BA.debugLineNum = 18;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 19;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr";
+_customlistview1._sv.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 20;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF";
+_customlistview1._defaulttextbackgroundcolor = ((int)0xff555555);
+ //BA.debugLineNum = 21;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit";
+_customlistview1._defaulttextcolor = _xui.Color_White;
+ //BA.debugLineNum = 26;BA.debugLine="Options.Initialize";
+_options.Initialize();
+ //BA.debugLineNum = 27;BA.debugLine="SelectedItems.Initialize";
+_selecteditems.Initialize();
+ //BA.debugLineNum = 28;BA.debugLine="End Sub";
+return "";
+}
+public String _resize(int _width,int _height) throws Exception{
+ //BA.debugLineNum = 31;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)";
+ //BA.debugLineNum = 32;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 33;BA.debugLine="CustomListView1.Base_Resize(Width, Height)";
+_customlistview1._base_resize(_width,_height);
+ //BA.debugLineNum = 34;BA.debugLine="End Sub";
+return "";
+}
+public String _selectitem(b4a.example3.customlistview._clvitem _item,boolean _toggle) throws Exception{
+int _index = 0;
+boolean _selected = false;
+ //BA.debugLineNum = 59;BA.debugLine="Private Sub SelectItem (Item As CLVItem, Toggle As";
+ //BA.debugLineNum = 60;BA.debugLine="Dim index As Int = SelectedItems.IndexOf(Item.Val";
+_index = _selecteditems.IndexOf(_item.Value);
+ //BA.debugLineNum = 61;BA.debugLine="Dim Selected As Boolean = index > -1";
+_selected = _index>-1;
+ //BA.debugLineNum = 62;BA.debugLine="If Toggle Then Selected = Not(Selected)";
+if (_toggle) {
+_selected = __c.Not(_selected);};
+ //BA.debugLineNum = 63;BA.debugLine="If Selected Then";
+if (_selected) {
+ //BA.debugLineNum = 64;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = Selection";
+if (__c.Not(_toggle)) {
+_item.Panel.setColor(_selectioncolor);};
+ //BA.debugLineNum = 65;BA.debugLine="Item.Color = CustomListView1.DefaultTextBackgrou";
+_item.Color = _customlistview1._defaulttextbackgroundcolor;
+ //BA.debugLineNum = 66;BA.debugLine="If index = -1 Then SelectedItems.Add(Item.Value)";
+if (_index==-1) {
+_selecteditems.Add(_item.Value);};
+ }else {
+ //BA.debugLineNum = 68;BA.debugLine="Item.Color = SelectionColor";
+_item.Color = _selectioncolor;
+ //BA.debugLineNum = 69;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = CustomLis";
+if (__c.Not(_toggle)) {
+_item.Panel.setColor(_customlistview1._defaulttextbackgroundcolor);};
+ //BA.debugLineNum = 70;BA.debugLine="If index > -1 Then SelectedItems.RemoveAt(index)";
+if (_index>-1) {
+_selecteditems.RemoveAt(_index);};
+ };
+ //BA.debugLineNum = 72;BA.debugLine="xDialog.SetButtonState(xui.DialogResponse_Positiv";
+_xdialog._setbuttonstate /*String*/ (_xui.DialogResponse_Positive,_selecteditems.getSize()>=_multiselectionminimum);
+ //BA.debugLineNum = 73;BA.debugLine="End Sub";
+return "";
+}
+public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_Show extends BA.ResumableSub {
+public ResumableSub_Show(reparto_izca.keymon.lat.b4xlisttemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) {
+this.parent = parent;
+this._dialog = _dialog;
+}
+reparto_izca.keymon.lat.b4xlisttemplate parent;
+reparto_izca.keymon.lat.b4xdialog _dialog;
+Object _opt = null;
+int _i = 0;
+b4a.example3.customlistview._clvitem _item = null;
+anywheresoftware.b4a.BA.IterableList group3;
+int index3;
+int groupLen3;
+int step8;
+int limit8;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 42;BA.debugLine="xDialog = Dialog";
+parent._xdialog = _dialog;
+ //BA.debugLineNum = 43;BA.debugLine="CustomListView1.Clear";
+parent._customlistview1._clear();
+ //BA.debugLineNum = 44;BA.debugLine="For Each opt As Object In Options";
+if (true) break;
+
+case 1:
+//for
+this.state = 4;
+group3 = parent._options;
+index3 = 0;
+groupLen3 = group3.getSize();
+this.state = 12;
+if (true) break;
+
+case 12:
+//C
+this.state = 4;
+if (index3 < groupLen3) {
+this.state = 3;
+_opt = group3.Get(index3);}
+if (true) break;
+
+case 13:
+//C
+this.state = 12;
+index3++;
+if (true) break;
+
+case 3:
+//C
+this.state = 13;
+ //BA.debugLineNum = 45;BA.debugLine="CustomListView1.AddTextItem(opt, opt)";
+parent._customlistview1._addtextitem(_opt,_opt);
+ if (true) break;
+if (true) break;
+;
+ //BA.debugLineNum = 47;BA.debugLine="If AllowMultiSelection Then";
+
+case 4:
+//if
+this.state = 11;
+if (parent._allowmultiselection) {
+this.state = 6;
+}if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 48;BA.debugLine="Sleep(20)";
+parent.__c.Sleep(ba,this,(int) (20));
+this.state = 14;
+return;
+case 14:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 49;BA.debugLine="For i = 0 To CustomListView1.Size - 1";
+if (true) break;
+
+case 7:
+//for
+this.state = 10;
+step8 = 1;
+limit8 = (int) (parent._customlistview1._getsize()-1);
+_i = (int) (0) ;
+this.state = 15;
+if (true) break;
+
+case 15:
+//C
+this.state = 10;
+if ((step8 > 0 && _i <= limit8) || (step8 < 0 && _i >= limit8)) this.state = 9;
+if (true) break;
+
+case 16:
+//C
+this.state = 15;
+_i = ((int)(0 + _i + step8)) ;
+if (true) break;
+
+case 9:
+//C
+this.state = 16;
+ //BA.debugLineNum = 50;BA.debugLine="Dim item As CLVItem = CustomListView1.GetRawLis";
+_item = parent._customlistview1._getrawlistitem(_i);
+ //BA.debugLineNum = 51;BA.debugLine="SelectItem (item, False)";
+parent._selectitem(_item,parent.__c.False);
+ if (true) break;
+if (true) break;
+
+case 10:
+//C
+this.state = 11;
+;
+ if (true) break;
+
+case 11:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 54;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView";
+parent._xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,parent._customlistview1,parent._customlistview1._defaulttextbackgroundcolor);
+ //BA.debugLineNum = 55;BA.debugLine="SelectedItem = \"\"";
+parent._selecteditem = "";
+ //BA.debugLineNum = 57;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xloadingindicator.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xloadingindicator.java
new file mode 100644
index 0000000..7b22f83
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xloadingindicator.java
@@ -0,0 +1,409 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xloadingindicator extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xloadingindicator");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xloadingindicator.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public int _clr = 0;
+public int _index = 0;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public int _duration = 0;
+public String _drawingsubname = "";
+public Object _tag = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 37;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 38;BA.debugLine="cvs.Resize(Width, Height)";
+_cvs.Resize((float) (_width),(float) (_height));
+ //BA.debugLineNum = 39;BA.debugLine="MainLoop";
+_mainloop();
+ //BA.debugLineNum = 40;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 7;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 9;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 10;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 12;BA.debugLine="Private clr As Int";
+_clr = 0;
+ //BA.debugLineNum = 13;BA.debugLine="Private index As Int";
+_index = 0;
+ //BA.debugLineNum = 14;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 15;BA.debugLine="Private duration As Int";
+_duration = 0;
+ //BA.debugLineNum = 16;BA.debugLine="Private DrawingSubName As String";
+_drawingsubname = "";
+ //BA.debugLineNum = 17;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 18;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+String _style = "";
+ //BA.debugLineNum = 26;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 27;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 28;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 28;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 29;BA.debugLine="clr = xui.PaintOrColorToColor(Props.Get(\"Color\"";
+_clr = _xui.PaintOrColorToColor(_props.Get((Object)("Color")));
+ //BA.debugLineNum = 30;BA.debugLine="Dim style As String= Props.Get(\"IndicatorStyle\")";
+_style = BA.ObjectToString(_props.Get((Object)("IndicatorStyle")));
+ //BA.debugLineNum = 31;BA.debugLine="Dim duration As Int = Props.Get(\"Duration\")";
+_duration = (int)(BA.ObjectToNumber(_props.Get((Object)("Duration"))));
+ //BA.debugLineNum = 32;BA.debugLine="DrawingSubName = \"Draw_\" & style.Replace(\" \", \"\")";
+_drawingsubname = "Draw_"+_style.replace(" ","");
+ //BA.debugLineNum = 33;BA.debugLine="cvs.Initialize(mBase)";
+_cvs.Initialize(_mbase);
+ //BA.debugLineNum = 34;BA.debugLine="MainLoop";
+_mainloop();
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return "";
+}
+public String _draw_arc1(float _progress) throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null;
+float _r = 0f;
+ //BA.debugLineNum = 105;BA.debugLine="Private Sub Draw_Arc1 (Progress As Float)";
+ //BA.debugLineNum = 106;BA.debugLine="Dim p As B4XPath";
+_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
+ //BA.debugLineNum = 107;BA.debugLine="Dim r As Float = cvs.TargetRect.CenterX - 5dip";
+_r = (float) (_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (5)));
+ //BA.debugLineNum = 108;BA.debugLine="If Progress < 0.5 Then";
+if (_progress<0.5) {
+ //BA.debugLineNum = 109;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ";
+_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (_progress*2*360));
+ }else {
+ //BA.debugLineNum = 111;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ";
+_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (-(1-_progress)*2*360));
+ };
+ //BA.debugLineNum = 113;BA.debugLine="cvs.ClipPath(p)";
+_cvs.ClipPath(_p);
+ //BA.debugLineNum = 114;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)";
+_cvs.DrawRect(_cvs.getTargetRect(),_clr,__c.True,(float) (0));
+ //BA.debugLineNum = 115;BA.debugLine="cvs.RemoveClip";
+_cvs.RemoveClip();
+ //BA.debugLineNum = 116;BA.debugLine="End Sub";
+return "";
+}
+public String _draw_arc2(float _progress) throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null;
+float _r = 0f;
+ //BA.debugLineNum = 118;BA.debugLine="Private Sub Draw_Arc2 (Progress As Float)";
+ //BA.debugLineNum = 119;BA.debugLine="Dim p As B4XPath";
+_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
+ //BA.debugLineNum = 120;BA.debugLine="Dim r As Float = cvs.TargetRect.CenterX - 5dip";
+_r = (float) (_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (5)));
+ //BA.debugLineNum = 121;BA.debugLine="If Progress < 0.5 Then";
+if (_progress<0.5) {
+ //BA.debugLineNum = 122;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ";
+_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (_progress*2*360));
+ }else {
+ //BA.debugLineNum = 124;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ";
+_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (360-(_progress-0.5)*2*360));
+ };
+ //BA.debugLineNum = 126;BA.debugLine="cvs.ClipPath(p)";
+_cvs.ClipPath(_p);
+ //BA.debugLineNum = 127;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)";
+_cvs.DrawRect(_cvs.getTargetRect(),_clr,__c.True,(float) (0));
+ //BA.debugLineNum = 128;BA.debugLine="cvs.RemoveClip";
+_cvs.RemoveClip();
+ //BA.debugLineNum = 129;BA.debugLine="End Sub";
+return "";
+}
+public String _draw_fivelines1(float _progress) throws Exception{
+int _minr = 0;
+int _maxr = 0;
+int _dx = 0;
+int _i = 0;
+float _r = 0f;
+ //BA.debugLineNum = 95;BA.debugLine="Private Sub Draw_FiveLines1(Progress As Float)";
+ //BA.debugLineNum = 96;BA.debugLine="Dim MinR As Int = 10dip";
+_minr = __c.DipToCurrent((int) (10));
+ //BA.debugLineNum = 97;BA.debugLine="Dim MaxR As Int = cvs.TargetRect.Height / 2";
+_maxr = (int) (_cvs.getTargetRect().getHeight()/(double)2);
+ //BA.debugLineNum = 98;BA.debugLine="Dim dx As Int = (cvs.TargetRect.Width - 2dip) / 5";
+_dx = (int) ((_cvs.getTargetRect().getWidth()-__c.DipToCurrent((int) (2)))/(double)5);
+ //BA.debugLineNum = 99;BA.debugLine="For i = 0 To 4";
+{
+final int step4 = 1;
+final int limit4 = (int) (4);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 100;BA.debugLine="Dim r As Float = MinR + MaxR / 2 + MaxR / 2 * Si";
+_r = (float) (_minr+_maxr/(double)2+_maxr/(double)2*__c.SinD(_progress*360-30*_i));
+ //BA.debugLineNum = 101;BA.debugLine="cvs.DrawLine(2dip + i * dx, cvs.TargetRect.Cente";
+_cvs.DrawLine((float) (__c.DipToCurrent((int) (2))+_i*_dx),(float) (_cvs.getTargetRect().getCenterY()-_r),(float) (__c.DipToCurrent((int) (2))+_i*_dx),(float) (_cvs.getTargetRect().getCenterY()+_r),_clr,(float) (__c.DipToCurrent((int) (4))));
+ }
+};
+ //BA.debugLineNum = 103;BA.debugLine="End Sub";
+return "";
+}
+public String _draw_pacman(float _progress) throws Exception{
+int _dotr = 0;
+anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null;
+int _angle = 0;
+int _cx = 0;
+int _cy = 0;
+int _r = 0;
+ //BA.debugLineNum = 131;BA.debugLine="Private Sub Draw_PacMan(Progress As Float)";
+ //BA.debugLineNum = 132;BA.debugLine="Dim DotR As Int = 5dip";
+_dotr = __c.DipToCurrent((int) (5));
+ //BA.debugLineNum = 133;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.Width - DotR - Prog";
+_cvs.DrawCircle((float) (_cvs.getTargetRect().getWidth()-_dotr-_progress*(_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (10)))),_cvs.getTargetRect().getCenterY(),(float) (_dotr),_setalpha(_clr,(int) (255-200*_progress)),__c.True,(float) (0));
+ //BA.debugLineNum = 134;BA.debugLine="Dim p As B4XPath";
+_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
+ //BA.debugLineNum = 135;BA.debugLine="Dim angle As Int = 70 * SinD(Progress * 180)";
+_angle = (int) (70*__c.SinD(_progress*180));
+ //BA.debugLineNum = 136;BA.debugLine="Dim cx As Int = cvs.TargetRect.CenterX - 5dip";
+_cx = (int) (_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (5)));
+ //BA.debugLineNum = 137;BA.debugLine="Dim cy As Int = cvs.TargetRect.CenterY";
+_cy = (int) (_cvs.getTargetRect().getCenterY());
+ //BA.debugLineNum = 138;BA.debugLine="Dim r As Int = cvs.TargetRect.CenterY - 5dip";
+_r = (int) (_cvs.getTargetRect().getCenterY()-__c.DipToCurrent((int) (5)));
+ //BA.debugLineNum = 139;BA.debugLine="If angle = 0 Then";
+if (_angle==0) {
+ //BA.debugLineNum = 140;BA.debugLine="cvs.DrawCircle(cx, cy, r, clr, True, 0)";
+_cvs.DrawCircle((float) (_cx),(float) (_cy),(float) (_r),_clr,__c.True,(float) (0));
+ }else {
+ //BA.debugLineNum = 142;BA.debugLine="p.InitializeArc(cx, cy , r, -angle / 2, -(360-an";
+_p.InitializeArc((float) (_cx),(float) (_cy),(float) (_r),(float) (-_angle/(double)2),(float) (-(360-_angle)));
+ //BA.debugLineNum = 143;BA.debugLine="cvs.ClipPath(p)";
+_cvs.ClipPath(_p);
+ //BA.debugLineNum = 144;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)";
+_cvs.DrawRect(_cvs.getTargetRect(),_clr,__c.True,(float) (0));
+ //BA.debugLineNum = 145;BA.debugLine="cvs.RemoveClip";
+_cvs.RemoveClip();
+ };
+ //BA.debugLineNum = 148;BA.debugLine="End Sub";
+return "";
+}
+public String _draw_singlecircle(float _progress) throws Exception{
+int _i = 0;
+ //BA.debugLineNum = 85;BA.debugLine="Private Sub Draw_SingleCircle(Progress As Float)";
+ //BA.debugLineNum = 86;BA.debugLine="For i = 0 To 2";
+{
+final int step1 = 1;
+final int limit1 = (int) (2);
+_i = (int) (0) ;
+for (;_i <= limit1 ;_i = _i + step1 ) {
+ //BA.debugLineNum = 87;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.CenterX, cvs.Targe";
+_cvs.DrawCircle(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),(float) (_cvs.getTargetRect().getCenterX()*_progress),_setalpha(_clr,(int) (255-255*_progress)),__c.True,(float) (0));
+ }
+};
+ //BA.debugLineNum = 89;BA.debugLine="End Sub";
+return "";
+}
+public String _draw_threecircles1(float _progress) throws Exception{
+float _maxr = 0f;
+float _r = 0f;
+int _i = 0;
+int _alpha = 0;
+ //BA.debugLineNum = 66;BA.debugLine="Private Sub Draw_ThreeCircles1 (Progress As Float)";
+ //BA.debugLineNum = 67;BA.debugLine="Dim MaxR As Float = (cvs.TargetRect.Width / 2 - 2";
+_maxr = (float) ((_cvs.getTargetRect().getWidth()/(double)2-__c.DipToCurrent((int) (20)))/(double)2);
+ //BA.debugLineNum = 68;BA.debugLine="Dim r As Float = 10dip + MaxR + MaxR * Sin(Progre";
+_r = (float) (__c.DipToCurrent((int) (10))+_maxr+_maxr*__c.Sin(_progress*2*__c.cPI));
+ //BA.debugLineNum = 69;BA.debugLine="For i = 0 To 2";
+{
+final int step3 = 1;
+final int limit3 = (int) (2);
+_i = (int) (0) ;
+for (;_i <= limit3 ;_i = _i + step3 ) {
+ //BA.debugLineNum = 70;BA.debugLine="Dim alpha As Int = i * 120 + Progress * 360";
+_alpha = (int) (_i*120+_progress*360);
+ //BA.debugLineNum = 72;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.CenterX + r * SinD";
+_cvs.DrawCircle((float) (_cvs.getTargetRect().getCenterX()+_r*__c.SinD(_alpha)),(float) (_cvs.getTargetRect().getCenterY()+_r*__c.CosD(_alpha)),(float) (__c.DipToCurrent((int) (7))),_clr,__c.True,(float) (__c.DipToCurrent((int) (1))));
+ }
+};
+ //BA.debugLineNum = 74;BA.debugLine="End Sub";
+return "";
+}
+public String _draw_threecircles2(float _progress) throws Exception{
+int _minr = 0;
+int _maxr = 0;
+int _i = 0;
+float _r = 0f;
+ //BA.debugLineNum = 76;BA.debugLine="Private Sub Draw_ThreeCircles2 (Progress As Float)";
+ //BA.debugLineNum = 77;BA.debugLine="Dim MinR As Int = 5dip";
+_minr = __c.DipToCurrent((int) (5));
+ //BA.debugLineNum = 78;BA.debugLine="Dim MaxR As Int = cvs.TargetRect.Width / 2 / 3 -";
+_maxr = (int) (_cvs.getTargetRect().getWidth()/(double)2/(double)3-_minr-__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 79;BA.debugLine="For i = 0 To 2";
+{
+final int step3 = 1;
+final int limit3 = (int) (2);
+_i = (int) (0) ;
+for (;_i <= limit3 ;_i = _i + step3 ) {
+ //BA.debugLineNum = 80;BA.debugLine="Dim r As Float = MinR + MaxR / 2 + MaxR / 2 * Si";
+_r = (float) (_minr+_maxr/(double)2+_maxr/(double)2*__c.SinD(_progress*360-60*_i));
+ //BA.debugLineNum = 81;BA.debugLine="cvs.DrawCircle(MaxR + MinR + (MinR + MaxR + 2dip";
+_cvs.DrawCircle((float) (_maxr+_minr+(_minr+_maxr+__c.DipToCurrent((int) (2)))*2*_i),_cvs.getTargetRect().getCenterY(),_r,_clr,__c.True,(float) (0));
+ }
+};
+ //BA.debugLineNum = 83;BA.debugLine="End Sub";
+return "";
+}
+public String _hide() throws Exception{
+ //BA.debugLineNum = 61;BA.debugLine="Public Sub Hide";
+ //BA.debugLineNum = 62;BA.debugLine="mBase.Visible = False";
+_mbase.setVisible(__c.False);
+ //BA.debugLineNum = 63;BA.debugLine="index = index + 1";
+_index = (int) (_index+1);
+ //BA.debugLineNum = 64;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 20;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 21;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 22;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 23;BA.debugLine="End Sub";
+return "";
+}
+public void _mainloop() throws Exception{
+ResumableSub_MainLoop rsub = new ResumableSub_MainLoop(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_MainLoop extends BA.ResumableSub {
+public ResumableSub_MainLoop(reparto_izca.keymon.lat.b4xloadingindicator parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.b4xloadingindicator parent;
+int _myindex = 0;
+long _n = 0L;
+float _progress = 0f;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 43;BA.debugLine="index = index + 1";
+parent._index = (int) (parent._index+1);
+ //BA.debugLineNum = 44;BA.debugLine="Dim MyIndex As Int = index";
+_myindex = parent._index;
+ //BA.debugLineNum = 45;BA.debugLine="Dim n As Long = DateTime.Now";
+_n = parent.__c.DateTime.getNow();
+ //BA.debugLineNum = 46;BA.debugLine="Do While MyIndex = index";
+if (true) break;
+
+case 1:
+//do while
+this.state = 4;
+while (_myindex==parent._index) {
+this.state = 3;
+if (true) break;
+}
+if (true) break;
+
+case 3:
+//C
+this.state = 1;
+ //BA.debugLineNum = 47;BA.debugLine="Dim progress As Float = (DateTime.Now - n) / dur";
+_progress = (float) ((parent.__c.DateTime.getNow()-_n)/(double)parent._duration);
+ //BA.debugLineNum = 48;BA.debugLine="progress = progress - Floor(progress)";
+_progress = (float) (_progress-parent.__c.Floor(_progress));
+ //BA.debugLineNum = 49;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
+parent._cvs.ClearRect(parent._cvs.getTargetRect());
+ //BA.debugLineNum = 50;BA.debugLine="CallSub2(Me, DrawingSubName, progress)";
+parent.__c.CallSubNew2(ba,parent,parent._drawingsubname,(Object)(_progress));
+ //BA.debugLineNum = 51;BA.debugLine="cvs.Invalidate";
+parent._cvs.Invalidate();
+ //BA.debugLineNum = 52;BA.debugLine="Sleep(10)";
+parent.__c.Sleep(ba,this,(int) (10));
+this.state = 5;
+return;
+case 5:
+//C
+this.state = 1;
+;
+ if (true) break;
+
+case 4:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 54;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public int _setalpha(int _c,int _alpha) throws Exception{
+ //BA.debugLineNum = 91;BA.debugLine="Private Sub SetAlpha (c As Int, alpha As Int) As I";
+ //BA.debugLineNum = 92;BA.debugLine="Return Bit.And(0xffffff, c) + Bit.ShiftLeft(alpha";
+if (true) return (int) (__c.Bit.And(((int)0xffffff),_c)+__c.Bit.ShiftLeft(_alpha,(int) (24)));
+ //BA.debugLineNum = 93;BA.debugLine="End Sub";
+return 0;
+}
+public String _show() throws Exception{
+ //BA.debugLineNum = 56;BA.debugLine="Public Sub Show";
+ //BA.debugLineNum = 57;BA.debugLine="mBase.Visible = True";
+_mbase.setVisible(__c.True);
+ //BA.debugLineNum = 58;BA.debugLine="MainLoop";
+_mainloop();
+ //BA.debugLineNum = 59;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "SHOW"))
+ return _show();
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xlongtexttemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlongtexttemplate.java
new file mode 100644
index 0000000..320f3af
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlongtexttemplate.java
@@ -0,0 +1,126 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xlongtexttemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xlongtexttemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xlongtexttemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public b4a.example3.customlistview _customlistview1 = null;
+public Object _text = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView";
+_customlistview1 = new b4a.example3.customlistview();
+ //BA.debugLineNum = 5;BA.debugLine="Public Text As Object";
+_text = new Object();
+ //BA.debugLineNum = 6;BA.debugLine="End Sub";
+return "";
+}
+public String _dialogclosed(int _result) throws Exception{
+ //BA.debugLineNum = 41;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore";
+ //BA.debugLineNum = 43;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 30;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 31;BA.debugLine="Return mBase";
+if (true) return _mbase;
+ //BA.debugLineNum = 32;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 8;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 9;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
+_mbase = _xui.CreatePanel(ba,"mBase");
+ //BA.debugLineNum = 10;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (300)));
+ //BA.debugLineNum = 11;BA.debugLine="mBase.LoadLayout(\"LongTextTemplate\")";
+_mbase.LoadLayout("LongTextTemplate",ba);
+ //BA.debugLineNum = 12;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 13;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr";
+_customlistview1._sv.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 14;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF";
+_customlistview1._defaulttextbackgroundcolor = ((int)0xff555555);
+ //BA.debugLineNum = 15;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit";
+_customlistview1._defaulttextcolor = _xui.Color_White;
+ //BA.debugLineNum = 16;BA.debugLine="CustomListView1.sv.Color = 0xFF464646";
+_customlistview1._sv.setColor(((int)0xff464646));
+ //BA.debugLineNum = 21;BA.debugLine="End Sub";
+return "";
+}
+public String _resize(int _width,int _height) throws Exception{
+ //BA.debugLineNum = 23;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)";
+ //BA.debugLineNum = 24;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 25;BA.debugLine="CustomListView1.AsView.SetLayoutAnimated(0, 0, 0,";
+_customlistview1._asview().SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 26;BA.debugLine="CustomListView1.Base_Resize(Width, Height)";
+_customlistview1._base_resize(_width,_height);
+ //BA.debugLineNum = 27;BA.debugLine="End Sub";
+return "";
+}
+public String _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 34;BA.debugLine="Private Sub Show (Dialog As B4XDialog) 'ignore";
+ //BA.debugLineNum = 35;BA.debugLine="CustomListView1.Clear";
+_customlistview1._clear();
+ //BA.debugLineNum = 36;BA.debugLine="CustomListView1.AddTextItem(Text, \"\")";
+_customlistview1._addtextitem(_text,(Object)(""));
+ //BA.debugLineNum = 37;BA.debugLine="CustomListView1.GetPanel(0).GetView(0).SetTextAli";
+_customlistview1._getpanel((int) (0)).GetView((int) (0)).SetTextAlignment("TOP","LEFT");
+ //BA.debugLineNum = 38;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView";
+_xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,_customlistview1,_customlistview1._defaulttextbackgroundcolor);
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+if (BA.fastSubCompare(sub, "SHOW"))
+ return _show((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xmainpage.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xmainpage.java
new file mode 100644
index 0000000..8a653e2
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xmainpage.java
@@ -0,0 +1,1987 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xmainpage extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xmainpage");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xmainpage.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public reparto_izca.keymon.lat.b4xmainpage _login = null;
+public reparto_izca.keymon.lat.c_principal _principal = null;
+public reparto_izca.keymon.lat.c_clientes _clientes = null;
+public reparto_izca.keymon.lat.c_cliente _cliente = null;
+public reparto_izca.keymon.lat.c_productos _productos = null;
+public reparto_izca.keymon.lat.c_updateavailable _updateavailable = null;
+public reparto_izca.keymon.lat.c_mapas _mapas = null;
+public reparto_izca.keymon.lat.c_nuevocliente _nuevocliente = null;
+public reparto_izca.keymon.lat.c_ticketsdia _ticketsdia = null;
+public reparto_izca.keymon.lat.c_noventa _noventa = null;
+public reparto_izca.keymon.lat.c_pedidos _pedidos = null;
+public reparto_izca.keymon.lat.c_buscar _buscar = null;
+public reparto_izca.keymon.lat.c_detalleventa _detalleventa = null;
+public reparto_izca.keymon.lat.c_detalle_promo _detalle_promo = null;
+public reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null;
+public String _usuario = "";
+public boolean _logger = false;
+public String _lat_gps = "";
+public String _lon_gps = "";
+public String _server = "";
+public String _montoactual = "";
+public String _clientestotal = "";
+public String _clientesventa = "";
+public String _clientesrechazo = "";
+public String _clientesvisitados = "";
+public String _almacen = "";
+public String _rutapreventa = "";
+public String _cantidadprod = "";
+public String _ultimaactualizaciongps = "";
+public String _fecharuta = "";
+public String _srvip = "";
+public anywheresoftware.b4a.phone.Phone _phn = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _user = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _pass = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public String _existe = "";
+public String _paso1 = "";
+public anywheresoftware.b4a.objects.LabelWrapper _imen = null;
+public String _imei = "";
+public anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _entrar = null;
+public reparto_izca.keymon.lat.c_cheklist _checklist = null;
+public reparto_izca.keymon.lat.c_tabulador _tabulador = null;
+public int _batt = 0;
+public String _porvisitar = "";
+public String _entregas = "";
+public String _rechazos = "";
+public String _montoentregado = "";
+public String _montorechazado = "";
+public String _visitadostotales = "";
+public anywheresoftware.b4a.objects.PanelWrapper _p_appupdate = null;
+public anywheresoftware.b4a.objects.ImageViewWrapper _i_engrane = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_server = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_apk = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_enviobd = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_regesar = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_server = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_serverlist = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _lv_server = null;
+public reparto_izca.keymon.lat.fileprovider _provider = null;
+public String _rutabdbackup = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_can_monto = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptar_monto = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_add_monto = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_add_monto = null;
+public String _sdate = "";
+public String _stime = "";
+public anywheresoftware.b4a.objects.PanelWrapper _p_validacion = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelarcodigo = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptar = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_codigo = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_ciego = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_terpc = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_pc_env = null;
+public b4a.example3.customlistview _clv_pick_ciego = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_buspc = null;
+public String _q_buscar = "";
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_pick_ciego = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_pick_ciego = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _a = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_abono = null;
+public String _monto_entregadoactual = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_aceptar_click() throws Exception{
+ //BA.debugLineNum = 928;BA.debugLine="Private Sub b_aceptar_Click";
+ //BA.debugLineNum = 929;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec";
+_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 930;BA.debugLine="f.Position=0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 931;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\"sele";
+_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 932;BA.debugLine="a.Position = 0";
+_a.setPosition((int) (0));
+ //BA.debugLineNum = 938;BA.debugLine="f.Close";
+_f.Close();
+ //BA.debugLineNum = 939;BA.debugLine="a.Close";
+_a.Close();
+ //BA.debugLineNum = 944;BA.debugLine="End Sub";
+return "";
+}
+public String _b_apk_click() throws Exception{
+ //BA.debugLineNum = 586;BA.debugLine="Private Sub b_apk_Click";
+ //BA.debugLineNum = 587;BA.debugLine="StartService(appUpdater)";
+__c.StartService(ba,(Object)(_appupdater.getObject()));
+ //BA.debugLineNum = 588;BA.debugLine="End Sub";
+return "";
+}
+public String _b_arqueocieego_click() throws Exception{
+ //BA.debugLineNum = 733;BA.debugLine="Private Sub b_arqueocieego_Click";
+ //BA.debugLineNum = 734;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM CAT_GU";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM CAT_GUNAPROD3")));
+ //BA.debugLineNum = 735;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 736;BA.debugLine="Subs.panelVisible(p_validacion,0,0)";
+_subs._panelvisible /*String*/ (ba,_p_validacion,(int) (0),(int) (0));
+ }else {
+ //BA.debugLineNum = 738;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga";
+__c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ //BA.debugLineNum = 740;BA.debugLine="End Sub";
+return "";
+}
+public String _b_can_monto_click() throws Exception{
+ //BA.debugLineNum = 729;BA.debugLine="Private Sub B_Can_Monto_Click";
+ //BA.debugLineNum = 730;BA.debugLine="p_add_monto.Visible = False";
+_p_add_monto.setVisible(__c.False);
+ //BA.debugLineNum = 731;BA.debugLine="End Sub";
+return "";
+}
+public String _b_cancelarcodigo_click() throws Exception{
+ //BA.debugLineNum = 972;BA.debugLine="Private Sub b_cancelarcodigo_Click";
+ //BA.debugLineNum = 973;BA.debugLine="p_validacion.Visible = False";
+_p_validacion.setVisible(__c.False);
+ //BA.debugLineNum = 974;BA.debugLine="End Sub";
+return "";
+}
+public String _b_cargarmonto_click() throws Exception{
+ //BA.debugLineNum = 629;BA.debugLine="Private Sub b_CargarMonto_Click";
+ //BA.debugLineNum = 631;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM kmt_in";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM kmt_info")));
+ //BA.debugLineNum = 632;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 633;BA.debugLine="If c.RowCount < 0 Or c.RowCount = 0 Then";
+if (_c.getRowCount()<0 || _c.getRowCount()==0) {
+ //BA.debugLineNum = 634;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga";
+__c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 636;BA.debugLine="Subs.panelVisible(p_add_monto,0,0)";
+_subs._panelvisible /*String*/ (ba,_p_add_monto,(int) (0),(int) (0));
+ };
+ //BA.debugLineNum = 638;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 640;BA.debugLine="End Sub";
+return "";
+}
+public void _b_enviobd_click() throws Exception{
+ResumableSub_b_envioBD_Click rsub = new ResumableSub_b_envioBD_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_b_envioBD_Click extends BA.ResumableSub {
+public ResumableSub_b_envioBD_Click(reparto_izca.keymon.lat.b4xmainpage parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.b4xmainpage parent;
+String _filename = "";
+anywheresoftware.b4a.phone.Phone.Email _email = null;
+anywheresoftware.b4a.objects.IntentWrapper _in = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 571;BA.debugLine="Dim FileName As String = \"kmt.db\"";
+_filename = "kmt.db";
+ //BA.debugLineNum = 573;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)";
+parent.__c.LogImpl("52031621","xxxxxx:"+parent._provider._sharedfolder /*String*/ ,0);
+ //BA.debugLineNum = 574;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 575;BA.debugLine="File.Copy(File.DirInternal, FileName, Provider.Sh";
+parent.__c.File.Copy(parent.__c.File.getDirInternal(),_filename,parent._provider._sharedfolder /*String*/ ,_filename);
+ //BA.debugLineNum = 576;BA.debugLine="Dim email As Email";
+_email = new anywheresoftware.b4a.phone.Phone.Email();
+ //BA.debugLineNum = 577;BA.debugLine="email.To.Add(\"soporte@keymonsoft.com\")";
+_email.To.Add((Object)("soporte@keymonsoft.com"));
+ //BA.debugLineNum = 578;BA.debugLine="email.Subject = \"Base de datos para revisión\"";
+_email.Subject = "Base de datos para revisión";
+ //BA.debugLineNum = 579;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam";
+_email.Attachments.Add(parent._provider._getfileuri /*Object*/ (_filename));
+ //BA.debugLineNum = 581;BA.debugLine="Dim in As Intent = email.GetIntent";
+_in = new anywheresoftware.b4a.objects.IntentWrapper();
+_in = (anywheresoftware.b4a.objects.IntentWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.IntentWrapper(), (android.content.Intent)(_email.GetIntent()));
+ //BA.debugLineNum = 582;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION";
+_in.setFlags((int) (1));
+ //BA.debugLineNum = 583;BA.debugLine="StartActivity(in)";
+parent.__c.StartActivity(ba,(Object)(_in.getObject()));
+ //BA.debugLineNum = 584;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b_pc_env_click() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null;
+String _inputtext = "";
+anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null;
+String _idtext = "";
+String[] _idparts = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
+String[] _fechatabulador = null;
+String[] _fechatabulador2 = null;
+String _fechatabulador3 = "";
+ //BA.debugLineNum = 783;BA.debugLine="Private Sub B_PC_ENV_Click";
+ //BA.debugLineNum = 784;BA.debugLine="Dim sDate, sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 785;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
+__c.DateTime.setDateFormat("dd/MM/yyyy");
+ //BA.debugLineNum = 786;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
+__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 787;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 788;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 791;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
+{
+final int step6 = 1;
+final int limit6 = (int) (_clv_pick_ciego._getsize()-1);
+_i = (int) (0) ;
+for (;_i <= limit6 ;_i = _i + step6 ) {
+ //BA.debugLineNum = 793;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
+_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_itempanel = _clv_pick_ciego._getpanel(_i);
+ //BA.debugLineNum = 794;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
+_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_innerpanel = _itempanel.GetView((int) (0));
+ //BA.debugLineNum = 795;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
+_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_edittext = _innerpanel.GetView((int) (1));
+ //BA.debugLineNum = 796;BA.debugLine="Dim inputText As String = editText.As(EditText).";
+_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText();
+ //BA.debugLineNum = 799;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
+if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) {
+ //BA.debugLineNum = 800;BA.debugLine="inputText = \"0\"";
+_inputtext = "0";
+ };
+ //BA.debugLineNum = 804;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
+_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_idlabel = _innerpanel.GetView((int) (0));
+ //BA.debugLineNum = 805;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
+_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
+ //BA.debugLineNum = 806;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
+_idparts = __c.Regex.Split(__c.CRLF,_idtext);
+ //BA.debugLineNum = 808;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 809;BA.debugLine="f.Position=0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 810;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
+__c.LogImpl("52883611",_f.GetString("RUTAA"),0);
+ //BA.debugLineNum = 811;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
+_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 812;BA.debugLine="If a.RowCount>0 Then";
+if (_a.getRowCount()>0) {
+ //BA.debugLineNum = 813;BA.debugLine="a.Position=0";
+_a.setPosition((int) (0));
+ };
+ //BA.debugLineNum = 815;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT";
+_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
+ //BA.debugLineNum = 816;BA.debugLine="k.Position = 0";
+_k.setPosition((int) (0));
+ //BA.debugLineNum = 817;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \"";
+_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
+ //BA.debugLineNum = 818;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"-";
+_fechatabulador2 = __c.Regex.Split("-",_fechatabulador[(int) (0)]);
+ //BA.debugLineNum = 819;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2(";
+_fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)];
+ //BA.debugLineNum = 820;BA.debugLine="k.Close";
+_k.Close();
+ //BA.debugLineNum = 821;BA.debugLine="If inputText <> \"\" Then";
+if ((_inputtext).equals("") == false) {
+ //BA.debugLineNum = 822;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
+ //BA.debugLineNum = 823;BA.debugLine="If c.RowCount = 0 Then";
+if (_c.getRowCount()==0) {
+ //BA.debugLineNum = 825;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
+__c.LogImpl("52883626",_f.GetString("RUTAA"),0);
+ //BA.debugLineNum = 826;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,_a.GetString("ID_ALMACEN"),_f.GetString("RUTAA"),_fechatabulador3+" "+_stime}));
+ }else {
+ //BA.debugLineNum = 829;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
+__c.LogImpl("52883630",_f.GetString("RUTAA"),0);
+ //BA.debugLineNum = 830;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,_idparts[(int) (0)]}));
+ };
+ };
+ //BA.debugLineNum = 834;BA.debugLine="f.Close";
+_f.Close();
+ //BA.debugLineNum = 835;BA.debugLine="a.Close";
+_a.Close();
+ //BA.debugLineNum = 836;BA.debugLine="Log(\"Processed item \" & i)";
+__c.LogImpl("52883637","Processed item "+BA.NumberToString(_i),0);
+ }
+};
+ //BA.debugLineNum = 838;BA.debugLine="et_buspc.Text = \"\"";
+_et_buspc.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 839;BA.debugLine="CLV_PICK_CIEGO.Clear";
+_clv_pick_ciego._clear();
+ //BA.debugLineNum = 840;BA.debugLine="End Sub";
+return "";
+}
+public String _b_regesar_click() throws Exception{
+ //BA.debugLineNum = 562;BA.debugLine="Private Sub b_regesar_Click";
+ //BA.debugLineNum = 563;BA.debugLine="p_principal.Visible = True";
+_p_principal.setVisible(__c.True);
+ //BA.debugLineNum = 564;BA.debugLine="p_appUpdate.Visible = False";
+_p_appupdate.setVisible(__c.False);
+ //BA.debugLineNum = 565;BA.debugLine="End Sub";
+return "";
+}
+public String _b_server_click() throws Exception{
+ //BA.debugLineNum = 590;BA.debugLine="Private Sub b_server_Click";
+ //BA.debugLineNum = 591;BA.debugLine="Log(\"Guardar servidor\")";
+__c.LogImpl("52162689","Guardar servidor",0);
+ //BA.debugLineNum = 592;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARIA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("SERVER")}));
+ //BA.debugLineNum = 593;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("SERVER"),(Object)(_et_server.getText())}));
+ //BA.debugLineNum = 594;BA.debugLine="B4XPages.MainPage.server = et_server.text";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ = _et_server.getText();
+ //BA.debugLineNum = 595;BA.debugLine="Starter.server = B4XPages.MainPage.server";
+_starter._server /*String*/ = _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ;
+ //BA.debugLineNum = 596;BA.debugLine="If logger Then Log(\"Inicializamos reqManager con";
+if (_logger) {
+__c.LogImpl("52162694","Inicializamos reqManager con "+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);};
+ //BA.debugLineNum = 597;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 598;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
+__c.LogImpl("52162696",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
+ //BA.debugLineNum = 599;BA.debugLine="reinicializaReqManager";
+_reinicializareqmanager();
+ //BA.debugLineNum = 600;BA.debugLine="p_appUpdate.Visible = False";
+_p_appupdate.setVisible(__c.False);
+ //BA.debugLineNum = 602;BA.debugLine="End Sub";
+return "";
+}
+public void _b_terpc_click() throws Exception{
+ResumableSub_b_terpc_Click rsub = new ResumableSub_b_terpc_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_b_terpc_Click extends BA.ResumableSub {
+public ResumableSub_b_terpc_Click(reparto_izca.keymon.lat.b4xmainpage parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.b4xmainpage parent;
+int _resultado = 0;
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null;
+String _inputtext = "";
+anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null;
+String _idtext = "";
+String[] _idparts = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null;
+String[] _fechatabulador = null;
+String[] _fechatabulador2 = null;
+String _fechatabulador3 = "";
+int step12;
+int limit12;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 843;BA.debugLine="Msgbox2Async(\"Una vez enviada la información no p";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Una vez enviada la información no podras hacer modificaciones"),BA.ObjectToCharSequence("Atención"),"SI","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
+ //BA.debugLineNum = 844;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 33;
+return;
+case 33:
+//C
+this.state = 1;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 845;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 32;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 846;BA.debugLine="Msgbox2Async(\"Estas seguro de enviar la informac";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Estas seguro de enviar la información?"),BA.ObjectToCharSequence("Atención"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
+ //BA.debugLineNum = 847;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 34;
+return;
+case 34:
+//C
+this.state = 4;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 848;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 31;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 6;
+}else {
+this.state = 30;
+}if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 850;BA.debugLine="Dim sDate, sTime As String";
+parent._sdate = "";
+parent._stime = "";
+ //BA.debugLineNum = 851;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
+parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
+ //BA.debugLineNum = 852;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
+parent.__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 853;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
+parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 854;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
+parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 856;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
+if (true) break;
+
+case 7:
+//for
+this.state = 28;
+step12 = 1;
+limit12 = (int) (parent._clv_pick_ciego._getsize()-1);
+_i = (int) (0) ;
+this.state = 35;
+if (true) break;
+
+case 35:
+//C
+this.state = 28;
+if ((step12 > 0 && _i <= limit12) || (step12 < 0 && _i >= limit12)) this.state = 9;
+if (true) break;
+
+case 36:
+//C
+this.state = 35;
+_i = ((int)(0 + _i + step12)) ;
+if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 858;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetP";
+_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_itempanel = parent._clv_pick_ciego._getpanel(_i);
+ //BA.debugLineNum = 859;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(";
+_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_innerpanel = _itempanel.GetView((int) (0));
+ //BA.debugLineNum = 860;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1";
+_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_edittext = _innerpanel.GetView((int) (1));
+ //BA.debugLineNum = 861;BA.debugLine="Dim inputText As String = editText.As(EditText";
+_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText();
+ //BA.debugLineNum = 864;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or input";
+if (true) break;
+
+case 10:
+//if
+this.state = 13;
+if (parent.__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) {
+this.state = 12;
+}if (true) break;
+
+case 12:
+//C
+this.state = 13;
+ //BA.debugLineNum = 865;BA.debugLine="inputText = \"0\"";
+_inputtext = "0";
+ if (true) break;
+
+case 13:
+//C
+this.state = 14;
+;
+ //BA.debugLineNum = 869;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
+_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_idlabel = _innerpanel.GetView((int) (0));
+ //BA.debugLineNum = 870;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
+_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText();
+ //BA.debugLineNum = 871;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, id";
+_idparts = parent.__c.Regex.Split(parent.__c.CRLF,_idtext);
+ //BA.debugLineNum = 873;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RU";
+parent._f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 874;BA.debugLine="f.Position=0";
+parent._f.setPosition((int) (0));
+ //BA.debugLineNum = 875;BA.debugLine="Log(f.GetString(\"RUTAA\"))";
+parent.__c.LogImpl("52949153",parent._f.GetString("RUTAA"),0);
+ //BA.debugLineNum = 877;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN fr";
+parent._a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 878;BA.debugLine="If a.RowCount>0 Then";
+if (true) break;
+
+case 14:
+//if
+this.state = 17;
+if (parent._a.getRowCount()>0) {
+this.state = 16;
+}if (true) break;
+
+case 16:
+//C
+this.state = 17;
+ //BA.debugLineNum = 879;BA.debugLine="a.Position=0";
+parent._a.setPosition((int) (0));
+ if (true) break;
+
+case 17:
+//C
+this.state = 18;
+;
+ //BA.debugLineNum = 881;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
+parent.__c.LogImpl("52949159",parent._a.GetString("ID_ALMACEN"),0);
+ //BA.debugLineNum = 883;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELE";
+_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
+ //BA.debugLineNum = 884;BA.debugLine="k.Position = 0";
+_k.setPosition((int) (0));
+ //BA.debugLineNum = 885;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
+_fechatabulador = parent.__c.Regex.Split(" ",_k.GetString("HVD_FECHA"));
+ //BA.debugLineNum = 886;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(";
+_fechatabulador2 = parent.__c.Regex.Split("-",_fechatabulador[(int) (0)]);
+ //BA.debugLineNum = 887;BA.debugLine="Dim fechatabulador3 As String = fechatabulador";
+_fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)];
+ //BA.debugLineNum = 888;BA.debugLine="k.Close";
+_k.Close();
+ //BA.debugLineNum = 889;BA.debugLine="If inputText <> \"\" Then";
+if (true) break;
+
+case 18:
+//if
+this.state = 27;
+if ((_inputtext).equals("") == false) {
+this.state = 20;
+}if (true) break;
+
+case 20:
+//C
+this.state = 21;
+ //BA.debugLineNum = 890;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PI";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]})));
+ //BA.debugLineNum = 891;BA.debugLine="If c.RowCount = 0 Then";
+if (true) break;
+
+case 21:
+//if
+this.state = 26;
+if (parent._c.getRowCount()==0) {
+this.state = 23;
+}else {
+this.state = 25;
+}if (true) break;
+
+case 23:
+//C
+this.state = 26;
+ //BA.debugLineNum = 893;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,parent._a.GetString("ID_ALMACEN"),parent._f.GetString("RUTAA"),_fechatabulador3+" "+parent._stime}));
+ if (true) break;
+
+case 25:
+//C
+this.state = 26;
+ //BA.debugLineNum = 895;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,_idparts[(int) (0)]}));
+ if (true) break;
+
+case 26:
+//C
+this.state = 27;
+;
+ if (true) break;
+
+case 27:
+//C
+this.state = 36;
+;
+ //BA.debugLineNum = 898;BA.debugLine="f.Close";
+parent._f.Close();
+ //BA.debugLineNum = 899;BA.debugLine="a.Close";
+parent._a.Close();
+ //BA.debugLineNum = 900;BA.debugLine="Log(\"Processed item \" & i)";
+parent.__c.LogImpl("52949178","Processed item "+BA.NumberToString(_i),0);
+ if (true) break;
+if (true) break;
+
+case 28:
+//C
+this.state = 31;
+;
+ //BA.debugLineNum = 902;BA.debugLine="Log(\"Finished processing all items\")";
+parent.__c.LogImpl("52949180","Finished processing all items",0);
+ //BA.debugLineNum = 903;BA.debugLine="P_CIEGO.Visible = False";
+parent._p_ciego.setVisible(parent.__c.False);
+ //BA.debugLineNum = 904;BA.debugLine="et_buspc.Text = \"\"";
+parent._et_buspc.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 905;BA.debugLine="CLV_PICK_CIEGO.Clear";
+parent._clv_pick_ciego._clear();
+ //BA.debugLineNum = 906;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD,";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO")));
+ //BA.debugLineNum = 917;BA.debugLine="c.close";
+parent._c.Close();
+ if (true) break;
+
+case 30:
+//C
+this.state = 31;
+ if (true) break;
+
+case 31:
+//C
+this.state = 32;
+;
+ if (true) break;
+
+case 32:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 922;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _msgbox_result(int _resultado) throws Exception{
+}
+public void _b4xpage_appear() throws Exception{
+ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
+public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.b4xmainpage parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.b4xmainpage parent;
+String _permission = "";
+boolean _result = false;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 229;BA.debugLine="If Starter.muestraProgreso = 1 Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 4;
+if ((parent._starter._muestraprogreso /*String*/ ).equals(BA.NumberToString(1))) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 230;BA.debugLine="muestraProgreso(\"Descargando actualización\")";
+parent._muestraprogreso("Descargando actualización");
+ //BA.debugLineNum = 231;BA.debugLine="Starter.muestraProgreso = 0";
+parent._starter._muestraprogreso /*String*/ = BA.NumberToString(0);
+ if (true) break;
+
+case 4:
+//C
+this.state = 5;
+;
+ //BA.debugLineNum = 233;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
+parent._subs._centrapanel /*String*/ (ba,parent._p_principal,parent._root.getWidth());
+ //BA.debugLineNum = 234;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
+parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION);
+ //BA.debugLineNum = 236;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
+parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
+this.state = 21;
+return;
+case 21:
+//C
+this.state = 5;
+_permission = (String) result[0];
+_result = (Boolean) result[1];
+;
+ //BA.debugLineNum = 237;BA.debugLine="If Result Then";
+if (true) break;
+
+case 5:
+//if
+this.state = 16;
+if (_result) {
+this.state = 7;
+}else {
+this.state = 15;
+}if (true) break;
+
+case 7:
+//C
+this.state = 8;
+ //BA.debugLineNum = 238;BA.debugLine="If Not(Tracker.Tracking) Then StartService(Track";
+if (true) break;
+
+case 8:
+//if
+this.state = 13;
+if (parent.__c.Not(parent._tracker._tracking /*boolean*/ )) {
+this.state = 10;
+;}if (true) break;
+
+case 10:
+//C
+this.state = 13;
+parent.__c.StartService(ba,(Object)(parent._tracker.getObject()));
+if (true) break;
+
+case 13:
+//C
+this.state = 16;
+;
+ if (true) break;
+
+case 15:
+//C
+this.state = 16;
+ //BA.debugLineNum = 241;BA.debugLine="ToastMessageShow(\"No permission\", True)";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission"),parent.__c.True);
+ //BA.debugLineNum = 242;BA.debugLine="Log(\"Sin permisos\")";
+parent.__c.LogImpl("51638414","Sin permisos",0);
+ if (true) break;
+
+case 16:
+//C
+this.state = 17;
+;
+ //BA.debugLineNum = 245;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 246;BA.debugLine="If c.RowCount > 0 Then";
+if (true) break;
+
+case 17:
+//if
+this.state = 20;
+if (parent._c.getRowCount()>0) {
+this.state = 19;
+}if (true) break;
+
+case 19:
+//C
+this.state = 20;
+ //BA.debugLineNum = 249;BA.debugLine="c.Position=0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 250;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+parent._usuario = parent._c.GetString("USUARIO");
+ if (true) break;
+
+case 20:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 252;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 264;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.b4xmainpage parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.b4xmainpage parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 553;BA.debugLine="If p_appUpdate.Visible Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent._p_appupdate.getVisible()) {
+this.state = 3;
+}else {
+this.state = 5;
+}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+ //BA.debugLineNum = 554;BA.debugLine="p_appUpdate.Visible = False";
+parent._p_appupdate.setVisible(parent.__c.False);
+ if (true) break;
+
+case 5:
+//C
+this.state = 6;
+ //BA.debugLineNum = 556;BA.debugLine="Sleep(0)";
+parent.__c.Sleep(ba,this,(int) (0));
+this.state = 7;
+return;
+case 7:
+//C
+this.state = 6;
+;
+ //BA.debugLineNum = 557;BA.debugLine="ExitApplication";
+parent.__c.ExitApplication();
+ if (true) break;
+
+case 6:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 559;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 560;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 110;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 111;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 112;BA.debugLine="B4XPages.GetManager.LogEvents = True";
+_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (ba)._logevents /*boolean*/ = __c.True;
+ //BA.debugLineNum = 113;BA.debugLine="Root.LoadLayout(\"login\")";
+_root.LoadLayout("login",ba);
+ //BA.debugLineNum = 114;BA.debugLine="B4XPages.SetTitle(Me, \"Izca Reparto\")";
+_b4xpages._settitle /*String*/ (ba,this,(Object)("Izca Reparto"));
+ //BA.debugLineNum = 115;BA.debugLine="login.Initialize";
+_login._initialize /*String*/ (ba);
+ //BA.debugLineNum = 116;BA.debugLine="B4XPages.AddPage(\"Login\", login)";
+_b4xpages._addpage /*String*/ (ba,"Login",(Object)(_login));
+ //BA.debugLineNum = 117;BA.debugLine="principal.Initialize";
+_principal._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 118;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)";
+_b4xpages._addpage /*String*/ (ba,"Principal",(Object)(_principal));
+ //BA.debugLineNum = 119;BA.debugLine="clientes.Initialize";
+_clientes._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 120;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)";
+_b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(_clientes));
+ //BA.debugLineNum = 121;BA.debugLine="cliente.Initialize";
+_cliente._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 122;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)";
+_b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(_cliente));
+ //BA.debugLineNum = 125;BA.debugLine="productos.Initialize";
+_productos._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 126;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)";
+_b4xpages._addpage /*String*/ (ba,"Productos",(Object)(_productos));
+ //BA.debugLineNum = 127;BA.debugLine="updateAvailable.Initialize";
+_updateavailable._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 128;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab";
+_b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(_updateavailable));
+ //BA.debugLineNum = 129;BA.debugLine="mapas.Initialize";
+_mapas._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 130;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)";
+_b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(_mapas));
+ //BA.debugLineNum = 131;BA.debugLine="nuevoCliente.Initialize";
+_nuevocliente._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 132;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)";
+_b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(_nuevocliente));
+ //BA.debugLineNum = 133;BA.debugLine="ticketsDia.Initialize";
+_ticketsdia._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 134;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)";
+_b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(_ticketsdia));
+ //BA.debugLineNum = 135;BA.debugLine="noVenta.Initialize";
+_noventa._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 136;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)";
+_b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(_noventa));
+ //BA.debugLineNum = 137;BA.debugLine="pedidos.Initialize";
+_pedidos._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 138;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)";
+_b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(_pedidos));
+ //BA.debugLineNum = 139;BA.debugLine="buscar.Initialize";
+_buscar._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 140;BA.debugLine="B4XPages.AddPage(\"Buscar\", buscar)";
+_b4xpages._addpage /*String*/ (ba,"Buscar",(Object)(_buscar));
+ //BA.debugLineNum = 143;BA.debugLine="detalleVenta.Initialize";
+_detalleventa._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 144;BA.debugLine="B4XPages.AddPage(\"DetalleVenta\", detalleVenta)";
+_b4xpages._addpage /*String*/ (ba,"DetalleVenta",(Object)(_detalleventa));
+ //BA.debugLineNum = 145;BA.debugLine="detalle_promo.Initialize";
+_detalle_promo._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 146;BA.debugLine="B4XPages.AddPage(\"Detalle_Promo\", detalle_promo)";
+_b4xpages._addpage /*String*/ (ba,"Detalle_Promo",(Object)(_detalle_promo));
+ //BA.debugLineNum = 147;BA.debugLine="tabulador.Initialize";
+_tabulador._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 148;BA.debugLine="B4XPages.AddPage(\"tabulador\", tabulador)";
+_b4xpages._addpage /*String*/ (ba,"tabulador",(Object)(_tabulador));
+ //BA.debugLineNum = 149;BA.debugLine="checklist.Initialize";
+_checklist._initialize /*Object*/ (ba);
+ //BA.debugLineNum = 150;BA.debugLine="B4XPages.AddPage(\"checklist\",checklist)";
+_b4xpages._addpage /*String*/ (ba,"checklist",(Object)(_checklist));
+ //BA.debugLineNum = 151;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD3 (CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUMERIC, CAT_GP_ID TEXT, CAT_GP_NOMBRE TEXT, CAT_GP_IMP1 TEXT, CAT_GP_IMP2 TEXT, CAT_GP_PRECIO TEXT, CAT_GP_CLASIF TEXT, CAT_GP_STS TEXT, CAT_GP_TIPO TEXT, CAT_GP_SUBTIPO TEXT, CAT_GP_IMG BLOB)");
+ //BA.debugLineNum = 152;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CONVE";
+_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CONVERSION1","TEXT");
+ //BA.debugLineNum = 153;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_PRECI";
+_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_PRECIO4","TEXT");
+ //BA.debugLineNum = 154;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CANT_";
+_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CANT_MIN_VENTA","TEXT");
+ //BA.debugLineNum = 155;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOS (a_usuario TEXT, a_ruta TEXT, a_cliente TEXT, a_abono TEXT, a_fecha TEXT, a_enviado TEXT)");
+ //BA.debugLineNum = 156;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PAGARES (PA_ALMACEN TEXT, PA_RUTA_REP TEXT, PA_RUTAPREV TEXT, PA_FECHA_PREV TEXT, PA_CAPTURA TEXT, PA_MONTO TEXT, PA_USUARIO TEXT, PA_CLIENTE TEXT)");
+ //BA.debugLineNum = 157;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PICK_CIEGO (PC_ID_PROD TEXT, PC_NOM_PROD TEXT, PC_CANT TEXT, PC_ALMACEN TEXT, PC_RUTA TEXT, PC_FECHA TEXT)");
+ //BA.debugLineNum = 158;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ENV_MONTO_LIQ (EML_MONTO TEXT, EML_ALMACEN TEXT, EML_RUTA TEXT, EML_USUARIO TEXT, EML_FECHA_PED TEXT)");
+ //BA.debugLineNum = 159;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_MONEDAS(VEINTE TEXT, DIEZ TEXT, CINCO TEXT, DOS TEXT, PESO TEXT, CENTAVO TEXT, TOTAL TEXT)");
+ //BA.debugLineNum = 160;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_BILLETES(MIL TEXT, QUINIENTOS TEXT, DOCIENTOS TEXT, CIEN TEXT, CINCUENTA TEXT, VEINTE TEXT)");
+ //BA.debugLineNum = 161;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_VENTAS2 (HVD_PARCIAL TEXT, HVD_RECHAZO TEXT, HVD_NUM_REGISTRO TEXT, HVD_NUM_TICKET TEXT, HVD_PROID TEXT, HVD_CODPROMO TEXT, HVD_FECHA TEXT, HVD_ESTATUS TEXT, HVD_CLIENTE TEXT, HVD_PRONOMBRE TEXT, HVD_CANT TEXT, HVD_COSTO_TOT TEXT)");
+ //BA.debugLineNum = 163;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RECHAZOS (R_FECHA TEXT, R_CLIENTE TEXT, R_CLI_ORIG TEXT, R_PRODID TEXT, R_CANT TEXT, R_RECHAZO INT)");
+ //BA.debugLineNum = 164;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS VENTAS (V_FECHA TEXT, V_CLIENTE TEXT, V_CLI_ORIG TEXT, V_PRODID TEXT, V_CANT TEXT, V_RECHAZO INT)");
+ //BA.debugLineNum = 165;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOSP(NOTA TEXT, CLIENTE TEXT, SALDO_PENDIENTE TEXT)");
+ //BA.debugLineNum = 167;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECADO_CHECK(CHECADO TEXT)");
+ //BA.debugLineNum = 168;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS BLOCKENVIO(ENVIADO TEXT)");
+ //BA.debugLineNum = 170;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT , POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA_BUENESTADO TEXT, CARROCERIA_MALESTADO TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES_CORRECTO TEXT, LUCES_INCORRECTO TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS_CORRECTO TEXT, CONDICION_PLACAS_INCORRECTO TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB)");
+ //BA.debugLineNum = 171;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST2(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT, POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB, KILIMETRAJE TEXT, RUTA TEXT)");
+ //BA.debugLineNum = 172;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODREGISTRO\",";
+_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODREGISTRO","TEXT");
+ //BA.debugLineNum = 173;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"TIPO_PAGO\",\"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"ABONOS","TIPO_PAGO","TEXT");
+ //BA.debugLineNum = 174;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"CONSECUTIVO\",\"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"ABONOS","CONSECUTIVO","TEXT");
+ //BA.debugLineNum = 175;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"NUM_TICKET\",\"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"ABONOS","NUM_TICKET","TEXT");
+ //BA.debugLineNum = 176;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"RUTA_REP\",\"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"ABONOS","RUTA_REP","TEXT");
+ //BA.debugLineNum = 177;BA.debugLine="Subs.agregaColumna(\"NOVENTA\", \"NV_RUTA\", \"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"NOVENTA","NV_RUTA","TEXT");
+ //BA.debugLineNum = 178;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"SECUENCIA\", \"INT\"";
+_subs._agregacolumna /*String*/ (ba,"kmt_info","SECUENCIA","INT");
+ //BA.debugLineNum = 179;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"HORAENT\", \"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"kmt_info","HORAENT","TEXT");
+ //BA.debugLineNum = 180;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODID\", \"TEXT";
+_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODID","TEXT");
+ //BA.debugLineNum = 181;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CLIENTEOR\", \"TEX";
+_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CLIENTEOR","TEXT");
+ //BA.debugLineNum = 182;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CAJAS\", \"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CAJAS","TEXT");
+ //BA.debugLineNum = 183;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_REGALO\", \"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_REGALO","TEXT");
+ //BA.debugLineNum = 184;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_BCAJAS\", \"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_BCAJAS","TEXT");
+ //BA.debugLineNum = 185;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"CONSECUTIVO\", \"TEXT";
+_subs._agregacolumna /*String*/ (ba,"PEDIDO","CONSECUTIVO","TEXT");
+ //BA.debugLineNum = 186;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"FECHA_PREV\", \"TEXT\"";
+_subs._agregacolumna /*String*/ (ba,"PEDIDO","FECHA_PREV","TEXT");
+ //BA.debugLineNum = 187;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"RUTA_REP\", \"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"PEDIDO","RUTA_REP","TEXT");
+ //BA.debugLineNum = 188;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_CLI_ORIG\", \"TE";
+_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_CLI_ORIG","TEXT");
+ //BA.debugLineNum = 189;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRECIO\", \"TEXT";
+_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRECIO","TEXT");
+ //BA.debugLineNum = 190;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_RECHAZO\", \"INT";
+_subs._agregacolumna /*String*/ (ba,"REPARTO","REP_RECHAZO","INTEGER");
+ //BA.debugLineNum = 191;BA.debugLine="Subs.agregaColumna(\"RECHAZOS\", \"R_PRECIO\", \"TEXT\"";
+_subs._agregacolumna /*String*/ (ba,"RECHAZOS","R_PRECIO","TEXT");
+ //BA.debugLineNum = 192;BA.debugLine="Subs.agregaColumna(\"VENTAS\", \"V_PRECIO\", \"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"VENTAS","V_PRECIO","TEXT");
+ //BA.debugLineNum = 193;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"PLACA\",\"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","PLACA","TEXT");
+ //BA.debugLineNum = 194;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT");
+ //BA.debugLineNum = 195;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CONSECUTIVO\",\"T";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CONSECUTIVO","TEXT");
+ //BA.debugLineNum = 196;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT");
+ //BA.debugLineNum = 197;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"ESPROMO\",\"TEXT\"";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","ESPROMO","TEXT");
+ //BA.debugLineNum = 198;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANTC","TEXT");
+ //BA.debugLineNum = 199;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS\",\"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS","TEXT");
+ //BA.debugLineNum = 200;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC\",\"TEXT\")";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC","TEXT");
+ //BA.debugLineNum = 201;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS_OR\",\"TEX";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS_OR","TEXT");
+ //BA.debugLineNum = 202;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC_OR\",\"TEXT";
+_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC_OR","TEXT");
+ //BA.debugLineNum = 203;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"CONVERSION\",\"T";
+_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CONVERSION","TEXT");
+ //BA.debugLineNum = 204;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"PRECIOCONVER\",";
+_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","PRECIOCONVER","TEXT");
+ //BA.debugLineNum = 205;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTAA (RUTAA TEXT)");
+ //BA.debugLineNum = 206;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS wayPoints (codigo TEXT, indice INT)");
+ //BA.debugLineNum = 207;BA.debugLine="Dim server As String = \"http://keymon.net:1781\"";
+_server = "http://keymon.net:1781";
+ //BA.debugLineNum = 213;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 214;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
+__c.LogImpl("51572968",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
+ //BA.debugLineNum = 215;BA.debugLine="Label1.Text = Application.VersionName";
+_label1.setText(BA.ObjectToCharSequence(__c.Application.getVersionName()));
+ //BA.debugLineNum = 217;BA.debugLine="Log(\"provider\")";
+__c.LogImpl("51572971","provider",0);
+ //BA.debugLineNum = 218;BA.debugLine="Provider.Initialize";
+_provider._initialize /*String*/ (ba);
+ //BA.debugLineNum = 226;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 18;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 19;BA.debugLine="Dim rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 20;BA.debugLine="Private Root As B4XView";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 21;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 22;BA.debugLine="Private Root As B4XView";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 23;BA.debugLine="Public rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 24;BA.debugLine="Public login As B4XMainPage";
+_login = new reparto_izca.keymon.lat.b4xmainpage();
+ //BA.debugLineNum = 25;BA.debugLine="Public principal As C_Principal";
+_principal = new reparto_izca.keymon.lat.c_principal();
+ //BA.debugLineNum = 26;BA.debugLine="Public clientes As C_Clientes";
+_clientes = new reparto_izca.keymon.lat.c_clientes();
+ //BA.debugLineNum = 27;BA.debugLine="Public cliente As C_Cliente";
+_cliente = new reparto_izca.keymon.lat.c_cliente();
+ //BA.debugLineNum = 29;BA.debugLine="Public productos As C_Productos";
+_productos = new reparto_izca.keymon.lat.c_productos();
+ //BA.debugLineNum = 30;BA.debugLine="Public updateAvailable As C_UpdateAvailable";
+_updateavailable = new reparto_izca.keymon.lat.c_updateavailable();
+ //BA.debugLineNum = 31;BA.debugLine="Public mapas As C_Mapas";
+_mapas = new reparto_izca.keymon.lat.c_mapas();
+ //BA.debugLineNum = 32;BA.debugLine="Public nuevoCliente As C_NuevoCliente";
+_nuevocliente = new reparto_izca.keymon.lat.c_nuevocliente();
+ //BA.debugLineNum = 33;BA.debugLine="Public ticketsDia As C_TicketsDia";
+_ticketsdia = new reparto_izca.keymon.lat.c_ticketsdia();
+ //BA.debugLineNum = 34;BA.debugLine="Public noVenta As C_NoVenta";
+_noventa = new reparto_izca.keymon.lat.c_noventa();
+ //BA.debugLineNum = 35;BA.debugLine="Public pedidos As C_Pedidos";
+_pedidos = new reparto_izca.keymon.lat.c_pedidos();
+ //BA.debugLineNum = 36;BA.debugLine="Public buscar As C_Buscar";
+_buscar = new reparto_izca.keymon.lat.c_buscar();
+ //BA.debugLineNum = 38;BA.debugLine="Public detalleVenta As C_DetalleVenta";
+_detalleventa = new reparto_izca.keymon.lat.c_detalleventa();
+ //BA.debugLineNum = 39;BA.debugLine="Public detalle_promo As C_Detalle_Promo";
+_detalle_promo = new reparto_izca.keymon.lat.c_detalle_promo();
+ //BA.debugLineNum = 40;BA.debugLine="Dim reqManager As DBRequestManager";
+_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
+ //BA.debugLineNum = 42;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 43;BA.debugLine="Dim logger As Boolean = True";
+_logger = __c.True;
+ //BA.debugLineNum = 44;BA.debugLine="Dim lat_gps, lon_gps As String";
+_lat_gps = "";
+_lon_gps = "";
+ //BA.debugLineNum = 46;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 47;BA.debugLine="Dim server As String";
+_server = "";
+ //BA.debugLineNum = 48;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl";
+_montoactual = "";
+_clientestotal = "";
+_clientesventa = "";
+_clientesrechazo = "";
+_clientesvisitados = "";
+_almacen = "";
+_rutapreventa = "";
+_cantidadprod = "";
+ //BA.debugLineNum = 49;BA.debugLine="Dim ultimaActualizacionGPS As String = 235959";
+_ultimaactualizaciongps = BA.NumberToString(235959);
+ //BA.debugLineNum = 50;BA.debugLine="Dim fechaRuta As String";
+_fecharuta = "";
+ //BA.debugLineNum = 53;BA.debugLine="Dim srvIp As String";
+_srvip = "";
+ //BA.debugLineNum = 54;BA.debugLine="Dim phn As Phone";
+_phn = new anywheresoftware.b4a.phone.Phone();
+ //BA.debugLineNum = 55;BA.debugLine="Dim user As EditText";
+_user = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 56;BA.debugLine="Dim pass As EditText";
+_pass = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 57;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 58;BA.debugLine="Dim existe As String";
+_existe = "";
+ //BA.debugLineNum = 59;BA.debugLine="Dim paso1 As String";
+_paso1 = "";
+ //BA.debugLineNum = 60;BA.debugLine="Private IMEN As Label";
+_imen = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 61;BA.debugLine="Dim IMEI As String";
+_imei = "";
+ //BA.debugLineNum = 62;BA.debugLine="Private Label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 63;BA.debugLine="Dim server As String";
+_server = "";
+ //BA.debugLineNum = 64;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 65;BA.debugLine="Private Entrar As Button";
+_entrar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 66;BA.debugLine="Public checklist As C_Cheklist";
+_checklist = new reparto_izca.keymon.lat.c_cheklist();
+ //BA.debugLineNum = 67;BA.debugLine="Public tabulador As C_tabulador";
+_tabulador = new reparto_izca.keymon.lat.c_tabulador();
+ //BA.debugLineNum = 68;BA.debugLine="Dim batt As Int";
+_batt = 0;
+ //BA.debugLineNum = 69;BA.debugLine="Dim porVisitar, entregas, rechazos, montoEntregad";
+_porvisitar = "";
+_entregas = "";
+_rechazos = "";
+_montoentregado = "";
+_montorechazado = "";
+_visitadostotales = "";
+ //BA.debugLineNum = 70;BA.debugLine="Private p_appUpdate As Panel";
+_p_appupdate = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 71;BA.debugLine="Private i_engrane As ImageView";
+_i_engrane = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 72;BA.debugLine="Private b_server As Button";
+_b_server = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 73;BA.debugLine="Private b_apk As Button";
+_b_apk = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 74;BA.debugLine="Private b_envioBD As Button";
+_b_enviobd = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 75;BA.debugLine="Private b_regesar As Button";
+_b_regesar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 76;BA.debugLine="Private et_server As EditText";
+_et_server = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 77;BA.debugLine="Private p_serverList As Panel";
+_p_serverlist = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 78;BA.debugLine="Private lv_server As ListView";
+_lv_server = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 79;BA.debugLine="Public Provider As FileProvider";
+_provider = new reparto_izca.keymon.lat.fileprovider();
+ //BA.debugLineNum = 80;BA.debugLine="Public rutaBDBackup As String = \"\"";
+_rutabdbackup = "";
+ //BA.debugLineNum = 81;BA.debugLine="Private B_Can_Monto As Button";
+_b_can_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 82;BA.debugLine="Private B_Aceptar_Monto As Button";
+_b_aceptar_monto = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 83;BA.debugLine="Private ET_Add_Monto As EditText";
+_et_add_monto = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 84;BA.debugLine="Private p_add_monto As Panel";
+_p_add_monto = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 85;BA.debugLine="Dim sDate, sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 86;BA.debugLine="Private p_validacion As Panel";
+_p_validacion = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 87;BA.debugLine="Private b_cancelarcodigo As Button";
+_b_cancelarcodigo = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 88;BA.debugLine="Private b_aceptar As Button";
+_b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 89;BA.debugLine="Private et_codigo As EditText";
+_et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 90;BA.debugLine="Private P_CIEGO As Panel";
+_p_ciego = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 91;BA.debugLine="Private b_terpc As Button";
+_b_terpc = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 92;BA.debugLine="Private B_PC_ENV As Button";
+_b_pc_env = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 93;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView";
+_clv_pick_ciego = new b4a.example3.customlistview();
+ //BA.debugLineNum = 94;BA.debugLine="Private et_buspc As EditText";
+_et_buspc = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 95;BA.debugLine="Dim q_buscar As String";
+_q_buscar = "";
+ //BA.debugLineNum = 96;BA.debugLine="Dim d As Cursor";
+_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 97;BA.debugLine="Private L_PICK_CIEGO As Label";
+_l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 98;BA.debugLine="Private ET_PICK_CIEGO As EditText";
+_et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 99;BA.debugLine="Dim a As Cursor";
+_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 100;BA.debugLine="Dim f As Cursor";
+_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 101;BA.debugLine="Private b_abono As Button";
+_b_abono = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 102;BA.debugLine="Dim monto_entregadoactual As String";
+_monto_entregadoactual = "";
+ //BA.debugLineNum = 103;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _id_prod,String _prod,String _cant) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
+ //BA.debugLineNum = 980;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri";
+ //BA.debugLineNum = 981;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
+_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pa = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 982;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
+_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
+ //BA.debugLineNum = 983;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
+_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
+ //BA.debugLineNum = 984;BA.debugLine="pa.Height = 55dip";
+_pa.setHeight(__c.DipToCurrent((int) (55)));
+ //BA.debugLineNum = 985;BA.debugLine="pa.Width = 298dip";
+_pa.setWidth(__c.DipToCurrent((int) (298)));
+ //BA.debugLineNum = 987;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod";
+_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
+ //BA.debugLineNum = 988;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
+_l_pick_ciego.setTextSize((float) (12));
+ //BA.debugLineNum = 989;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
+_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
+ //BA.debugLineNum = 990;BA.debugLine="ET_PICK_CIEGO.Text = cant";
+_et_pick_ciego.setText(BA.ObjectToCharSequence(_cant));
+ //BA.debugLineNum = 993;BA.debugLine="Return pa";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
+ //BA.debugLineNum = 994;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _id_prod,String _prod) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _pa = null;
+ //BA.debugLineNum = 996;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str";
+ //BA.debugLineNum = 997;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
+_pa = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pa = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 998;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
+_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
+ //BA.debugLineNum = 999;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
+_pa.LoadLayout("PANEL_PICK_CIEGO",ba);
+ //BA.debugLineNum = 1000;BA.debugLine="pa.Height = 55dip";
+_pa.setHeight(__c.DipToCurrent((int) (55)));
+ //BA.debugLineNum = 1001;BA.debugLine="pa.Width = 298dip";
+_pa.setWidth(__c.DipToCurrent((int) (298)));
+ //BA.debugLineNum = 1003;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod";
+_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod));
+ //BA.debugLineNum = 1004;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
+_l_pick_ciego.setTextSize((float) (12));
+ //BA.debugLineNum = 1005;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
+_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL));
+ //BA.debugLineNum = 1008;BA.debugLine="Return pa";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject()));
+ //BA.debugLineNum = 1009;BA.debugLine="End Sub";
+return null;
+}
+public String _entrar_click() throws Exception{
+reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
+ //BA.debugLineNum = 268;BA.debugLine="Sub Entrar_Click";
+ //BA.debugLineNum = 269;BA.debugLine="If pass.Text = \"YA\" Then";
+if ((_pass.getText()).equals("YA")) {
+ //BA.debugLineNum = 270;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
+ //BA.debugLineNum = 271;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSION\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
+ //BA.debugLineNum = 272;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIOA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("ROOT"),(Object)("ROOT")}));
+ //BA.debugLineNum = 273;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_almac";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
+ //BA.debugLineNum = 274;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText())}));
+ //BA.debugLineNum = 275;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSION(";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")}));
+ //BA.debugLineNum = 278;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ }else {
+ //BA.debugLineNum = 280;BA.debugLine="c=Starter.skmt.ExecQuery2(\"select count(*) as EX";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{_user.getText()})));
+ //BA.debugLineNum = 281;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 282;BA.debugLine="existe = c.GetString(\"EXISTE1\")";
+_existe = _c.GetString("EXISTE1");
+ //BA.debugLineNum = 283;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 285;BA.debugLine="If existe = 0 Then";
+if ((_existe).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 287;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 288;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 289;BA.debugLine="cmd.Name = \"select_usuario_IZCA_REPG\"";
+_cmd.Name /*String*/ = "select_usuario_IZCA_REPG";
+ //BA.debugLineNum = 290;BA.debugLine="cmd.Parameters = Array As Object(user.Text, pas";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())};
+ //BA.debugLineNum = 291;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("usuario"));
+ //BA.debugLineNum = 293;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 294;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 295;BA.debugLine="cmd.Name = \"select_version_IZCA\"";
+_cmd.Name /*String*/ = "select_version_IZCA";
+ //BA.debugLineNum = 296;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("version"));
+ }else {
+ //BA.debugLineNum = 299;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ };
+ };
+ //BA.debugLineNum = 302;BA.debugLine="End Sub";
+return "";
+}
+public String _enviarmonto() throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _a2 = null;
+String[] _fecha = null;
+String[] _fecha2 = null;
+String _fecha3 = "";
+String[] _hora = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _ci = null;
+String _u = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _g = null;
+ //BA.debugLineNum = 660;BA.debugLine="Sub enviarmonto";
+ //BA.debugLineNum = 662;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 663;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 664;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 666;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec";
+_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 667;BA.debugLine="f.Position=0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 669;BA.debugLine="Private a As Cursor=Starter.skmt.ExecQuery(\"selec";
+_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 670;BA.debugLine="If a.RowCount>0 Then";
+if (_a.getRowCount()>0) {
+ //BA.debugLineNum = 671;BA.debugLine="a.Position=0";
+_a.setPosition((int) (0));
+ };
+ //BA.debugLineNum = 674;BA.debugLine="Private a2 As Cursor = Starter.skmt.ExecQuery(\"SE";
+_a2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_a2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
+ //BA.debugLineNum = 675;BA.debugLine="If a2.RowCount>0 Then";
+if (_a2.getRowCount()>0) {
+ //BA.debugLineNum = 676;BA.debugLine="a2.Position=0";
+_a2.setPosition((int) (0));
+ //BA.debugLineNum = 677;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", a2.GetS";
+_fecha = __c.Regex.Split(" ",_a2.GetString("HVD_FECHA"));
+ //BA.debugLineNum = 678;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha(";
+_fecha2 = __c.Regex.Split("-",_fecha[(int) (0)]);
+ //BA.debugLineNum = 679;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\"";
+_fecha3 = _fecha2[(int) (2)]+"/"+_fecha2[(int) (1)]+"/"+_fecha2[(int) (0)];
+ //BA.debugLineNum = 680;BA.debugLine="Log(fecha3)";
+__c.LogImpl("52621460",_fecha3,0);
+ //BA.debugLineNum = 681;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
+_hora = __c.Regex.Split("\\.",_fecha[(int) (1)]);
+ //BA.debugLineNum = 682;BA.debugLine="Log(hora(0))";
+__c.LogImpl("52621462",_hora[(int) (0)],0);
+ };
+ //BA.debugLineNum = 687;BA.debugLine="Private cI As Cursor";
+_ci = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 688;BA.debugLine="Private u As String = \"SinUsuario\"";
+_u = "SinUsuario";
+ //BA.debugLineNum = 689;BA.debugLine="cI=Starter.skmt.ExecQuery(\"select USUARIO from us";
+_ci = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 690;BA.debugLine="cI.Position=0";
+_ci.setPosition((int) (0));
+ //BA.debugLineNum = 691;BA.debugLine="If cI.RowCount > 0 Then u = cI.GetString(\"USUARIO";
+if (_ci.getRowCount()>0) {
+_u = _ci.GetString("USUARIO");};
+ //BA.debugLineNum = 692;BA.debugLine="Private g As Cursor = Starter.skmt.ExecQuery(\"sel";
+_g = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_g = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from ENV_MONTO_LIQ")));
+ //BA.debugLineNum = 725;BA.debugLine="p_add_monto.Visible = False";
+_p_add_monto.setVisible(__c.False);
+ //BA.debugLineNum = 727;BA.debugLine="End Sub";
+return "";
+}
+public String _et_buspc_textchanged(String _old,String _new) throws Exception{
+int _i = 0;
+ //BA.debugLineNum = 742;BA.debugLine="Private Sub et_buspc_TextChanged (Old As String, N";
+ //BA.debugLineNum = 743;BA.debugLine="If New = \"\" Then";
+if ((_new).equals("")) {
+ //BA.debugLineNum = 744;BA.debugLine="CLV_PICK_CIEGO.Clear";
+_clv_pick_ciego._clear();
+ }else if(_new.length()>=3) {
+ //BA.debugLineNum = 746;BA.debugLine="CLV_PICK_CIEGO.Clear";
+_clv_pick_ciego._clear();
+ //BA.debugLineNum = 748;BA.debugLine="q_buscar = \"%\" & et_buspc.Text & \"%\"";
+_q_buscar = "%"+_et_buspc.getText()+"%";
+ //BA.debugLineNum = 749;BA.debugLine="Log(q_buscar)";
+__c.LogImpl("52818055",_q_buscar,0);
+ //BA.debugLineNum = 750;BA.debugLine="c=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBRE";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID , ifnull(PC_CANT,0) AS PC_CANT FROM CAT_GUNAPROD3 INNER JOIN PICK_CIEGO ON PC_ID_PROD = CAT_GP_ID AND PC_NOM_PROD = CAT_GP_NOMBRE WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{_q_buscar,_q_buscar})));
+ //BA.debugLineNum = 751;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 754;BA.debugLine="For i = 0 To c.RowCount - 1";
+{
+final int step9 = 1;
+final int limit9 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit9 ;_i = _i + step9 ) {
+ //BA.debugLineNum = 755;BA.debugLine="c.Position = i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 756;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString(";
+_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("CAT_GP_ID"),_c.GetString("CAT_GP_NOMBRE"),_c.GetString("PC_CANT")).getObject())),(Object)(_i));
+ }
+};
+ //BA.debugLineNum = 759;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 761;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'AND CAT_GP_ID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO)"),new String[]{_q_buscar,_q_buscar})));
+ //BA.debugLineNum = 763;BA.debugLine="For i = 0 To d.RowCount - 1";
+{
+final int step15 = 1;
+final int limit15 = (int) (_d.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit15 ;_i = _i + step15 ) {
+ //BA.debugLineNum = 764;BA.debugLine="d.Position = i";
+_d.setPosition(_i);
+ //BA.debugLineNum = 765;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
+_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("CAT_GP_ID"),_d.GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
+ }
+};
+ //BA.debugLineNum = 768;BA.debugLine="d.Close";
+_d.Close();
+ }else if(_c.getRowCount()==0) {
+ //BA.debugLineNum = 771;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{_q_buscar,_q_buscar})));
+ //BA.debugLineNum = 773;BA.debugLine="For i = 0 To d.RowCount - 1";
+{
+final int step22 = 1;
+final int limit22 = (int) (_d.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit22 ;_i = _i + step22 ) {
+ //BA.debugLineNum = 774;BA.debugLine="d.Position = i";
+_d.setPosition(_i);
+ //BA.debugLineNum = 775;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
+_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("CAT_GP_ID"),_d.GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i));
+ }
+};
+ //BA.debugLineNum = 778;BA.debugLine="d.Close";
+_d.Close();
+ };
+ };
+ //BA.debugLineNum = 781;BA.debugLine="End Sub";
+return "";
+}
+public String _i_engrane_click() throws Exception{
+ //BA.debugLineNum = 534;BA.debugLine="Private Sub i_engrane_Click";
+ //BA.debugLineNum = 535;BA.debugLine="p_appUpdate.Width = Root.Width";
+_p_appupdate.setWidth(_root.getWidth());
+ //BA.debugLineNum = 536;BA.debugLine="p_appUpdate.Height = Root.Height";
+_p_appupdate.setHeight(_root.getHeight());
+ //BA.debugLineNum = 537;BA.debugLine="Subs.centraPanel(p_serverList, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_serverlist,_root.getWidth());
+ //BA.debugLineNum = 538;BA.debugLine="Subs.centraBoton(b_server, Root.Width)";
+_subs._centraboton /*String*/ (ba,_b_server,_root.getWidth());
+ //BA.debugLineNum = 539;BA.debugLine="Subs.centraBoton(b_apk, Root.Width)";
+_subs._centraboton /*String*/ (ba,_b_apk,_root.getWidth());
+ //BA.debugLineNum = 540;BA.debugLine="Subs.centraBoton(b_envioBD, Root.Width)";
+_subs._centraboton /*String*/ (ba,_b_enviobd,_root.getWidth());
+ //BA.debugLineNum = 541;BA.debugLine="Subs.centraBoton(b_regesar, Root.Width)";
+_subs._centraboton /*String*/ (ba,_b_regesar,_root.getWidth());
+ //BA.debugLineNum = 542;BA.debugLine="Subs.centraBoton(b_server, p_serverList.Width)";
+_subs._centraboton /*String*/ (ba,_b_server,_p_serverlist.getWidth());
+ //BA.debugLineNum = 543;BA.debugLine="lv_server.Clear";
+_lv_server.Clear();
+ //BA.debugLineNum = 544;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.net:1781\")";
+_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://keymon.net:1781"));
+ //BA.debugLineNum = 545;BA.debugLine="If user.Text = \"KMTS1\" Then lv_server.AddSingleLi";
+if ((_user.getText()).equals("KMTS1")) {
+_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://10.0.0.205:1782"));};
+ //BA.debugLineNum = 547;BA.debugLine="et_server.Text = server";
+_et_server.setText(BA.ObjectToCharSequence(_server));
+ //BA.debugLineNum = 548;BA.debugLine="Subs.panelVisible(p_appUpdate, 0, 0)";
+_subs._panelvisible /*String*/ (ba,_p_appupdate,(int) (0),(int) (0));
+ //BA.debugLineNum = 549;BA.debugLine="End Sub";
+return "";
+}
+public String _imageview1_longclick() throws Exception{
+ //BA.debugLineNum = 1011;BA.debugLine="Private Sub ImageView1_LongClick";
+ //BA.debugLineNum = 1013;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 105;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return "";
+}
+public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+reparto_izca.keymon.lat.dbrequestmanager._dbresult _result = null;
+Object[] _records = null;
+String _cat_ve_version = "";
+String _id_almacen = "";
+double _lat = 0;
+double _lon = 0;
+String _name = "";
+String _imei_base = "";
+String _cat_pa_pass = "";
+String _hvd_estatus = "";
+String _cuenta = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+ //BA.debugLineNum = 304;BA.debugLine="Sub JobDone(Job As HttpJob)";
+ //BA.debugLineNum = 305;BA.debugLine="If Job.Success = False Then";
+if (_job._success /*boolean*/ ==__c.False) {
+ //BA.debugLineNum = 306;BA.debugLine="ToastMessageShow(\"Error: \" & Job.ErrorMessage, T";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Error: "+_job._errormessage /*String*/ ),__c.True);
+ }else {
+ //BA.debugLineNum = 308;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 309;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 310;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("version"))) {
+ //BA.debugLineNum = 311;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group7 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen7 = group7.getSize()
+;int index7 = 0;
+;
+for (; index7 < groupLen7;index7++){
+_records = (Object[])(group7.Get(index7));
+ //BA.debugLineNum = 312;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
+ //BA.debugLineNum = 313;BA.debugLine="Dim CAT_VE_VERSION As String = records(result";
+_cat_ve_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_VERSION"))))]);
+ //BA.debugLineNum = 314;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 319;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 320;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 321;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("agencia"))) {
+ //BA.debugLineNum = 322;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group17 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen17 = group17.getSize()
+;int index17 = 0;
+;
+for (; index17 < groupLen17;index17++){
+_records = (Object[])(group17.Get(index17));
+ //BA.debugLineNum = 324;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
+_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("ID_ALMACEN"))))]);
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 329;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 330;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 331;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
+if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) {
+ //BA.debugLineNum = 332;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group25 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen25 = group25.getSize()
+;int index25 = 0;
+;
+for (; index25 < groupLen25;index25++){
+_records = (Object[])(group25.Get(index25));
+ //BA.debugLineNum = 333;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res";
+__c.LogImpl("51769501","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0);
+ //BA.debugLineNum = 334;BA.debugLine="Private lat, lon As Double";
+_lat = 0;
+_lon = 0;
+ //BA.debugLineNum = 335;BA.debugLine="lat = 0.0";
+_lat = 0.0;
+ //BA.debugLineNum = 336;BA.debugLine="lon = 0.0";
+_lon = 0.0;
+ //BA.debugLineNum = 337;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A";
+if (__c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])) && __c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]))) {
+ //BA.debugLineNum = 338;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT";
+_lat = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))]));
+ //BA.debugLineNum = 339;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON";
+_lon = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]));
+ };
+ //BA.debugLineNum = 341;BA.debugLine="Starter.cedisLocation.Latitude = lat";
+_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat);
+ //BA.debugLineNum = 342;BA.debugLine="Starter.cedisLocation.Longitude = lon";
+_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon);
+ //BA.debugLineNum = 343;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN")}));
+ //BA.debugLineNum = 344;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN"),(Object)(BA.NumberToString(_lon)+","+BA.NumberToString(_lat))}));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 350;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 351;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 352;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) {
+ //BA.debugLineNum = 353;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group44 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen44 = group44.getSize()
+;int index44 = 0;
+;
+for (; index44 < groupLen44;index44++){
+_records = (Object[])(group44.Get(index44));
+ //BA.debugLineNum = 354;BA.debugLine="Dim name As String = records(result.Columns.G";
+_name = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]);
+ //BA.debugLineNum = 355;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col";
+_id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_AGENCIA"))))]);
+ //BA.debugLineNum = 356;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
+_imei_base = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]);
+ }
+};
+ //BA.debugLineNum = 358;BA.debugLine="paso1 = 1";
+_paso1 = BA.NumberToString(1);
+ };
+ };
+ //BA.debugLineNum = 362;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 363;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 364;BA.debugLine="If result.Tag = \"contrasena\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("contrasena"))) {
+ //BA.debugLineNum = 365;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group55 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen55 = group55.getSize()
+;int index55 = 0;
+;
+for (; index55 < groupLen55;index55++){
+_records = (Object[])(group55.Get(index55));
+ //BA.debugLineNum = 366;BA.debugLine="Dim CAT_PA_PASS As String = records(result.Co";
+_cat_pa_pass = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_PASS"))))]);
+ //BA.debugLineNum = 367;BA.debugLine="If CAT_PA_PASS = et_codigo.Text Then";
+if ((_cat_pa_pass).equals(_et_codigo.getText())) {
+ //BA.debugLineNum = 368;BA.debugLine="Log(CAT_PA_PASS)";
+__c.LogImpl("51769536",_cat_pa_pass,0);
+ //BA.debugLineNum = 369;BA.debugLine="p_validacion.Visible = False";
+_p_validacion.setVisible(__c.False);
+ //BA.debugLineNum = 370;BA.debugLine="et_codigo.Text = \"\"";
+_et_codigo.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 372;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)";
+_subs._panelvisible /*String*/ (ba,_p_ciego,(int) (0),(int) (0));
+ }else {
+ //BA.debugLineNum = 375;BA.debugLine="MsgboxAsync(\"Contraseña incorrecta\",\"Atenció";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña incorrecta"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 424;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 425;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 426;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) {
+ //BA.debugLineNum = 427;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group71 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen71 = group71.getSize()
+;int index71 = 0;
+;
+for (; index71 < groupLen71;index71++){
+_records = (Object[])(group71.Get(index71));
+ //BA.debugLineNum = 428;BA.debugLine="Dim hvd_estatus As String = records(result.Co";
+_hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]);
+ //BA.debugLineNum = 429;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
+if ((_hvd_estatus).equals("Liquidado")) {
+ //BA.debugLineNum = 431;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
+__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 433;BA.debugLine="enviarmonto";
+_enviarmonto();
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 439;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 440;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 441;BA.debugLine="If result.Tag = \"estatus2\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("estatus2"))) {
+ //BA.debugLineNum = 442;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group84 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen84 = group84.getSize()
+;int index84 = 0;
+;
+for (; index84 < groupLen84;index84++){
+_records = (Object[])(group84.Get(index84));
+ //BA.debugLineNum = 443;BA.debugLine="Dim hvd_estatus As String = records(result.Co";
+_hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]);
+ //BA.debugLineNum = 444;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
+if ((_hvd_estatus).equals("Liquidado")) {
+ //BA.debugLineNum = 446;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
+__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 448;BA.debugLine="passaquci";
+_passaquci();
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 454;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 455;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 456;BA.debugLine="If result.Tag = \"SelectMontoLiq\" Then";
+if ((_result.Tag /*Object*/ ).equals((Object)("SelectMontoLiq"))) {
+ //BA.debugLineNum = 457;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group97 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen97 = group97.getSize()
+;int index97 = 0;
+;
+for (; index97 < groupLen97;index97++){
+_records = (Object[])(group97.Get(index97));
+ //BA.debugLineNum = 458;BA.debugLine="Dim CUENTA As String = records(result.Columns";
+_cuenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUENTA"))))]);
+ //BA.debugLineNum = 460;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 461;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 462;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 463;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"s";
+_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 464;BA.debugLine="f.Position=0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 465;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\"";
+_a = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 466;BA.debugLine="a.Position = 0";
+_a.setPosition((int) (0));
+ //BA.debugLineNum = 468;BA.debugLine="Private c2 As Cursor";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 469;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select USUARIO fro";
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 470;BA.debugLine="c2.Position=0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 471;BA.debugLine="If c2.RowCount > 0 Then c2.GetString(\"USUARIO";
+if (_c2.getRowCount()>0) {
+_c2.GetString("USUARIO");};
+ //BA.debugLineNum = 473;BA.debugLine="Log(CUENTA & \"----------------------!!\")";
+__c.LogImpl("51769641",_cuenta+"----------------------!!",0);
+ //BA.debugLineNum = 474;BA.debugLine="If CUENTA = \"0\" Then";
+if ((_cuenta).equals("0")) {
+ }else if((double)(Double.parseDouble(_cuenta))>(double)(Double.parseDouble("0"))) {
+ };
+ //BA.debugLineNum = 507;BA.debugLine="f.Close";
+_f.Close();
+ //BA.debugLineNum = 508;BA.debugLine="a.Close";
+_a.Close();
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 513;BA.debugLine="Job.Release";
+_job._release /*String*/ ();
+ };
+ //BA.debugLineNum = 516;BA.debugLine="If paso1 = 1 Then";
+if ((_paso1).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 517;BA.debugLine="If name = \"OKActivo\" Then";
+if ((_name).equals("OKActivo")) {
+ //BA.debugLineNum = 518;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa");
+ //BA.debugLineNum = 519;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())}));
+ //BA.debugLineNum = 520;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_alma";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen");
+ //BA.debugLineNum = 521;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALM";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)}));
+ //BA.debugLineNum = 522;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ }else if((_name).equals("OKExpirado"+_imei)) {
+ //BA.debugLineNum = 524;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrado";
+__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
+ }else if((_name).equals("OKCancelado"+_imei)) {
+ //BA.debugLineNum = 526;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administrad";
+__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
+ }else {
+ //BA.debugLineNum = 528;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ign";
+__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba);
+ };
+ //BA.debugLineNum = 530;BA.debugLine="paso1 = 0";
+_paso1 = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 532;BA.debugLine="End Sub";
+return "";
+}
+public String _lv_server_itemclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 604;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,";
+ //BA.debugLineNum = 605;BA.debugLine="server = Value";
+_server = BA.ObjectToString(_value);
+ //BA.debugLineNum = 607;BA.debugLine="et_server.Text = Value";
+_et_server.setText(BA.ObjectToCharSequence(_value));
+ //BA.debugLineNum = 608;BA.debugLine="reqManager.Initialize(Me, Value)";
+_reqmanager._initialize /*String*/ (ba,this,BA.ObjectToString(_value));
+ //BA.debugLineNum = 609;BA.debugLine="LogColor($\"ReqServer = ${Value}\"$, Colors.red)";
+__c.LogImpl("52228229",("ReqServer = "+__c.SmartStringFormatter("",_value)+""),__c.Colors.Red);
+ //BA.debugLineNum = 610;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Servidor modificado"),__c.False);
+ //BA.debugLineNum = 611;BA.debugLine="End Sub";
+return "";
+}
+public String _muestraprogreso(String _mensaje) throws Exception{
+ //BA.debugLineNum = 620;BA.debugLine="Sub muestraProgreso(mensaje As String)";
+ //BA.debugLineNum = 621;BA.debugLine="ProgressDialogShow(mensaje)";
+__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje));
+ //BA.debugLineNum = 622;BA.debugLine="End Sub";
+return "";
+}
+public String _ocultaprogreso() throws Exception{
+ //BA.debugLineNum = 625;BA.debugLine="Sub ocultaProgreso";
+ //BA.debugLineNum = 626;BA.debugLine="ProgressDialogHide";
+__c.ProgressDialogHide();
+ //BA.debugLineNum = 627;BA.debugLine="End Sub";
+return "";
+}
+public String _p_add_monto_click() throws Exception{
+ //BA.debugLineNum = 642;BA.debugLine="Private Sub p_add_monto_Click";
+ //BA.debugLineNum = 644;BA.debugLine="End Sub";
+return "";
+}
+public String _p_ciego_click() throws Exception{
+ //BA.debugLineNum = 924;BA.debugLine="Private Sub P_CIEGO_Click";
+ //BA.debugLineNum = 926;BA.debugLine="End Sub";
+return "";
+}
+public String _p_validacion_click() throws Exception{
+ //BA.debugLineNum = 976;BA.debugLine="Private Sub p_validacion_Click";
+ //BA.debugLineNum = 978;BA.debugLine="End Sub";
+return "";
+}
+public String _passaquci() throws Exception{
+ //BA.debugLineNum = 946;BA.debugLine="Sub passaquci";
+ //BA.debugLineNum = 947;BA.debugLine="f=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA from";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info")));
+ //BA.debugLineNum = 948;BA.debugLine="f.Position=0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 950;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
+_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 951;BA.debugLine="If a.RowCount>0 Then";
+if (_a.getRowCount()>0) {
+ //BA.debugLineNum = 952;BA.debugLine="a.Position=0";
+_a.setPosition((int) (0));
+ };
+ //BA.debugLineNum = 954;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
+__c.LogImpl("53145736",_a.GetString("ID_ALMACEN"),0);
+ //BA.debugLineNum = 955;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))";
+__c.LogImpl("53145737",_f.GetString("CAT_CL_RUTA"),0);
+ //BA.debugLineNum = 970;BA.debugLine="End Sub";
+return "";
+}
+public String _reinicializareqmanager() throws Exception{
+ //BA.debugLineNum = 613;BA.debugLine="Sub reinicializaReqManager";
+ //BA.debugLineNum = 614;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 615;BA.debugLine="If logger Then Log(B4XPages.MainPage.server)";
+if (_logger) {
+__c.LogImpl("52293762",_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);};
+ //BA.debugLineNum = 616;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
+__c.LogImpl("52293763",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
+ //BA.debugLineNum = 617;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "JOBDONE"))
+ return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xorderedmap.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xorderedmap.java
new file mode 100644
index 0000000..cc237b4
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xorderedmap.java
@@ -0,0 +1,178 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xorderedmap extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xorderedmap");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xorderedmap.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.collections.Map _map = null;
+public anywheresoftware.b4a.objects.collections.List _list = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private map As Map";
+_map = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 3;BA.debugLine="Private list As List";
+_list = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public String _clear() throws Exception{
+ //BA.debugLineNum = 26;BA.debugLine="Public Sub Clear";
+ //BA.debugLineNum = 27;BA.debugLine="list.Clear";
+_list.Clear();
+ //BA.debugLineNum = 28;BA.debugLine="map.Clear";
+_map.Clear();
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return "";
+}
+public boolean _containskey(Object _key) throws Exception{
+ //BA.debugLineNum = 46;BA.debugLine="Public Sub ContainsKey (Key As Object) As Boolean";
+ //BA.debugLineNum = 47;BA.debugLine="Return map.ContainsKey(Key)";
+if (true) return _map.ContainsKey(_key);
+ //BA.debugLineNum = 48;BA.debugLine="End Sub";
+return false;
+}
+public Object _get(Object _key) throws Exception{
+ //BA.debugLineNum = 37;BA.debugLine="Public Sub Get (Key As Object) As Object";
+ //BA.debugLineNum = 38;BA.debugLine="Return map.Get(Key)";
+if (true) return _map.Get(_key);
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+return null;
+}
+public Object _getdataforserializator() throws Exception{
+ //BA.debugLineNum = 65;BA.debugLine="Public Sub GetDataForSerializator As Object";
+ //BA.debugLineNum = 66;BA.debugLine="Return Array(map, list)";
+if (true) return (Object)(new Object[]{(Object)(_map.getObject()),(Object)(_list.getObject())});
+ //BA.debugLineNum = 67;BA.debugLine="End Sub";
+return null;
+}
+public Object _getdefault(Object _key,Object _defaultvalue) throws Exception{
+ //BA.debugLineNum = 42;BA.debugLine="Public Sub GetDefault (Key As Object, DefaultValue";
+ //BA.debugLineNum = 43;BA.debugLine="Return map.GetDefault(Key, DefaultValue)";
+if (true) return _map.GetDefault(_key,_defaultvalue);
+ //BA.debugLineNum = 44;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.collections.List _getkeys() throws Exception{
+ //BA.debugLineNum = 32;BA.debugLine="Public Sub getKeys As List";
+ //BA.debugLineNum = 33;BA.debugLine="Return list";
+if (true) return _list;
+ //BA.debugLineNum = 34;BA.debugLine="End Sub";
+return null;
+}
+public int _getsize() throws Exception{
+ //BA.debugLineNum = 50;BA.debugLine="Public Sub getSize As Int";
+ //BA.debugLineNum = 51;BA.debugLine="Return map.Size";
+if (true) return _map.getSize();
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return 0;
+}
+public anywheresoftware.b4a.objects.collections.List _getvalues() throws Exception{
+anywheresoftware.b4a.objects.collections.List _res = null;
+Object _key = null;
+ //BA.debugLineNum = 55;BA.debugLine="Public Sub getValues As List";
+ //BA.debugLineNum = 56;BA.debugLine="Dim res As List";
+_res = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 57;BA.debugLine="res.Initialize";
+_res.Initialize();
+ //BA.debugLineNum = 58;BA.debugLine="For Each key As Object In list";
+{
+final anywheresoftware.b4a.BA.IterableList group3 = _list;
+final int groupLen3 = group3.getSize()
+;int index3 = 0;
+;
+for (; index3 < groupLen3;index3++){
+_key = group3.Get(index3);
+ //BA.debugLineNum = 59;BA.debugLine="res.Add(map.Get(key))";
+_res.Add(_map.Get(_key));
+ }
+};
+ //BA.debugLineNum = 61;BA.debugLine="Return res";
+if (true) return _res;
+ //BA.debugLineNum = 62;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 6;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 7;BA.debugLine="map.Initialize";
+_map.Initialize();
+ //BA.debugLineNum = 8;BA.debugLine="list.Initialize";
+_list.Initialize();
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return "";
+}
+public String _put(Object _key,Object _value) throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Public Sub Put (Key As Object, Value As Object)";
+ //BA.debugLineNum = 13;BA.debugLine="If map.ContainsKey(Key) = False Then";
+if (_map.ContainsKey(_key)==__c.False) {
+ //BA.debugLineNum = 14;BA.debugLine="list.Add(Key)";
+_list.Add(_key);
+ };
+ //BA.debugLineNum = 16;BA.debugLine="map.Put(Key, Value)";
+_map.Put(_key,_value);
+ //BA.debugLineNum = 17;BA.debugLine="End Sub";
+return "";
+}
+public String _remove(Object _key) throws Exception{
+ //BA.debugLineNum = 20;BA.debugLine="Public Sub Remove (Key As Object)";
+ //BA.debugLineNum = 21;BA.debugLine="If map.ContainsKey(Key) = False Then Return";
+if (_map.ContainsKey(_key)==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 22;BA.debugLine="list.RemoveAt(list.IndexOf(Key))";
+_list.RemoveAt(_list.IndexOf(_key));
+ //BA.debugLineNum = 23;BA.debugLine="map.Remove(Key)";
+_map.Remove(_key);
+ //BA.debugLineNum = 24;BA.debugLine="End Sub";
+return "";
+}
+public String _setdatafromserializator(Object _data) throws Exception{
+Object[] _o = null;
+ //BA.debugLineNum = 70;BA.debugLine="Public Sub SetDataFromSerializator (Data As Object";
+ //BA.debugLineNum = 71;BA.debugLine="Dim o() As Object = Data";
+_o = (Object[])(_data);
+ //BA.debugLineNum = 72;BA.debugLine="map = o(0)";
+_map = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_o[(int) (0)]));
+ //BA.debugLineNum = 73;BA.debugLine="list = o(1)";
+_list = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_o[(int) (1)]));
+ //BA.debugLineNum = 74;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpages.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpages.java
new file mode 100644
index 0000000..ef500e0
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpages.java
@@ -0,0 +1,141 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xpages {
+private static b4xpages mostCurrent = new b4xpages();
+public static Object getObject() {
+ throw new RuntimeException("Code module does not support this method.");
+}
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public static Object _mpm = null;
+public static reparto_izca.keymon.lat.b4xpagesdelegator _delegate = null;
+public static Object _globalcontext = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _addmenuitem(anywheresoftware.b4a.BA _ba,Object _b4xpage,Object _title) throws Exception{
+ //BA.debugLineNum = 91;BA.debugLine="Public Sub AddMenuItem(B4XPage As Object, Title As";
+ //BA.debugLineNum = 92;BA.debugLine="Return GetManager.AddMenuItem(B4XPage, Title)";
+if (true) return _getmanager(_ba)._addmenuitem /*reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem*/ (_b4xpage,_title);
+ //BA.debugLineNum = 93;BA.debugLine="End Sub";
+return null;
+}
+public static String _addpage(anywheresoftware.b4a.BA _ba,String _id,Object _b4xpage) throws Exception{
+ //BA.debugLineNum = 37;BA.debugLine="Public Sub AddPage (Id As String, B4XPage As Objec";
+ //BA.debugLineNum = 38;BA.debugLine="GetManager.AddPage(Id, B4XPage)";
+_getmanager(_ba)._addpage /*String*/ (_id,_b4xpage);
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+return "";
+}
+public static String _addpageandcreate(anywheresoftware.b4a.BA _ba,String _id,Object _b4xpage) throws Exception{
+ //BA.debugLineNum = 42;BA.debugLine="Public Sub AddPageAndCreate (Id As String, B4XPage";
+ //BA.debugLineNum = 43;BA.debugLine="GetManager.AddPageAndCreate(Id, B4XPage)";
+_getmanager(_ba)._addpageandcreate /*String*/ (_id,_b4xpage);
+ //BA.debugLineNum = 44;BA.debugLine="End Sub";
+return "";
+}
+public static String _closepage(anywheresoftware.b4a.BA _ba,Object _b4xpage) throws Exception{
+ //BA.debugLineNum = 62;BA.debugLine="Public Sub ClosePage (B4XPage As Object)";
+ //BA.debugLineNum = 63;BA.debugLine="GetManager.ClosePage (B4XPage)";
+_getmanager(_ba)._closepage /*String*/ (_b4xpage);
+ //BA.debugLineNum = 64;BA.debugLine="End Sub";
+return "";
+}
+public static reparto_izca.keymon.lat.b4xpagesmanager _getmanager(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 14;BA.debugLine="Public Sub GetManager As B4XPagesManager";
+ //BA.debugLineNum = 15;BA.debugLine="Return mPM";
+if (true) return (reparto_izca.keymon.lat.b4xpagesmanager)(_mpm);
+ //BA.debugLineNum = 16;BA.debugLine="End Sub";
+return null;
+}
+public static anywheresoftware.b4a.objects.ActivityWrapper _getnativeparent(anywheresoftware.b4a.BA _ba,Object _b4xpage) throws Exception{
+ //BA.debugLineNum = 79;BA.debugLine="Public Sub GetNativeParent (B4XPage As Object) As";
+ //BA.debugLineNum = 87;BA.debugLine="Return GetManager.FindPIFromB4XPage(B4XPage).Pare";
+if (true) return _getmanager(_ba)._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (_b4xpage).Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ ;
+ //BA.debugLineNum = 88;BA.debugLine="End Sub";
+return null;
+}
+public static Object _getpage(anywheresoftware.b4a.BA _ba,String _id) throws Exception{
+ //BA.debugLineNum = 27;BA.debugLine="Public Sub GetPage (Id As String) As Object";
+ //BA.debugLineNum = 28;BA.debugLine="Return GetManager.GetPage(Id)";
+if (true) return _getmanager(_ba)._getpage /*Object*/ (_id);
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return null;
+}
+public static String _getpageid(anywheresoftware.b4a.BA _ba,Object _b4xpage) throws Exception{
+ //BA.debugLineNum = 32;BA.debugLine="Public Sub GetPageId (B4XPage As Object) As String";
+ //BA.debugLineNum = 33;BA.debugLine="Return GetManager.FindPIFromB4XPage(B4XPage).Id";
+if (true) return _getmanager(_ba)._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (_b4xpage).Id /*String*/ ;
+ //BA.debugLineNum = 34;BA.debugLine="End Sub";
+return "";
+}
+public static String _internalsetpagesmanager(anywheresoftware.b4a.BA _ba,Object _pm) throws Exception{
+ //BA.debugLineNum = 19;BA.debugLine="Public Sub InternalSetPagesManager(PM As Object)";
+ //BA.debugLineNum = 20;BA.debugLine="Delegate.Initialize";
+_delegate._initialize /*String*/ ((_ba.processBA == null ? _ba : _ba.processBA));
+ //BA.debugLineNum = 21;BA.debugLine="mPM = PM";
+_mpm = _pm;
+ //BA.debugLineNum = 22;BA.debugLine="End Sub";
+return "";
+}
+public static boolean _isinitialized(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 9;BA.debugLine="Public Sub IsInitialized As Boolean";
+ //BA.debugLineNum = 10;BA.debugLine="Return mPM Is B4XPagesManager";
+if (true) return _mpm instanceof reparto_izca.keymon.lat.b4xpagesmanager;
+ //BA.debugLineNum = 11;BA.debugLine="End Sub";
+return false;
+}
+public static reparto_izca.keymon.lat.b4xmainpage _mainpage(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 73;BA.debugLine="Public Sub MainPage As B4XMainPage";
+ //BA.debugLineNum = 74;BA.debugLine="Return GetManager.MainPage";
+if (true) return _getmanager(_ba)._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ ;
+ //BA.debugLineNum = 75;BA.debugLine="End Sub";
+return null;
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private mPM As Object";
+_mpm = new Object();
+ //BA.debugLineNum = 3;BA.debugLine="Public Delegate As B4XPagesDelegator";
+_delegate = new reparto_izca.keymon.lat.b4xpagesdelegator();
+ //BA.debugLineNum = 4;BA.debugLine="Public GlobalContext As Object";
+_globalcontext = new Object();
+ //BA.debugLineNum = 5;BA.debugLine="End Sub";
+return "";
+}
+public static String _settitle(anywheresoftware.b4a.BA _ba,Object _b4xpage,Object _title) throws Exception{
+ //BA.debugLineNum = 68;BA.debugLine="Public Sub SetTitle (B4XPage As Object, Title As O";
+ //BA.debugLineNum = 69;BA.debugLine="GetManager.SetTitle(B4XPage, Title)";
+_getmanager(_ba)._settitle /*String*/ (_b4xpage,_title);
+ //BA.debugLineNum = 70;BA.debugLine="End Sub";
+return "";
+}
+public static String _showpage(anywheresoftware.b4a.BA _ba,String _id) throws Exception{
+ //BA.debugLineNum = 50;BA.debugLine="Public Sub ShowPage (Id As String)";
+ //BA.debugLineNum = 51;BA.debugLine="GetManager.ShowPage(Id)";
+_getmanager(_ba)._showpage /*String*/ (_id);
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return "";
+}
+public static String _showpageandremovepreviouspages(anywheresoftware.b4a.BA _ba,String _id) throws Exception{
+ //BA.debugLineNum = 56;BA.debugLine="Public Sub ShowPageAndRemovePreviousPages (Id As S";
+ //BA.debugLineNum = 57;BA.debugLine="GetManager.ShowPageAndRemovePreviousPages (Id)";
+_getmanager(_ba)._showpageandremovepreviouspages /*String*/ (_id);
+ //BA.debugLineNum = 58;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesdelegator.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesdelegator.java
new file mode 100644
index 0000000..ebea0ff
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesdelegator.java
@@ -0,0 +1,105 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xpagesdelegator extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xpagesdelegator");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xpagesdelegator.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _activity_actionbarhomeclick() throws Exception{
+ //BA.debugLineNum = 35;BA.debugLine="Public Sub Activity_ActionBarHomeClick";
+ //BA.debugLineNum = 36;BA.debugLine="B4XPages.GetManager.Activity_ActionBarHomeClick";
+_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_actionbarhomeclick /*String*/ ();
+ //BA.debugLineNum = 37;BA.debugLine="End Sub";
+return "";
+}
+public boolean _activity_keypress(int _keycode) throws Exception{
+ //BA.debugLineNum = 27;BA.debugLine="Public Sub Activity_KeyPress (KeyCode As Int) As B";
+ //BA.debugLineNum = 28;BA.debugLine="Return B4XPages.GetManager.Activity_KeyPress (Key";
+if (true) return _b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_keypress /*boolean*/ (_keycode);
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return false;
+}
+public String _activity_pause() throws Exception{
+ //BA.debugLineNum = 52;BA.debugLine="Public Sub Activity_Pause";
+ //BA.debugLineNum = 53;BA.debugLine="B4XPages.GetManager.Activity_Pause";
+_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_pause /*String*/ ();
+ //BA.debugLineNum = 54;BA.debugLine="End Sub";
+return "";
+}
+public String _activity_permissionresult(String _permission,boolean _result) throws Exception{
+ //BA.debugLineNum = 31;BA.debugLine="Sub Activity_PermissionResult (Permission As Strin";
+ //BA.debugLineNum = 32;BA.debugLine="B4XPages.GetManager.RaiseEvent(B4XPages.GetManage";
+_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._raiseevent /*String*/ (_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (),"B4XPage_PermissionResult",new Object[]{(Object)(_permission),(Object)(_result)});
+ //BA.debugLineNum = 33;BA.debugLine="End Sub";
+return "";
+}
+public String _activity_resume() throws Exception{
+ //BA.debugLineNum = 48;BA.debugLine="Public Sub Activity_Resume";
+ //BA.debugLineNum = 49;BA.debugLine="B4XPages.GetManager.Activity_Resume";
+_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_resume /*String*/ ();
+ //BA.debugLineNum = 50;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="End Sub";
+return "";
+}
+public String _create_menu(Object _menu) throws Exception{
+ //BA.debugLineNum = 39;BA.debugLine="Public Sub Create_Menu (Menu As Object)";
+ //BA.debugLineNum = 40;BA.debugLine="B4XPages.GetManager.CreateMenu(Menu)";
+_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._createmenu /*String*/ (_menu);
+ //BA.debugLineNum = 41;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 4;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 6;BA.debugLine="End Sub";
+return "";
+}
+public String _mainform_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 44;BA.debugLine="Public Sub MainForm_Resize(Width As Double, Height";
+ //BA.debugLineNum = 45;BA.debugLine="B4XPages.GetManager.MainForm_Resize(Width, Height";
+_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._mainform_resize /*String*/ (_width,_height);
+ //BA.debugLineNum = 46;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesmanager.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesmanager.java
new file mode 100644
index 0000000..01f7db9
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesmanager.java
@@ -0,0 +1,1075 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xpagesmanager extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xpagesmanager");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xpagesmanager.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public reparto_izca.keymon.lat.b4xorderedmap _idtob4xpage = null;
+public reparto_izca.keymon.lat.b4xorderedmap _rootb4xtopage = null;
+public anywheresoftware.b4j.object.JavaObject _context = null;
+public reparto_izca.keymon.lat.b4xset _mstackofpageids = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.ActivityWrapper _mmainform = null;
+public boolean _showupindicator = false;
+public anywheresoftware.b4j.object.JavaObject _actionbar = null;
+public boolean _isforeground = false;
+public int _transitionanimationduration = 0;
+public reparto_izca.keymon.lat.b4xmainpage _mainpage = null;
+public String _stackstring = "";
+public boolean _logevents = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _b4xpageparent{
+public boolean IsInitialized;
+public anywheresoftware.b4a.objects.ActivityWrapper NativeType;
+public anywheresoftware.b4a.objects.collections.List MenuItems;
+public void Initialize() {
+IsInitialized = true;
+NativeType = new anywheresoftware.b4a.objects.ActivityWrapper();
+MenuItems = new anywheresoftware.b4a.objects.collections.List();
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public static class _b4amenuitem{
+public boolean IsInitialized;
+public Object Title;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper Bitmap;
+public String Tag;
+public boolean AddToBar;
+public anywheresoftware.b4j.object.JavaObject NativeMenuItem;
+public void Initialize() {
+IsInitialized = true;
+Title = new Object();
+Bitmap = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+Tag = "";
+AddToBar = false;
+NativeMenuItem = new anywheresoftware.b4j.object.JavaObject();
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public static class _b4xpageinfo{
+public boolean IsInitialized;
+public Object B4XPage;
+public String Id;
+public boolean Created;
+public Object Title;
+public anywheresoftware.b4a.objects.B4XViewWrapper Root;
+public boolean IsFirst;
+public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent Parent;
+public void Initialize() {
+IsInitialized = true;
+B4XPage = new Object();
+Id = "";
+Created = false;
+Title = new Object();
+Root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+IsFirst = false;
+Parent = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent();
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public String _activity_actionbarhomeclick() throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 129;BA.debugLine="Public Sub Activity_ActionBarHomeClick";
+ //BA.debugLineNum = 130;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage";
+_pi = _gettoppage();
+ //BA.debugLineNum = 131;BA.debugLine="If pi <> Null Then";
+if (_pi!= null) {
+ //BA.debugLineNum = 132;BA.debugLine="If CloseRequestExists (pi) Then";
+if (_closerequestexists(_pi)) {
+ //BA.debugLineNum = 133;BA.debugLine="HandleCloseRequest(pi)";
+_handlecloserequest(_pi);
+ }else {
+ //BA.debugLineNum = 135;BA.debugLine="ClosePage(pi.B4XPage)";
+_closepage(_pi.B4XPage /*Object*/ );
+ };
+ };
+ //BA.debugLineNum = 138;BA.debugLine="End Sub";
+return "";
+}
+public boolean _activity_keypress(int _keycode) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 468;BA.debugLine="Public Sub Activity_KeyPress (KeyCode As Int) As B";
+ //BA.debugLineNum = 469;BA.debugLine="If KeyCode = KeyCodes.KEYCODE_BACK Then";
+if (_keycode==__c.KeyCodes.KEYCODE_BACK) {
+ //BA.debugLineNum = 470;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage";
+_pi = _gettoppage();
+ //BA.debugLineNum = 471;BA.debugLine="If CloseRequestExists(pi) Then";
+if (_closerequestexists(_pi)) {
+ //BA.debugLineNum = 472;BA.debugLine="HandleCloseRequest(pi)";
+_handlecloserequest(_pi);
+ }else {
+ //BA.debugLineNum = 474;BA.debugLine="ClosePage(pi.B4XPage)";
+_closepage(_pi.B4XPage /*Object*/ );
+ };
+ //BA.debugLineNum = 476;BA.debugLine="Return True";
+if (true) return __c.True;
+ };
+ //BA.debugLineNum = 478;BA.debugLine="Return False";
+if (true) return __c.False;
+ //BA.debugLineNum = 479;BA.debugLine="End Sub";
+return false;
+}
+public String _activity_pause() throws Exception{
+ //BA.debugLineNum = 635;BA.debugLine="Public Sub Activity_Pause";
+ //BA.debugLineNum = 636;BA.debugLine="RaiseEventWithResult(GetTopPage, \"B4XPage_Disappe";
+_raiseeventwithresult(_gettoppage(),"B4XPage_Disappear",(Object[])(__c.Null));
+ //BA.debugLineNum = 637;BA.debugLine="BackgroundStateChanged(False)";
+_backgroundstatechanged(__c.False);
+ //BA.debugLineNum = 638;BA.debugLine="End Sub";
+return "";
+}
+public String _activity_resume() throws Exception{
+boolean _shouldraise = false;
+ //BA.debugLineNum = 610;BA.debugLine="Public Sub Activity_Resume";
+ //BA.debugLineNum = 611;BA.debugLine="Dim ShouldRaise As Boolean = IsForeground = False";
+_shouldraise = _isforeground==__c.False;
+ //BA.debugLineNum = 612;BA.debugLine="BackgroundStateChanged(True)";
+_backgroundstatechanged(__c.True);
+ //BA.debugLineNum = 613;BA.debugLine="If ShouldRaise Then";
+if (_shouldraise) {
+ //BA.debugLineNum = 614;BA.debugLine="RaiseEvent(GetTopPage, \"B4XPage_Appear\", Null)";
+_raiseevent(_gettoppage(),"B4XPage_Appear",(Object[])(__c.Null));
+ };
+ //BA.debugLineNum = 616;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _addmenuitem(Object _b4xpage,Object _title) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _mi = null;
+ //BA.debugLineNum = 481;BA.debugLine="Public Sub AddMenuItem (B4XPage As Object, Title A";
+ //BA.debugLineNum = 482;BA.debugLine="Dim mi As B4AMenuItem";
+_mi = new reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem();
+ //BA.debugLineNum = 483;BA.debugLine="mi.Initialize";
+_mi.Initialize();
+ //BA.debugLineNum = 484;BA.debugLine="mi.Title = Title";
+_mi.Title /*Object*/ = _title;
+ //BA.debugLineNum = 485;BA.debugLine="mi.Tag = Title";
+_mi.Tag /*String*/ = BA.ObjectToString(_title);
+ //BA.debugLineNum = 486;BA.debugLine="FindPIFromB4XPage(B4XPage).Parent.MenuItems.Add(m";
+_findpifromb4xpage(_b4xpage).Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_mi));
+ //BA.debugLineNum = 487;BA.debugLine="Return mi";
+if (true) return _mi;
+ //BA.debugLineNum = 488;BA.debugLine="End Sub";
+return null;
+}
+public String _addpage(String _id,Object _b4xpage) throws Exception{
+String _idtolower = "";
+ //BA.debugLineNum = 141;BA.debugLine="Public Sub AddPage (Id As String, B4XPage As Objec";
+ //BA.debugLineNum = 142;BA.debugLine="Dim IdToLower As String = Id.ToLowerCase";
+_idtolower = _id.toLowerCase();
+ //BA.debugLineNum = 143;BA.debugLine="If IdToB4XPage.ContainsKey(IdToLower) Then";
+if (_idtob4xpage._containskey /*boolean*/ ((Object)(_idtolower))) {
+ //BA.debugLineNum = 144;BA.debugLine="Log($\"Page with this id already exists: ${IdToLo";
+__c.LogImpl("947448067",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0);
+ //BA.debugLineNum = 145;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 147;BA.debugLine="IdToB4XPage.Put(IdToLower, CreateB4XPageInfo(B4XP";
+_idtob4xpage._put /*String*/ ((Object)(_idtolower),(Object)(_createb4xpageinfo(_b4xpage,_idtolower,__c.False,(Object)(_id))));
+ //BA.debugLineNum = 148;BA.debugLine="If IdToB4XPage.Size = 1 Then ShowPage(IdToLower)";
+if (_idtob4xpage._getsize /*int*/ ()==1) {
+_showpage(_idtolower);};
+ //BA.debugLineNum = 149;BA.debugLine="End Sub";
+return "";
+}
+public String _addpageandcreate(String _id,Object _b4xpage) throws Exception{
+ //BA.debugLineNum = 151;BA.debugLine="Public Sub AddPageAndCreate (Id As String, B4XPage";
+ //BA.debugLineNum = 152;BA.debugLine="AddPage (Id, B4XPage)";
+_addpage(_id,_b4xpage);
+ //BA.debugLineNum = 153;BA.debugLine="CreatePageIfNeeded(GetPageFromId(Id))";
+_createpageifneeded(_getpagefromid(_id));
+ //BA.debugLineNum = 154;BA.debugLine="End Sub";
+return "";
+}
+public String _backgroundstatechanged(boolean _newstate) throws Exception{
+String _ev = "";
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 618;BA.debugLine="Private Sub BackgroundStateChanged (NewState As Bo";
+ //BA.debugLineNum = 619;BA.debugLine="If IsForeground = NewState Then Return";
+if (_isforeground==_newstate) {
+if (true) return "";};
+ //BA.debugLineNum = 620;BA.debugLine="IsForeground = NewState";
+_isforeground = _newstate;
+ //BA.debugLineNum = 621;BA.debugLine="Dim ev As String";
+_ev = "";
+ //BA.debugLineNum = 622;BA.debugLine="If IsForeground Then ev = \"B4XPage_Foreground\" El";
+if (_isforeground) {
+_ev = "B4XPage_Foreground";}
+else {
+_ev = "B4XPage_Background";};
+ //BA.debugLineNum = 623;BA.debugLine="For Each pi As B4XPageInfo In IdToB4XPage.Values";
+{
+final anywheresoftware.b4a.BA.IterableList group5 = _idtob4xpage._getvalues /*anywheresoftware.b4a.objects.collections.List*/ ();
+final int groupLen5 = group5.getSize()
+;int index5 = 0;
+;
+for (; index5 < groupLen5;index5++){
+_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(group5.Get(index5));
+ //BA.debugLineNum = 624;BA.debugLine="If xui.SubExists(pi.B4XPage, ev, 0) Then";
+if (_xui.SubExists(ba,_pi.B4XPage /*Object*/ ,_ev,(int) (0))) {
+ //BA.debugLineNum = 625;BA.debugLine="LogEvent(pi, ev)";
+_logevent(_pi,_ev);
+ //BA.debugLineNum = 626;BA.debugLine="If IsForeground Then";
+if (_isforeground) {
+ //BA.debugLineNum = 627;BA.debugLine="CallSubDelayed(pi.B4XPage, ev)";
+__c.CallSubDelayed(ba,_pi.B4XPage /*Object*/ ,_ev);
+ }else {
+ //BA.debugLineNum = 629;BA.debugLine="CallSub(pi.B4XPage, ev)";
+__c.CallSubNew(ba,_pi.B4XPage /*Object*/ ,_ev);
+ };
+ };
+ }
+};
+ //BA.debugLineNum = 633;BA.debugLine="End Sub";
+return "";
+}
+public String _checkmainactivityorientations() throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+anywheresoftware.b4j.object.JavaObject _jme = null;
+boolean _isappcompat = false;
+anywheresoftware.b4j.object.JavaObject _pi = null;
+Object[] _activities = null;
+anywheresoftware.b4j.object.JavaObject _act = null;
+String _name = "";
+int _screenorientation = 0;
+ //BA.debugLineNum = 96;BA.debugLine="Private Sub CheckMainActivityOrientations";
+ //BA.debugLineNum = 98;BA.debugLine="Dim jo As JavaObject";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 99;BA.debugLine="jo.InitializeContext";
+_jo.InitializeContext(ba);
+ //BA.debugLineNum = 101;BA.debugLine="ActionBar = jo.RunMethod(\"getActionBar\", Null)";
+_actionbar = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("getActionBar",(Object[])(__c.Null))));
+ //BA.debugLineNum = 102;BA.debugLine="If ActionBar.IsInitialized = False Then";
+if (_actionbar.IsInitialized()==__c.False) {
+ //BA.debugLineNum = 103;BA.debugLine="Dim jme As JavaObject = Me";
+_jme = new anywheresoftware.b4j.object.JavaObject();
+_jme = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(this));
+ //BA.debugLineNum = 104;BA.debugLine="Dim IsAppCompat As Boolean = jme.RunMethod(\"chec";
+_isappcompat = BA.ObjectToBoolean(_jme.RunMethod("checkIfAppCompat",new Object[]{(Object)(_jo.getObject())}));
+ //BA.debugLineNum = 105;BA.debugLine="If IsAppCompat Then";
+if (_isappcompat) {
+ //BA.debugLineNum = 106;BA.debugLine="ActionBar = jo.RunMethod(\"getSupportActionBar\",";
+_actionbar = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("getSupportActionBar",(Object[])(__c.Null))));
+ };
+ };
+ //BA.debugLineNum = 110;BA.debugLine="Dim pi As JavaObject = jo.RunMethodJO(\"getPackage";
+_pi = new anywheresoftware.b4j.object.JavaObject();
+_pi = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethodJO("getPackageManager",(Object[])(__c.Null)).RunMethod("getPackageInfo",new Object[]{(Object)(__c.Application.getPackageName()),(Object)(1)})));
+ //BA.debugLineNum = 111;BA.debugLine="Dim activities() As Object = pi.GetField(\"activit";
+_activities = (Object[])(_pi.GetField("activities"));
+ //BA.debugLineNum = 112;BA.debugLine="For Each Act As JavaObject In activities";
+_act = new anywheresoftware.b4j.object.JavaObject();
+{
+final Object[] group13 = _activities;
+final int groupLen13 = group13.length
+;int index13 = 0;
+;
+for (; index13 < groupLen13;index13++){
+_act = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(group13[index13]));
+ //BA.debugLineNum = 113;BA.debugLine="Dim name As String = Act.GetField(\"name\")";
+_name = BA.ObjectToString(_act.GetField("name"));
+ //BA.debugLineNum = 114;BA.debugLine="If name.EndsWith(\".main\") Then";
+if (_name.endsWith(".main")) {
+ //BA.debugLineNum = 115;BA.debugLine="Dim screenOrientation As Int = Act.GetField(\"sc";
+_screenorientation = (int)(BA.ObjectToNumber(_act.GetField("screenOrientation")));
+ //BA.debugLineNum = 116;BA.debugLine="If screenOrientation = -1 Then";
+if (_screenorientation==-1) {
+ //BA.debugLineNum = 117;BA.debugLine="LogColor(\"#SupportedOrientations attribute mus";
+__c.LogImpl("947317013","#SupportedOrientations attribute must be set to landscape or portrait.",_xui.Color_Red);
+ };
+ };
+ }
+};
+ //BA.debugLineNum = 121;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 22;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 23;BA.debugLine="Private IdToB4XPage As B4XOrderedMap";
+_idtob4xpage = new reparto_izca.keymon.lat.b4xorderedmap();
+ //BA.debugLineNum = 24;BA.debugLine="Private RootB4XToPage As B4XOrderedMap";
+_rootb4xtopage = new reparto_izca.keymon.lat.b4xorderedmap();
+ //BA.debugLineNum = 26;BA.debugLine="Private Context As JavaObject";
+_context = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 27;BA.debugLine="Type B4XPageParent (NativeType As Activity, MenuI";
+;
+ //BA.debugLineNum = 28;BA.debugLine="Type B4AMenuItem (Title As Object, Bitmap As B4XB";
+;
+ //BA.debugLineNum = 34;BA.debugLine="Type B4XPageInfo (B4XPage As Object, Id As String";
+;
+ //BA.debugLineNum = 38;BA.debugLine="Public mStackOfPageIds As B4XSet";
+_mstackofpageids = new reparto_izca.keymon.lat.b4xset();
+ //BA.debugLineNum = 39;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 43;BA.debugLine="Private mMainForm As Activity";
+_mmainform = new anywheresoftware.b4a.objects.ActivityWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Public ShowUpIndicator As Boolean = True";
+_showupindicator = __c.True;
+ //BA.debugLineNum = 45;BA.debugLine="Public ActionBar As JavaObject";
+_actionbar = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 49;BA.debugLine="Public IsForeground As Boolean";
+_isforeground = false;
+ //BA.debugLineNum = 50;BA.debugLine="Public TransitionAnimationDuration As Int = 100";
+_transitionanimationduration = (int) (100);
+ //BA.debugLineNum = 51;BA.debugLine="Public MainPage As B4XMainPage";
+_mainpage = new reparto_izca.keymon.lat.b4xmainpage();
+ //BA.debugLineNum = 52;BA.debugLine="Private StackString As String";
+_stackstring = "";
+ //BA.debugLineNum = 53;BA.debugLine="Public LogEvents As Boolean = False";
+_logevents = __c.False;
+ //BA.debugLineNum = 54;BA.debugLine="End Sub";
+return "";
+}
+public String _closepage(Object _b4xpage) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+boolean _isclosingtoppage = false;
+ //BA.debugLineNum = 209;BA.debugLine="Public Sub ClosePage (B4XPage As Object)";
+ //BA.debugLineNum = 210;BA.debugLine="Dim pi As B4XPageInfo = FindPIFromB4XPage(B4XPage";
+_pi = _findpifromb4xpage(_b4xpage);
+ //BA.debugLineNum = 211;BA.debugLine="If mStackOfPageIds.Contains(pi.Id) = False Then R";
+if (_mstackofpageids._contains /*boolean*/ ((Object)(_pi.Id /*String*/ ))==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 212;BA.debugLine="If xui.IsB4i And GetTopPage <> pi Then";
+if (_xui.getIsB4i() && (_gettoppage()).equals(_pi) == false) {
+ //BA.debugLineNum = 213;BA.debugLine="Log(\"Only top page can be closed\")";
+__c.LogImpl("947710212","Only top page can be closed",0);
+ //BA.debugLineNum = 214;BA.debugLine="Return";
+if (true) return "";
+ }else if(_xui.getIsB4i() && _mstackofpageids._getsize /*int*/ ()==1) {
+ //BA.debugLineNum = 216;BA.debugLine="Log(\"First page cannot be closed\")";
+__c.LogImpl("947710215","First page cannot be closed",0);
+ //BA.debugLineNum = 217;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 219;BA.debugLine="Dim IsClosingTopPage As Boolean = GetTopPage = pi";
+_isclosingtoppage = (_gettoppage()).equals(_pi);
+ //BA.debugLineNum = 220;BA.debugLine="ClosePageImpl(pi)";
+_closepageimpl(_pi);
+ //BA.debugLineNum = 221;BA.debugLine="If IsClosingTopPage Then";
+if (_isclosingtoppage) {
+ //BA.debugLineNum = 222;BA.debugLine="TopPageDisappear";
+_toppagedisappear();
+ };
+ //BA.debugLineNum = 224;BA.debugLine="If xui.IsB4A And mStackOfPageIds.Size = 1 Then Re";
+if (_xui.getIsB4A() && _mstackofpageids._getsize /*int*/ ()==1) {
+if (true) return "";};
+ //BA.debugLineNum = 225;BA.debugLine="mStackOfPageIds.Remove(pi.Id)";
+_mstackofpageids._remove /*String*/ ((Object)(_pi.Id /*String*/ ));
+ //BA.debugLineNum = 226;BA.debugLine="If IsClosingTopPage Then";
+if (_isclosingtoppage) {
+ //BA.debugLineNum = 227;BA.debugLine="If xui.IsB4A Then ShowPageImpl(GetTopPage)";
+if (_xui.getIsB4A()) {
+_showpageimpl(_gettoppage());};
+ //BA.debugLineNum = 228;BA.debugLine="TopPageAppear";
+_toppageappear();
+ };
+ //BA.debugLineNum = 230;BA.debugLine="End Sub";
+return "";
+}
+public String _closepageimpl(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{
+anywheresoftware.b4a.objects.IntentWrapper _i = null;
+ //BA.debugLineNum = 315;BA.debugLine="Private Sub ClosePageImpl (pi As B4XPageInfo) 'ign";
+ //BA.debugLineNum = 317;BA.debugLine="If mStackOfPageIds.Size = 1 Then";
+if (_mstackofpageids._getsize /*int*/ ()==1) {
+ //BA.debugLineNum = 318;BA.debugLine="Dim i As Intent";
+_i = new anywheresoftware.b4a.objects.IntentWrapper();
+ //BA.debugLineNum = 319;BA.debugLine="i.Initialize(i.ACTION_MAIN, \"\")";
+_i.Initialize(_i.ACTION_MAIN,"");
+ //BA.debugLineNum = 320;BA.debugLine="i.AddCategory(\"android.intent.category.HOME\")";
+_i.AddCategory("android.intent.category.HOME");
+ //BA.debugLineNum = 321;BA.debugLine="i.Flags = 0x10000000";
+_i.setFlags(((int)0x10000000));
+ //BA.debugLineNum = 322;BA.debugLine="StartActivity(i)";
+__c.StartActivity(ba,(Object)(_i.getObject()));
+ }else {
+ //BA.debugLineNum = 324;BA.debugLine="pi.Root.RemoveViewFromParent";
+_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent();
+ };
+ //BA.debugLineNum = 331;BA.debugLine="End Sub";
+return "";
+}
+public boolean _closerequestexists(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{
+ //BA.debugLineNum = 534;BA.debugLine="Private Sub CloseRequestExists (pi As B4XPageInfo)";
+ //BA.debugLineNum = 535;BA.debugLine="Return xui.SubExists(pi.B4XPage, \"B4XPage_CloseRe";
+if (true) return _xui.SubExists(ba,_pi.B4XPage /*Object*/ ,"B4XPage_CloseRequest",(int) (0));
+ //BA.debugLineNum = 536;BA.debugLine="End Sub";
+return false;
+}
+public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _createb4xpageinfo(Object _b4xpage,String _id,boolean _created,Object _title) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _t1 = null;
+ //BA.debugLineNum = 420;BA.debugLine="Private Sub CreateB4XPageInfo (B4XPage As Object,";
+ //BA.debugLineNum = 421;BA.debugLine="Dim t1 As B4XPageInfo";
+_t1 = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo();
+ //BA.debugLineNum = 422;BA.debugLine="t1.Initialize";
+_t1.Initialize();
+ //BA.debugLineNum = 423;BA.debugLine="t1.B4XPage = B4XPage";
+_t1.B4XPage /*Object*/ = _b4xpage;
+ //BA.debugLineNum = 424;BA.debugLine="t1.Id = Id";
+_t1.Id /*String*/ = _id;
+ //BA.debugLineNum = 425;BA.debugLine="t1.Created = Created";
+_t1.Created /*boolean*/ = _created;
+ //BA.debugLineNum = 426;BA.debugLine="t1.Title = Title";
+_t1.Title /*Object*/ = _title;
+ //BA.debugLineNum = 427;BA.debugLine="Return t1";
+if (true) return _t1;
+ //BA.debugLineNum = 428;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent _createb4xpageparent(Object _nativetype) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent _t1 = null;
+ //BA.debugLineNum = 598;BA.debugLine="Private Sub CreateB4XPageParent (NativeType As Obj";
+ //BA.debugLineNum = 604;BA.debugLine="Dim t1 As B4XPageParent";
+_t1 = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent();
+ //BA.debugLineNum = 605;BA.debugLine="t1.Initialize";
+_t1.Initialize();
+ //BA.debugLineNum = 606;BA.debugLine="t1.NativeType = NativeType";
+_t1.NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ = (anywheresoftware.b4a.objects.ActivityWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ActivityWrapper(), (anywheresoftware.b4a.BALayout)(_nativetype));
+ //BA.debugLineNum = 607;BA.debugLine="Return t1";
+if (true) return _t1;
+ //BA.debugLineNum = 608;BA.debugLine="End Sub";
+return null;
+}
+public String _createmenu(Object _menu) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+anywheresoftware.b4j.object.JavaObject _jo = null;
+reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _mi = null;
+anywheresoftware.b4j.object.JavaObject _nativemenuitem = null;
+anywheresoftware.b4a.objects.drawable.BitmapDrawable _bd = null;
+anywheresoftware.b4j.object.JavaObject _listener = null;
+ //BA.debugLineNum = 494;BA.debugLine="Public Sub CreateMenu (Menu As Object)";
+ //BA.debugLineNum = 495;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage";
+_pi = _gettoppage();
+ //BA.debugLineNum = 496;BA.debugLine="If pi = Null Then Return";
+if (_pi== null) {
+if (true) return "";};
+ //BA.debugLineNum = 497;BA.debugLine="Dim jo As JavaObject = Menu";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_menu));
+ //BA.debugLineNum = 498;BA.debugLine="For Each mi As B4AMenuItem In pi.Parent.MenuItems";
+{
+final anywheresoftware.b4a.BA.IterableList group4 = _pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen4 = group4.getSize()
+;int index4 = 0;
+;
+for (; index4 < groupLen4;index4++){
+_mi = (reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem)(group4.Get(index4));
+ //BA.debugLineNum = 499;BA.debugLine="Dim NativeMenuItem As JavaObject = jo.RunMethod(";
+_nativemenuitem = new anywheresoftware.b4j.object.JavaObject();
+_nativemenuitem = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("add",new Object[]{_mi.Title /*Object*/ })));
+ //BA.debugLineNum = 500;BA.debugLine="If mi.Bitmap.IsInitialized Then";
+if (_mi.Bitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .IsInitialized()) {
+ //BA.debugLineNum = 501;BA.debugLine="Dim bd As BitmapDrawable";
+_bd = new anywheresoftware.b4a.objects.drawable.BitmapDrawable();
+ //BA.debugLineNum = 502;BA.debugLine="bd.Initialize(mi.Bitmap)";
+_bd.Initialize((android.graphics.Bitmap)(_mi.Bitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getObject()));
+ //BA.debugLineNum = 503;BA.debugLine="NativeMenuItem.RunMethod(\"setIcon\", Array(bd))";
+_nativemenuitem.RunMethod("setIcon",new Object[]{(Object)(_bd.getObject())});
+ };
+ //BA.debugLineNum = 505;BA.debugLine="If mi.AddToBar Then";
+if (_mi.AddToBar /*boolean*/ ) {
+ //BA.debugLineNum = 506;BA.debugLine="NativeMenuItem.RunMethod(\"setShowAsAction\", Arr";
+_nativemenuitem.RunMethod("setShowAsAction",new Object[]{(Object)(1)});
+ };
+ //BA.debugLineNum = 508;BA.debugLine="Dim listener As JavaObject";
+_listener = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 509;BA.debugLine="listener.InitializeNewInstance(Application.Packa";
+_listener.InitializeNewInstance(__c.Application.getPackageName()+".b4xpagesmanager$PagesMenuListener",new Object[]{_pi.B4XPage /*Object*/ ,(Object)(_mi.Tag /*String*/ )});
+ //BA.debugLineNum = 510;BA.debugLine="NativeMenuItem.RunMethod(\"setOnMenuItemClickList";
+_nativemenuitem.RunMethod("setOnMenuItemClickListener",new Object[]{(Object)(_listener.getObject())});
+ }
+};
+ //BA.debugLineNum = 512;BA.debugLine="End Sub";
+return "";
+}
+public String _createpageifneeded(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{
+ //BA.debugLineNum = 352;BA.debugLine="Private Sub CreatePageIfNeeded(pi As B4XPageInfo)";
+ //BA.debugLineNum = 353;BA.debugLine="If pi.Created Then Return";
+if (_pi.Created /*boolean*/ ) {
+if (true) return "";};
+ //BA.debugLineNum = 354;BA.debugLine="pi.IsFirst = IdToB4XPage.Size = 1";
+_pi.IsFirst /*boolean*/ = _idtob4xpage._getsize /*int*/ ()==1;
+ //BA.debugLineNum = 355;BA.debugLine="CreatePageImpl (pi)";
+_createpageimpl(_pi);
+ //BA.debugLineNum = 356;BA.debugLine="pi.Created = True";
+_pi.Created /*boolean*/ = __c.True;
+ //BA.debugLineNum = 357;BA.debugLine="RootB4XToPage.Put(pi.Root, pi)";
+_rootb4xtopage._put /*String*/ ((Object)(_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(Object)(_pi));
+ //BA.debugLineNum = 358;BA.debugLine="LogEvent(pi, \"B4XPage_Created\")";
+_logevent(_pi,"B4XPage_Created");
+ //BA.debugLineNum = 359;BA.debugLine="CallSub2(pi.B4XPage, \"B4XPage_Created\", pi.root)";
+__c.CallSubNew2(ba,_pi.B4XPage /*Object*/ ,"B4XPage_Created",(Object)(_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ));
+ //BA.debugLineNum = 361;BA.debugLine="End Sub";
+return "";
+}
+public String _createpageimpl(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{
+ //BA.debugLineNum = 369;BA.debugLine="Private Sub CreatePageImpl (pi As B4XPageInfo)";
+ //BA.debugLineNum = 381;BA.debugLine="pi.Root = xui.CreatePanel(\"root\")";
+_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _xui.CreatePanel(ba,"root");
+ //BA.debugLineNum = 382;BA.debugLine="pi.root.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)";
+_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
+ //BA.debugLineNum = 383;BA.debugLine="pi.Parent = CreateB4XPageParent(mMainForm)";
+_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ = _createb4xpageparent((Object)(_mmainform.getObject()));
+ //BA.debugLineNum = 384;BA.debugLine="pi.Parent.MenuItems.Initialize";
+_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
+ //BA.debugLineNum = 392;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _findpifromb4xpage(Object _page) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 306;BA.debugLine="Public Sub FindPIFromB4XPage (Page As Object) As B";
+ //BA.debugLineNum = 307;BA.debugLine="For Each pi As B4XPageInfo In IdToB4XPage.Values";
+{
+final anywheresoftware.b4a.BA.IterableList group1 = _idtob4xpage._getvalues /*anywheresoftware.b4a.objects.collections.List*/ ();
+final int groupLen1 = group1.getSize()
+;int index1 = 0;
+;
+for (; index1 < groupLen1;index1++){
+_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(group1.Get(index1));
+ //BA.debugLineNum = 308;BA.debugLine="If pi.B4XPage = Page Then";
+if ((_pi.B4XPage /*Object*/ ).equals(_page)) {
+ //BA.debugLineNum = 309;BA.debugLine="Return pi";
+if (true) return _pi;
+ };
+ }
+};
+ //BA.debugLineNum = 312;BA.debugLine="Return Null";
+if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__c.Null);
+ //BA.debugLineNum = 313;BA.debugLine="End Sub";
+return null;
+}
+public Object _getpage(String _id) throws Exception{
+ //BA.debugLineNum = 394;BA.debugLine="Public Sub GetPage (Id As String) As Object";
+ //BA.debugLineNum = 395;BA.debugLine="Return GetPageFromId(Id).B4XPage";
+if (true) return _getpagefromid(_id).B4XPage /*Object*/ ;
+ //BA.debugLineNum = 396;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _getpagefromid(String _id) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 398;BA.debugLine="Private Sub GetPageFromId (id As String) As B4XPag";
+ //BA.debugLineNum = 399;BA.debugLine="Dim pi As B4XPageInfo = IdToB4XPage.Get(id.ToLowe";
+_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(_idtob4xpage._get /*Object*/ ((Object)(_id.toLowerCase())));
+ //BA.debugLineNum = 400;BA.debugLine="If pi = Null Then";
+if (_pi== null) {
+ //BA.debugLineNum = 401;BA.debugLine="Log(\"Error: page id not found: \" & id)";
+__c.LogImpl("948365571","Error: page id not found: "+_id,0);
+ //BA.debugLineNum = 402;BA.debugLine="Log(\"Ids: \" & IdToB4XPage.Keys) 'ignore";
+__c.LogImpl("948365572","Ids: "+BA.ObjectToString(_idtob4xpage._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ()),0);
+ };
+ //BA.debugLineNum = 404;BA.debugLine="Return pi";
+if (true) return _pi;
+ //BA.debugLineNum = 405;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _getpageinfofromroot(anywheresoftware.b4a.objects.B4XViewWrapper _root) throws Exception{
+ //BA.debugLineNum = 407;BA.debugLine="Public Sub GetPageInfoFromRoot (Root As B4XView) A";
+ //BA.debugLineNum = 408;BA.debugLine="Return RootB4XToPage.Get(Root)";
+if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(_rootb4xtopage._get /*Object*/ ((Object)(_root.getObject())));
+ //BA.debugLineNum = 409;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _gettoppage() throws Exception{
+ //BA.debugLineNum = 592;BA.debugLine="Public Sub GetTopPage As B4XPageInfo";
+ //BA.debugLineNum = 593;BA.debugLine="If mStackOfPageIds.Size = 0 Then Return Null";
+if (_mstackofpageids._getsize /*int*/ ()==0) {
+if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__c.Null);};
+ //BA.debugLineNum = 594;BA.debugLine="Return IdToB4XPage.Get(mStackOfPageIds.AsList.Get";
+if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(_idtob4xpage._get /*Object*/ (_mstackofpageids._aslist /*anywheresoftware.b4a.objects.collections.List*/ ().Get((int) (_mstackofpageids._getsize /*int*/ ()-1))));
+ //BA.debugLineNum = 595;BA.debugLine="End Sub";
+return null;
+}
+public void _handlecloserequest(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{
+ResumableSub_HandleCloseRequest rsub = new ResumableSub_HandleCloseRequest(this,_pi);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_HandleCloseRequest extends BA.ResumableSub {
+public ResumableSub_HandleCloseRequest(reparto_izca.keymon.lat.b4xpagesmanager parent,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) {
+this.parent = parent;
+this._pi = _pi;
+}
+reparto_izca.keymon.lat.b4xpagesmanager parent;
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi;
+anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _rs = null;
+boolean _shouldclose = false;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 539;BA.debugLine="LogEvent(pi, \"B4XPage_CloseRequest\")";
+parent._logevent(_pi,"B4XPage_CloseRequest");
+ //BA.debugLineNum = 540;BA.debugLine="Dim rs As ResumableSub = CallSub(pi.B4XPage, \"B4X";
+_rs = new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper();
+_rs = (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), (anywheresoftware.b4a.BA.ResumableSub)(parent.__c.CallSubNew(ba,_pi.B4XPage /*Object*/ ,"B4XPage_CloseRequest")));
+ //BA.debugLineNum = 541;BA.debugLine="Wait For (rs) Complete (ShouldClose As Boolean)";
+parent.__c.WaitFor("complete", ba, this, _rs);
+this.state = 5;
+return;
+case 5:
+//C
+this.state = 1;
+_shouldclose = (Boolean) result[0];
+;
+ //BA.debugLineNum = 542;BA.debugLine="If ShouldClose Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 4;
+if (_shouldclose) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 543;BA.debugLine="ClosePage(pi.B4XPage)";
+parent._closepage(_pi.B4XPage /*Object*/ );
+ if (true) break;
+
+case 4:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 545;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _complete(boolean _shouldclose) throws Exception{
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ActivityWrapper _activity) throws Exception{
+innerInitialize(_ba);
+anywheresoftware.b4j.object.JavaObject _jo = null;
+anywheresoftware.b4j.object.JavaObject _module = null;
+boolean _nonmainpagewasadded = false;
+ //BA.debugLineNum = 59;BA.debugLine="Public Sub Initialize (Activity As Activity)";
+ //BA.debugLineNum = 63;BA.debugLine="IdToB4XPage.Initialize";
+_idtob4xpage._initialize /*String*/ (ba);
+ //BA.debugLineNum = 64;BA.debugLine="RootB4XToPage.Initialize";
+_rootb4xtopage._initialize /*String*/ (ba);
+ //BA.debugLineNum = 65;BA.debugLine="mStackOfPageIds.Initialize";
+_mstackofpageids._initialize /*String*/ (ba);
+ //BA.debugLineNum = 69;BA.debugLine="Context.InitializeContext";
+_context.InitializeContext(ba);
+ //BA.debugLineNum = 70;BA.debugLine="mMainForm = Activity";
+_mmainform = _activity;
+ //BA.debugLineNum = 71;BA.debugLine="CheckMainActivityOrientations";
+_checkmainactivityorientations();
+ //BA.debugLineNum = 72;BA.debugLine="Dim jo As JavaObject = Me";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(this));
+ //BA.debugLineNum = 73;BA.debugLine="Dim module As JavaObject";
+_module = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 74;BA.debugLine="module.InitializeStatic(jo.RunMethodJO(\"getActivi";
+_module.InitializeStatic(BA.ObjectToString(_jo.RunMethodJO("getActivityBA",(Object[])(__c.Null)).GetField("className"))).SetField("dontPause",(Object)(__c.True));
+ //BA.debugLineNum = 78;BA.debugLine="B4XPages.InternalSetPagesManager(Me)";
+_b4xpages._internalsetpagesmanager /*String*/ (ba,this);
+ //BA.debugLineNum = 79;BA.debugLine="MainPage.Initialize";
+_mainpage._initialize /*String*/ (ba);
+ //BA.debugLineNum = 80;BA.debugLine="Dim NonMainPageWasAdded As Boolean = IdToB4XPage.";
+_nonmainpagewasadded = _idtob4xpage._getsize /*int*/ ()>0;
+ //BA.debugLineNum = 81;BA.debugLine="IdToB4XPage.Put(\"~~~~~temp~~~~\", CreateB4XPageInf";
+_idtob4xpage._put /*String*/ ((Object)("~~~~~temp~~~~"),(Object)(_createb4xpageinfo((Object)(_mainpage),"",__c.False,(Object)(""))));
+ //BA.debugLineNum = 82;BA.debugLine="BackgroundStateChanged(True)";
+_backgroundstatechanged(__c.True);
+ //BA.debugLineNum = 83;BA.debugLine="IdToB4XPage.Remove(\"~~~~~temp~~~~\")";
+_idtob4xpage._remove /*String*/ ((Object)("~~~~~temp~~~~"));
+ //BA.debugLineNum = 84;BA.debugLine="AddPageAndCreate(\"MainPage\", MainPage)";
+_addpageandcreate("MainPage",(Object)(_mainpage));
+ //BA.debugLineNum = 85;BA.debugLine="If LogEvents = False Then";
+if (_logevents==__c.False) {
+ //BA.debugLineNum = 86;BA.debugLine="Log(\"Call B4XPages.GetManager.LogEvents = True t";
+__c.LogImpl("947251483","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0);
+ };
+ //BA.debugLineNum = 88;BA.debugLine="If NonMainPageWasAdded Then";
+if (_nonmainpagewasadded) {
+ //BA.debugLineNum = 89;BA.debugLine="If Not(xui.IsB4i) Then";
+if (__c.Not(_xui.getIsB4i())) {
+ //BA.debugLineNum = 90;BA.debugLine="RaiseEvent(GetTopPage, \"B4XPage_Appear\", Null)";
+_raiseevent(_gettoppage(),"B4XPage_Appear",(Object[])(__c.Null));
+ };
+ };
+ //BA.debugLineNum = 93;BA.debugLine="End Sub";
+return "";
+}
+public String _logevent(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi,String _ev) throws Exception{
+String _msg = "";
+ //BA.debugLineNum = 640;BA.debugLine="Private Sub LogEvent (pi As B4XPageInfo, ev As Str";
+ //BA.debugLineNum = 641;BA.debugLine="If LogEvents Then";
+if (_logevents) {
+ //BA.debugLineNum = 642;BA.debugLine="Dim msg As String = $\"*** ${pi.Id}: ${ev} ${Stac";
+_msg = ("*** "+__c.SmartStringFormatter("",(Object)(_pi.Id /*String*/ ))+": "+__c.SmartStringFormatter("",(Object)(_ev))+" "+__c.SmartStringFormatter("",(Object)(_stackstring))+"");
+ //BA.debugLineNum = 643;BA.debugLine="Log(msg)";
+__c.LogImpl("949479683",_msg,0);
+ };
+ //BA.debugLineNum = 645;BA.debugLine="End Sub";
+return "";
+}
+public String _mainform_resize(double _width,double _height) throws Exception{
+int _w = 0;
+int _h = 0;
+ //BA.debugLineNum = 585;BA.debugLine="Public Sub MainForm_Resize(Width As Double, Height";
+ //BA.debugLineNum = 586;BA.debugLine="Dim w As Int = Width";
+_w = (int) (_width);
+ //BA.debugLineNum = 587;BA.debugLine="Dim h As Int = Height";
+_h = (int) (_height);
+ //BA.debugLineNum = 588;BA.debugLine="RaiseEvent(GetPageInfoFromRoot(Sender), \"B4XPage_";
+_raiseevent(_getpageinfofromroot((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))),"B4XPage_Resize",new Object[]{(Object)(_w),(Object)(_h)});
+ //BA.debugLineNum = 589;BA.debugLine="End Sub";
+return "";
+}
+public String _raiseevent(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _targetpage,String _subname,Object[] _params) throws Exception{
+int _length = 0;
+ //BA.debugLineNum = 548;BA.debugLine="Public Sub RaiseEvent (TargetPage As B4XPageInfo,";
+ //BA.debugLineNum = 549;BA.debugLine="If TargetPage = Null Then Return";
+if (_targetpage== null) {
+if (true) return "";};
+ //BA.debugLineNum = 550;BA.debugLine="Dim length As Int";
+_length = 0;
+ //BA.debugLineNum = 551;BA.debugLine="If Params = Null Then length = 0 Else length = Pa";
+if (_params== null) {
+_length = (int) (0);}
+else {
+_length = _params.length;};
+ //BA.debugLineNum = 552;BA.debugLine="LogEvent(TargetPage, SubName)";
+_logevent(_targetpage,_subname);
+ //BA.debugLineNum = 553;BA.debugLine="If xui.SubExists(TargetPage.B4XPage, SubName, len";
+if (_xui.SubExists(ba,_targetpage.B4XPage /*Object*/ ,_subname,_length)==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 554;BA.debugLine="Select length";
+switch (_length) {
+case 0: {
+ //BA.debugLineNum = 556;BA.debugLine="CallSubDelayed(TargetPage.B4XPage, SubName)";
+__c.CallSubDelayed(ba,_targetpage.B4XPage /*Object*/ ,_subname);
+ break; }
+case 1: {
+ //BA.debugLineNum = 558;BA.debugLine="CallSubDelayed2(TargetPage.B4XPage, SubName, Pa";
+__c.CallSubDelayed2(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0)]);
+ break; }
+case 2: {
+ //BA.debugLineNum = 560;BA.debugLine="CallSubDelayed3(TargetPage.B4XPage, SubName, Pa";
+__c.CallSubDelayed3(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0)],_params[(int) (1)]);
+ break; }
+default: {
+ //BA.debugLineNum = 562;BA.debugLine="Log(\"Too many parameters\")";
+__c.LogImpl("948955406","Too many parameters",0);
+ break; }
+}
+;
+ //BA.debugLineNum = 564;BA.debugLine="End Sub";
+return "";
+}
+public Object _raiseeventwithresult(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _targetpage,String _subname,Object[] _params) throws Exception{
+int _length = 0;
+ //BA.debugLineNum = 566;BA.debugLine="Public Sub RaiseEventWithResult (TargetPage As B4X";
+ //BA.debugLineNum = 567;BA.debugLine="If TargetPage = Null Then Return Null";
+if (_targetpage== null) {
+if (true) return __c.Null;};
+ //BA.debugLineNum = 568;BA.debugLine="Dim length As Int";
+_length = 0;
+ //BA.debugLineNum = 569;BA.debugLine="If Params = Null Then length = 0 Else length = Pa";
+if (_params== null) {
+_length = (int) (0);}
+else {
+_length = _params.length;};
+ //BA.debugLineNum = 570;BA.debugLine="LogEvent(TargetPage, SubName)";
+_logevent(_targetpage,_subname);
+ //BA.debugLineNum = 571;BA.debugLine="If xui.SubExists(TargetPage.B4XPage, SubName, len";
+if (_xui.SubExists(ba,_targetpage.B4XPage /*Object*/ ,_subname,_length)==__c.False) {
+if (true) return __c.Null;};
+ //BA.debugLineNum = 572;BA.debugLine="Select length";
+switch (_length) {
+case 0: {
+ //BA.debugLineNum = 574;BA.debugLine="Return CallSub(TargetPage.B4XPage, SubName)";
+if (true) return __c.CallSubNew(ba,_targetpage.B4XPage /*Object*/ ,_subname);
+ break; }
+case 1: {
+ //BA.debugLineNum = 576;BA.debugLine="Return CallSub2(TargetPage.B4XPage, SubName, Pa";
+if (true) return __c.CallSubNew2(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0)]);
+ break; }
+case 2: {
+ //BA.debugLineNum = 578;BA.debugLine="Return CallSub3(TargetPage.B4XPage, SubName, Pa";
+if (true) return __c.CallSubNew3(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0)],_params[(int) (1)]);
+ break; }
+default: {
+ //BA.debugLineNum = 580;BA.debugLine="Log(\"Too many parameters\")";
+__c.LogImpl("949020942","Too many parameters",0);
+ break; }
+}
+;
+ //BA.debugLineNum = 582;BA.debugLine="Return Null";
+if (true) return __c.Null;
+ //BA.debugLineNum = 583;BA.debugLine="End Sub";
+return null;
+}
+public String _settitle(Object _b4xpage,Object _title) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 363;BA.debugLine="Public Sub SetTitle (B4XPage As Object, Title As O";
+ //BA.debugLineNum = 364;BA.debugLine="Dim pi As B4XPageInfo = FindPIFromB4XPage(B4XPage";
+_pi = _findpifromb4xpage(_b4xpage);
+ //BA.debugLineNum = 365;BA.debugLine="pi.Title = Title";
+_pi.Title /*Object*/ = _title;
+ //BA.debugLineNum = 366;BA.debugLine="pi.Parent.NativeType.Title = Title";
+_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ .setTitle(BA.ObjectToCharSequence(_title));
+ //BA.debugLineNum = 367;BA.debugLine="End Sub";
+return "";
+}
+public String _showpage(String _id) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _top = null;
+ //BA.debugLineNum = 156;BA.debugLine="Public Sub ShowPage (Id As String)";
+ //BA.debugLineNum = 157;BA.debugLine="Dim pi As B4XPageInfo = GetPageFromId(Id)";
+_pi = _getpagefromid(_id);
+ //BA.debugLineNum = 158;BA.debugLine="If pi = GetTopPage Then Return";
+if ((_pi).equals(_gettoppage())) {
+if (true) return "";};
+ //BA.debugLineNum = 159;BA.debugLine="CreatePageIfNeeded(pi)";
+_createpageifneeded(_pi);
+ //BA.debugLineNum = 160;BA.debugLine="TopPageDisappear";
+_toppagedisappear();
+ //BA.debugLineNum = 162;BA.debugLine="Dim Top As B4XPageInfo = GetTopPage";
+_top = _gettoppage();
+ //BA.debugLineNum = 163;BA.debugLine="If Top <> Null Then";
+if (_top!= null) {
+ //BA.debugLineNum = 164;BA.debugLine="Top.Root.RemoveViewFromParent";
+_top.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent();
+ };
+ //BA.debugLineNum = 174;BA.debugLine="mStackOfPageIds.Remove(pi.Id)";
+_mstackofpageids._remove /*String*/ ((Object)(_pi.Id /*String*/ ));
+ //BA.debugLineNum = 175;BA.debugLine="ShowPageImpl(pi)";
+_showpageimpl(_pi);
+ //BA.debugLineNum = 176;BA.debugLine="mStackOfPageIds.Add(pi.Id)";
+_mstackofpageids._add /*String*/ ((Object)(_pi.Id /*String*/ ));
+ //BA.debugLineNum = 177;BA.debugLine="TopPageAppear";
+_toppageappear();
+ //BA.debugLineNum = 178;BA.debugLine="End Sub";
+return "";
+}
+public String _showpageandremovepreviouspages(String _id) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pagetoremove = null;
+ //BA.debugLineNum = 180;BA.debugLine="Public Sub ShowPageAndRemovePreviousPages (Id As S";
+ //BA.debugLineNum = 181;BA.debugLine="If GetTopPage = Null Then";
+if (_gettoppage()== null) {
+ //BA.debugLineNum = 182;BA.debugLine="ShowPage(Id)";
+_showpage(_id);
+ //BA.debugLineNum = 183;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 185;BA.debugLine="Dim pi As B4XPageInfo = GetPageFromId(Id)";
+_pi = _getpagefromid(_id);
+ //BA.debugLineNum = 186;BA.debugLine="CreatePageIfNeeded(pi)";
+_createpageifneeded(_pi);
+ //BA.debugLineNum = 187;BA.debugLine="TopPageDisappear";
+_toppagedisappear();
+ //BA.debugLineNum = 191;BA.debugLine="For Each Id As String In mStackOfPageIds.AsList";
+{
+final anywheresoftware.b4a.BA.IterableList group8 = _mstackofpageids._aslist /*anywheresoftware.b4a.objects.collections.List*/ ();
+final int groupLen8 = group8.getSize()
+;int index8 = 0;
+;
+for (; index8 < groupLen8;index8++){
+_id = BA.ObjectToString(group8.Get(index8));
+ //BA.debugLineNum = 192;BA.debugLine="Dim PageToRemove As B4XPageInfo = GetPageFromId(";
+_pagetoremove = _getpagefromid(_id);
+ //BA.debugLineNum = 194;BA.debugLine="PageToRemove.Root.RemoveViewFromParent";
+_pagetoremove.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent();
+ }
+};
+ //BA.debugLineNum = 201;BA.debugLine="mStackOfPageIds.Clear";
+_mstackofpageids._clear /*String*/ ();
+ //BA.debugLineNum = 202;BA.debugLine="mStackOfPageIds.Add(pi.Id)";
+_mstackofpageids._add /*String*/ ((Object)(_pi.Id /*String*/ ));
+ //BA.debugLineNum = 203;BA.debugLine="If xui.IsB4A Or xui.IsB4J Then";
+if (_xui.getIsB4A() || _xui.getIsB4J()) {
+ //BA.debugLineNum = 204;BA.debugLine="ShowPageImpl(pi)";
+_showpageimpl(_pi);
+ };
+ //BA.debugLineNum = 206;BA.debugLine="TopPageAppear";
+_toppageappear();
+ //BA.debugLineNum = 207;BA.debugLine="End Sub";
+return "";
+}
+public String _showpageimpl(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{
+anywheresoftware.b4a.objects.PanelWrapper _pnl = null;
+ //BA.debugLineNum = 333;BA.debugLine="Private Sub ShowPageImpl (pi As B4XPageInfo)";
+ //BA.debugLineNum = 339;BA.debugLine="If pi.Root.Parent.IsInitialized Then pi.Root.Remo";
+if (_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().IsInitialized()) {
+_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent();};
+ //BA.debugLineNum = 340;BA.debugLine="Dim pnl As Panel = pi.Root";
+_pnl = new anywheresoftware.b4a.objects.PanelWrapper();
+_pnl = (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()));
+ //BA.debugLineNum = 341;BA.debugLine="If TransitionAnimationDuration > 0 Then";
+if (_transitionanimationduration>0) {
+ //BA.debugLineNum = 342;BA.debugLine="mMainForm.AddView(pnl, 0, 0, 20dip, 20dip)";
+_mmainform.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)));
+ //BA.debugLineNum = 343;BA.debugLine="pnl.SetLayoutAnimated(TransitionAnimationDuratio";
+_pnl.SetLayoutAnimated(_transitionanimationduration,(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
+ }else {
+ //BA.debugLineNum = 345;BA.debugLine="mMainForm.AddView(pnl, 0, 0, 100%x, 100%y)";
+_mmainform.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
+ };
+ //BA.debugLineNum = 350;BA.debugLine="End Sub";
+return "";
+}
+public String _toppageappear() throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 288;BA.debugLine="Private Sub TopPageAppear";
+ //BA.debugLineNum = 289;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage";
+_pi = _gettoppage();
+ //BA.debugLineNum = 290;BA.debugLine="If pi = Null Then Return";
+if (_pi== null) {
+if (true) return "";};
+ //BA.debugLineNum = 291;BA.debugLine="pi.Parent.NativeType.Title = pi.Title";
+_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ .setTitle(BA.ObjectToCharSequence(_pi.Title /*Object*/ ));
+ //BA.debugLineNum = 292;BA.debugLine="If Not(xui.IsB4i) Then";
+if (__c.Not(_xui.getIsB4i())) {
+ //BA.debugLineNum = 293;BA.debugLine="If IsForeground Then";
+if (_isforeground) {
+ //BA.debugLineNum = 294;BA.debugLine="RaiseEvent(pi, \"B4XPage_Appear\", Null)";
+_raiseevent(_pi,"B4XPage_Appear",(Object[])(__c.Null));
+ };
+ };
+ //BA.debugLineNum = 298;BA.debugLine="If ShowUpIndicator And ActionBar.IsInitialized Th";
+if (_showupindicator && _actionbar.IsInitialized()) {
+ //BA.debugLineNum = 299;BA.debugLine="ActionBar.RunMethod(\"setDisplayHomeAsUpEnabled\",";
+_actionbar.RunMethod("setDisplayHomeAsUpEnabled",new Object[]{(Object)(_mstackofpageids._getsize /*int*/ ()>1)});
+ };
+ //BA.debugLineNum = 301;BA.debugLine="UpdateMenuItems";
+_updatemenuitems();
+ //BA.debugLineNum = 303;BA.debugLine="UpdateStackString";
+_updatestackstring();
+ //BA.debugLineNum = 304;BA.debugLine="End Sub";
+return "";
+}
+public String _toppagedisappear() throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null;
+ //BA.debugLineNum = 277;BA.debugLine="Private Sub TopPageDisappear";
+ //BA.debugLineNum = 278;BA.debugLine="If xui.IsB4J Then Return";
+if (_xui.getIsB4J()) {
+if (true) return "";};
+ //BA.debugLineNum = 279;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage";
+_pi = _gettoppage();
+ //BA.debugLineNum = 280;BA.debugLine="If pi = Null Then Return";
+if (_pi== null) {
+if (true) return "";};
+ //BA.debugLineNum = 281;BA.debugLine="If Not(xui.IsB4i) Then";
+if (__c.Not(_xui.getIsB4i())) {
+ //BA.debugLineNum = 282;BA.debugLine="If IsForeground Then";
+if (_isforeground) {
+ //BA.debugLineNum = 283;BA.debugLine="RaiseEventWithResult(pi, \"B4XPage_Disappear\", N";
+_raiseeventwithresult(_pi,"B4XPage_Disappear",(Object[])(__c.Null));
+ };
+ };
+ //BA.debugLineNum = 286;BA.debugLine="End Sub";
+return "";
+}
+public String _updatemenuitems() throws Exception{
+ //BA.debugLineNum = 490;BA.debugLine="Private Sub UpdateMenuItems";
+ //BA.debugLineNum = 491;BA.debugLine="Context.RunMethod(\"invalidateOptionsMenu\", Null)";
+_context.RunMethod("invalidateOptionsMenu",(Object[])(__c.Null));
+ //BA.debugLineNum = 492;BA.debugLine="End Sub";
+return "";
+}
+public String _updatestackstring() throws Exception{
+anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
+String _id = "";
+ //BA.debugLineNum = 647;BA.debugLine="Public Sub UpdateStackString";
+ //BA.debugLineNum = 648;BA.debugLine="Dim sb As StringBuilder";
+_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
+ //BA.debugLineNum = 649;BA.debugLine="sb.Initialize";
+_sb.Initialize();
+ //BA.debugLineNum = 650;BA.debugLine="sb.Append(\"[\")";
+_sb.Append("[");
+ //BA.debugLineNum = 651;BA.debugLine="If mStackOfPageIds.Size > 0 Then";
+if (_mstackofpageids._getsize /*int*/ ()>0) {
+ //BA.debugLineNum = 652;BA.debugLine="For Each id As String In mStackOfPageIds.AsList";
+{
+final anywheresoftware.b4a.BA.IterableList group5 = _mstackofpageids._aslist /*anywheresoftware.b4a.objects.collections.List*/ ();
+final int groupLen5 = group5.getSize()
+;int index5 = 0;
+;
+for (; index5 < groupLen5;index5++){
+_id = BA.ObjectToString(group5.Get(index5));
+ //BA.debugLineNum = 653;BA.debugLine="sb.Append(id).Append(\", \")";
+_sb.Append(_id).Append(", ");
+ }
+};
+ //BA.debugLineNum = 655;BA.debugLine="sb.Remove(sb.Length - 2, sb.Length)";
+_sb.Remove((int) (_sb.getLength()-2),_sb.getLength());
+ };
+ //BA.debugLineNum = 657;BA.debugLine="sb.Append(\"]\")";
+_sb.Append("]");
+ //BA.debugLineNum = 658;BA.debugLine="StackString = sb.ToString";
+_stackstring = _sb.ToString();
+ //BA.debugLineNum = 659;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+public boolean checkIfAppCompat(android.app.Activity act) {
+ return act.getClass().getSuperclass().getName().equals("androidx.appcompat.app.AppCompatActivity");
+}
+public static class PagesMenuListener implements android.view.MenuItem.OnMenuItemClickListener {
+ private B4AClass target;
+ private String tag;
+ public PagesMenuListener(B4AClass target, String tag) {
+ this.target = target;
+ this.tag = tag;
+ }
+ public boolean onMenuItemClick(android.view.MenuItem item) {
+ target.getBA().raiseEventFromUI(null, "b4xpage_menuclick", tag);
+ return true;
+ }
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xplusminus.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xplusminus.java
new file mode 100644
index 0000000..ba305ab
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xplusminus.java
@@ -0,0 +1,591 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xplusminus extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xplusminus");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xplusminus.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public Object _tag = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _pnlplus = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _pnlminus = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lblplus = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _lblminus = null;
+public String _formation = "";
+public boolean _mcyclic = false;
+public boolean _mrapid = false;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mainlabel = null;
+public int _arrowssize = 0;
+public anywheresoftware.b4a.objects.collections.List _mstringitems = null;
+public double _mstartrange = 0;
+public double _minterval = 0;
+public double _mendrange = 0;
+public int _mselectedindex = 0;
+public int _loopindex = 0;
+public int _rapidperiod1 = 0;
+public int _rapidperiod2 = 0;
+public reparto_izca.keymon.lat.b4xformatter _formatter = null;
+public boolean _stringmode = false;
+public int _size = 0;
+public boolean _mhaptic = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 83;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As";
+ //BA.debugLineNum = 84;BA.debugLine="If Formation = \"Horizontal\" Then";
+if ((_formation).equals("Horizontal")) {
+ //BA.debugLineNum = 85;BA.debugLine="pnlMinus.SetLayoutAnimated(0, 0, 0, ArrowsSize,";
+_pnlminus.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_arrowssize,(int) (_height));
+ //BA.debugLineNum = 86;BA.debugLine="pnlPlus.SetLayoutAnimated(0, Width - ArrowsSize,";
+_pnlplus.SetLayoutAnimated((int) (0),(int) (_width-_arrowssize),(int) (0),_arrowssize,(int) (_height));
+ //BA.debugLineNum = 87;BA.debugLine="MainLabel.SetLayoutAnimated(0, 0, 0, Width, Heig";
+_mainlabel.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ }else if((_formation).equals("Vertical")) {
+ //BA.debugLineNum = 89;BA.debugLine="pnlPlus.SetLayoutAnimated(0, 0, 0, Width, Arrows";
+_pnlplus.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),_arrowssize);
+ //BA.debugLineNum = 90;BA.debugLine="pnlMinus.SetLayoutAnimated(0, 0, Height - Arrows";
+_pnlminus.SetLayoutAnimated((int) (0),(int) (0),(int) (_height-_arrowssize),(int) (_width),_arrowssize);
+ //BA.debugLineNum = 91;BA.debugLine="MainLabel.SetLayoutAnimated(0, 0, 0, Width, Heig";
+_mainlabel.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ }else {
+ //BA.debugLineNum = 93;BA.debugLine="pnlMinus.SetLayoutAnimated(0, 0, Height - Arrows";
+_pnlminus.SetLayoutAnimated((int) (0),(int) (0),(int) (_height-_arrowssize),(int) (_width/(double)2),_arrowssize);
+ //BA.debugLineNum = 94;BA.debugLine="pnlPlus.SetLayoutAnimated(0, Width / 2, pnlMinus";
+_pnlplus.SetLayoutAnimated((int) (0),(int) (_width/(double)2),_pnlminus.getTop(),_pnlminus.getWidth(),_pnlminus.getHeight());
+ //BA.debugLineNum = 95;BA.debugLine="MainLabel.SetLayoutAnimated(0, 0, 0, Width, Heig";
+_mainlabel.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height-_arrowssize+__c.DipToCurrent((int) (5))));
+ };
+ //BA.debugLineNum = 97;BA.debugLine="lblMinus.SetLayoutAnimated(0, 0, 0, pnlMinus.Widt";
+_lblminus.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_pnlminus.getWidth(),_pnlminus.getHeight());
+ //BA.debugLineNum = 98;BA.debugLine="lblPlus.SetLayoutAnimated(0, 0, 0, pnlPlus.Width,";
+_lblplus.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_pnlplus.getWidth(),_pnlplus.getHeight());
+ //BA.debugLineNum = 99;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 6;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 7;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 8;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 9;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 11;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 12;BA.debugLine="Public pnlPlus, pnlMinus As B4XView";
+_pnlplus = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnlminus = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Public lblPlus, lblMinus As B4XView";
+_lblplus = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lblminus = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Public Formation As String";
+_formation = "";
+ //BA.debugLineNum = 15;BA.debugLine="Public mCyclic As Boolean";
+_mcyclic = false;
+ //BA.debugLineNum = 16;BA.debugLine="Public mRapid As Boolean";
+_mrapid = false;
+ //BA.debugLineNum = 17;BA.debugLine="Public MainLabel As B4XView";
+_mainlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Public ArrowsSize As Int = 30dip";
+_arrowssize = __c.DipToCurrent((int) (30));
+ //BA.debugLineNum = 19;BA.debugLine="Private mStringItems As List";
+_mstringitems = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 20;BA.debugLine="Private mStartRange, mInterval, mEndRange As Doub";
+_mstartrange = 0;
+_minterval = 0;
+_mendrange = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Private mSelectedIndex As Int = -1";
+_mselectedindex = (int) (-1);
+ //BA.debugLineNum = 22;BA.debugLine="Private LoopIndex As Int";
+_loopindex = 0;
+ //BA.debugLineNum = 23;BA.debugLine="Public RapidPeriod1 As Int = 1000";
+_rapidperiod1 = (int) (1000);
+ //BA.debugLineNum = 24;BA.debugLine="Public RapidPeriod2 As Int = 30";
+_rapidperiod2 = (int) (30);
+ //BA.debugLineNum = 25;BA.debugLine="Public Formatter As B4XFormatter";
+_formatter = new reparto_izca.keymon.lat.b4xformatter();
+ //BA.debugLineNum = 26;BA.debugLine="Private StringMode As Boolean";
+_stringmode = false;
+ //BA.debugLineNum = 27;BA.debugLine="Private Size As Int";
+_size = 0;
+ //BA.debugLineNum = 28;BA.debugLine="Public mHaptic As Boolean";
+_mhaptic = false;
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _createlabel(String _text) throws Exception{
+anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+ //BA.debugLineNum = 247;BA.debugLine="Private Sub CreateLabel (text As String) As B4XVie";
+ //BA.debugLineNum = 248;BA.debugLine="Dim lbl As Label";
+_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 249;BA.debugLine="lbl.Initialize(\"\")";
+_lbl.Initialize(ba,"");
+ //BA.debugLineNum = 250;BA.debugLine="Dim xlbl As B4XView = lbl";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 251;BA.debugLine="xlbl.Font = xui.CreateMaterialIcons(30)";
+_xlbl.setFont(_xui.CreateMaterialIcons((float) (30)));
+ //BA.debugLineNum = 252;BA.debugLine="xlbl.Text = text";
+_xlbl.setText(BA.ObjectToCharSequence(_text));
+ //BA.debugLineNum = 253;BA.debugLine="xlbl.TextColor = MainLabel.TextColor";
+_xlbl.setTextColor(_mainlabel.getTextColor());
+ //BA.debugLineNum = 254;BA.debugLine="Return xlbl";
+if (true) return _xlbl;
+ //BA.debugLineNum = 255;BA.debugLine="End Sub";
+return null;
+}
+public String _decrement() throws Exception{
+ //BA.debugLineNum = 182;BA.debugLine="Public Sub Decrement";
+ //BA.debugLineNum = 183;BA.debugLine="If mSelectedIndex <= 0 Then";
+if (_mselectedindex<=0) {
+ //BA.debugLineNum = 184;BA.debugLine="If mCyclic Then";
+if (_mcyclic) {
+ //BA.debugLineNum = 185;BA.debugLine="mSelectedIndex = Size";
+_mselectedindex = _size;
+ }else {
+ //BA.debugLineNum = 187;BA.debugLine="mSelectedIndex = 0";
+_mselectedindex = (int) (0);
+ //BA.debugLineNum = 188;BA.debugLine="LoopIndex = LoopIndex + 1";
+_loopindex = (int) (_loopindex+1);
+ //BA.debugLineNum = 189;BA.debugLine="Return";
+if (true) return "";
+ };
+ };
+ //BA.debugLineNum = 192;BA.debugLine="SetIndex(mSelectedIndex - 1, True)";
+_setindex((int) (_mselectedindex-1),__c.True);
+ //BA.debugLineNum = 193;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+ //BA.debugLineNum = 38;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl";
+ //BA.debugLineNum = 39;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 40;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 40;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 41;BA.debugLine="MainLabel = lbl";
+_mainlabel = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 42;BA.debugLine="MainLabel.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_mainlabel.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 43;BA.debugLine="Dim pnl As B4XView = Props.Get(\"page\")";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_props.Get((Object)("page"))));
+ //BA.debugLineNum = 53;BA.debugLine="pnlPlus = xui.CreatePanel(\"pnlArrow\")";
+_pnlplus = _xui.CreatePanel(ba,"pnlArrow");
+ //BA.debugLineNum = 54;BA.debugLine="pnlMinus = xui.CreatePanel(\"pnlArrow\")";
+_pnlminus = _xui.CreatePanel(ba,"pnlArrow");
+ //BA.debugLineNum = 56;BA.debugLine="pnlPlus.Tag = True";
+_pnlplus.setTag((Object)(__c.True));
+ //BA.debugLineNum = 57;BA.debugLine="pnlMinus.Tag = False";
+_pnlminus.setTag((Object)(__c.False));
+ //BA.debugLineNum = 58;BA.debugLine="Formation = Props.Get(\"Orientation\")";
+_formation = BA.ObjectToString(_props.Get((Object)("Orientation")));
+ //BA.debugLineNum = 59;BA.debugLine="mCyclic = Props.Get(\"Cyclic\")";
+_mcyclic = BA.ObjectToBoolean(_props.Get((Object)("Cyclic")));
+ //BA.debugLineNum = 60;BA.debugLine="mRapid = Props.Get(\"Rapid\")";
+_mrapid = BA.ObjectToBoolean(_props.Get((Object)("Rapid")));
+ //BA.debugLineNum = 61;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals";
+_mhaptic = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False)));
+ //BA.debugLineNum = 62;BA.debugLine="Formatter.GetDefaultFormat.FormatFont = MainLabel";
+_formatter._getdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ ().FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _mainlabel.getFont();
+ //BA.debugLineNum = 63;BA.debugLine="Formatter.GetDefaultFormat.TextColor = MainLabel.";
+_formatter._getdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ ().TextColor /*int*/ = _mainlabel.getTextColor();
+ //BA.debugLineNum = 64;BA.debugLine="If Formation = \"Horizontal\" Then";
+if ((_formation).equals("Horizontal")) {
+ //BA.debugLineNum = 65;BA.debugLine="lblPlus = CreateLabel(Chr(0xE315))";
+_lblplus = _createlabel(BA.ObjectToString(__c.Chr(((int)0xe315))));
+ //BA.debugLineNum = 66;BA.debugLine="lblMinus = CreateLabel(Chr(0xE314))";
+_lblminus = _createlabel(BA.ObjectToString(__c.Chr(((int)0xe314))));
+ }else {
+ //BA.debugLineNum = 68;BA.debugLine="lblPlus = CreateLabel(Chr(0xE316))";
+_lblplus = _createlabel(BA.ObjectToString(__c.Chr(((int)0xe316))));
+ //BA.debugLineNum = 69;BA.debugLine="lblMinus = CreateLabel(Chr(0xE313))";
+_lblminus = _createlabel(BA.ObjectToString(__c.Chr(((int)0xe313))));
+ };
+ //BA.debugLineNum = 71;BA.debugLine="lblMinus.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_lblminus.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 72;BA.debugLine="lblPlus.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_lblplus.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 73;BA.debugLine="MainLabel.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_mainlabel.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 74;BA.debugLine="mBase.AddView(MainLabel, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_mainlabel.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 75;BA.debugLine="mBase.AddView(pnlPlus, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_pnlplus.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 76;BA.debugLine="mBase.AddView(pnlMinus, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_pnlminus.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 77;BA.debugLine="pnlPlus.AddView(lblPlus, 0, 0, 0, 0)";
+_pnlplus.AddView((android.view.View)(_lblplus.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 78;BA.debugLine="pnlMinus.AddView(lblMinus, 0, 0, 0, 0)";
+_pnlminus.AddView((android.view.View)(_lblminus.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 79;BA.debugLine="SetIndex(-1, False)";
+_setindex((int) (-1),__c.False);
+ //BA.debugLineNum = 80;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 81;BA.debugLine="End Sub";
+return "";
+}
+public Object _getselectedvalue() throws Exception{
+ //BA.debugLineNum = 117;BA.debugLine="Public Sub getSelectedValue As Object";
+ //BA.debugLineNum = 118;BA.debugLine="Return GetValueImpl (mSelectedIndex)";
+if (true) return _getvalueimpl(_mselectedindex);
+ //BA.debugLineNum = 119;BA.debugLine="End Sub";
+return null;
+}
+public Object _getvalueimpl(int _index) throws Exception{
+ //BA.debugLineNum = 130;BA.debugLine="Private Sub GetValueImpl (Index As Int) As Object";
+ //BA.debugLineNum = 131;BA.debugLine="If StringMode Then";
+if (_stringmode) {
+ //BA.debugLineNum = 132;BA.debugLine="Return mStringItems.Get(Index)";
+if (true) return _mstringitems.Get(_index);
+ }else {
+ //BA.debugLineNum = 134;BA.debugLine="If Index = Size - 1 Then";
+if (_index==_size-1) {
+ //BA.debugLineNum = 135;BA.debugLine="Return mEndRange";
+if (true) return (Object)(_mendrange);
+ }else {
+ //BA.debugLineNum = 137;BA.debugLine="Return mStartRange + Index * mInterval";
+if (true) return (Object)(_mstartrange+_index*_minterval);
+ };
+ };
+ //BA.debugLineNum = 140;BA.debugLine="End Sub";
+return null;
+}
+public String _increment() throws Exception{
+double _v1 = 0;
+double _v2 = 0;
+ //BA.debugLineNum = 162;BA.debugLine="Public Sub Increment";
+ //BA.debugLineNum = 163;BA.debugLine="If mSelectedIndex = Size - 3 And StringMode = Fal";
+if (_mselectedindex==_size-3 && _stringmode==__c.False) {
+ //BA.debugLineNum = 164;BA.debugLine="Dim v1 As Double = GetValueImpl(mSelectedIndex +";
+_v1 = (double)(BA.ObjectToNumber(_getvalueimpl((int) (_mselectedindex+1))));
+ //BA.debugLineNum = 165;BA.debugLine="Dim v2 As Double = GetValueImpl(mSelectedIndex +";
+_v2 = (double)(BA.ObjectToNumber(_getvalueimpl((int) (_mselectedindex+2))));
+ //BA.debugLineNum = 166;BA.debugLine="If Formatter.Format(v1) = Formatter.Format(v2) T";
+if ((_formatter._format /*String*/ (_v1)).equals(_formatter._format /*String*/ (_v2))) {
+ //BA.debugLineNum = 167;BA.debugLine="mSelectedIndex = mSelectedIndex + 1";
+_mselectedindex = (int) (_mselectedindex+1);
+ };
+ };
+ //BA.debugLineNum = 170;BA.debugLine="If mSelectedIndex >= Size - 1 Then";
+if (_mselectedindex>=_size-1) {
+ //BA.debugLineNum = 171;BA.debugLine="If mCyclic Then";
+if (_mcyclic) {
+ //BA.debugLineNum = 172;BA.debugLine="mSelectedIndex = -1";
+_mselectedindex = (int) (-1);
+ }else {
+ //BA.debugLineNum = 174;BA.debugLine="mSelectedIndex = Size - 1";
+_mselectedindex = (int) (_size-1);
+ //BA.debugLineNum = 175;BA.debugLine="LoopIndex = LoopIndex + 1";
+_loopindex = (int) (_loopindex+1);
+ //BA.debugLineNum = 176;BA.debugLine="Return";
+if (true) return "";
+ };
+ };
+ //BA.debugLineNum = 179;BA.debugLine="SetIndex(mSelectedIndex + 1, True)";
+_setindex((int) (_mselectedindex+1),__c.True);
+ //BA.debugLineNum = 180;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 31;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 32;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 33;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 34;BA.debugLine="Formatter.Initialize";
+_formatter._initialize /*String*/ (ba);
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return "";
+}
+public String _internalsettextorcsbuildertolabel(anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{
+ //BA.debugLineNum = 257;BA.debugLine="Private Sub InternalSetTextOrCSBuilderToLabel(xlbl";
+ //BA.debugLineNum = 259;BA.debugLine="xlbl.Text = Text";
+_xlbl.setText(BA.ObjectToCharSequence(_text));
+ //BA.debugLineNum = 269;BA.debugLine="End Sub";
+return "";
+}
+public String _pnlarrow_touch(int _action,float _x,float _y) throws Exception{
+ //BA.debugLineNum = 195;BA.debugLine="Private Sub pnlArrow_Touch (Action As Int, X As Fl";
+ //BA.debugLineNum = 196;BA.debugLine="Touch(Action = lblPlus.TOUCH_ACTION_DOWN, Action";
+_touch(_action==_lblplus.TOUCH_ACTION_DOWN,_action!=_lblplus.TOUCH_ACTION_MOVE,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 197;BA.debugLine="End Sub";
+return "";
+}
+public String _setindex(int _i,boolean _raiseevent) throws Exception{
+Object _value = null;
+ //BA.debugLineNum = 142;BA.debugLine="Private Sub SetIndex(i As Int, RaiseEvent As Boole";
+ //BA.debugLineNum = 143;BA.debugLine="If i >= Size Then i = -1";
+if (_i>=_size) {
+_i = (int) (-1);};
+ //BA.debugLineNum = 144;BA.debugLine="mSelectedIndex = i";
+_mselectedindex = _i;
+ //BA.debugLineNum = 145;BA.debugLine="If mSelectedIndex = -1 Then";
+if (_mselectedindex==-1) {
+ //BA.debugLineNum = 146;BA.debugLine="MainLabel.Text = \"\"";
+_mainlabel.setText(BA.ObjectToCharSequence(""));
+ }else {
+ //BA.debugLineNum = 148;BA.debugLine="Dim value As Object = GetValueImpl (mSelectedInd";
+_value = _getvalueimpl(_mselectedindex);
+ //BA.debugLineNum = 149;BA.debugLine="If StringMode Then";
+if (_stringmode) {
+ //BA.debugLineNum = 150;BA.debugLine="InternalSetTextOrCSBuilderToLabel(MainLabel, va";
+_internalsettextorcsbuildertolabel(_mainlabel,_value);
+ }else {
+ //BA.debugLineNum = 152;BA.debugLine="MainLabel.Text = Formatter.Format(value)";
+_mainlabel.setText(BA.ObjectToCharSequence(_formatter._format /*String*/ ((double)(BA.ObjectToNumber(_value)))));
+ };
+ //BA.debugLineNum = 154;BA.debugLine="If RaiseEvent And xui.SubExists(mCallBack, mEven";
+if (_raiseevent && _xui.SubExists(ba,_mcallback,_meventname+"_valuechanged",(int) (1))) {
+ //BA.debugLineNum = 155;BA.debugLine="CallSub2(mCallBack, mEventName & \"_valuechanged";
+__c.CallSubNew2(ba,_mcallback,_meventname+"_valuechanged",_value);
+ };
+ };
+ //BA.debugLineNum = 158;BA.debugLine="lblPlus.Enabled = Size > 0 And (mCyclic Or mSelec";
+_lblplus.setEnabled(_size>0 && (_mcyclic || _mselectedindex<_size-1));
+ //BA.debugLineNum = 159;BA.debugLine="lblMinus.Enabled = Size > 0 And (mCyclic Or mSele";
+_lblminus.setEnabled(_size>0 && (_mcyclic || _mselectedindex>0));
+ //BA.debugLineNum = 160;BA.debugLine="End Sub";
+return "";
+}
+public String _setnumericrange(double _startrange,double _endrange,double _interval) throws Exception{
+ //BA.debugLineNum = 108;BA.debugLine="Public Sub SetNumericRange (StartRange As Double,";
+ //BA.debugLineNum = 109;BA.debugLine="Size = Ceil((EndRange - StartRange) / Interval) +";
+_size = (int) (__c.Ceil((_endrange-_startrange)/(double)_interval)+1);
+ //BA.debugLineNum = 110;BA.debugLine="mStartRange = StartRange";
+_mstartrange = _startrange;
+ //BA.debugLineNum = 111;BA.debugLine="mEndRange = EndRange";
+_mendrange = _endrange;
+ //BA.debugLineNum = 112;BA.debugLine="mInterval = Interval";
+_minterval = _interval;
+ //BA.debugLineNum = 113;BA.debugLine="StringMode = False";
+_stringmode = __c.False;
+ //BA.debugLineNum = 114;BA.debugLine="SetIndex(0, False)";
+_setindex((int) (0),__c.False);
+ //BA.debugLineNum = 115;BA.debugLine="End Sub";
+return "";
+}
+public String _setselectedvalue(Object _v) throws Exception{
+double _n = 0;
+ //BA.debugLineNum = 121;BA.debugLine="Public Sub setSelectedValue (v As Object)";
+ //BA.debugLineNum = 122;BA.debugLine="If StringMode Then";
+if (_stringmode) {
+ //BA.debugLineNum = 123;BA.debugLine="SetIndex(mStringItems.IndexOf(v), False)";
+_setindex(_mstringitems.IndexOf(_v),__c.False);
+ }else {
+ //BA.debugLineNum = 125;BA.debugLine="Dim n As Double = v";
+_n = (double)(BA.ObjectToNumber(_v));
+ //BA.debugLineNum = 126;BA.debugLine="SetIndex(Min(Size - 1, Max(0, Round((n - mStartR";
+_setindex((int) (__c.Min(_size-1,__c.Max(0,__c.Round((_n-_mstartrange)/(double)_minterval)))),__c.False);
+ };
+ //BA.debugLineNum = 128;BA.debugLine="End Sub";
+return "";
+}
+public String _setstringitems(anywheresoftware.b4a.objects.collections.List _list) throws Exception{
+ //BA.debugLineNum = 101;BA.debugLine="Public Sub SetStringItems (list As List)";
+ //BA.debugLineNum = 102;BA.debugLine="mStringItems = list";
+_mstringitems = _list;
+ //BA.debugLineNum = 103;BA.debugLine="StringMode = True";
+_stringmode = __c.True;
+ //BA.debugLineNum = 104;BA.debugLine="Size = mStringItems.Size";
+_size = _mstringitems.getSize();
+ //BA.debugLineNum = 105;BA.debugLine="SetIndex(-1, False)";
+_setindex((int) (-1),__c.False);
+ //BA.debugLineNum = 106;BA.debugLine="End Sub";
+return "";
+}
+public void _startdownloop(boolean _up) throws Exception{
+ResumableSub_StartDownLoop rsub = new ResumableSub_StartDownLoop(this,_up);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_StartDownLoop extends BA.ResumableSub {
+public ResumableSub_StartDownLoop(reparto_izca.keymon.lat.b4xplusminus parent,boolean _up) {
+this.parent = parent;
+this._up = _up;
+}
+reparto_izca.keymon.lat.b4xplusminus parent;
+boolean _up;
+int _myindex = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 235;BA.debugLine="LoopIndex = LoopIndex + 1";
+parent._loopindex = (int) (parent._loopindex+1);
+ //BA.debugLineNum = 236;BA.debugLine="If mRapid = False Then Return";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent._mrapid==parent.__c.False) {
+this.state = 3;
+;}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+if (true) return ;
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 237;BA.debugLine="Dim MyIndex As Int = LoopIndex";
+_myindex = parent._loopindex;
+ //BA.debugLineNum = 238;BA.debugLine="Sleep(RapidPeriod1)";
+parent.__c.Sleep(ba,this,parent._rapidperiod1);
+this.state = 19;
+return;
+case 19:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 239;BA.debugLine="Do While MyIndex = LoopIndex";
+if (true) break;
+
+case 7:
+//do while
+this.state = 18;
+while (_myindex==parent._loopindex) {
+this.state = 9;
+if (true) break;
+}
+if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 240;BA.debugLine="If Up Then Increment Else Decrement";
+if (true) break;
+
+case 10:
+//if
+this.state = 17;
+if (_up) {
+this.state = 12;
+;}
+else {
+this.state = 14;
+;}if (true) break;
+
+case 12:
+//C
+this.state = 17;
+parent._increment();
+if (true) break;
+
+case 14:
+//C
+this.state = 17;
+parent._decrement();
+if (true) break;
+
+case 17:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 241;BA.debugLine="Sleep(RapidPeriod2)";
+parent.__c.Sleep(ba,this,parent._rapidperiod2);
+this.state = 20;
+return;
+case 20:
+//C
+this.state = 7;
+;
+ if (true) break;
+
+case 18:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 243;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _touch(boolean _start,boolean _stop,anywheresoftware.b4a.objects.B4XViewWrapper _pnl) throws Exception{
+ //BA.debugLineNum = 199;BA.debugLine="Private Sub Touch (Start As Boolean, Stop As Boole";
+ //BA.debugLineNum = 200;BA.debugLine="If pnl.GetView(0).Enabled = False Then Return";
+if (_pnl.GetView((int) (0)).getEnabled()==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 201;BA.debugLine="If Start Then";
+if (_start) {
+ //BA.debugLineNum = 202;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb";
+if (_mhaptic) {
+_xuiviewsutils._performhapticfeedback /*String*/ (ba,_pnl);};
+ //BA.debugLineNum = 203;BA.debugLine="If pnl.Tag = True Then";
+if ((_pnl.getTag()).equals((Object)(__c.True))) {
+ //BA.debugLineNum = 204;BA.debugLine="Increment";
+_increment();
+ //BA.debugLineNum = 205;BA.debugLine="StartDownLoop(True)";
+_startdownloop(__c.True);
+ }else {
+ //BA.debugLineNum = 207;BA.debugLine="Decrement";
+_decrement();
+ //BA.debugLineNum = 208;BA.debugLine="StartDownLoop(False)";
+_startdownloop(__c.False);
+ };
+ }else if(_stop) {
+ //BA.debugLineNum = 211;BA.debugLine="LoopIndex = LoopIndex + 1";
+_loopindex = (int) (_loopindex+1);
+ };
+ //BA.debugLineNum = 213;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xradiobutton.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xradiobutton.java
new file mode 100644
index 0000000..f0f4c51
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xradiobutton.java
@@ -0,0 +1,613 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xradiobutton extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xradiobutton");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xradiobutton.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public int _oncolor = 0;
+public int _offcolor = 0;
+public b4a.example.bitmapcreator _bc = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _iv = null;
+public boolean _mvalue = false;
+public b4a.example.bcpath._bcbrush _transparent = null;
+public int _loopindex = 0;
+public Object _tag = null;
+public b4a.example.bcpath._bcbrush _onbrush = null;
+public b4a.example.bcpath._bcbrush _offbrush = null;
+public boolean _menabled = false;
+public boolean _mhaptic = false;
+public int _size = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mlabel = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+public float _scale = 0f;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width1,double _height1) throws Exception{
+int _newsize = 0;
+int _gap = 0;
+ //BA.debugLineNum = 59;BA.debugLine="Private Sub Base_Resize (Width1 As Double, Height1";
+ //BA.debugLineNum = 60;BA.debugLine="Dim NewSize As Int = Max(5dip, Height1)";
+_newsize = (int) (__c.Max(__c.DipToCurrent((int) (5)),_height1));
+ //BA.debugLineNum = 61;BA.debugLine="If NewSize = Size Then Return";
+if (_newsize==_size) {
+if (true) return "";};
+ //BA.debugLineNum = 62;BA.debugLine="Size = NewSize";
+_size = _newsize;
+ //BA.debugLineNum = 63;BA.debugLine="Dim gap As Int = 3dip";
+_gap = __c.DipToCurrent((int) (3));
+ //BA.debugLineNum = 65;BA.debugLine="bc.Initialize(NewSize - 2 * gap, NewSize - 2 * ga";
+_bc._initialize(ba,(int) (_newsize-2*_gap),(int) (_newsize-2*_gap));
+ //BA.debugLineNum = 66;BA.debugLine="Scale = xui.Scale";
+_scale = _xui.getScale();
+ //BA.debugLineNum = 71;BA.debugLine="iv.SetLayoutAnimated(0, gap, gap, Size - 2 * gap,";
+_iv.SetLayoutAnimated((int) (0),_gap,_gap,(int) (_size-2*_gap),(int) (_size-2*_gap));
+ //BA.debugLineNum = 72;BA.debugLine="pnl.SetLayoutAnimated(0, 0, 0, Width1, Height1)";
+_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width1),(int) (_height1));
+ //BA.debugLineNum = 73;BA.debugLine="mLabel.SetLayoutAnimated(0, Size + gap, 0, Width1";
+_mlabel.SetLayoutAnimated((int) (0),(int) (_size+_gap),(int) (0),(int) (_width1-_size-_gap),(int) (_height1));
+ //BA.debugLineNum = 74;BA.debugLine="OnBrush = bc.CreateBrushFromColor(OnColor)";
+_onbrush = _bc._createbrushfromcolor(_oncolor);
+ //BA.debugLineNum = 75;BA.debugLine="OffBrush = bc.CreateBrushFromColor(OffColor)";
+_offbrush = _bc._createbrushfromcolor(_offcolor);
+ //BA.debugLineNum = 76;BA.debugLine="transparent = bc.CreateBrushFromColor(xui.Color_T";
+_transparent = _bc._createbrushfromcolor(_xui.Color_Transparent);
+ //BA.debugLineNum = 77;BA.debugLine="SetValueImpl(mValue, True)";
+_setvalueimpl(_mvalue,__c.True);
+ //BA.debugLineNum = 78;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 6;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 7;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 8;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 9;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 11;BA.debugLine="Public OnColor, OffColor As Int";
+_oncolor = 0;
+_offcolor = 0;
+ //BA.debugLineNum = 12;BA.debugLine="Private bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 13;BA.debugLine="Private iv As B4XView";
+_iv = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Private mValue As Boolean";
+_mvalue = false;
+ //BA.debugLineNum = 15;BA.debugLine="Private transparent As BCBrush";
+_transparent = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 16;BA.debugLine="Private LoopIndex As Int";
+_loopindex = 0;
+ //BA.debugLineNum = 17;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 18;BA.debugLine="Private OnBrush, OffBrush As BCBrush";
+_onbrush = new b4a.example.bcpath._bcbrush();
+_offbrush = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 19;BA.debugLine="Private mEnabled As Boolean = True";
+_menabled = __c.True;
+ //BA.debugLineNum = 20;BA.debugLine="Public mHaptic As Boolean";
+_mhaptic = false;
+ //BA.debugLineNum = 21;BA.debugLine="Private Size As Int";
+_size = 0;
+ //BA.debugLineNum = 22;BA.debugLine="Public mLabel As B4XView";
+_mlabel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 23;BA.debugLine="Private pnl As B4XView";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="Private Scale As Float 'ignore";
+_scale = 0f;
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.ImageViewWrapper _iiv = null;
+ //BA.debugLineNum = 33;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 34;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 36;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 37;BA.debugLine="pnl = xui.CreatePanel(\"pnl\")";
+_pnl = _xui.CreatePanel(ba,"pnl");
+ //BA.debugLineNum = 38;BA.debugLine="pnl.Color = xui.Color_Transparent";
+_pnl.setColor(_xui.Color_Transparent);
+ //BA.debugLineNum = 39;BA.debugLine="Dim iiv As ImageView";
+_iiv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 40;BA.debugLine="iiv.Initialize(\"\")";
+_iiv.Initialize(ba,"");
+ //BA.debugLineNum = 41;BA.debugLine="iv = iiv";
+_iv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iiv.getObject()));
+ //BA.debugLineNum = 42;BA.debugLine="mBase.AddView(iv, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_iv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 43;BA.debugLine="mLabel = Lbl";
+_mlabel = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 44;BA.debugLine="mLabel.SetTextAlignment(\"CENTER\", \"LEFT\")";
+_mlabel.SetTextAlignment("CENTER","LEFT");
+ //BA.debugLineNum = 45;BA.debugLine="mBase.AddView(mLabel, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_mlabel.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 46;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 48;BA.debugLine="OnColor = xui.PaintOrColorToColor(Props.Get(\"OnCo";
+_oncolor = _xui.PaintOrColorToColor(_props.Get((Object)("OnColor")));
+ //BA.debugLineNum = 49;BA.debugLine="OffColor = xui.PaintOrColorToColor(Props.Get(\"Off";
+_offcolor = _xui.PaintOrColorToColor(_props.Get((Object)("OffColor")));
+ //BA.debugLineNum = 50;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals";
+_mhaptic = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False)));
+ //BA.debugLineNum = 52;BA.debugLine="mEnabled = mBase.Enabled";
+_menabled = _mbase.getEnabled();
+ //BA.debugLineNum = 53;BA.debugLine="mBase.Enabled = True";
+_mbase.setEnabled(__c.True);
+ //BA.debugLineNum = 54;BA.debugLine="mValue = Props.Get(\"Value\")";
+_mvalue = BA.ObjectToBoolean(_props.Get((Object)("Value")));
+ //BA.debugLineNum = 55;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 56;BA.debugLine="End Sub";
+return "";
+}
+public String _draw(float _state) throws Exception{
+float _r = 0f;
+ //BA.debugLineNum = 153;BA.debugLine="Private Sub Draw (State As Float)";
+ //BA.debugLineNum = 154;BA.debugLine="bc.DrawRect2(bc.TargetRect, transparent, True, 0)";
+_bc._drawrect2(_bc._targetrect,_transparent,__c.True,(int) (0));
+ //BA.debugLineNum = 155;BA.debugLine="Dim r As Float = Floor(bc.mHeight / 2)";
+_r = (float) (__c.Floor(_bc._mheight/(double)2));
+ //BA.debugLineNum = 156;BA.debugLine="If State < 1 Then bc.DrawCircle2(r, r, r, OffBrus";
+if (_state<1) {
+_bc._drawcircle2(_r,_r,_r,_offbrush,__c.True,(int) (0));};
+ //BA.debugLineNum = 157;BA.debugLine="If State > 0 Then bc.DrawCircle2(r, r, r * State,";
+if (_state>0) {
+_bc._drawcircle2(_r,_r,(float) (_r*_state),_onbrush,__c.True,(int) (0));};
+ //BA.debugLineNum = 158;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, iv)";
+_bc._setbitmaptoimageview(_bc._getbitmap(),_iv);
+ //BA.debugLineNum = 159;BA.debugLine="End Sub";
+return "";
+}
+public boolean _getchecked() throws Exception{
+ //BA.debugLineNum = 140;BA.debugLine="Public Sub getChecked As Boolean";
+ //BA.debugLineNum = 141;BA.debugLine="Return mValue";
+if (true) return _mvalue;
+ //BA.debugLineNum = 142;BA.debugLine="End Sub";
+return false;
+}
+public boolean _getenabled() throws Exception{
+ //BA.debugLineNum = 149;BA.debugLine="Public Sub getEnabled As Boolean";
+ //BA.debugLineNum = 150;BA.debugLine="Return mEnabled";
+if (true) return _menabled;
+ //BA.debugLineNum = 151;BA.debugLine="End Sub";
+return false;
+}
+public Object _gettext() throws Exception{
+ //BA.debugLineNum = 165;BA.debugLine="Public Sub getText As Object";
+ //BA.debugLineNum = 166;BA.debugLine="Return mLabel.Text";
+if (true) return (Object)(_mlabel.getText());
+ //BA.debugLineNum = 167;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 27;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 28;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 29;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 30;BA.debugLine="End Sub";
+return "";
+}
+public String _pnl_click() throws Exception{
+ //BA.debugLineNum = 86;BA.debugLine="Private Sub pnl_Click";
+ //BA.debugLineNum = 88;BA.debugLine="If mValue Then Return";
+if (_mvalue) {
+if (true) return "";};
+ //BA.debugLineNum = 89;BA.debugLine="If mEnabled Then";
+if (_menabled) {
+ //BA.debugLineNum = 90;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb";
+if (_mhaptic) {
+_xuiviewsutils._performhapticfeedback /*String*/ (ba,_mbase);};
+ //BA.debugLineNum = 91;BA.debugLine="SetValueImpl(Not(mValue), False)";
+_setvalueimpl(__c.Not(_mvalue),__c.False);
+ //BA.debugLineNum = 92;BA.debugLine="If mValue And xui.SubExists(mCallBack, mEventNam";
+if (_mvalue && _xui.SubExists(ba,_mcallback,_meventname+"_Checked",(int) (0))) {
+ //BA.debugLineNum = 93;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_Checke";
+__c.CallSubDelayed(ba,_mcallback,_meventname+"_Checked");
+ };
+ };
+ //BA.debugLineNum = 96;BA.debugLine="End Sub";
+return "";
+}
+public String _setchecked(boolean _b) throws Exception{
+ //BA.debugLineNum = 135;BA.debugLine="Public Sub setChecked(b As Boolean)";
+ //BA.debugLineNum = 136;BA.debugLine="If b = mValue Then Return";
+if (_b==_mvalue) {
+if (true) return "";};
+ //BA.debugLineNum = 137;BA.debugLine="SetValueImpl(b, False)";
+_setvalueimpl(_b,__c.False);
+ //BA.debugLineNum = 138;BA.debugLine="End Sub";
+return "";
+}
+public String _setenabled(boolean _b) throws Exception{
+ //BA.debugLineNum = 144;BA.debugLine="Public Sub setEnabled (b As Boolean)";
+ //BA.debugLineNum = 145;BA.debugLine="mEnabled = b";
+_menabled = _b;
+ //BA.debugLineNum = 146;BA.debugLine="SetValueImpl(mValue, True)";
+_setvalueimpl(_mvalue,__c.True);
+ //BA.debugLineNum = 147;BA.debugLine="End Sub";
+return "";
+}
+public String _settext(Object _t) throws Exception{
+ //BA.debugLineNum = 161;BA.debugLine="Public Sub setText (t As Object)";
+ //BA.debugLineNum = 162;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(mLabel, t";
+_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_mlabel,_t);
+ //BA.debugLineNum = 163;BA.debugLine="End Sub";
+return "";
+}
+public void _setvalueimpl(boolean _b,boolean _immediate) throws Exception{
+ResumableSub_SetValueImpl rsub = new ResumableSub_SetValueImpl(this,_b,_immediate);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_SetValueImpl extends BA.ResumableSub {
+public ResumableSub_SetValueImpl(reparto_izca.keymon.lat.b4xradiobutton parent,boolean _b,boolean _immediate) {
+this.parent = parent;
+this._b = _b;
+this._immediate = _immediate;
+}
+reparto_izca.keymon.lat.b4xradiobutton parent;
+boolean _b;
+boolean _immediate;
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _v = null;
+reparto_izca.keymon.lat.b4xradiobutton _rb = null;
+int _myindex = 0;
+long _start = 0L;
+int _duration = 0;
+float _state1 = 0f;
+int step3;
+int limit3;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 99;BA.debugLine="mValue = b";
+parent._mvalue = _b;
+ //BA.debugLineNum = 100;BA.debugLine="If b = True Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 12;
+if (_b==parent.__c.True) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 101;BA.debugLine="For i = 0 To mBase.Parent.NumberOfViews - 1";
+if (true) break;
+
+case 4:
+//for
+this.state = 11;
+step3 = 1;
+limit3 = (int) (parent._mbase.getParent().getNumberOfViews()-1);
+_i = (int) (0) ;
+this.state = 59;
+if (true) break;
+
+case 59:
+//C
+this.state = 11;
+if ((step3 > 0 && _i <= limit3) || (step3 < 0 && _i >= limit3)) this.state = 6;
+if (true) break;
+
+case 60:
+//C
+this.state = 59;
+_i = ((int)(0 + _i + step3)) ;
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 102;BA.debugLine="Dim v As B4XView = mBase.Parent.GetView(i)";
+_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_v = parent._mbase.getParent().GetView(_i);
+ //BA.debugLineNum = 103;BA.debugLine="If v <> mBase And v.Tag Is B4XRadioButton Then";
+if (true) break;
+
+case 7:
+//if
+this.state = 10;
+if ((_v).equals(parent._mbase) == false && _v.getTag() instanceof reparto_izca.keymon.lat.b4xradiobutton) {
+this.state = 9;
+}if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 104;BA.debugLine="Dim rb As B4XRadioButton = v.Tag";
+_rb = (reparto_izca.keymon.lat.b4xradiobutton)(_v.getTag());
+ //BA.debugLineNum = 105;BA.debugLine="rb.Checked = False";
+_rb._setchecked /*boolean*/ (parent.__c.False);
+ if (true) break;
+
+case 10:
+//C
+this.state = 60;
+;
+ if (true) break;
+if (true) break;
+
+case 11:
+//C
+this.state = 12;
+;
+ if (true) break;
+
+case 12:
+//C
+this.state = 13;
+;
+ //BA.debugLineNum = 109;BA.debugLine="LoopIndex = LoopIndex + 1";
+parent._loopindex = (int) (parent._loopindex+1);
+ //BA.debugLineNum = 110;BA.debugLine="If Immediate Then";
+if (true) break;
+
+case 13:
+//if
+this.state = 53;
+if (_immediate) {
+this.state = 15;
+}else {
+this.state = 25;
+}if (true) break;
+
+case 15:
+//C
+this.state = 16;
+ //BA.debugLineNum = 111;BA.debugLine="If mValue Then Draw(1) Else Draw(0)";
+if (true) break;
+
+case 16:
+//if
+this.state = 23;
+if (parent._mvalue) {
+this.state = 18;
+;}
+else {
+this.state = 20;
+;}if (true) break;
+
+case 18:
+//C
+this.state = 23;
+parent._draw((float) (1));
+if (true) break;
+
+case 20:
+//C
+this.state = 23;
+parent._draw((float) (0));
+if (true) break;
+
+case 23:
+//C
+this.state = 53;
+;
+ if (true) break;
+
+case 25:
+//C
+this.state = 26;
+ //BA.debugLineNum = 113;BA.debugLine="Dim MyIndex As Int = LoopIndex";
+_myindex = parent._loopindex;
+ //BA.debugLineNum = 114;BA.debugLine="Dim start As Long = DateTime.Now";
+_start = parent.__c.DateTime.getNow();
+ //BA.debugLineNum = 115;BA.debugLine="Dim duration As Int = 200";
+_duration = (int) (200);
+ //BA.debugLineNum = 116;BA.debugLine="Do While DateTime.Now < start + duration";
+if (true) break;
+
+case 26:
+//do while
+this.state = 41;
+while (parent.__c.DateTime.getNow()<_start+_duration) {
+this.state = 28;
+if (true) break;
+}
+if (true) break;
+
+case 28:
+//C
+this.state = 29;
+ //BA.debugLineNum = 117;BA.debugLine="Dim state1 As Float = (DateTime.Now - start) /";
+_state1 = (float) ((parent.__c.DateTime.getNow()-_start)/(double)_duration);
+ //BA.debugLineNum = 118;BA.debugLine="If mValue = False Then state1 = 1 - state1";
+if (true) break;
+
+case 29:
+//if
+this.state = 34;
+if (parent._mvalue==parent.__c.False) {
+this.state = 31;
+;}if (true) break;
+
+case 31:
+//C
+this.state = 34;
+_state1 = (float) (1-_state1);
+if (true) break;
+
+case 34:
+//C
+this.state = 35;
+;
+ //BA.debugLineNum = 119;BA.debugLine="Draw(state1)";
+parent._draw(_state1);
+ //BA.debugLineNum = 120;BA.debugLine="Sleep(16)";
+parent.__c.Sleep(ba,this,(int) (16));
+this.state = 61;
+return;
+case 61:
+//C
+this.state = 35;
+;
+ //BA.debugLineNum = 121;BA.debugLine="If MyIndex <> LoopIndex Then Exit";
+if (true) break;
+
+case 35:
+//if
+this.state = 40;
+if (_myindex!=parent._loopindex) {
+this.state = 37;
+;}if (true) break;
+
+case 37:
+//C
+this.state = 40;
+this.state = 41;
+if (true) break;
+if (true) break;
+
+case 40:
+//C
+this.state = 26;
+;
+ if (true) break;
+;
+ //BA.debugLineNum = 123;BA.debugLine="If MyIndex = LoopIndex Then";
+
+case 41:
+//if
+this.state = 52;
+if (_myindex==parent._loopindex) {
+this.state = 43;
+}if (true) break;
+
+case 43:
+//C
+this.state = 44;
+ //BA.debugLineNum = 124;BA.debugLine="If mValue Then Draw(1) Else Draw(0)";
+if (true) break;
+
+case 44:
+//if
+this.state = 51;
+if (parent._mvalue) {
+this.state = 46;
+;}
+else {
+this.state = 48;
+;}if (true) break;
+
+case 46:
+//C
+this.state = 51;
+parent._draw((float) (1));
+if (true) break;
+
+case 48:
+//C
+this.state = 51;
+parent._draw((float) (0));
+if (true) break;
+
+case 51:
+//C
+this.state = 52;
+;
+ if (true) break;
+
+case 52:
+//C
+this.state = 53;
+;
+ if (true) break;
+;
+ //BA.debugLineNum = 127;BA.debugLine="If mEnabled Then";
+
+case 53:
+//if
+this.state = 58;
+if (parent._menabled) {
+this.state = 55;
+}else {
+this.state = 57;
+}if (true) break;
+
+case 55:
+//C
+this.state = 58;
+ //BA.debugLineNum = 128;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 1)";
+parent._xuiviewsutils._setalpha /*String*/ (ba,parent._mbase,(float) (1));
+ if (true) break;
+
+case 57:
+//C
+this.state = 58;
+ //BA.debugLineNum = 130;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 0.4)";
+parent._xuiviewsutils._setalpha /*String*/ (ba,parent._mbase,(float) (0.4));
+ if (true) break;
+
+case 58:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 133;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xsearchtemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsearchtemplate.java
new file mode 100644
index 0000000..c37f5d8
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsearchtemplate.java
@@ -0,0 +1,524 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xsearchtemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xsearchtemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xsearchtemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public b4a.example3.customlistview _customlistview1 = null;
+public reparto_izca.keymon.lat.b4xdialog _xdialog = null;
+public reparto_izca.keymon.lat.b4xfloattextfield _searchfield = null;
+public anywheresoftware.b4a.objects.collections.Map _prefixlist = null;
+public anywheresoftware.b4a.objects.collections.Map _substringlist = null;
+public int _texthighlightcolor = 0;
+public int _itemhightlightcolor = 0;
+public int _max_limit = 0;
+public int _maxnumberofitemstoshow = 0;
+public anywheresoftware.b4a.objects.collections.List _itemscache = null;
+public anywheresoftware.b4a.objects.collections.List _allitems = null;
+public String _selecteditem = "";
+public String _lastterm = "";
+public anywheresoftware.b4a.objects.IME _ime = null;
+public boolean _allowunlistedtext = false;
+public boolean _prefixonly = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _additemstolist(anywheresoftware.b4a.objects.collections.List _li,String _full) throws Exception{
+int _i = 0;
+String _item = "";
+int _x = 0;
+int _pnlcolor = 0;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+ //BA.debugLineNum = 128;BA.debugLine="Private Sub AddItemsToList(li As List, full As Str";
+ //BA.debugLineNum = 129;BA.debugLine="If li.IsInitialized = False Then Return";
+if (_li.IsInitialized()==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 134;BA.debugLine="For i = 0 To li.Size - 1";
+{
+final int step2 = 1;
+final int limit2 = (int) (_li.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit2 ;_i = _i + step2 ) {
+ //BA.debugLineNum = 135;BA.debugLine="If CustomListView1.Size >= MaxNumberOfItemsToSho";
+if (_customlistview1._getsize()>=_maxnumberofitemstoshow) {
+if (true) return "";};
+ //BA.debugLineNum = 136;BA.debugLine="Dim item As String = li.Get(i)";
+_item = BA.ObjectToString(_li.Get(_i));
+ //BA.debugLineNum = 137;BA.debugLine="Dim x As Int = item.ToLowerCase.IndexOf(full)";
+_x = _item.toLowerCase().indexOf(_full);
+ //BA.debugLineNum = 138;BA.debugLine="If x = -1 Then";
+if (_x==-1) {
+ //BA.debugLineNum = 139;BA.debugLine="Continue";
+if (true) continue;
+ };
+ //BA.debugLineNum = 141;BA.debugLine="Dim pnlColor As Int";
+_pnlcolor = 0;
+ //BA.debugLineNum = 142;BA.debugLine="If CustomListView1.Size = 0 And full.Length > 0";
+if (_customlistview1._getsize()==0 && _full.length()>0 && _allowunlistedtext==__c.False) {
+ //BA.debugLineNum = 143;BA.debugLine="pnlColor = ItemHightlightColor";
+_pnlcolor = _itemhightlightcolor;
+ }else {
+ //BA.debugLineNum = 145;BA.debugLine="pnlColor = CustomListView1.DefaultTextBackgroun";
+_pnlcolor = _customlistview1._defaulttextbackgroundcolor;
+ };
+ //BA.debugLineNum = 148;BA.debugLine="Dim cs As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 149;BA.debugLine="cs.Initialize.Append(item.SubString2(0, x)).Colo";
+_cs.Initialize().Append(BA.ObjectToCharSequence(_item.substring((int) (0),_x))).Color(_texthighlightcolor).Append(BA.ObjectToCharSequence(_item.substring(_x,(int) (_x+_full.length())))).Pop();
+ //BA.debugLineNum = 150;BA.debugLine="cs.Append(item.SubString(x + full.Length))";
+_cs.Append(BA.ObjectToCharSequence(_item.substring((int) (_x+_full.length()))));
+ //BA.debugLineNum = 151;BA.debugLine="If ItemsCache.Size > 0 Then";
+if (_itemscache.getSize()>0) {
+ //BA.debugLineNum = 152;BA.debugLine="Dim p As B4XView = ItemsCache.Get(ItemsCache.Si";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_itemscache.Get((int) (_itemscache.getSize()-1))));
+ //BA.debugLineNum = 153;BA.debugLine="ItemsCache.RemoveAt(ItemsCache.Size - 1)";
+_itemscache.RemoveAt((int) (_itemscache.getSize()-1));
+ //BA.debugLineNum = 155;BA.debugLine="p.GetView(0).Text = cs";
+_p.GetView((int) (0)).setText(BA.ObjectToCharSequence(_cs.getObject()));
+ //BA.debugLineNum = 160;BA.debugLine="p.Color = pnlColor";
+_p.setColor(_pnlcolor);
+ //BA.debugLineNum = 161;BA.debugLine="CustomListView1.Add(p, item)";
+_customlistview1._add(_p,(Object)(_item));
+ }else {
+ //BA.debugLineNum = 163;BA.debugLine="CustomListView1.AddTextItem(cs, item)";
+_customlistview1._addtextitem((Object)(_cs.getObject()),(Object)(_item));
+ };
+ }
+};
+ //BA.debugLineNum = 184;BA.debugLine="For i = 0 To li.Size - 1";
+{
+final int step28 = 1;
+final int limit28 = (int) (_li.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit28 ;_i = _i + step28 ) {
+ //BA.debugLineNum = 185;BA.debugLine="Dim item As String = li.Get(i)";
+_item = BA.ObjectToString(_li.Get(_i));
+ //BA.debugLineNum = 186;BA.debugLine="Dim x As Int = item.ToLowerCase.IndexOf(full)";
+_x = _item.toLowerCase().indexOf(_full);
+ //BA.debugLineNum = 187;BA.debugLine="If x = -1 Then";
+if (_x==-1) {
+ //BA.debugLineNum = 188;BA.debugLine="Continue";
+if (true) continue;
+ };
+ }
+};
+ //BA.debugLineNum = 191;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView";
+_customlistview1 = new b4a.example3.customlistview();
+ //BA.debugLineNum = 5;BA.debugLine="Private xDialog As B4XDialog";
+_xdialog = new reparto_izca.keymon.lat.b4xdialog();
+ //BA.debugLineNum = 6;BA.debugLine="Public SearchField As B4XFloatTextField";
+_searchfield = new reparto_izca.keymon.lat.b4xfloattextfield();
+ //BA.debugLineNum = 7;BA.debugLine="Private prefixList As Map";
+_prefixlist = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 8;BA.debugLine="Private substringList As Map";
+_substringlist = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 9;BA.debugLine="Public TextHighlightColor As Int = 0xFFFD5C5C";
+_texthighlightcolor = ((int)0xfffd5c5c);
+ //BA.debugLineNum = 10;BA.debugLine="Public ItemHightlightColor As Int = 0x7E008EFF";
+_itemhightlightcolor = ((int)0x7e008eff);
+ //BA.debugLineNum = 11;BA.debugLine="Private MAX_LIMIT = 4 As Int";
+_max_limit = (int) (4);
+ //BA.debugLineNum = 12;BA.debugLine="Public MaxNumberOfItemsToShow As Int = 100";
+_maxnumberofitemstoshow = (int) (100);
+ //BA.debugLineNum = 13;BA.debugLine="Private ItemsCache As List";
+_itemscache = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 14;BA.debugLine="Private AllItems As List";
+_allitems = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 15;BA.debugLine="Public SelectedItem As String";
+_selecteditem = "";
+ //BA.debugLineNum = 16;BA.debugLine="Private LastTerm As String";
+_lastterm = "";
+ //BA.debugLineNum = 18;BA.debugLine="Private IME As IME";
+_ime = new anywheresoftware.b4a.objects.IME();
+ //BA.debugLineNum = 20;BA.debugLine="Public AllowUnlistedText As Boolean";
+_allowunlistedtext = false;
+ //BA.debugLineNum = 21;BA.debugLine="Public PrefixOnly As Boolean";
+_prefixonly = false;
+ //BA.debugLineNum = 22;BA.debugLine="End Sub";
+return "";
+}
+public String _customlistview1_itemclick(int _index,Object _value) throws Exception{
+ //BA.debugLineNum = 122;BA.debugLine="Private Sub CustomListView1_ItemClick (Index As In";
+ //BA.debugLineNum = 123;BA.debugLine="If Value = \"\" Then Return";
+if ((_value).equals((Object)(""))) {
+if (true) return "";};
+ //BA.debugLineNum = 124;BA.debugLine="SelectedItem = Value";
+_selecteditem = BA.ObjectToString(_value);
+ //BA.debugLineNum = 125;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)";
+_xdialog._close /*boolean*/ (_xui.DialogResponse_Positive);
+ //BA.debugLineNum = 126;BA.debugLine="End Sub";
+return "";
+}
+public String _dialogclosed(int _result) throws Exception{
+ //BA.debugLineNum = 241;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore";
+ //BA.debugLineNum = 243;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 61;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 62;BA.debugLine="Return mBase";
+if (true) return _mbase;
+ //BA.debugLineNum = 63;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+int _height = 0;
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 24;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 25;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
+_mbase = _xui.CreatePanel(ba,"mBase");
+ //BA.debugLineNum = 27;BA.debugLine="Dim height As Int";
+_height = 0;
+ //BA.debugLineNum = 28;BA.debugLine="If xui.IsB4A Or xui.IsB4i Then height = 220dip El";
+if (_xui.getIsB4A() || _xui.getIsB4i()) {
+_height = __c.DipToCurrent((int) (220));}
+else {
+_height = __c.DipToCurrent((int) (300));};
+ //BA.debugLineNum = 29;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, height)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),_height);
+ //BA.debugLineNum = 30;BA.debugLine="mBase.LoadLayout(\"SearchTemplate\")";
+_mbase.LoadLayout("SearchTemplate",ba);
+ //BA.debugLineNum = 31;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 32;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr";
+_customlistview1._sv.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 33;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF";
+_customlistview1._defaulttextbackgroundcolor = ((int)0xff555555);
+ //BA.debugLineNum = 34;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit";
+_customlistview1._defaulttextcolor = _xui.Color_White;
+ //BA.debugLineNum = 44;BA.debugLine="ItemsCache.Initialize";
+_itemscache.Initialize();
+ //BA.debugLineNum = 45;BA.debugLine="prefixList.Initialize";
+_prefixlist.Initialize();
+ //BA.debugLineNum = 46;BA.debugLine="substringList.Initialize";
+_substringlist.Initialize();
+ //BA.debugLineNum = 48;BA.debugLine="IME.Initialize(\"\")";
+_ime.Initialize("");
+ //BA.debugLineNum = 49;BA.debugLine="Dim jo As JavaObject = SearchField.TextField";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_searchfield._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ().getObject()));
+ //BA.debugLineNum = 50;BA.debugLine="jo.RunMethod(\"setImeOptions\", Array(Bit.Or(335544";
+_jo.RunMethod("setImeOptions",new Object[]{(Object)(__c.Bit.Or((int) (33554432),(int) (6)))});
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return "";
+}
+public String _resize(int _width,int _height) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _c = null;
+ //BA.debugLineNum = 54;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)";
+ //BA.debugLineNum = 55;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 56;BA.debugLine="Dim c As B4XView = CustomListView1.AsView";
+_c = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_c = _customlistview1._asview();
+ //BA.debugLineNum = 57;BA.debugLine="c.SetLayoutAnimated(0, 0, c.Top, Width, Height -";
+_c.SetLayoutAnimated((int) (0),(int) (0),_c.getTop(),_width,(int) (_height-_c.getTop()));
+ //BA.debugLineNum = 58;BA.debugLine="CustomListView1.Base_Resize(Width, c.Height)";
+_customlistview1._base_resize(_width,_c.getHeight());
+ //BA.debugLineNum = 59;BA.debugLine="End Sub";
+return "";
+}
+public String _searchfield_enterpressed() throws Exception{
+ //BA.debugLineNum = 112;BA.debugLine="Private Sub SearchField_EnterPressed";
+ //BA.debugLineNum = 113;BA.debugLine="If AllowUnlistedText Then";
+if (_allowunlistedtext) {
+ //BA.debugLineNum = 114;BA.debugLine="SelectedItem = LastTerm";
+_selecteditem = _lastterm;
+ //BA.debugLineNum = 115;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)";
+_xdialog._close /*boolean*/ (_xui.DialogResponse_Positive);
+ }else if(_customlistview1._getsize()>0 && _lastterm.length()>0) {
+ //BA.debugLineNum = 117;BA.debugLine="CustomListView1_ItemClick(0, CustomListView1.Get";
+_customlistview1_itemclick((int) (0),_customlistview1._getvalue((int) (0)));
+ };
+ //BA.debugLineNum = 119;BA.debugLine="End Sub";
+return "";
+}
+public String _searchfield_textchanged(String _old,String _new) throws Exception{
+ //BA.debugLineNum = 81;BA.debugLine="Private Sub SearchField_TextChanged (Old As String";
+ //BA.debugLineNum = 82;BA.debugLine="Update(New, False)";
+_update(_new,__c.False);
+ //BA.debugLineNum = 83;BA.debugLine="End Sub";
+return "";
+}
+public String _setindex(Object _index) throws Exception{
+Object[] _obj = null;
+ //BA.debugLineNum = 233;BA.debugLine="Public Sub SetIndex(Index As Object)";
+ //BA.debugLineNum = 234;BA.debugLine="Dim obj() As Object";
+_obj = new Object[(int) (0)];
+{
+int d0 = _obj.length;
+for (int i0 = 0;i0 < d0;i0++) {
+_obj[i0] = new Object();
+}
+}
+;
+ //BA.debugLineNum = 235;BA.debugLine="obj = Index";
+_obj = (Object[])(_index);
+ //BA.debugLineNum = 236;BA.debugLine="prefixList = obj(0)";
+_prefixlist = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_obj[(int) (0)]));
+ //BA.debugLineNum = 237;BA.debugLine="substringList = obj(1)";
+_substringlist = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_obj[(int) (1)]));
+ //BA.debugLineNum = 238;BA.debugLine="Dim AllItems As List = obj(2)";
+_allitems = new anywheresoftware.b4a.objects.collections.List();
+_allitems = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_obj[(int) (2)]));
+ //BA.debugLineNum = 239;BA.debugLine="End Sub";
+return "";
+}
+public Object _setitems(anywheresoftware.b4a.objects.collections.List _items) throws Exception{
+long _starttime = 0L;
+anywheresoftware.b4a.objects.collections.Map _noduplicates = null;
+anywheresoftware.b4a.objects.collections.Map _m = null;
+anywheresoftware.b4a.objects.collections.List _li = null;
+int _i = 0;
+String _itemnotlower = "";
+String _itemtolower = "";
+int _start = 0;
+int _count = 0;
+String _str = "";
+ //BA.debugLineNum = 196;BA.debugLine="Public Sub SetItems(Items As List) As Object";
+ //BA.debugLineNum = 197;BA.debugLine="Dim startTime As Long";
+_starttime = 0L;
+ //BA.debugLineNum = 198;BA.debugLine="startTime = DateTime.Now";
+_starttime = __c.DateTime.getNow();
+ //BA.debugLineNum = 199;BA.debugLine="Dim noDuplicates As Map";
+_noduplicates = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 200;BA.debugLine="noDuplicates.Initialize";
+_noduplicates.Initialize();
+ //BA.debugLineNum = 201;BA.debugLine="prefixList.Clear";
+_prefixlist.Clear();
+ //BA.debugLineNum = 202;BA.debugLine="substringList.Clear";
+_substringlist.Clear();
+ //BA.debugLineNum = 203;BA.debugLine="Dim m As Map";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 204;BA.debugLine="Dim li As List";
+_li = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 205;BA.debugLine="For i = 0 To Items.Size - 1";
+{
+final int step9 = 1;
+final int limit9 = (int) (_items.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit9 ;_i = _i + step9 ) {
+ //BA.debugLineNum = 206;BA.debugLine="Dim itemNotLower As String = Items.Get(i)";
+_itemnotlower = BA.ObjectToString(_items.Get(_i));
+ //BA.debugLineNum = 207;BA.debugLine="Dim itemToLower As String = itemNotLower.ToLower";
+_itemtolower = _itemnotlower.toLowerCase();
+ //BA.debugLineNum = 208;BA.debugLine="noDuplicates.Clear";
+_noduplicates.Clear();
+ //BA.debugLineNum = 209;BA.debugLine="For start = 0 To IIf(PrefixOnly, 0, itemToLower.";
+{
+final int step13 = 1;
+final int limit13 = (int)(BA.ObjectToNumber(((_prefixonly) ? ((Object)(0)) : ((Object)(_itemtolower.length()-1)))));
+_start = (int) (0) ;
+for (;_start <= limit13 ;_start = _start + step13 ) {
+ //BA.debugLineNum = 210;BA.debugLine="Dim count As Int = 1";
+_count = (int) (1);
+ //BA.debugLineNum = 211;BA.debugLine="Do While count <= MAX_LIMIT And start + count <";
+while (_count<=_max_limit && _start+_count<=_itemtolower.length()) {
+ //BA.debugLineNum = 212;BA.debugLine="Dim str As String = itemToLower.SubString2(sta";
+_str = _itemtolower.substring(_start,(int) (_start+_count));
+ //BA.debugLineNum = 213;BA.debugLine="If noDuplicates.ContainsKey(str) = False Then";
+if (_noduplicates.ContainsKey((Object)(_str))==__c.False) {
+ //BA.debugLineNum = 214;BA.debugLine="noDuplicates.Put(str, \"\")";
+_noduplicates.Put((Object)(_str),(Object)(""));
+ //BA.debugLineNum = 215;BA.debugLine="If start = 0 Then m = prefixList Else m = sub";
+if (_start==0) {
+_m = _prefixlist;}
+else {
+_m = _substringlist;};
+ //BA.debugLineNum = 216;BA.debugLine="li = m.Get(str)";
+_li = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)(_str))));
+ //BA.debugLineNum = 217;BA.debugLine="If li.IsInitialized = False Then";
+if (_li.IsInitialized()==__c.False) {
+ //BA.debugLineNum = 218;BA.debugLine="li.Initialize";
+_li.Initialize();
+ //BA.debugLineNum = 219;BA.debugLine="m.Put(str, li)";
+_m.Put((Object)(_str),(Object)(_li.getObject()));
+ };
+ //BA.debugLineNum = 221;BA.debugLine="li.Add(itemNotLower)";
+_li.Add((Object)(_itemnotlower));
+ };
+ //BA.debugLineNum = 223;BA.debugLine="count = count + 1";
+_count = (int) (_count+1);
+ }
+;
+ }
+};
+ }
+};
+ //BA.debugLineNum = 227;BA.debugLine="Log(\"Index time: \" & (DateTime.Now - startTime) &";
+__c.LogImpl("967436575","Index time: "+BA.NumberToString((__c.DateTime.getNow()-_starttime))+" ms ("+BA.NumberToString(_items.getSize())+" Items)",0);
+ //BA.debugLineNum = 228;BA.debugLine="AllItems = Items";
+_allitems = _items;
+ //BA.debugLineNum = 229;BA.debugLine="Return Array(prefixList, substringList, AllItems)";
+if (true) return (Object)(new Object[]{(Object)(_prefixlist.getObject()),(Object)(_substringlist.getObject()),(Object)(_allitems.getObject())});
+ //BA.debugLineNum = 230;BA.debugLine="End Sub";
+return null;
+}
+public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_Show extends BA.ResumableSub {
+public ResumableSub_Show(reparto_izca.keymon.lat.b4xsearchtemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) {
+this.parent = parent;
+this._dialog = _dialog;
+}
+reparto_izca.keymon.lat.b4xsearchtemplate parent;
+reparto_izca.keymon.lat.b4xdialog _dialog;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 66;BA.debugLine="xDialog = Dialog";
+parent._xdialog = _dialog;
+ //BA.debugLineNum = 67;BA.debugLine="xDialog.PutAtTop = xui.IsB4A Or xui.IsB4i";
+parent._xdialog._putattop /*boolean*/ = parent._xui.getIsB4A() || parent._xui.getIsB4i();
+ //BA.debugLineNum = 68;BA.debugLine="CustomListView1.AsView.Color = xui.Color_Transpar";
+parent._customlistview1._asview().setColor(parent._xui.Color_Transparent);
+ //BA.debugLineNum = 69;BA.debugLine="CustomListView1.sv.Color = xui.Color_Transparent";
+parent._customlistview1._sv.setColor(parent._xui.Color_Transparent);
+ //BA.debugLineNum = 70;BA.debugLine="mBase.Color = xui.Color_Transparent";
+parent._mbase.setColor(parent._xui.Color_Transparent);
+ //BA.debugLineNum = 71;BA.debugLine="Sleep(20)";
+parent.__c.Sleep(ba,this,(int) (20));
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 72;BA.debugLine="Update(\"\", True)";
+parent._update("",parent.__c.True);
+ //BA.debugLineNum = 73;BA.debugLine="CustomListView1.JumpToItem(0)";
+parent._customlistview1._jumptoitem((int) (0));
+ //BA.debugLineNum = 74;BA.debugLine="SearchField.Text = \"\"";
+parent._searchfield._settext /*String*/ ("");
+ //BA.debugLineNum = 75;BA.debugLine="SearchField.TextField.RequestFocus";
+parent._searchfield._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ().RequestFocus();
+ //BA.debugLineNum = 77;BA.debugLine="IME.ShowKeyboard(SearchField.TextField)";
+parent._ime.ShowKeyboard((android.view.View)(parent._searchfield._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ().getObject()));
+ //BA.debugLineNum = 79;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _update(String _term,boolean _force) throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+String _str1 = "";
+String _str2 = "";
+ //BA.debugLineNum = 85;BA.debugLine="Private Sub Update(Term As String, Force As Boolea";
+ //BA.debugLineNum = 86;BA.debugLine="If Term = LastTerm And Force = False Then Return";
+if ((_term).equals(_lastterm) && _force==__c.False) {
+if (true) return "";};
+ //BA.debugLineNum = 87;BA.debugLine="LastTerm = Term";
+_lastterm = _term;
+ //BA.debugLineNum = 88;BA.debugLine="If xui.IsB4J = False Then";
+if (_xui.getIsB4J()==__c.False) {
+ //BA.debugLineNum = 89;BA.debugLine="For i = 0 To CustomListView1.Size - 1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_customlistview1._getsize()-1);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 90;BA.debugLine="Dim p As B4XView = CustomListView1.GetPanel(i)";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _customlistview1._getpanel(_i);
+ //BA.debugLineNum = 91;BA.debugLine="p.RemoveViewFromParent";
+_p.RemoveViewFromParent();
+ //BA.debugLineNum = 92;BA.debugLine="ItemsCache.Add(p)";
+_itemscache.Add((Object)(_p.getObject()));
+ }
+};
+ };
+ //BA.debugLineNum = 95;BA.debugLine="CustomListView1.Clear";
+_customlistview1._clear();
+ //BA.debugLineNum = 97;BA.debugLine="Dim str1, str2 As String";
+_str1 = "";
+_str2 = "";
+ //BA.debugLineNum = 98;BA.debugLine="str1 = Term.ToLowerCase";
+_str1 = _term.toLowerCase();
+ //BA.debugLineNum = 99;BA.debugLine="If Term = \"\" Then";
+if ((_term).equals("")) {
+ //BA.debugLineNum = 100;BA.debugLine="AddItemsToList(AllItems, str1)";
+_additemstolist(_allitems,_str1);
+ }else {
+ //BA.debugLineNum = 102;BA.debugLine="If str1.Length > MAX_LIMIT Then";
+if (_str1.length()>_max_limit) {
+ //BA.debugLineNum = 103;BA.debugLine="str2 = str1.SubString2(0, MAX_LIMIT)";
+_str2 = _str1.substring((int) (0),_max_limit);
+ }else {
+ //BA.debugLineNum = 105;BA.debugLine="str2 = str1";
+_str2 = _str1;
+ };
+ //BA.debugLineNum = 107;BA.debugLine="AddItemsToList(prefixList.Get(str2), str1)";
+_additemstolist((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_prefixlist.Get((Object)(_str2)))),_str1);
+ //BA.debugLineNum = 108;BA.debugLine="AddItemsToList(substringList.Get(str2), str1)";
+_additemstolist((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_substringlist.Get((Object)(_str2)))),_str1);
+ };
+ //BA.debugLineNum = 110;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xseekbar.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xseekbar.java
new file mode 100644
index 0000000..d52a2de
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xseekbar.java
@@ -0,0 +1,299 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xseekbar extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xseekbar");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xseekbar.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public int _color1 = 0;
+public int _color2 = 0;
+public int _thumbcolor = 0;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public Object _tag = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _touchpanel = null;
+public int _mvalue = 0;
+public int _minvalue = 0;
+public int _maxvalue = 0;
+public int _interval = 0;
+public boolean _vertical = false;
+public int _size1 = 0;
+public int _size2 = 0;
+public int _radius1 = 0;
+public int _radius2 = 0;
+public boolean _pressed = false;
+public int _size = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 52;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As";
+ //BA.debugLineNum = 53;BA.debugLine="cvs.Resize(Width, Height)";
+_cvs.Resize((float) (_width),(float) (_height));
+ //BA.debugLineNum = 54;BA.debugLine="TouchPanel.SetLayoutAnimated(0, 0, 0, Width, Heig";
+_touchpanel.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 55;BA.debugLine="Vertical = mBase.Height > mBase.Width";
+_vertical = _mbase.getHeight()>_mbase.getWidth();
+ //BA.debugLineNum = 56;BA.debugLine="size = Max(mBase.Height, mBase.Width) - 2 * Radiu";
+_size = (int) (__c.Max(_mbase.getHeight(),_mbase.getWidth())-2*_radius2);
+ //BA.debugLineNum = 57;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 58;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 11;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 12;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 13;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 14;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 16;BA.debugLine="Public Color1, Color2, ThumbColor As Int";
+_color1 = 0;
+_color2 = 0;
+_thumbcolor = 0;
+ //BA.debugLineNum = 17;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 18;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 19;BA.debugLine="Private TouchPanel As B4XView";
+_touchpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Private mValue As Int";
+_mvalue = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Public MinValue, MaxValue As Int";
+_minvalue = 0;
+_maxvalue = 0;
+ //BA.debugLineNum = 22;BA.debugLine="Public Interval As Int = 1";
+_interval = (int) (1);
+ //BA.debugLineNum = 23;BA.debugLine="Private Vertical As Boolean";
+_vertical = false;
+ //BA.debugLineNum = 24;BA.debugLine="Public Size1 = 4dip, Size2 = 2dip, Radius1 = 6dip";
+_size1 = __c.DipToCurrent((int) (4));
+_size2 = __c.DipToCurrent((int) (2));
+_radius1 = __c.DipToCurrent((int) (6));
+_radius2 = __c.DipToCurrent((int) (12));
+ //BA.debugLineNum = 25;BA.debugLine="Private Pressed As Boolean";
+_pressed = false;
+ //BA.debugLineNum = 26;BA.debugLine="Private size As Int";
+_size = 0;
+ //BA.debugLineNum = 27;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+ //BA.debugLineNum = 35;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 36;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 37;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 37;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 38;BA.debugLine="Color1 = xui.PaintOrColorToColor(Props.Get(\"Color";
+_color1 = _xui.PaintOrColorToColor(_props.Get((Object)("Color1")));
+ //BA.debugLineNum = 39;BA.debugLine="Color2 = xui.PaintOrColorToColor(Props.Get(\"Color";
+_color2 = _xui.PaintOrColorToColor(_props.Get((Object)("Color2")));
+ //BA.debugLineNum = 40;BA.debugLine="ThumbColor = xui.PaintOrColorToColor(Props.Get(\"T";
+_thumbcolor = _xui.PaintOrColorToColor(_props.Get((Object)("ThumbColor")));
+ //BA.debugLineNum = 41;BA.debugLine="Interval = Max(1, Props.GetDefault(\"Interval\", 1)";
+_interval = (int) (__c.Max(1,(double)(BA.ObjectToNumber(_props.GetDefault((Object)("Interval"),(Object)(1))))));
+ //BA.debugLineNum = 42;BA.debugLine="MinValue = Props.Get(\"Min\")";
+_minvalue = (int)(BA.ObjectToNumber(_props.Get((Object)("Min"))));
+ //BA.debugLineNum = 43;BA.debugLine="MaxValue = Props.Get(\"Max\")";
+_maxvalue = (int)(BA.ObjectToNumber(_props.Get((Object)("Max"))));
+ //BA.debugLineNum = 44;BA.debugLine="mValue = Max(MinValue, Min(MaxValue, Props.Get(\"V";
+_mvalue = (int) (__c.Max(_minvalue,__c.Min(_maxvalue,(double)(BA.ObjectToNumber(_props.Get((Object)("Value")))))));
+ //BA.debugLineNum = 45;BA.debugLine="cvs.Initialize(mBase)";
+_cvs.Initialize(_mbase);
+ //BA.debugLineNum = 46;BA.debugLine="TouchPanel = xui.CreatePanel(\"TouchPanel\")";
+_touchpanel = _xui.CreatePanel(ba,"TouchPanel");
+ //BA.debugLineNum = 47;BA.debugLine="mBase.AddView(TouchPanel, 0, 0, mBase.Width, mBas";
+_mbase.AddView((android.view.View)(_touchpanel.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 48;BA.debugLine="If xui.IsB4A Or xui.IsB4i Then Radius2 = 20dip";
+if (_xui.getIsB4A() || _xui.getIsB4i()) {
+_radius2 = __c.DipToCurrent((int) (20));};
+ //BA.debugLineNum = 49;BA.debugLine="If xui.IsB4A Then Base_Resize(mBase.Width, mBase.";
+if (_xui.getIsB4A()) {
+_base_resize(_mbase.getWidth(),_mbase.getHeight());};
+ //BA.debugLineNum = 50;BA.debugLine="End Sub";
+return "";
+}
+public int _getvalue() throws Exception{
+ //BA.debugLineNum = 130;BA.debugLine="Public Sub getValue As Int";
+ //BA.debugLineNum = 131;BA.debugLine="Return mValue";
+if (true) return _mvalue;
+ //BA.debugLineNum = 132;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 29;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 30;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 31;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 32;BA.debugLine="End Sub";
+return "";
+}
+public String _raisetouchstateevent() throws Exception{
+ //BA.debugLineNum = 102;BA.debugLine="Private Sub RaiseTouchStateEvent";
+ //BA.debugLineNum = 103;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_TouchS";
+if (_xui.SubExists(ba,_mcallback,_meventname+"_TouchStateChanged",(int) (1))) {
+ //BA.debugLineNum = 104;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_TouchS";
+__c.CallSubDelayed2(ba,_mcallback,_meventname+"_TouchStateChanged",(Object)(_pressed));
+ };
+ //BA.debugLineNum = 106;BA.debugLine="End Sub";
+return "";
+}
+public String _setvalue(int _v) throws Exception{
+ //BA.debugLineNum = 125;BA.debugLine="Public Sub setValue(v As Int)";
+ //BA.debugLineNum = 126;BA.debugLine="mValue = Max(MinValue, Min(MaxValue, v))";
+_mvalue = (int) (__c.Max(_minvalue,__c.Min(_maxvalue,_v)));
+ //BA.debugLineNum = 127;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 128;BA.debugLine="End Sub";
+return "";
+}
+public String _setvaluebasedontouch(int _x,int _y) throws Exception{
+int _v = 0;
+int _newvalue = 0;
+ //BA.debugLineNum = 108;BA.debugLine="Private Sub SetValueBasedOnTouch(x As Int, y As In";
+ //BA.debugLineNum = 109;BA.debugLine="Dim v As Int";
+_v = 0;
+ //BA.debugLineNum = 110;BA.debugLine="If Vertical Then";
+if (_vertical) {
+ //BA.debugLineNum = 111;BA.debugLine="v = (mBase.Height - Radius2 - y) / size * (MaxVa";
+_v = (int) ((_mbase.getHeight()-_radius2-_y)/(double)_size*(_maxvalue-_minvalue)+_minvalue);
+ }else {
+ //BA.debugLineNum = 113;BA.debugLine="v = (x - Radius2) / size * (MaxValue - MinValue)";
+_v = (int) ((_x-_radius2)/(double)_size*(_maxvalue-_minvalue)+_minvalue);
+ };
+ //BA.debugLineNum = 115;BA.debugLine="v = Round (v / Interval) * Interval";
+_v = (int) (__c.Round(_v/(double)_interval)*_interval);
+ //BA.debugLineNum = 116;BA.debugLine="Dim NewValue As Int = Max(MinValue, Min(MaxValue,";
+_newvalue = (int) (__c.Max(_minvalue,__c.Min(_maxvalue,_v)));
+ //BA.debugLineNum = 117;BA.debugLine="If NewValue <> mValue Then";
+if (_newvalue!=_mvalue) {
+ //BA.debugLineNum = 118;BA.debugLine="mValue = NewValue";
+_mvalue = _newvalue;
+ //BA.debugLineNum = 119;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Value";
+if (_xui.SubExists(ba,_mcallback,_meventname+"_ValueChanged",(int) (1))) {
+ //BA.debugLineNum = 120;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Value";
+__c.CallSubDelayed2(ba,_mcallback,_meventname+"_ValueChanged",(Object)(_mvalue));
+ };
+ };
+ //BA.debugLineNum = 123;BA.debugLine="End Sub";
+return "";
+}
+public String _touchpanel_touch(int _action,float _x,float _y) throws Exception{
+ //BA.debugLineNum = 88;BA.debugLine="Private Sub TouchPanel_Touch (Action As Int, X As";
+ //BA.debugLineNum = 89;BA.debugLine="If Action = TouchPanel.TOUCH_ACTION_DOWN Then";
+if (_action==_touchpanel.TOUCH_ACTION_DOWN) {
+ //BA.debugLineNum = 90;BA.debugLine="Pressed = True";
+_pressed = __c.True;
+ //BA.debugLineNum = 91;BA.debugLine="RaiseTouchStateEvent";
+_raisetouchstateevent();
+ //BA.debugLineNum = 92;BA.debugLine="SetValueBasedOnTouch(X, Y)";
+_setvaluebasedontouch((int) (_x),(int) (_y));
+ }else if(_action==_touchpanel.TOUCH_ACTION_MOVE) {
+ //BA.debugLineNum = 94;BA.debugLine="SetValueBasedOnTouch(X, Y)";
+_setvaluebasedontouch((int) (_x),(int) (_y));
+ }else if(_action==_touchpanel.TOUCH_ACTION_UP) {
+ //BA.debugLineNum = 96;BA.debugLine="Pressed = False";
+_pressed = __c.False;
+ //BA.debugLineNum = 97;BA.debugLine="RaiseTouchStateEvent";
+_raisetouchstateevent();
+ };
+ //BA.debugLineNum = 99;BA.debugLine="Update";
+_update();
+ //BA.debugLineNum = 100;BA.debugLine="End Sub";
+return "";
+}
+public String _update() throws Exception{
+int _s1 = 0;
+int _y = 0;
+int _x = 0;
+ //BA.debugLineNum = 61;BA.debugLine="Public Sub Update";
+ //BA.debugLineNum = 63;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
+_cvs.ClearRect(_cvs.getTargetRect());
+ //BA.debugLineNum = 64;BA.debugLine="If size > 0 Then";
+if (_size>0) {
+ //BA.debugLineNum = 65;BA.debugLine="If Vertical = False Then";
+if (_vertical==__c.False) {
+ //BA.debugLineNum = 66;BA.debugLine="Dim s1 As Int = Radius2 + (mValue - MinValue) /";
+_s1 = (int) (_radius2+(_mvalue-_minvalue)/(double)(_maxvalue-_minvalue)*_size);
+ //BA.debugLineNum = 67;BA.debugLine="Dim y As Int = mBase.Height / 2";
+_y = (int) (_mbase.getHeight()/(double)2);
+ //BA.debugLineNum = 68;BA.debugLine="cvs.DrawLine(Radius2, y, s1, y, Color1, Size1)";
+_cvs.DrawLine((float) (_radius2),(float) (_y),(float) (_s1),(float) (_y),_color1,(float) (_size1));
+ //BA.debugLineNum = 69;BA.debugLine="cvs.DrawLine(s1, y, mBase.Width - Radius2, y, C";
+_cvs.DrawLine((float) (_s1),(float) (_y),(float) (_mbase.getWidth()-_radius2),(float) (_y),_color2,(float) (_size2));
+ //BA.debugLineNum = 70;BA.debugLine="cvs.DrawCircle(s1, y, Radius1, Color1, True, 0)";
+_cvs.DrawCircle((float) (_s1),(float) (_y),(float) (_radius1),_color1,__c.True,(float) (0));
+ //BA.debugLineNum = 71;BA.debugLine="If Pressed Then";
+if (_pressed) {
+ //BA.debugLineNum = 72;BA.debugLine="cvs.DrawCircle(s1, y, Radius2, ThumbColor, Tru";
+_cvs.DrawCircle((float) (_s1),(float) (_y),(float) (_radius2),_thumbcolor,__c.True,(float) (0));
+ };
+ }else {
+ //BA.debugLineNum = 75;BA.debugLine="Dim s1 As Int = Radius2 + (MaxValue - mValue) /";
+_s1 = (int) (_radius2+(_maxvalue-_mvalue)/(double)(_maxvalue-_minvalue)*_size);
+ //BA.debugLineNum = 76;BA.debugLine="Dim x As Int = mBase.Width / 2";
+_x = (int) (_mbase.getWidth()/(double)2);
+ //BA.debugLineNum = 77;BA.debugLine="cvs.DrawLine(x, Radius2, x, s1, Color2, Size2)";
+_cvs.DrawLine((float) (_x),(float) (_radius2),(float) (_x),(float) (_s1),_color2,(float) (_size2));
+ //BA.debugLineNum = 78;BA.debugLine="cvs.DrawLine(x, s1, x, mBase.Height - Radius2,";
+_cvs.DrawLine((float) (_x),(float) (_s1),(float) (_x),(float) (_mbase.getHeight()-_radius2),_color1,(float) (_size1));
+ //BA.debugLineNum = 79;BA.debugLine="cvs.DrawCircle(x, s1, Radius1, Color1, True, 0)";
+_cvs.DrawCircle((float) (_x),(float) (_s1),(float) (_radius1),_color1,__c.True,(float) (0));
+ //BA.debugLineNum = 80;BA.debugLine="If Pressed Then";
+if (_pressed) {
+ //BA.debugLineNum = 81;BA.debugLine="cvs.DrawCircle(x, s1, Radius2, ThumbColor, Tru";
+_cvs.DrawCircle((float) (_x),(float) (_s1),(float) (_radius2),_thumbcolor,__c.True,(float) (0));
+ };
+ };
+ };
+ //BA.debugLineNum = 85;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 86;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xset.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xset.java
new file mode 100644
index 0000000..ed5a35d
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xset.java
@@ -0,0 +1,103 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xset extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xset");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xset.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public reparto_izca.keymon.lat.b4xorderedmap _map = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _add(Object _value) throws Exception{
+ //BA.debugLineNum = 9;BA.debugLine="Public Sub Add(Value As Object)";
+ //BA.debugLineNum = 10;BA.debugLine="map.Put(Value, \"\")";
+_map._put /*String*/ (_value,(Object)(""));
+ //BA.debugLineNum = 11;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.collections.List _aslist() throws Exception{
+ //BA.debugLineNum = 29;BA.debugLine="Public Sub AsList As List";
+ //BA.debugLineNum = 30;BA.debugLine="Return map.Keys";
+if (true) return _map._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 31;BA.debugLine="End Sub";
+return null;
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private map As B4XOrderedMap";
+_map = new reparto_izca.keymon.lat.b4xorderedmap();
+ //BA.debugLineNum = 3;BA.debugLine="End Sub";
+return "";
+}
+public String _clear() throws Exception{
+ //BA.debugLineNum = 25;BA.debugLine="Public Sub Clear";
+ //BA.debugLineNum = 26;BA.debugLine="map.Clear";
+_map._clear /*String*/ ();
+ //BA.debugLineNum = 27;BA.debugLine="End Sub";
+return "";
+}
+public boolean _contains(Object _value) throws Exception{
+ //BA.debugLineNum = 17;BA.debugLine="Public Sub Contains (Value As Object) As Boolean";
+ //BA.debugLineNum = 18;BA.debugLine="Return map.ContainsKey(Value)";
+if (true) return _map._containskey /*boolean*/ (_value);
+ //BA.debugLineNum = 19;BA.debugLine="End Sub";
+return false;
+}
+public int _getsize() throws Exception{
+ //BA.debugLineNum = 21;BA.debugLine="Public Sub getSize As Int";
+ //BA.debugLineNum = 22;BA.debugLine="Return map.Size";
+if (true) return _map._getsize /*int*/ ();
+ //BA.debugLineNum = 23;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 5;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 6;BA.debugLine="map.Initialize";
+_map._initialize /*String*/ (ba);
+ //BA.debugLineNum = 7;BA.debugLine="End Sub";
+return "";
+}
+public String _remove(Object _value) throws Exception{
+ //BA.debugLineNum = 13;BA.debugLine="Public Sub Remove(Value As Object)";
+ //BA.debugLineNum = 14;BA.debugLine="map.Remove(Value)";
+_map._remove /*String*/ (_value);
+ //BA.debugLineNum = 15;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xsignaturetemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsignaturetemplate.java
new file mode 100644
index 0000000..c580042
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsignaturetemplate.java
@@ -0,0 +1,182 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xsignaturetemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xsignaturetemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xsignaturetemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public float _lastx = 0f;
+public float _lasty = 0f;
+public float _strokewidth = 0f;
+public int _strokecolor = 0;
+public int _textcolor = 0;
+public int _backgroundcolor = 0;
+public boolean _adddateandtime = false;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _textfont = null;
+public int _numberofpoints = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 4;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 5;BA.debugLine="Private LastX, LastY As Float";
+_lastx = 0f;
+_lasty = 0f;
+ //BA.debugLineNum = 6;BA.debugLine="Public StrokeWidth As Float = 2dip";
+_strokewidth = (float) (__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 7;BA.debugLine="Public StrokeColor As Int = xui.Color_Black";
+_strokecolor = _xui.Color_Black;
+ //BA.debugLineNum = 8;BA.debugLine="Public TextColor As Int = 0xFFFF8800";
+_textcolor = ((int)0xffff8800);
+ //BA.debugLineNum = 9;BA.debugLine="Public BackgroundColor As Int = xui.Color_White";
+_backgroundcolor = _xui.Color_White;
+ //BA.debugLineNum = 10;BA.debugLine="Public AddDateAndTime As Boolean = True";
+_adddateandtime = __c.True;
+ //BA.debugLineNum = 11;BA.debugLine="Public TextFont As B4XFont";
+_textfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
+ //BA.debugLineNum = 12;BA.debugLine="Public NumberOfPoints As Int";
+_numberofpoints = 0;
+ //BA.debugLineNum = 13;BA.debugLine="End Sub";
+return "";
+}
+public String _dialogclosed(int _result) throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+int _baseline = 0;
+ //BA.debugLineNum = 56;BA.debugLine="Private Sub DialogClosed (Result As Int)";
+ //BA.debugLineNum = 57;BA.debugLine="If Result = xui.DialogResponse_Positive And AddDa";
+if (_result==_xui.DialogResponse_Positive && _adddateandtime) {
+ //BA.debugLineNum = 58;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(\"M\", TextFont";
+_r = _cvs.MeasureText("M",_textfont);
+ //BA.debugLineNum = 59;BA.debugLine="Dim Baseline As Int = cvs.TargetRect.Bottom - r.";
+_baseline = (int) (_cvs.getTargetRect().getBottom()-_r.getHeight()-_r.getTop()-__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 60;BA.debugLine="cvs.DrawText($\"$DateTime{DateTime.Now}\"$, 2dip,";
+_cvs.DrawText(ba,(""+__c.SmartStringFormatter("datetime",(Object)(__c.DateTime.getNow()))+""),(float) (__c.DipToCurrent((int) (2))),(float) (_baseline),_textfont,_textcolor,BA.getEnumFromString(android.graphics.Paint.Align.class,"LEFT"));
+ };
+ //BA.debugLineNum = 62;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _getbitmap() throws Exception{
+ //BA.debugLineNum = 52;BA.debugLine="Public Sub getBitmap As B4XBitmap";
+ //BA.debugLineNum = 53;BA.debugLine="Return cvs.CreateBitmap";
+if (true) return _cvs.CreateBitmap();
+ //BA.debugLineNum = 54;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 28;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 29;BA.debugLine="Return mBase";
+if (true) return _mbase;
+ //BA.debugLineNum = 30;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 15;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 16;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
+_mbase = _xui.CreatePanel(ba,"mBase");
+ //BA.debugLineNum = 17;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 200dip)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (200)));
+ //BA.debugLineNum = 18;BA.debugLine="cvs.Initialize(mBase)";
+_cvs.Initialize(_mbase);
+ //BA.debugLineNum = 19;BA.debugLine="TextFont = xui.CreateDefaultFont(14)";
+_textfont = _xui.CreateDefaultFont((float) (14));
+ //BA.debugLineNum = 20;BA.debugLine="End Sub";
+return "";
+}
+public String _mbase_touch(int _action,float _x,float _y) throws Exception{
+ //BA.debugLineNum = 38;BA.debugLine="Private Sub mBase_Touch (Action As Int, X As Float";
+ //BA.debugLineNum = 39;BA.debugLine="Select Action";
+switch (BA.switchObjectToInt(_action,_mbase.TOUCH_ACTION_DOWN,_mbase.TOUCH_ACTION_MOVE)) {
+case 0: {
+ //BA.debugLineNum = 41;BA.debugLine="LastX = X";
+_lastx = _x;
+ //BA.debugLineNum = 42;BA.debugLine="LastY = Y";
+_lasty = _y;
+ break; }
+case 1: {
+ //BA.debugLineNum = 44;BA.debugLine="cvs.DrawLine(LastX, LastY, X, Y, StrokeColor, S";
+_cvs.DrawLine(_lastx,_lasty,_x,_y,_strokecolor,_strokewidth);
+ //BA.debugLineNum = 45;BA.debugLine="LastX = X";
+_lastx = _x;
+ //BA.debugLineNum = 46;BA.debugLine="LastY = Y";
+_lasty = _y;
+ //BA.debugLineNum = 47;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 48;BA.debugLine="NumberOfPoints = NumberOfPoints + 1";
+_numberofpoints = (int) (_numberofpoints+1);
+ break; }
+}
+;
+ //BA.debugLineNum = 50;BA.debugLine="End Sub";
+return "";
+}
+public String _resize(int _width,int _height) throws Exception{
+ //BA.debugLineNum = 22;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)";
+ //BA.debugLineNum = 23;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 24;BA.debugLine="cvs.Resize(Width, Height)";
+_cvs.Resize((float) (_width),(float) (_height));
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return "";
+}
+public String _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ //BA.debugLineNum = 32;BA.debugLine="Private Sub Show (Dialog As B4XDialog) 'ignore";
+ //BA.debugLineNum = 33;BA.debugLine="cvs.DrawRect(cvs.TargetRect, BackgroundColor, Tru";
+_cvs.DrawRect(_cvs.getTargetRect(),_backgroundcolor,__c.True,(float) (0));
+ //BA.debugLineNum = 34;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 35;BA.debugLine="NumberOfPoints = 0";
+_numberofpoints = (int) (0);
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+if (BA.fastSubCompare(sub, "SHOW"))
+ return _show((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xswitch.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xswitch.java
new file mode 100644
index 0000000..29c3a48
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xswitch.java
@@ -0,0 +1,507 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xswitch extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xswitch");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xswitch.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.bcpath._bcbrush _oncolor = null;
+public b4a.example.bcpath._bcbrush _offcolor = null;
+public b4a.example.bitmapcreator _bc = null;
+public int _width = 0;
+public int _height = 0;
+public b4a.example.bcpath._bcbrush _thumbcolor = null;
+public anywheresoftware.b4a.objects.ImageViewWrapper _iv = null;
+public boolean _mvalue = false;
+public b4a.example.bcpath._bcbrush _transparent = null;
+public int _loopindex = 0;
+public Object _tag = null;
+public float _scale = 0f;
+public boolean _menabled = false;
+public boolean _mhaptic = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width1,double _height1) throws Exception{
+ //BA.debugLineNum = 148;BA.debugLine="Private Sub Base_Resize (Width1 As Double, Height1";
+ //BA.debugLineNum = 150;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 7;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 9;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 10;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 12;BA.debugLine="Private OnColor, OffColor As BCBrush";
+_oncolor = new b4a.example.bcpath._bcbrush();
+_offcolor = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 13;BA.debugLine="Private bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 14;BA.debugLine="Private Width As Int = 55dip";
+_width = __c.DipToCurrent((int) (55));
+ //BA.debugLineNum = 15;BA.debugLine="Private Height As Int = 31dip";
+_height = __c.DipToCurrent((int) (31));
+ //BA.debugLineNum = 16;BA.debugLine="Private ThumbColor As BCBrush";
+_thumbcolor = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 17;BA.debugLine="Private iv As ImageView";
+_iv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Private mValue As Boolean";
+_mvalue = false;
+ //BA.debugLineNum = 19;BA.debugLine="Private transparent As BCBrush";
+_transparent = new b4a.example.bcpath._bcbrush();
+ //BA.debugLineNum = 20;BA.debugLine="Private LoopIndex As Int";
+_loopindex = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 22;BA.debugLine="Private Scale As Float";
+_scale = 0f;
+ //BA.debugLineNum = 23;BA.debugLine="Private mEnabled As Boolean = True";
+_menabled = __c.True;
+ //BA.debugLineNum = 24;BA.debugLine="Public mHaptic As Boolean";
+_mhaptic = false;
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+ //BA.debugLineNum = 33;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 34;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 36;BA.debugLine="mBase.SetLayoutAnimated(0, mBase.Left, mBase.Top,";
+_mbase.SetLayoutAnimated((int) (0),_mbase.getLeft(),_mbase.getTop(),_width,_height);
+ //BA.debugLineNum = 37;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 38;BA.debugLine="Dim pnl As B4XView = xui.CreatePanel(\"pnl\")";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _xui.CreatePanel(ba,"pnl");
+ //BA.debugLineNum = 39;BA.debugLine="pnl.Color = xui.Color_Transparent";
+_pnl.setColor(_xui.Color_Transparent);
+ //BA.debugLineNum = 40;BA.debugLine="iv.Initialize(\"\")";
+_iv.Initialize(ba,"");
+ //BA.debugLineNum = 41;BA.debugLine="mBase.AddView(iv, 0, 0, Width, Height)";
+_mbase.AddView((android.view.View)(_iv.getObject()),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 42;BA.debugLine="mBase.AddView(pnl, 0, 0, Width, Height)";
+_mbase.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 44;BA.debugLine="bc.Initialize(Width, Height)";
+_bc._initialize(ba,_width,_height);
+ //BA.debugLineNum = 45;BA.debugLine="Scale = xui.Scale";
+_scale = _xui.getScale();
+ //BA.debugLineNum = 50;BA.debugLine="OnColor = bc.CreateBrushFromColor(xui.PaintOrColo";
+_oncolor = _bc._createbrushfromcolor(_xui.PaintOrColorToColor(_props.Get((Object)("OnColor"))));
+ //BA.debugLineNum = 51;BA.debugLine="OffColor = bc.CreateBrushFromColor(xui.PaintOrCol";
+_offcolor = _bc._createbrushfromcolor(_xui.PaintOrColorToColor(_props.Get((Object)("OffColor"))));
+ //BA.debugLineNum = 52;BA.debugLine="ThumbColor = bc.CreateBrushFromColor(xui.PaintOrC";
+_thumbcolor = _bc._createbrushfromcolor(_xui.PaintOrColorToColor(_props.Get((Object)("ThumbColor"))));
+ //BA.debugLineNum = 53;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals";
+_mhaptic = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False)));
+ //BA.debugLineNum = 54;BA.debugLine="transparent = bc.CreateBrushFromColor(xui.Color_T";
+_transparent = _bc._createbrushfromcolor(_xui.Color_Transparent);
+ //BA.debugLineNum = 55;BA.debugLine="mEnabled = mBase.Enabled";
+_menabled = _mbase.getEnabled();
+ //BA.debugLineNum = 56;BA.debugLine="mBase.Enabled = True";
+_mbase.setEnabled(__c.True);
+ //BA.debugLineNum = 57;BA.debugLine="SetValueImpl(Props.Get(\"Value\"), True)";
+_setvalueimpl(BA.ObjectToBoolean(_props.Get((Object)("Value"))),__c.True);
+ //BA.debugLineNum = 58;BA.debugLine="End Sub";
+return "";
+}
+public String _draw(float _state) throws Exception{
+float _r = 0f;
+float _cx = 0f;
+int _cy = 0;
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _smallrect = null;
+float _w = 0f;
+float _h = 0f;
+ //BA.debugLineNum = 126;BA.debugLine="Private Sub Draw (State As Float)";
+ //BA.debugLineNum = 127;BA.debugLine="bc.DrawRect2(bc.TargetRect, transparent, True, 0)";
+_bc._drawrect2(_bc._targetrect,_transparent,__c.True,(int) (0));
+ //BA.debugLineNum = 128;BA.debugLine="Dim r As Float = Round(bc.mHeight / 2)";
+_r = (float) (__c.Round(_bc._mheight/(double)2));
+ //BA.debugLineNum = 129;BA.debugLine="Dim cx As Float = r - 1 * Scale + (bc.mWidth - 2";
+_cx = (float) (_r-1*_scale+(_bc._mwidth-2*_r)*_state);
+ //BA.debugLineNum = 130;BA.debugLine="If State = 0 Then";
+if (_state==0) {
+ //BA.debugLineNum = 131;BA.debugLine="cx = r";
+_cx = _r;
+ }else if(_state==1) {
+ //BA.debugLineNum = 133;BA.debugLine="cx = Round(bc.mWidth - 1 * Scale - r)";
+_cx = (float) (__c.Round(_bc._mwidth-1*_scale-_r));
+ };
+ //BA.debugLineNum = 135;BA.debugLine="Dim cy As Int = bc.mHeight / 2";
+_cy = (int) (_bc._mheight/(double)2);
+ //BA.debugLineNum = 136;BA.debugLine="Dim smallrect As B4XRect";
+_smallrect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 137;BA.debugLine="Dim w As Float = State * bc.mWidth";
+_w = (float) (_state*_bc._mwidth);
+ //BA.debugLineNum = 138;BA.debugLine="Dim h As Float = State * bc.mHeight";
+_h = (float) (_state*_bc._mheight);
+ //BA.debugLineNum = 139;BA.debugLine="If State < 1 Then bc.DrawRectRounded2(bc.TargetRe";
+if (_state<1) {
+_bc._drawrectrounded2(_bc._targetrect,_offcolor,__c.True,(int) (2*_scale),(int) (_r));};
+ //BA.debugLineNum = 140;BA.debugLine="smallrect.Initialize(bc.mWidth / 2 - w / 2, cy -";
+_smallrect.Initialize((float) (_bc._mwidth/(double)2-_w/(double)2),(float) (_cy-_h/(double)2),(float) (_bc._mwidth/(double)2+_w/(double)2),(float) (_cy+_h/(double)2));
+ //BA.debugLineNum = 141;BA.debugLine="If State > 0 Then bc.DrawRectRounded2(smallrect,";
+if (_state>0) {
+_bc._drawrectrounded2(_smallrect,_oncolor,__c.True,(int) (2*_scale),(int) (_smallrect.getHeight()/(double)2));};
+ //BA.debugLineNum = 142;BA.debugLine="If mEnabled Then";
+if (_menabled) {
+ //BA.debugLineNum = 143;BA.debugLine="bc.DrawCircle2(cx, cy, r - 2 * Scale, ThumbColor";
+_bc._drawcircle2(_cx,(float) (_cy),(float) (_r-2*_scale),_thumbcolor,__c.True,(int) (0));
+ };
+ //BA.debugLineNum = 145;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, iv)";
+_bc._setbitmaptoimageview(_bc._getbitmap(),(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject())));
+ //BA.debugLineNum = 146;BA.debugLine="End Sub";
+return "";
+}
+public boolean _getenabled() throws Exception{
+ //BA.debugLineNum = 122;BA.debugLine="Public Sub getEnabled As Boolean";
+ //BA.debugLineNum = 123;BA.debugLine="Return mEnabled";
+if (true) return _menabled;
+ //BA.debugLineNum = 124;BA.debugLine="End Sub";
+return false;
+}
+public boolean _getvalue() throws Exception{
+ //BA.debugLineNum = 113;BA.debugLine="Public Sub getValue As Boolean";
+ //BA.debugLineNum = 114;BA.debugLine="Return mValue";
+if (true) return _mvalue;
+ //BA.debugLineNum = 115;BA.debugLine="End Sub";
+return false;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 27;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 28;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 29;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 30;BA.debugLine="End Sub";
+return "";
+}
+public String _pnl_click() throws Exception{
+ //BA.debugLineNum = 70;BA.debugLine="Private Sub pnl_Click";
+ //BA.debugLineNum = 72;BA.debugLine="If mEnabled Then";
+if (_menabled) {
+ //BA.debugLineNum = 73;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb";
+if (_mhaptic) {
+_xuiviewsutils._performhapticfeedback /*String*/ (ba,_mbase);};
+ //BA.debugLineNum = 74;BA.debugLine="SetValueImpl(Not(mValue), False)";
+_setvalueimpl(__c.Not(_mvalue),__c.False);
+ //BA.debugLineNum = 75;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Value";
+if (_xui.SubExists(ba,_mcallback,_meventname+"_ValueChanged",(int) (1))) {
+ //BA.debugLineNum = 76;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Value";
+__c.CallSubDelayed2(ba,_mcallback,_meventname+"_ValueChanged",(Object)(_mvalue));
+ };
+ };
+ //BA.debugLineNum = 79;BA.debugLine="End Sub";
+return "";
+}
+public String _setenabled(boolean _b) throws Exception{
+ //BA.debugLineNum = 117;BA.debugLine="Public Sub setEnabled (b As Boolean)";
+ //BA.debugLineNum = 118;BA.debugLine="mEnabled = b";
+_menabled = _b;
+ //BA.debugLineNum = 119;BA.debugLine="SetValueImpl(mValue, True)";
+_setvalueimpl(_mvalue,__c.True);
+ //BA.debugLineNum = 120;BA.debugLine="End Sub";
+return "";
+}
+public String _setvalue(boolean _b) throws Exception{
+ //BA.debugLineNum = 108;BA.debugLine="Public Sub setValue(b As Boolean)";
+ //BA.debugLineNum = 109;BA.debugLine="If b = mValue Then Return";
+if (_b==_mvalue) {
+if (true) return "";};
+ //BA.debugLineNum = 110;BA.debugLine="SetValueImpl(b, False)";
+_setvalueimpl(_b,__c.False);
+ //BA.debugLineNum = 111;BA.debugLine="End Sub";
+return "";
+}
+public void _setvalueimpl(boolean _b,boolean _immediate) throws Exception{
+ResumableSub_SetValueImpl rsub = new ResumableSub_SetValueImpl(this,_b,_immediate);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_SetValueImpl extends BA.ResumableSub {
+public ResumableSub_SetValueImpl(reparto_izca.keymon.lat.b4xswitch parent,boolean _b,boolean _immediate) {
+this.parent = parent;
+this._b = _b;
+this._immediate = _immediate;
+}
+reparto_izca.keymon.lat.b4xswitch parent;
+boolean _b;
+boolean _immediate;
+int _myindex = 0;
+long _start = 0L;
+int _duration = 0;
+float _state1 = 0f;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 82;BA.debugLine="mValue = b";
+parent._mvalue = _b;
+ //BA.debugLineNum = 83;BA.debugLine="LoopIndex = LoopIndex + 1";
+parent._loopindex = (int) (parent._loopindex+1);
+ //BA.debugLineNum = 84;BA.debugLine="If Immediate Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 41;
+if (_immediate) {
+this.state = 3;
+}else {
+this.state = 13;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 85;BA.debugLine="If mValue Then Draw(1) Else Draw(0)";
+if (true) break;
+
+case 4:
+//if
+this.state = 11;
+if (parent._mvalue) {
+this.state = 6;
+;}
+else {
+this.state = 8;
+;}if (true) break;
+
+case 6:
+//C
+this.state = 11;
+parent._draw((float) (1));
+if (true) break;
+
+case 8:
+//C
+this.state = 11;
+parent._draw((float) (0));
+if (true) break;
+
+case 11:
+//C
+this.state = 41;
+;
+ if (true) break;
+
+case 13:
+//C
+this.state = 14;
+ //BA.debugLineNum = 87;BA.debugLine="Dim MyIndex As Int = LoopIndex";
+_myindex = parent._loopindex;
+ //BA.debugLineNum = 88;BA.debugLine="Dim start As Long = DateTime.Now";
+_start = parent.__c.DateTime.getNow();
+ //BA.debugLineNum = 89;BA.debugLine="Dim duration As Int = 200";
+_duration = (int) (200);
+ //BA.debugLineNum = 90;BA.debugLine="Do While DateTime.Now < start + duration";
+if (true) break;
+
+case 14:
+//do while
+this.state = 29;
+while (parent.__c.DateTime.getNow()<_start+_duration) {
+this.state = 16;
+if (true) break;
+}
+if (true) break;
+
+case 16:
+//C
+this.state = 17;
+ //BA.debugLineNum = 91;BA.debugLine="Dim state1 As Float = (DateTime.Now - start) /";
+_state1 = (float) ((parent.__c.DateTime.getNow()-_start)/(double)_duration);
+ //BA.debugLineNum = 92;BA.debugLine="If mValue = False Then state1 = 1 - state1";
+if (true) break;
+
+case 17:
+//if
+this.state = 22;
+if (parent._mvalue==parent.__c.False) {
+this.state = 19;
+;}if (true) break;
+
+case 19:
+//C
+this.state = 22;
+_state1 = (float) (1-_state1);
+if (true) break;
+
+case 22:
+//C
+this.state = 23;
+;
+ //BA.debugLineNum = 93;BA.debugLine="Draw(state1)";
+parent._draw(_state1);
+ //BA.debugLineNum = 94;BA.debugLine="Sleep(16)";
+parent.__c.Sleep(ba,this,(int) (16));
+this.state = 47;
+return;
+case 47:
+//C
+this.state = 23;
+;
+ //BA.debugLineNum = 95;BA.debugLine="If MyIndex <> LoopIndex Then Exit";
+if (true) break;
+
+case 23:
+//if
+this.state = 28;
+if (_myindex!=parent._loopindex) {
+this.state = 25;
+;}if (true) break;
+
+case 25:
+//C
+this.state = 28;
+this.state = 29;
+if (true) break;
+if (true) break;
+
+case 28:
+//C
+this.state = 14;
+;
+ if (true) break;
+;
+ //BA.debugLineNum = 97;BA.debugLine="If MyIndex = LoopIndex Then";
+
+case 29:
+//if
+this.state = 40;
+if (_myindex==parent._loopindex) {
+this.state = 31;
+}if (true) break;
+
+case 31:
+//C
+this.state = 32;
+ //BA.debugLineNum = 98;BA.debugLine="If mValue Then Draw(1) Else Draw(0)";
+if (true) break;
+
+case 32:
+//if
+this.state = 39;
+if (parent._mvalue) {
+this.state = 34;
+;}
+else {
+this.state = 36;
+;}if (true) break;
+
+case 34:
+//C
+this.state = 39;
+parent._draw((float) (1));
+if (true) break;
+
+case 36:
+//C
+this.state = 39;
+parent._draw((float) (0));
+if (true) break;
+
+case 39:
+//C
+this.state = 40;
+;
+ if (true) break;
+
+case 40:
+//C
+this.state = 41;
+;
+ if (true) break;
+;
+ //BA.debugLineNum = 101;BA.debugLine="If mEnabled Then";
+
+case 41:
+//if
+this.state = 46;
+if (parent._menabled) {
+this.state = 43;
+}else {
+this.state = 45;
+}if (true) break;
+
+case 43:
+//C
+this.state = 46;
+ //BA.debugLineNum = 102;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 1)";
+parent._xuiviewsutils._setalpha /*String*/ (ba,parent._mbase,(float) (1));
+ if (true) break;
+
+case 45:
+//C
+this.state = 46;
+ //BA.debugLineNum = 104;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 0.6)";
+parent._xuiviewsutils._setalpha /*String*/ (ba,parent._mbase,(float) (0.6));
+ if (true) break;
+
+case 46:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 106;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xtimedtemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xtimedtemplate.java
new file mode 100644
index 0000000..bfbab19
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xtimedtemplate.java
@@ -0,0 +1,188 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class b4xtimedtemplate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xtimedtemplate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.b4xtimedtemplate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public reparto_izca.keymon.lat.anotherprogressbar _anotherprogressbar1 = null;
+public Object _mtemplate = null;
+public int _timeoutmilliseconds = 0;
+public int _index = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 4;BA.debugLine="Private AnotherProgressBar1 As AnotherProgressBar";
+_anotherprogressbar1 = new reparto_izca.keymon.lat.anotherprogressbar();
+ //BA.debugLineNum = 5;BA.debugLine="Private mTemplate As Object";
+_mtemplate = new Object();
+ //BA.debugLineNum = 6;BA.debugLine="Public TimeoutMilliseconds As Int = 10000";
+_timeoutmilliseconds = (int) (10000);
+ //BA.debugLineNum = 7;BA.debugLine="Private Index As Int";
+_index = 0;
+ //BA.debugLineNum = 8;BA.debugLine="End Sub";
+return "";
+}
+public String _dialogclosed(int _result) throws Exception{
+ //BA.debugLineNum = 41;BA.debugLine="Private Sub DialogClosed(Result As Int)";
+ //BA.debugLineNum = 42;BA.debugLine="Index = Index + 1";
+_index = (int) (_index+1);
+ //BA.debugLineNum = 43;BA.debugLine="CallSub2(mTemplate, \"DialogClosed\", Result)";
+__c.CallSubNew2(ba,_mtemplate,"DialogClosed",(Object)(_result));
+ //BA.debugLineNum = 44;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null;
+ //BA.debugLineNum = 16;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
+ //BA.debugLineNum = 17;BA.debugLine="If mBase.NumberOfViews = 0 Then";
+if (_mbase.getNumberOfViews()==0) {
+ //BA.debugLineNum = 18;BA.debugLine="Dim InnerPanel As B4XView = CallSub2(mTemplate,";
+_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_innerpanel = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.CallSubNew2(ba,_mtemplate,"GetPanel",(Object)(_dialog))));
+ //BA.debugLineNum = 19;BA.debugLine="If InnerPanel.Parent.IsInitialized Then InnerPan";
+if (_innerpanel.getParent().IsInitialized()) {
+_innerpanel.RemoveViewFromParent();};
+ //BA.debugLineNum = 20;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, InnerPanel.Widt";
+_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_innerpanel.getWidth(),(int) (_innerpanel.getHeight()+__c.DipToCurrent((int) (19))));
+ //BA.debugLineNum = 21;BA.debugLine="mBase.LoadLayout(\"TimedDialogTemplate\")";
+_mbase.LoadLayout("TimedDialogTemplate",ba);
+ //BA.debugLineNum = 22;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0";
+_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 23;BA.debugLine="mBase.AddView(InnerPanel, 0, 19dip, InnerPanel.W";
+_mbase.AddView((android.view.View)(_innerpanel.getObject()),(int) (0),__c.DipToCurrent((int) (19)),_innerpanel.getWidth(),_innerpanel.getHeight());
+ };
+ //BA.debugLineNum = 25;BA.debugLine="Return mBase";
+if (true) return _mbase;
+ //BA.debugLineNum = 26;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _innertemplate) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 10;BA.debugLine="Public Sub Initialize (InnerTemplate As Object)";
+ //BA.debugLineNum = 11;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
+_mbase = _xui.CreatePanel(ba,"mBase");
+ //BA.debugLineNum = 12;BA.debugLine="mTemplate = InnerTemplate";
+_mtemplate = _innertemplate;
+ //BA.debugLineNum = 14;BA.debugLine="End Sub";
+return "";
+}
+public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{
+ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_Show extends BA.ResumableSub {
+public ResumableSub_Show(reparto_izca.keymon.lat.b4xtimedtemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) {
+this.parent = parent;
+this._dialog = _dialog;
+}
+reparto_izca.keymon.lat.b4xtimedtemplate parent;
+reparto_izca.keymon.lat.b4xdialog _dialog;
+int _myindex = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 29;BA.debugLine="CallSub2(mTemplate, \"Show\", Dialog)";
+parent.__c.CallSubNew2(ba,parent._mtemplate,"Show",(Object)(_dialog));
+ //BA.debugLineNum = 30;BA.debugLine="AnotherProgressBar1.SetValueNoAnimation(0)";
+parent._anotherprogressbar1._setvaluenoanimation /*String*/ ((int) (0));
+ //BA.debugLineNum = 31;BA.debugLine="AnotherProgressBar1.ValueChangePerSecond = 100 /";
+parent._anotherprogressbar1._valuechangepersecond /*float*/ = (float) (100/(double)(parent._timeoutmilliseconds/(double)1000));
+ //BA.debugLineNum = 32;BA.debugLine="AnotherProgressBar1.Value = 100";
+parent._anotherprogressbar1._setvalue /*int*/ ((int) (100));
+ //BA.debugLineNum = 33;BA.debugLine="Index = Index + 1";
+parent._index = (int) (parent._index+1);
+ //BA.debugLineNum = 34;BA.debugLine="Dim MyIndex As Int = Index";
+_myindex = parent._index;
+ //BA.debugLineNum = 35;BA.debugLine="Sleep(TimeoutMilliseconds)";
+parent.__c.Sleep(ba,this,parent._timeoutmilliseconds);
+this.state = 5;
+return;
+case 5:
+//C
+this.state = 1;
+;
+ //BA.debugLineNum = 36;BA.debugLine="If MyIndex = Index Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 4;
+if (_myindex==parent._index) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 37;BA.debugLine="Dialog.Close(xui.DialogResponse_Cancel)";
+_dialog._close /*boolean*/ (parent._xui.DialogResponse_Cancel);
+ if (true) break;
+
+case 4:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "DIALOGCLOSED"))
+ return _dialogclosed(((Number)args[0]).intValue());
+if (BA.fastSubCompare(sub, "GETPANEL"))
+ return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/batteryutilities.java b/B4A/Objects/src/reparto_izca/keymon/lat/batteryutilities.java
new file mode 100644
index 0000000..7394bdb
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/batteryutilities.java
@@ -0,0 +1,165 @@
+package reparto_izca.keymon.lat;
+
+import android.os.BatteryManager;
+import android.os.Bundle;
+import android.app.Activity;
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.content.IntentFilter;
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class batteryutilities extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.batteryutilities");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.batteryutilities.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4j.object.JavaObject _nativeme = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 3;BA.debugLine="Private nativeMe As JavaObject";
+_nativeme = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public int[] _getbatteryinformation() throws Exception{
+int[] _batteryinfo = null;
+ //BA.debugLineNum = 22;BA.debugLine="Public Sub getBatteryInformation () As Int()";
+ //BA.debugLineNum = 24;BA.debugLine="Dim batteryInfo(11) As Int";
+_batteryinfo = new int[(int) (11)];
+;
+ //BA.debugLineNum = 25;BA.debugLine="batteryInfo = nativeMe.RunMethod(\"getBatteryInfor";
+_batteryinfo = (int[])(_nativeme.RunMethod("getBatteryInformation",(Object[])(__c.Null)));
+ //BA.debugLineNum = 26;BA.debugLine="Return batteryInfo";
+if (true) return _batteryinfo;
+ //BA.debugLineNum = 27;BA.debugLine="End Sub";
+return null;
+}
+public String _getbatterytechnolgy() throws Exception{
+String _batterytech = "";
+ //BA.debugLineNum = 29;BA.debugLine="Public Sub getBatteryTechnolgy() As String";
+ //BA.debugLineNum = 31;BA.debugLine="Dim batterytech As String";
+_batterytech = "";
+ //BA.debugLineNum = 32;BA.debugLine="batterytech = nativeMe.RunMethod(\"getBatteryTechn";
+_batterytech = BA.ObjectToString(_nativeme.RunMethod("getBatteryTechnology",(Object[])(__c.Null)));
+ //BA.debugLineNum = 33;BA.debugLine="Return batterytech";
+if (true) return _batterytech;
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 8;BA.debugLine="nativeMe = Me";
+_nativeme = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(this));
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+
+
+ public int[] getBatteryInformation() {
+
+ int[] mybat = new int[11];
+
+ Intent batteryIntent = ba.context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
+
+ int level = batteryIntent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
+ mybat[0] = level;
+ int scale = batteryIntent.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
+ mybat[1] = scale;
+ int health = batteryIntent.getIntExtra(BatteryManager.EXTRA_HEALTH,-1);
+ mybat[2] = health;
+ int icon_small = batteryIntent.getIntExtra(BatteryManager.EXTRA_ICON_SMALL,-1);
+ mybat[3] = icon_small;
+ int plugged = batteryIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED,-1);
+ mybat[4] = plugged;
+// boolean present = batteryIntent.getExtras().getBoolean(BatteryManager.EXTRA_PRESENT);
+ int status = batteryIntent.getIntExtra(BatteryManager.EXTRA_STATUS,-1);
+ mybat[5] = status;
+// String technology = batteryIntent.getExtras().getString(BatteryManager.EXTRA_TECHNOLOGY);
+// BA.Log("Technology = " + technology);
+ int temperature = batteryIntent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE,-1);
+ mybat[6] = temperature;
+ int voltage = batteryIntent.getIntExtra(BatteryManager.EXTRA_VOLTAGE,-1);
+ mybat[7] = voltage;
+// int ac = batteryIntent.getIntExtra("plugged",BatteryManager.BATTERY_PLUGGED_AC);
+// mybat[8] = ac;
+// int usb = batteryIntent.getIntExtra("plugged",BatteryManager.BATTERY_PLUGGED_USB);
+// mybat[9] = usb;
+
+ boolean isCharging = status == BatteryManager.BATTERY_STATUS_CHARGING ||
+ status == BatteryManager.BATTERY_STATUS_FULL;
+ mybat[8] = 0;
+ if (isCharging == true) {
+ mybat[8] = 1;
+ }
+
+ // How are we charging?
+ mybat[9] = 0;
+ mybat[10] = 0;
+ int chargePlug = batteryIntent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
+ boolean usbCharge = chargePlug == BatteryManager.BATTERY_PLUGGED_USB;
+ if (usbCharge == true) {
+ mybat[9] = 2;
+ }
+
+ boolean acCharge = chargePlug == BatteryManager.BATTERY_PLUGGED_AC;
+ if (acCharge == true) {
+ mybat[10] = 1;
+ }
+
+ return mybat;
+ }
+
+
+ public String getBatteryTechnology() {
+
+ Intent batteryIntent = ba.context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
+
+ String technology = batteryIntent.getExtras().getString(BatteryManager.EXTRA_TECHNOLOGY);
+
+ return technology;
+ }
+
+
+
+
+
+
+
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_buscar.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_buscar.java
new file mode 100644
index 0000000..52b349a
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_buscar.java
@@ -0,0 +1,273 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_buscar extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_buscar");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_buscar.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_noventa = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_noventa_click() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+ //BA.debugLineNum = 85;BA.debugLine="Sub b_noventa_Click";
+ //BA.debugLineNum = 86;BA.debugLine="c=Starter.skmt.ExecQuery(\"select NV_CLIENTE,NV_MO";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select NV_CLIENTE,NV_MOTIVO,NV_COMM FROM NOVENTA ORDER BY NV_CLIENTE asc")));
+ //BA.debugLineNum = 87;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 89;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 90;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 91;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 92;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 93;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 94;BA.debugLine="label1.TextSize = 10";
+_label1.setTextSize((float) (10));
+ //BA.debugLineNum = 95;BA.debugLine="label1.TextColor = Colors.Black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 96;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 97;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 98;BA.debugLine="label2.TextSize = 10";
+_label2.setTextSize((float) (10));
+ //BA.debugLineNum = 99;BA.debugLine="label2.TextColor = Colors.Blue";
+_label2.setTextColor(__c.Colors.Blue);
+ //BA.debugLineNum = 100;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"NV_CLIENTE\")";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("NV_CLIENTE")),BA.ObjectToCharSequence("Motivo #"+_c.GetString("NV_MOTIVO")+" Comentario $"+_c.GetString("NV_COMM")));
+ }
+};
+ };
+ //BA.debugLineNum = 103;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+ //BA.debugLineNum = 41;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 42;BA.debugLine="p_principal.Width = Root.Width";
+_p_principal.setWidth(_root.getWidth());
+ //BA.debugLineNum = 43;BA.debugLine="p_principal.Height = Root.Height";
+_p_principal.setHeight(_root.getHeight());
+ //BA.debugLineNum = 44;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth());
+ //BA.debugLineNum = 46;BA.debugLine="c=Starter.skmt.ExecQuery(\"select REP_CLIENTE, REP";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO")));
+ //BA.debugLineNum = 47;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 49;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 50;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step7 = 1;
+final int limit7 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit7 ;_i = _i + step7 ) {
+ //BA.debugLineNum = 51;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 52;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 53;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 54;BA.debugLine="label1.TextSize = 10";
+_label1.setTextSize((float) (10));
+ //BA.debugLineNum = 55;BA.debugLine="label1.TextColor = Colors.Black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 56;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 57;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 58;BA.debugLine="label2.TextSize = 10";
+_label2.setTextSize((float) (10));
+ //BA.debugLineNum = 59;BA.debugLine="label2.TextColor = Colors.Blue";
+_label2.setTextColor(__c.Colors.Blue);
+ //BA.debugLineNum = 60;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"REP_CLIENTE\"";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("REP_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("REP_PRONOMBRE")+" Cantidad #"+_c.GetString("REP_CANT")+" SubTotal $"+_c.GetString("REP_COSTO_TOT")));
+ }
+};
+ };
+ //BA.debugLineNum = 63;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 64;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_buscar parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_buscar parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 73;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+parent._b4xpages._showpage /*String*/ (ba,"Principal");
+ //BA.debugLineNum = 76;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 77;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+ //BA.debugLineNum = 16;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 17;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 19;BA.debugLine="Root.LoadLayout(\"buscar\")";
+_root.LoadLayout("buscar",ba);
+ //BA.debugLineNum = 20;BA.debugLine="c=Starter.skmt.ExecQuery(\"select REP_CLIENTE, REP";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO")));
+ //BA.debugLineNum = 21;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 22;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 23;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step6 = 1;
+final int limit6 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit6 ;_i = _i + step6 ) {
+ //BA.debugLineNum = 24;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 25;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 26;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 27;BA.debugLine="label1.TextSize = 10";
+_label1.setTextSize((float) (10));
+ //BA.debugLineNum = 28;BA.debugLine="label1.TextColor = Colors.Black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 29;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 31;BA.debugLine="label2.TextSize = 10";
+_label2.setTextSize((float) (10));
+ //BA.debugLineNum = 32;BA.debugLine="label2.TextColor = Colors.Blue";
+_label2.setTextColor(__c.Colors.Blue);
+ //BA.debugLineNum = 33;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"REP_CLIENTE\"";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("REP_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("REP_PRONOMBRE")+" Cantidad #"+_c.GetString("REP_CANT")+" SubTotal $"+_c.GetString("REP_COSTO_TOT")));
+ }
+};
+ };
+ //BA.debugLineNum = 36;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 37;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 5;BA.debugLine="Dim ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 6;BA.debugLine="Dim b_noventa As Button";
+_b_noventa = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 7;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 11;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 12;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 13;BA.debugLine="End Sub";
+return null;
+}
+public String _listview1_itemlongclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 79;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
+ //BA.debugLineNum = 80;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
+ //BA.debugLineNum = 81;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value}));
+ //BA.debugLineNum = 82;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 83;BA.debugLine="End Sub";
+return "";
+}
+public String _regresar_click() throws Exception{
+ //BA.debugLineNum = 66;BA.debugLine="Sub Regresar_Click";
+ //BA.debugLineNum = 67;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 68;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_cheklist.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_cheklist.java
new file mode 100644
index 0000000..4c2cbe2
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_cheklist.java
@@ -0,0 +1,1703 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_cheklist extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_cheklist");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_cheklist.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_check = null;
+public anywheresoftware.b4a.objects.ScrollViewWrapper _sv_datos = null;
+public reparto_izca.keymon.lat.cameraexclass _camex = null;
+public boolean _frontcamera = false;
+public anywheresoftware.b4a.objects.PanelWrapper _p_cam = null;
+public String _nombrefoto = "";
+public String _nombrefoto1 = "";
+public String _nombrefoto2 = "";
+public String _nombrefoto3 = "";
+public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null;
+public anywheresoftware.b4a.objects.IME _teclado = null;
+public String _fototomada = "";
+public anywheresoftware.b4a.objects.ImageViewWrapper _imageview1 = null;
+public anywheresoftware.b4a.objects.ImageViewWrapper _imageview3 = null;
+public anywheresoftware.b4a.objects.ImageViewWrapper _imageview2 = null;
+public anywheresoftware.b4a.objects.ImageViewWrapper _imageview4 = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_foto = null;
+public anywheresoftware.b4a.phone.Phone _device = null;
+public reparto_izca.keymon.lat.manageexternalstorage _mes1 = null;
+public int _x = 0;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi1 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno1 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi2 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno2 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi3 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno3 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi4 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno4 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi5 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno5 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi6 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno6 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi7 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno7 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi8 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno8 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi9 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno9 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi10 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno10 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi11 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno11 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi12 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno12 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi13 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno13 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi14 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno14 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi15 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno15 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi16 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno16 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi17 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno17 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi18 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno18 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi19 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno19 = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_carroceria = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_luces = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_placas = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_liquidos = null;
+public String _p1 = "";
+public String _p2 = "";
+public String _p3 = "";
+public String _p4 = "";
+public String _p5 = "";
+public String _p6 = "";
+public String _p7 = "";
+public String _p8 = "";
+public String _p9 = "";
+public String _p10 = "";
+public String _p11 = "";
+public String _p12 = "";
+public String _p13 = "";
+public String _p14 = "";
+public String _p15 = "";
+public String _p16 = "";
+public String _p17 = "";
+public String _p18 = "";
+public String _p19 = "";
+public reparto_izca.keymon.lat.b4xcombobox _cb_izqdel = null;
+public reparto_izca.keymon.lat.b4xcombobox _cb_derdel = null;
+public reparto_izca.keymon.lat.b4xcombobox _cb_izqatras = null;
+public reparto_izca.keymon.lat.b4xcombobox _cb_deratras = null;
+public String _itemselect1 = "";
+public String _itemselect2 = "";
+public String _itemselect3 = "";
+public String _itemselect4 = "";
+public byte[] _foto1 = null;
+public byte[] _foto2 = null;
+public byte[] _foto3 = null;
+public byte[] _foto4 = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_placa = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_km = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_foto_click() throws Exception{
+ //BA.debugLineNum = 348;BA.debugLine="Private Sub b_foto_Click";
+ //BA.debugLineNum = 349;BA.debugLine="camEx.TakePicture";
+_camex._takepicture /*String*/ ();
+ //BA.debugLineNum = 350;BA.debugLine="p_camara.Visible = False";
+_p_camara.setVisible(__c.False);
+ //BA.debugLineNum = 352;BA.debugLine="End Sub";
+return "";
+}
+public String _b_guardar_click() throws Exception{
+String _dirp = "";
+String _dir = "";
+String _dir2 = "";
+String _checkdate = "";
+String _checktime = "";
+String _rutacheck = "";
+ //BA.debugLineNum = 541;BA.debugLine="Private Sub b_guardar_Click";
+ //BA.debugLineNum = 543;BA.debugLine="Dim Dirp As String = File.DirInternal";
+_dirp = __c.File.getDirInternal();
+ //BA.debugLineNum = 544;BA.debugLine="Dim Dir As String";
+_dir = "";
+ //BA.debugLineNum = 545;BA.debugLine="Dim Dir2 As String";
+_dir2 = "";
+ //BA.debugLineNum = 546;BA.debugLine="Try";
+try { //BA.debugLineNum = 547;BA.debugLine="File.MakeDir(Dirp,\"/md\")";
+__c.File.MakeDir(_dirp,"/md");
+ //BA.debugLineNum = 548;BA.debugLine="Dir = \"/md\"";
+_dir = "/md";
+ //BA.debugLineNum = 549;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
+__c.LogImpl("57667720","creado en promotoria "+_dirp+_dir,0);
+ }
+ catch (Exception e9) {
+ ba.setLastException(e9); //BA.debugLineNum = 551;BA.debugLine="Dir = \"\"";
+_dir = "";
+ //BA.debugLineNum = 552;BA.debugLine="Log(\"creado en raiz\")";
+__c.LogImpl("57667723","creado en raiz",0);
+ };
+ //BA.debugLineNum = 555;BA.debugLine="Try";
+try { //BA.debugLineNum = 556;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
+__c.File.MakeDir(_dirp+_dir,"/reduccion");
+ //BA.debugLineNum = 557;BA.debugLine="Dir2 = \"/reduccion\"";
+_dir2 = "/reduccion";
+ //BA.debugLineNum = 558;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
+__c.LogImpl("57667729","creado en promotoria "+_dirp+_dir+_dir2,0);
+ }
+ catch (Exception e17) {
+ ba.setLastException(e17); //BA.debugLineNum = 560;BA.debugLine="Dir = \"\"";
+_dir = "";
+ //BA.debugLineNum = 561;BA.debugLine="Log(\"creado en raiz\")";
+__c.LogImpl("57667732","creado en raiz",0);
+ };
+ //BA.debugLineNum = 564;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
+__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 565;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\"";
+__c.DateTime.setDateFormat("dd/MM/yyyy");
+ //BA.debugLineNum = 566;BA.debugLine="Dim checkdate As String = DateTime.Date(DateTime.";
+_checkdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 567;BA.debugLine="Dim checktime As String = DateTime.Time(DateTime.";
+_checktime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 568;BA.debugLine="If et_km.Text <> \"\" Then";
+if ((_et_km.getText()).equals("") == false) {
+ //BA.debugLineNum = 569;BA.debugLine="If rb_docno1.Checked Or rb_docsi1.Checked Then";
+if (_rb_docno1.getChecked() || _rb_docsi1.getChecked()) {
+ //BA.debugLineNum = 570;BA.debugLine="If rb_docno2.Checked Or rb_docsi2.Checked Then";
+if (_rb_docno2.getChecked() || _rb_docsi2.getChecked()) {
+ //BA.debugLineNum = 571;BA.debugLine="If rb_docno3.Checked Or rb_docsi3.Checked Then";
+if (_rb_docno3.getChecked() || _rb_docsi3.getChecked()) {
+ //BA.debugLineNum = 572;BA.debugLine="If rb_docno4.Checked Or rb_docsi4.Checked The";
+if (_rb_docno4.getChecked() || _rb_docsi4.getChecked()) {
+ //BA.debugLineNum = 573;BA.debugLine="If rb_docno5.Checked Or rb_docsi5.Checked Th";
+if (_rb_docno5.getChecked() || _rb_docsi5.getChecked()) {
+ //BA.debugLineNum = 574;BA.debugLine="If rb_docno6.Checked Or rb_docsi6.Checked T";
+if (_rb_docno6.getChecked() || _rb_docsi6.getChecked()) {
+ //BA.debugLineNum = 575;BA.debugLine="If rb_docno7.Checked Or rb_docsi7.Checked";
+if (_rb_docno7.getChecked() || _rb_docsi7.getChecked()) {
+ //BA.debugLineNum = 576;BA.debugLine="If rb_docno8.Checked Or rb_docsi8.Checked";
+if (_rb_docno8.getChecked() || _rb_docsi8.getChecked()) {
+ //BA.debugLineNum = 577;BA.debugLine="If rb_docno9.Checked Or rb_docsi9.Checke";
+if (_rb_docno9.getChecked() || _rb_docsi9.getChecked()) {
+ //BA.debugLineNum = 578;BA.debugLine="If (rb_docno9.Checked And et_carroceria";
+if ((_rb_docno9.getChecked() && (_et_carroceria.getText()).equals("") == false) || (_rb_docsi9.getChecked() && (_et_carroceria.getText()).equals(""))) {
+ //BA.debugLineNum = 579;BA.debugLine="If rb_docno11.Checked Or rb_docsi11.Ch";
+if (_rb_docno11.getChecked() || _rb_docsi11.getChecked()) {
+ //BA.debugLineNum = 580;BA.debugLine="If (rb_docno11.Checked And et_luces.T";
+if ((_rb_docno11.getChecked() && (_et_luces.getText()).equals("") == false) || (_rb_docsi11.getChecked() && (_et_luces.getText()).equals(""))) {
+ //BA.debugLineNum = 581;BA.debugLine="If rb_docno13.Checked Or rb_docsi13.";
+if (_rb_docno13.getChecked() || _rb_docsi13.getChecked()) {
+ //BA.debugLineNum = 582;BA.debugLine="If (rb_docno12.Checked And et_placa";
+if ((_rb_docno12.getChecked() && (_et_placas.getText()).equals("") == false) || (_rb_docsi13.getChecked() && (_et_placas.getText()).equals(""))) {
+ //BA.debugLineNum = 583;BA.debugLine="If rb_docno15.Checked Or rb_docsi1";
+if (_rb_docno15.getChecked() || _rb_docsi15.getChecked()) {
+ //BA.debugLineNum = 584;BA.debugLine="If rb_docno16.Checked Or rb_docsi";
+if (_rb_docno16.getChecked() || _rb_docsi16.getChecked()) {
+ //BA.debugLineNum = 585;BA.debugLine="If rb_docno17.Checked Or rb_docs";
+if (_rb_docno17.getChecked() || _rb_docsi17.getChecked()) {
+ //BA.debugLineNum = 586;BA.debugLine="If rb_docno18.Checked Or rb_doc";
+if (_rb_docno18.getChecked() || _rb_docsi18.getChecked()) {
+ //BA.debugLineNum = 587;BA.debugLine="If rb_docno19.Checked Or rb_do";
+if (_rb_docno19.getChecked() || _rb_docsi19.getChecked()) {
+ //BA.debugLineNum = 588;BA.debugLine="If et_liquidos.Text <> \"\" An";
+if ((_et_liquidos.getText()).equals("") == false && (_rb_docno15.getChecked() || _rb_docno16.getChecked() || _rb_docno17.getChecked() || _rb_docno18.getChecked() || _rb_docno19.getChecked()) || (_et_liquidos.getText()).equals("") && (_rb_docsi15.getChecked() && _rb_docsi16.getChecked() && _rb_docsi17.getChecked() && _rb_docsi18.getChecked() && _rb_docsi19.getChecked())) {
+ //BA.debugLineNum = 589;BA.debugLine="If nombrefoto <> \"0\" And nom";
+if ((_nombrefoto).equals("0") == false && (_nombrefoto1).equals("0") == false && (_nombrefoto2).equals("0") == false && (_nombrefoto3).equals("0") == false) {
+ //BA.debugLineNum = 590;BA.debugLine="c = Starter.skmt.ExecQuery(";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
+ //BA.debugLineNum = 591;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 592;BA.debugLine="Private rutacheck As String";
+_rutacheck = _c.GetString("RUTAA");
+ //BA.debugLineNum = 593;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 594;BA.debugLine="Starter.skmt.ExecNonQuery(\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CHECKLIST2");
+ //BA.debugLineNum = 595;BA.debugLine="Starter.skmt.ExecNonQuery2(";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CHECKLIST2(USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE,RUTA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/ ),(Object)(_l_placa.getText()),(Object)(_checkdate+" "+_checktime),(Object)(_p1),(Object)(_p2),(Object)(_p3),(Object)(_p4),(Object)(_p5),(Object)(_p6),(Object)(_p7),(Object)(_p8),(Object)(_p9),(Object)(_et_carroceria.getText()),(Object)(_p11),(Object)(_et_luces.getText()),(Object)(_p13),(Object)(_et_placas.getText()),(Object)(_itemselect1),(Object)(_itemselect2),(Object)(_itemselect3),(Object)(_itemselect4),(Object)(_p15),(Object)(_p16),(Object)(_p17),(Object)(_p18),(Object)(_p19),(Object)(_et_liquidos.getText()),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto1)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto2)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto3)),(Object)(_et_km.getText()),(Object)(_rutacheck)}));
+ //BA.debugLineNum = 598;BA.debugLine="mandaPendientes";
+_mandapendientes();
+ //BA.debugLineNum = 600;BA.debugLine="rb_docno1.Checked = False";
+_rb_docno1.setChecked(__c.False);
+ //BA.debugLineNum = 601;BA.debugLine="rb_docno2.Checked = False";
+_rb_docno2.setChecked(__c.False);
+ //BA.debugLineNum = 602;BA.debugLine="rb_docno3.Checked = False";
+_rb_docno3.setChecked(__c.False);
+ //BA.debugLineNum = 603;BA.debugLine="rb_docno4.Checked = False";
+_rb_docno4.setChecked(__c.False);
+ //BA.debugLineNum = 604;BA.debugLine="rb_docno5.Checked = False";
+_rb_docno5.setChecked(__c.False);
+ //BA.debugLineNum = 605;BA.debugLine="rb_docno6.Checked = False";
+_rb_docno6.setChecked(__c.False);
+ //BA.debugLineNum = 606;BA.debugLine="rb_docno7.Checked = False";
+_rb_docno7.setChecked(__c.False);
+ //BA.debugLineNum = 607;BA.debugLine="rb_docno8.Checked = False";
+_rb_docno8.setChecked(__c.False);
+ //BA.debugLineNum = 608;BA.debugLine="rb_docno9.Checked = False";
+_rb_docno9.setChecked(__c.False);
+ //BA.debugLineNum = 609;BA.debugLine="rb_docno11.Checked = False";
+_rb_docno11.setChecked(__c.False);
+ //BA.debugLineNum = 610;BA.debugLine="rb_docno13.Checked = False";
+_rb_docno13.setChecked(__c.False);
+ //BA.debugLineNum = 611;BA.debugLine="rb_docno15.Checked = False";
+_rb_docno15.setChecked(__c.False);
+ //BA.debugLineNum = 612;BA.debugLine="rb_docno16.Checked = False";
+_rb_docno16.setChecked(__c.False);
+ //BA.debugLineNum = 613;BA.debugLine="rb_docno17.Checked = False";
+_rb_docno17.setChecked(__c.False);
+ //BA.debugLineNum = 614;BA.debugLine="rb_docno18.Checked = False";
+_rb_docno18.setChecked(__c.False);
+ //BA.debugLineNum = 615;BA.debugLine="rb_docno19.Checked = False";
+_rb_docno19.setChecked(__c.False);
+ //BA.debugLineNum = 617;BA.debugLine="rb_docsi1.Checked = False";
+_rb_docsi1.setChecked(__c.False);
+ //BA.debugLineNum = 618;BA.debugLine="rb_docsi2.Checked = False";
+_rb_docsi2.setChecked(__c.False);
+ //BA.debugLineNum = 619;BA.debugLine="rb_docsi3.Checked = False";
+_rb_docsi3.setChecked(__c.False);
+ //BA.debugLineNum = 620;BA.debugLine="rb_docsi4.Checked = False";
+_rb_docsi4.setChecked(__c.False);
+ //BA.debugLineNum = 621;BA.debugLine="rb_docsi5.Checked = False";
+_rb_docsi5.setChecked(__c.False);
+ //BA.debugLineNum = 622;BA.debugLine="rb_docsi6.Checked = False";
+_rb_docsi6.setChecked(__c.False);
+ //BA.debugLineNum = 623;BA.debugLine="rb_docsi7.Checked = False";
+_rb_docsi7.setChecked(__c.False);
+ //BA.debugLineNum = 624;BA.debugLine="rb_docsi8.Checked = False";
+_rb_docsi8.setChecked(__c.False);
+ //BA.debugLineNum = 625;BA.debugLine="rb_docsi9.Checked = False";
+_rb_docsi9.setChecked(__c.False);
+ //BA.debugLineNum = 626;BA.debugLine="rb_docsi11.Checked = False";
+_rb_docsi11.setChecked(__c.False);
+ //BA.debugLineNum = 627;BA.debugLine="rb_docsi13.Checked = False";
+_rb_docsi13.setChecked(__c.False);
+ //BA.debugLineNum = 628;BA.debugLine="rb_docsi15.Checked = False";
+_rb_docsi15.setChecked(__c.False);
+ //BA.debugLineNum = 629;BA.debugLine="rb_docsi16.Checked = False";
+_rb_docsi16.setChecked(__c.False);
+ //BA.debugLineNum = 630;BA.debugLine="rb_docsi17.Checked = False";
+_rb_docsi17.setChecked(__c.False);
+ //BA.debugLineNum = 631;BA.debugLine="rb_docsi18.Checked = False";
+_rb_docsi18.setChecked(__c.False);
+ //BA.debugLineNum = 632;BA.debugLine="rb_docsi19.Checked = False";
+_rb_docsi19.setChecked(__c.False);
+ //BA.debugLineNum = 634;BA.debugLine="cb_deratras.SelectedIndex =";
+_cb_deratras._setselectedindex /*int*/ ((int) (0));
+ //BA.debugLineNum = 635;BA.debugLine="cb_derdel.SelectedIndex = 0";
+_cb_derdel._setselectedindex /*int*/ ((int) (0));
+ //BA.debugLineNum = 636;BA.debugLine="cb_izqatras.SelectedIndex =";
+_cb_izqatras._setselectedindex /*int*/ ((int) (0));
+ //BA.debugLineNum = 637;BA.debugLine="cb_izqdel.SelectedIndex = 0";
+_cb_izqdel._setselectedindex /*int*/ ((int) (0));
+ //BA.debugLineNum = 639;BA.debugLine="et_carroceria.Text = \"\"";
+_et_carroceria.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 640;BA.debugLine="et_liquidos.Text = \"\"";
+_et_liquidos.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 641;BA.debugLine="et_luces.Text = \"\"";
+_et_luces.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 642;BA.debugLine="et_placas.Text = \"\"";
+_et_placas.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 644;BA.debugLine="ImageView1.Bitmap = LoadBit";
+_imageview1.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"frontal1.png").getObject()));
+ //BA.debugLineNum = 645;BA.debugLine="ImageView2.Bitmap = LoadBit";
+_imageview2.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"derecha1.png").getObject()));
+ //BA.debugLineNum = 646;BA.debugLine="ImageView3.Bitmap = LoadBit";
+_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"atras1.png").getObject()));
+ //BA.debugLineNum = 647;BA.debugLine="ImageView4.Bitmap = LoadBit";
+_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"izquierda1.png").getObject()));
+ //BA.debugLineNum = 649;BA.debugLine="nombrefoto = \"0\"";
+_nombrefoto = "0";
+ //BA.debugLineNum = 650;BA.debugLine="nombrefoto1 = \"0\"";
+_nombrefoto1 = "0";
+ //BA.debugLineNum = 651;BA.debugLine="nombrefoto2 = \"0\"";
+_nombrefoto2 = "0";
+ //BA.debugLineNum = 652;BA.debugLine="nombrefoto3 = \"0\"";
+_nombrefoto3 = "0";
+ //BA.debugLineNum = 654;BA.debugLine="B4XPages.ShowPage(\"Principa";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ }else {
+ //BA.debugLineNum = 656;BA.debugLine="MsgboxAsync(\"Favor de tomar";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de tomar todas las fotos"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 659;BA.debugLine="MsgboxAsync(\"Especifica Fuga";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica Fugas o detallaes en los liquidos"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 662;BA.debugLine="MsgboxAsync(\"Seleeciona una o";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Fugas"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 665;BA.debugLine="MsgboxAsync(\"Seleeciona una op";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Aire"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 668;BA.debugLine="MsgboxAsync(\"Seleeciona una opc";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Frenos"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 671;BA.debugLine="MsgboxAsync(\"Seleeciona una opci";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Anticongelante"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 674;BA.debugLine="MsgboxAsync(\"Seleeciona una opció";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Aceite"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 677;BA.debugLine="MsgboxAsync(\"Especifica daños en l";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en las condiciones de placas"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 680;BA.debugLine="MsgboxAsync(\"Seleeciona una opción";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Conciciones de placas de Correcto"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 683;BA.debugLine="MsgboxAsync(\"Especifica daños en las";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en las luces"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 686;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Funcionamiento de luces de Correcto"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 689;BA.debugLine="MsgboxAsync(\"Especifica daños en la ca";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en la carrocería"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 692;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en C";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Carrocería de Buen estado"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 695;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Se";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de Llanta de refacción"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 698;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Seg";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de gato"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 701;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Segu";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de Triagulo reflectante"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 704;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpi";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Limpieza unidad interna"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 707;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpie";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Limpieza unidad externa"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 710;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documen";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de Licencia de conducir"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 713;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Document";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de Póliza de seguro"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 716;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documenta";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de tarjeta de circulación"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ }else {
+ //BA.debugLineNum = 719;BA.debugLine="MsgboxAsync(\"Captura el kilometraje inicial.\",\"A";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Captura el kilometraje inicial."),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ //BA.debugLineNum = 722;BA.debugLine="End Sub";
+return "";
+}
+public void _b4xpage_appear() throws Exception{
+ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
+public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.c_cheklist parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_cheklist parent;
+String _permission = "";
+boolean _result = false;
+int _sdkversion = 0;
+anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+int _res = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 143;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PLACA FROM HIS";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PLACA FROM HIST_VENTAS")));
+ //BA.debugLineNum = 144;BA.debugLine="c.Position = 0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 145;BA.debugLine="Log(c.GetString(\"PLACA\"))";
+parent.__c.LogImpl("54521987",parent._c.GetString("PLACA"),0);
+ //BA.debugLineNum = 146;BA.debugLine="l_placa.Text = c.GetString(\"PLACA\")";
+parent._l_placa.setText(BA.ObjectToCharSequence(parent._c.GetString("PLACA")));
+ //BA.debugLineNum = 147;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 148;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
+parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_CAMERA);
+ //BA.debugLineNum = 149;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
+parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
+this.state = 17;
+return;
+case 17:
+//C
+this.state = 1;
+_permission = (String) result[0];
+_result = (Boolean) result[1];
+;
+ //BA.debugLineNum = 150;BA.debugLine="If Result Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (_result) {
+this.state = 3;
+}else {
+this.state = 5;
+}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+ //BA.debugLineNum = 153;BA.debugLine="Log(\"inicializamos Camara\")";
+parent.__c.LogImpl("54521995","inicializamos Camara",0);
+ if (true) break;
+
+case 5:
+//C
+this.state = 6;
+ //BA.debugLineNum = 155;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission Camara!!!"),parent.__c.True);
+ if (true) break;
+
+case 6:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 157;BA.debugLine="MES1.Initialize(Me, \"MES1\")";
+parent._mes1._initialize /*String*/ (ba,parent,"MES1");
+ //BA.debugLineNum = 160;BA.debugLine="Dim SdkVersion As Int = device.SdkVersion";
+_sdkversion = parent._device.getSdkVersion();
+ //BA.debugLineNum = 163;BA.debugLine="If SdkVersion < 30 Then";
+if (true) break;
+
+case 7:
+//if
+this.state = 16;
+if (_sdkversion<30) {
+this.state = 9;
+}else {
+this.state = 11;
+}if (true) break;
+
+case 9:
+//C
+this.state = 16;
+ //BA.debugLineNum = 164;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting WRITE";
+parent.__c.LogImpl("54522006","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting WRITE_EXTERNAL_STORAGE permission",0);
+ //BA.debugLineNum = 165;BA.debugLine="Dim rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 166;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_";
+_rp.CheckAndRequest(ba,_rp.PERMISSION_WRITE_EXTERNAL_STORAGE);
+ //BA.debugLineNum = 167;BA.debugLine="Wait For Activity_PermissionResult (Permission A";
+parent.__c.WaitFor("activity_permissionresult", ba, this, null);
+this.state = 18;
+return;
+case 18:
+//C
+this.state = 16;
+_permission = (String) result[0];
+_result = (Boolean) result[1];
+;
+ //BA.debugLineNum = 168;BA.debugLine="Log($\"PERMISSION_WRITE_EXTERNAL_STORAGE = ${Resu";
+parent.__c.LogImpl("54522010",("PERMISSION_WRITE_EXTERNAL_STORAGE = "+parent.__c.SmartStringFormatter("",(Object)(_result))+""),0);
+ if (true) break;
+
+case 11:
+//C
+this.state = 12;
+ //BA.debugLineNum = 170;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting MANAG";
+parent.__c.LogImpl("54522012","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting MANAGE_EXTERNAL_STORAGE permission",0);
+ //BA.debugLineNum = 171;BA.debugLine="Log(\"On Entry MANAGE_EXTERNAL_STORAGE = \" & MES1";
+parent.__c.LogImpl("54522013","On Entry MANAGE_EXTERNAL_STORAGE = "+BA.ObjectToString(parent._mes1._haspermission /*boolean*/ ()),0);
+ //BA.debugLineNum = 172;BA.debugLine="If Not(MES1.HasPermission) Then";
+if (true) break;
+
+case 12:
+//if
+this.state = 15;
+if (parent.__c.Not(parent._mes1._haspermission /*boolean*/ ())) {
+this.state = 14;
+}if (true) break;
+
+case 14:
+//C
+this.state = 15;
+ //BA.debugLineNum = 173;BA.debugLine="MsgboxAsync(\"Esta aplicación requiere acceso a";
+parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Esta aplicación requiere acceso a todos los archivos, habilite la opción"),BA.ObjectToCharSequence("Administrar todos los archivos"),ba);
+ //BA.debugLineNum = 174;BA.debugLine="Wait For Msgbox_Result(Res As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 19;
+return;
+case 19:
+//C
+this.state = 15;
+_res = (Integer) result[0];
+;
+ //BA.debugLineNum = 175;BA.debugLine="Log(\"Getting permission\")";
+parent.__c.LogImpl("54522017","Getting permission",0);
+ //BA.debugLineNum = 176;BA.debugLine="MES1.GetPermission";
+parent._mes1._getpermission /*String*/ ();
+ //BA.debugLineNum = 177;BA.debugLine="Wait For MES_StorageAvailable";
+parent.__c.WaitFor("mes_storageavailable", ba, this, null);
+this.state = 20;
+return;
+case 20:
+//C
+this.state = 15;
+;
+ if (true) break;
+
+case 15:
+//C
+this.state = 16;
+;
+ if (true) break;
+
+case 16:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 180;BA.debugLine="p_camara.Visible = False";
+parent._p_camara.setVisible(parent.__c.False);
+ //BA.debugLineNum = 198;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{
+}
+public void _activity_permissionresult(String _permission,boolean _result) throws Exception{
+}
+public void _msgbox_result(int _res) throws Exception{
+}
+public void _mes_storageavailable() throws Exception{
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_cheklist parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_cheklist parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 202;BA.debugLine="If p_camara.visible Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent._p_camara.getVisible()) {
+this.state = 3;
+}else {
+this.state = 5;
+}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+ //BA.debugLineNum = 203;BA.debugLine="p_camara.visible = False";
+parent._p_camara.setVisible(parent.__c.False);
+ //BA.debugLineNum = 204;BA.debugLine="StopCamera2";
+parent._stopcamera2();
+ if (true) break;
+
+case 5:
+//C
+this.state = 6;
+ //BA.debugLineNum = 206;BA.debugLine="B4XPages.ShowPage(\"principal\")";
+parent._b4xpages._showpage /*String*/ (ba,"principal");
+ if (true) break;
+
+case 6:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 209;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 210;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+anywheresoftware.b4a.objects.collections.List _items = null;
+ //BA.debugLineNum = 111;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 112;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 113;BA.debugLine="Root.LoadLayout(\"checklist\")";
+_root.LoadLayout("checklist",ba);
+ //BA.debugLineNum = 115;BA.debugLine="sv_datos.Height = Root.Height";
+_sv_datos.setHeight(_root.getHeight());
+ //BA.debugLineNum = 116;BA.debugLine="sv_datos.Width = Root.Width";
+_sv_datos.setWidth(_root.getWidth());
+ //BA.debugLineNum = 117;BA.debugLine="sv_datos.Panel.LoadLayout(\"check\")";
+_sv_datos.getPanel().LoadLayout("check",ba);
+ //BA.debugLineNum = 118;BA.debugLine="sv_datos.Panel.Height = p_check.Height";
+_sv_datos.getPanel().setHeight(_p_check.getHeight());
+ //BA.debugLineNum = 119;BA.debugLine="p_check.Width = Root.Width";
+_p_check.setWidth(_root.getWidth());
+ //BA.debugLineNum = 120;BA.debugLine="p_camara.Width = Root.Width";
+_p_camara.setWidth(_root.getWidth());
+ //BA.debugLineNum = 121;BA.debugLine="p_camara.Height = Root.Height";
+_p_camara.setHeight(_root.getHeight());
+ //BA.debugLineNum = 124;BA.debugLine="Dim items As List";
+_items = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 125;BA.debugLine="items.Initialize";
+_items.Initialize();
+ //BA.debugLineNum = 126;BA.debugLine="items.Add(\"100%\")";
+_items.Add((Object)("100%"));
+ //BA.debugLineNum = 127;BA.debugLine="items.Add(\"75%\")";
+_items.Add((Object)("75%"));
+ //BA.debugLineNum = 128;BA.debugLine="items.Add(\"50%\")";
+_items.Add((Object)("50%"));
+ //BA.debugLineNum = 129;BA.debugLine="items.Add(\"25%\")";
+_items.Add((Object)("25%"));
+ //BA.debugLineNum = 130;BA.debugLine="cb_deratras.SetItems(items)";
+_cb_deratras._setitems /*String*/ (_items);
+ //BA.debugLineNum = 131;BA.debugLine="cb_izqatras.SetItems(items)";
+_cb_izqatras._setitems /*String*/ (_items);
+ //BA.debugLineNum = 132;BA.debugLine="cb_derdel.SetItems(items)";
+_cb_derdel._setitems /*String*/ (_items);
+ //BA.debugLineNum = 133;BA.debugLine="cb_izqdel.SetItems(items)";
+_cb_izqdel._setitems /*String*/ (_items);
+ //BA.debugLineNum = 134;BA.debugLine="itemselect1 = \"100%\"";
+_itemselect1 = "100%";
+ //BA.debugLineNum = 135;BA.debugLine="itemselect2 = \"100%\"";
+_itemselect2 = "100%";
+ //BA.debugLineNum = 136;BA.debugLine="itemselect3 = \"100%\"";
+_itemselect3 = "100%";
+ //BA.debugLineNum = 137;BA.debugLine="itemselect4 = \"100%\"";
+_itemselect4 = "100%";
+ //BA.debugLineNum = 139;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 140;BA.debugLine="End Sub";
+return "";
+}
+public String _camera1_picturetaken(byte[] _data) throws Exception{
+String _filename = "";
+String _dirp = "";
+String _dir = "";
+String _dir2 = "";
+anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _img = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+ //BA.debugLineNum = 238;BA.debugLine="Sub Camera1_PictureTaken (Data()As Byte)";
+ //BA.debugLineNum = 239;BA.debugLine="If x = 1 Then";
+if (_x==1) {
+ //BA.debugLineNum = 240;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
+__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
+ //BA.debugLineNum = 241;BA.debugLine="nombrefoto = DateTime.Now & \"_FOTO1.jpg\"";
+_nombrefoto = BA.NumberToString(__c.DateTime.getNow())+"_FOTO1.jpg";
+ //BA.debugLineNum = 242;BA.debugLine="teclado.HideKeyboard";
+_teclado.HideKeyboard(ba);
+ //BA.debugLineNum = 243;BA.debugLine="fototomada = nombrefoto";
+_fototomada = _nombrefoto;
+ }else if(_x==2) {
+ //BA.debugLineNum = 246;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
+__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
+ //BA.debugLineNum = 247;BA.debugLine="nombrefoto1 = DateTime.Now & \"_FOTO2.jpg\"";
+_nombrefoto1 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO2.jpg";
+ //BA.debugLineNum = 248;BA.debugLine="teclado.HideKeyboard";
+_teclado.HideKeyboard(ba);
+ //BA.debugLineNum = 249;BA.debugLine="fototomada = nombrefoto1";
+_fototomada = _nombrefoto1;
+ }else if(_x==3) {
+ //BA.debugLineNum = 252;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
+__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
+ //BA.debugLineNum = 253;BA.debugLine="nombrefoto2 = DateTime.Now & \"_FOTO3.jpg\"";
+_nombrefoto2 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO3.jpg";
+ //BA.debugLineNum = 254;BA.debugLine="teclado.HideKeyboard";
+_teclado.HideKeyboard(ba);
+ //BA.debugLineNum = 255;BA.debugLine="fototomada = nombrefoto2";
+_fototomada = _nombrefoto2;
+ }else if(_x==4) {
+ //BA.debugLineNum = 258;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
+__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
+ //BA.debugLineNum = 259;BA.debugLine="nombrefoto3 = DateTime.Now & \"_FOTO4.jpg\"";
+_nombrefoto3 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO4.jpg";
+ //BA.debugLineNum = 260;BA.debugLine="teclado.HideKeyboard";
+_teclado.HideKeyboard(ba);
+ //BA.debugLineNum = 261;BA.debugLine="fototomada = nombrefoto3";
+_fototomada = _nombrefoto3;
+ };
+ //BA.debugLineNum = 265;BA.debugLine="Log(\"tome foto\")";
+__c.LogImpl("54784155","tome foto",0);
+ //BA.debugLineNum = 266;BA.debugLine="Dim filename As String = fototomada";
+_filename = _fototomada;
+ //BA.debugLineNum = 267;BA.debugLine="Dim Dirp As String = File.DirInternal";
+_dirp = __c.File.getDirInternal();
+ //BA.debugLineNum = 268;BA.debugLine="Dim Dir As String";
+_dir = "";
+ //BA.debugLineNum = 269;BA.debugLine="Dim Dir2 As String";
+_dir2 = "";
+ //BA.debugLineNum = 270;BA.debugLine="Try";
+try { //BA.debugLineNum = 271;BA.debugLine="File.MakeDir(Dirp,\"/md\")";
+__c.File.MakeDir(_dirp,"/md");
+ //BA.debugLineNum = 272;BA.debugLine="Dir = \"/md\"";
+_dir = "/md";
+ //BA.debugLineNum = 273;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
+__c.LogImpl("54784163","creado en promotoria "+_dirp+_dir,0);
+ }
+ catch (Exception e32) {
+ ba.setLastException(e32); //BA.debugLineNum = 275;BA.debugLine="Dir = \"\"";
+_dir = "";
+ //BA.debugLineNum = 276;BA.debugLine="Log(\"creado en raiz\")";
+__c.LogImpl("54784166","creado en raiz",0);
+ };
+ //BA.debugLineNum = 279;BA.debugLine="Try";
+try { //BA.debugLineNum = 280;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
+__c.File.MakeDir(_dirp+_dir,"/reduccion");
+ //BA.debugLineNum = 281;BA.debugLine="Dir2 = \"/reduccion\"";
+_dir2 = "/reduccion";
+ //BA.debugLineNum = 282;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
+__c.LogImpl("54784172","creado en promotoria "+_dirp+_dir+_dir2,0);
+ }
+ catch (Exception e40) {
+ ba.setLastException(e40); //BA.debugLineNum = 284;BA.debugLine="Dir = \"\"";
+_dir = "";
+ //BA.debugLineNum = 285;BA.debugLine="Log(\"creado en raiz\")";
+__c.LogImpl("54784175","creado en raiz",0);
+ };
+ //BA.debugLineNum = 288;BA.debugLine="camEx.SavePictureToFile(Data, Dirp&Dir, filename)";
+_camex._savepicturetofile /*String*/ (_data,_dirp+_dir,_filename);
+ //BA.debugLineNum = 289;BA.debugLine="camEx.StartPreview 'restart preview";
+_camex._startpreview /*String*/ ();
+ //BA.debugLineNum = 291;BA.debugLine="Log(\"Picture saved.\" & CRLF & \"File size: \" & Fi";
+__c.LogImpl("54784181","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0);
+ //BA.debugLineNum = 292;BA.debugLine="p_camara.Visible = False";
+_p_camara.setVisible(__c.False);
+ //BA.debugLineNum = 294;BA.debugLine="Log(nombrefoto)";
+__c.LogImpl("54784184",_nombrefoto,0);
+ //BA.debugLineNum = 295;BA.debugLine="Log(nombrefoto1)";
+__c.LogImpl("54784185",_nombrefoto1,0);
+ //BA.debugLineNum = 296;BA.debugLine="Log(nombrefoto2)";
+__c.LogImpl("54784186",_nombrefoto2,0);
+ //BA.debugLineNum = 297;BA.debugLine="Log(nombrefoto3)";
+__c.LogImpl("54784187",_nombrefoto3,0);
+ //BA.debugLineNum = 299;BA.debugLine="If nombrefoto <> \"0\" Then";
+if ((_nombrefoto).equals("0") == false) {
+ //BA.debugLineNum = 300;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
+_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
+ //BA.debugLineNum = 301;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.True);
+ //BA.debugLineNum = 302;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
+_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
+ //BA.debugLineNum = 305;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 306;BA.debugLine="ImageView1.Bitmap = LoadBitmap(File.DirInternal";
+_imageview1.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto).getObject()));
+ };
+ //BA.debugLineNum = 310;BA.debugLine="If nombrefoto1 <> \"0\" Then";
+if ((_nombrefoto1).equals("0") == false) {
+ //BA.debugLineNum = 311;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
+_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
+ //BA.debugLineNum = 312;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False);
+ //BA.debugLineNum = 313;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
+_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
+ //BA.debugLineNum = 316;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 317;BA.debugLine="ImageView2.Bitmap = LoadBitmap(File.DirInternal";
+_imageview2.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto1).getObject()));
+ };
+ //BA.debugLineNum = 320;BA.debugLine="If nombrefoto2 <> \"0\" Then";
+if ((_nombrefoto2).equals("0") == false) {
+ //BA.debugLineNum = 321;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
+_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
+ //BA.debugLineNum = 322;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False);
+ //BA.debugLineNum = 323;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
+_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
+ //BA.debugLineNum = 326;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 327;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirInternal";
+_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto2).getObject()));
+ };
+ //BA.debugLineNum = 330;BA.debugLine="If nombrefoto3 <> \"0\" Then";
+if ((_nombrefoto3).equals("0") == false) {
+ //BA.debugLineNum = 331;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
+_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
+ //BA.debugLineNum = 332;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False);
+ //BA.debugLineNum = 333;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
+_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
+ //BA.debugLineNum = 336;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 337;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirInternal";
+_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto3).getObject()));
+ };
+ //BA.debugLineNum = 340;BA.debugLine="StopCamera2";
+_stopcamera2();
+ //BA.debugLineNum = 342;BA.debugLine="End Sub";
+return "";
+}
+public String _camera1_ready(boolean _success) throws Exception{
+ //BA.debugLineNum = 224;BA.debugLine="Sub Camera1_Ready (Success As Boolean)";
+ //BA.debugLineNum = 225;BA.debugLine="Log(\"Camara ready\")";
+__c.LogImpl("54718593","Camara ready",0);
+ //BA.debugLineNum = 226;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 227;BA.debugLine="camEx.SetJpegQuality(90)";
+_camex._setjpegquality /*String*/ ((int) (90));
+ //BA.debugLineNum = 228;BA.debugLine="camEx.SetContinuousAutoFocus";
+_camex._setcontinuousautofocus /*String*/ ();
+ //BA.debugLineNum = 229;BA.debugLine="camEx.CommitParameters";
+_camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 230;BA.debugLine="camEx.StartPreview";
+_camex._startpreview /*String*/ ();
+ //BA.debugLineNum = 231;BA.debugLine="Log(camEx.GetPreviewSize)";
+__c.LogImpl("54718599",BA.ObjectToString(_camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ()),0);
+ }else {
+ //BA.debugLineNum = 233;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True);
+ //BA.debugLineNum = 234;BA.debugLine="Log(\"Cannot open camera\")";
+__c.LogImpl("54718602","Cannot open camera",0);
+ };
+ //BA.debugLineNum = 236;BA.debugLine="End Sub";
+return "";
+}
+public String _cb_deratras_selectedindexchanged(int _index) throws Exception{
+ //BA.debugLineNum = 536;BA.debugLine="Private Sub cb_deratras_SelectedIndexChanged (Inde";
+ //BA.debugLineNum = 537;BA.debugLine="itemselect4 = cb_deratras.SelectedItem";
+_itemselect4 = _cb_deratras._getselecteditem /*String*/ ();
+ //BA.debugLineNum = 538;BA.debugLine="Log(itemselect4)";
+__c.LogImpl("57602178",_itemselect4,0);
+ //BA.debugLineNum = 539;BA.debugLine="End Sub";
+return "";
+}
+public String _cb_derdel_selectedindexchanged(int _index) throws Exception{
+ //BA.debugLineNum = 531;BA.debugLine="Private Sub cb_derdel_SelectedIndexChanged (Index";
+ //BA.debugLineNum = 532;BA.debugLine="itemselect3 = cb_derdel.SelectedItem";
+_itemselect3 = _cb_derdel._getselecteditem /*String*/ ();
+ //BA.debugLineNum = 533;BA.debugLine="Log(itemselect3)";
+__c.LogImpl("57536642",_itemselect3,0);
+ //BA.debugLineNum = 534;BA.debugLine="End Sub";
+return "";
+}
+public String _cb_izqatras_selectedindexchanged(int _index) throws Exception{
+ //BA.debugLineNum = 526;BA.debugLine="Private Sub cb_izqatras_SelectedIndexChanged (Inde";
+ //BA.debugLineNum = 527;BA.debugLine="itemselect2 = cb_izqatras.SelectedItem";
+_itemselect2 = _cb_izqatras._getselecteditem /*String*/ ();
+ //BA.debugLineNum = 528;BA.debugLine="Log(itemselect2)";
+__c.LogImpl("57471106",_itemselect2,0);
+ //BA.debugLineNum = 529;BA.debugLine="End Sub";
+return "";
+}
+public String _cb_izqdel_selectedindexchanged(int _index) throws Exception{
+ //BA.debugLineNum = 521;BA.debugLine="Private Sub cb_izqdel_SelectedIndexChanged (Index";
+ //BA.debugLineNum = 522;BA.debugLine="itemselect1 = cb_izqdel.SelectedItem";
+_itemselect1 = _cb_izqdel._getselecteditem /*String*/ ();
+ //BA.debugLineNum = 523;BA.debugLine="Log(itemselect1)";
+__c.LogImpl("57405570",_itemselect1,0);
+ //BA.debugLineNum = 524;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Private p_check As Panel";
+_p_check = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 5;BA.debugLine="Private sv_datos As ScrollView";
+_sv_datos = new anywheresoftware.b4a.objects.ScrollViewWrapper();
+ //BA.debugLineNum = 7;BA.debugLine="Private camEx As CameraExClass";
+_camex = new reparto_izca.keymon.lat.cameraexclass();
+ //BA.debugLineNum = 8;BA.debugLine="Dim frontCamera As Boolean = False";
+_frontcamera = __c.False;
+ //BA.debugLineNum = 9;BA.debugLine="Private p_cam As Panel";
+_p_cam = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim nombrefoto As String = \"0\"";
+_nombrefoto = "0";
+ //BA.debugLineNum = 11;BA.debugLine="Dim nombrefoto1 As String = \"0\"";
+_nombrefoto1 = "0";
+ //BA.debugLineNum = 12;BA.debugLine="Dim nombrefoto2 As String = \"0\"";
+_nombrefoto2 = "0";
+ //BA.debugLineNum = 13;BA.debugLine="Dim nombrefoto3 As String = \"0\"";
+_nombrefoto3 = "0";
+ //BA.debugLineNum = 14;BA.debugLine="Private p_camara As Panel";
+_p_camara = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Private teclado As IME";
+_teclado = new anywheresoftware.b4a.objects.IME();
+ //BA.debugLineNum = 16;BA.debugLine="Dim fototomada As String";
+_fototomada = "";
+ //BA.debugLineNum = 17;BA.debugLine="Private ImageView1 As ImageView";
+_imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Private ImageView3 As ImageView";
+_imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Private ImageView2 As ImageView";
+_imageview2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Private ImageView4 As ImageView";
+_imageview4 = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 21;BA.debugLine="Private b_foto As Button";
+_b_foto = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Dim device As Phone";
+_device = new anywheresoftware.b4a.phone.Phone();
+ //BA.debugLineNum = 23;BA.debugLine="Dim MES1 As ManageExternalStorage";
+_mes1 = new reparto_izca.keymon.lat.manageexternalstorage();
+ //BA.debugLineNum = 24;BA.debugLine="Dim x As Int = 0";
+_x = (int) (0);
+ //BA.debugLineNum = 25;BA.debugLine="Private rb_docsi1 As RadioButton";
+_rb_docsi1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 26;BA.debugLine="Private rb_docno1 As RadioButton";
+_rb_docno1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Private rb_docsi2 As RadioButton";
+_rb_docsi2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 28;BA.debugLine="Private rb_docno2 As RadioButton";
+_rb_docno2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Private rb_docsi3 As RadioButton";
+_rb_docsi3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="Private rb_docno3 As RadioButton";
+_rb_docno3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Private rb_docsi4 As RadioButton";
+_rb_docsi4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 32;BA.debugLine="Private rb_docno4 As RadioButton";
+_rb_docno4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 33;BA.debugLine="Private rb_docsi5 As RadioButton";
+_rb_docsi5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 34;BA.debugLine="Private rb_docno5 As RadioButton";
+_rb_docno5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 35;BA.debugLine="Private rb_docsi6 As RadioButton";
+_rb_docsi6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 36;BA.debugLine="Private rb_docno6 As RadioButton";
+_rb_docno6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 37;BA.debugLine="Private rb_docsi7 As RadioButton";
+_rb_docsi7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 38;BA.debugLine="Private rb_docno7 As RadioButton";
+_rb_docno7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Private rb_docsi8 As RadioButton";
+_rb_docsi8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 40;BA.debugLine="Private rb_docno8 As RadioButton";
+_rb_docno8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 41;BA.debugLine="Private rb_docsi9 As RadioButton";
+_rb_docsi9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 42;BA.debugLine="Private rb_docno9 As RadioButton";
+_rb_docno9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 43;BA.debugLine="Private rb_docsi10 As RadioButton";
+_rb_docsi10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Private rb_docno10 As RadioButton";
+_rb_docno10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 45;BA.debugLine="Private rb_docsi11 As RadioButton";
+_rb_docsi11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 46;BA.debugLine="Private rb_docno11 As RadioButton";
+_rb_docno11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 47;BA.debugLine="Private rb_docsi12 As RadioButton";
+_rb_docsi12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 48;BA.debugLine="Private rb_docno12 As RadioButton";
+_rb_docno12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 49;BA.debugLine="Private rb_docsi13 As RadioButton";
+_rb_docsi13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 50;BA.debugLine="Private rb_docno13 As RadioButton";
+_rb_docno13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 51;BA.debugLine="Private rb_docsi14 As RadioButton";
+_rb_docsi14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 52;BA.debugLine="Private rb_docno14 As RadioButton";
+_rb_docno14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 53;BA.debugLine="Private rb_docsi15 As RadioButton";
+_rb_docsi15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 54;BA.debugLine="Private rb_docno15 As RadioButton";
+_rb_docno15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 55;BA.debugLine="Private rb_docsi16 As RadioButton";
+_rb_docsi16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 56;BA.debugLine="Private rb_docno16 As RadioButton";
+_rb_docno16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 57;BA.debugLine="Private rb_docsi17 As RadioButton";
+_rb_docsi17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 58;BA.debugLine="Private rb_docno17 As RadioButton";
+_rb_docno17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 59;BA.debugLine="Private rb_docsi18 As RadioButton";
+_rb_docsi18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 60;BA.debugLine="Private rb_docno18 As RadioButton";
+_rb_docno18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 61;BA.debugLine="Private rb_docsi19 As RadioButton";
+_rb_docsi19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 62;BA.debugLine="Private rb_docno19 As RadioButton";
+_rb_docno19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 63;BA.debugLine="Private et_carroceria As EditText";
+_et_carroceria = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 64;BA.debugLine="Private et_luces As EditText";
+_et_luces = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 65;BA.debugLine="Private et_placas As EditText";
+_et_placas = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 66;BA.debugLine="Private et_liquidos As EditText";
+_et_liquidos = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 68;BA.debugLine="Dim p1 As String";
+_p1 = "";
+ //BA.debugLineNum = 69;BA.debugLine="Dim p2 As String";
+_p2 = "";
+ //BA.debugLineNum = 70;BA.debugLine="Dim p3 As String";
+_p3 = "";
+ //BA.debugLineNum = 71;BA.debugLine="Dim p4 As String";
+_p4 = "";
+ //BA.debugLineNum = 72;BA.debugLine="Dim p5 As String";
+_p5 = "";
+ //BA.debugLineNum = 73;BA.debugLine="Dim p6 As String";
+_p6 = "";
+ //BA.debugLineNum = 74;BA.debugLine="Dim p7 As String";
+_p7 = "";
+ //BA.debugLineNum = 75;BA.debugLine="Dim p8 As String";
+_p8 = "";
+ //BA.debugLineNum = 76;BA.debugLine="Dim p9 As String";
+_p9 = "";
+ //BA.debugLineNum = 77;BA.debugLine="Dim p10 As String";
+_p10 = "";
+ //BA.debugLineNum = 78;BA.debugLine="Dim p11 As String";
+_p11 = "";
+ //BA.debugLineNum = 79;BA.debugLine="Dim p12 As String";
+_p12 = "";
+ //BA.debugLineNum = 80;BA.debugLine="Dim p13 As String";
+_p13 = "";
+ //BA.debugLineNum = 81;BA.debugLine="Dim p14 As String";
+_p14 = "";
+ //BA.debugLineNum = 82;BA.debugLine="Dim p15 As String";
+_p15 = "";
+ //BA.debugLineNum = 83;BA.debugLine="Dim p16 As String";
+_p16 = "";
+ //BA.debugLineNum = 84;BA.debugLine="Dim p17 As String";
+_p17 = "";
+ //BA.debugLineNum = 85;BA.debugLine="Dim p18 As String";
+_p18 = "";
+ //BA.debugLineNum = 86;BA.debugLine="Dim p19 As String";
+_p19 = "";
+ //BA.debugLineNum = 87;BA.debugLine="Private cb_izqdel As B4XComboBox";
+_cb_izqdel = new reparto_izca.keymon.lat.b4xcombobox();
+ //BA.debugLineNum = 88;BA.debugLine="Private cb_derdel As B4XComboBox";
+_cb_derdel = new reparto_izca.keymon.lat.b4xcombobox();
+ //BA.debugLineNum = 89;BA.debugLine="Private cb_izqatras As B4XComboBox";
+_cb_izqatras = new reparto_izca.keymon.lat.b4xcombobox();
+ //BA.debugLineNum = 90;BA.debugLine="Private cb_deratras As B4XComboBox";
+_cb_deratras = new reparto_izca.keymon.lat.b4xcombobox();
+ //BA.debugLineNum = 91;BA.debugLine="Dim itemselect1 As String";
+_itemselect1 = "";
+ //BA.debugLineNum = 92;BA.debugLine="Dim itemselect2 As String";
+_itemselect2 = "";
+ //BA.debugLineNum = 93;BA.debugLine="Dim itemselect3 As String";
+_itemselect3 = "";
+ //BA.debugLineNum = 94;BA.debugLine="Dim itemselect4 As String";
+_itemselect4 = "";
+ //BA.debugLineNum = 95;BA.debugLine="Dim foto1() As Byte";
+_foto1 = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 96;BA.debugLine="Dim foto2() As Byte";
+_foto2 = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 97;BA.debugLine="Dim foto3() As Byte";
+_foto3 = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 98;BA.debugLine="Dim foto4() As Byte";
+_foto4 = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 99;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 100;BA.debugLine="Dim reqManager As DBRequestManager";
+_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
+ //BA.debugLineNum = 101;BA.debugLine="Private l_placa As Label";
+_l_placa = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 102;BA.debugLine="Private et_km As EditText";
+_et_km = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 103;BA.debugLine="End Sub";
+return "";
+}
+public String _imageview1_click() throws Exception{
+ //BA.debugLineNum = 361;BA.debugLine="Private Sub ImageView1_Click";
+ //BA.debugLineNum = 363;BA.debugLine="x = 1";
+_x = (int) (1);
+ //BA.debugLineNum = 364;BA.debugLine="InitializeCamera2";
+_initializecamera2();
+ //BA.debugLineNum = 365;BA.debugLine="p_camara.Visible = True";
+_p_camara.setVisible(__c.True);
+ //BA.debugLineNum = 367;BA.debugLine="End Sub";
+return "";
+}
+public String _imageview2_click() throws Exception{
+ //BA.debugLineNum = 369;BA.debugLine="Private Sub ImageView2_Click";
+ //BA.debugLineNum = 371;BA.debugLine="x = 2";
+_x = (int) (2);
+ //BA.debugLineNum = 372;BA.debugLine="InitializeCamera2";
+_initializecamera2();
+ //BA.debugLineNum = 373;BA.debugLine="p_camara.Visible = True";
+_p_camara.setVisible(__c.True);
+ //BA.debugLineNum = 375;BA.debugLine="End Sub";
+return "";
+}
+public String _imageview3_click() throws Exception{
+ //BA.debugLineNum = 377;BA.debugLine="Private Sub ImageView3_Click";
+ //BA.debugLineNum = 379;BA.debugLine="x = 3";
+_x = (int) (3);
+ //BA.debugLineNum = 380;BA.debugLine="InitializeCamera2";
+_initializecamera2();
+ //BA.debugLineNum = 381;BA.debugLine="p_camara.Visible = True";
+_p_camara.setVisible(__c.True);
+ //BA.debugLineNum = 383;BA.debugLine="End Sub";
+return "";
+}
+public String _imageview4_click() throws Exception{
+ //BA.debugLineNum = 385;BA.debugLine="Private Sub ImageView4_Click";
+ //BA.debugLineNum = 387;BA.debugLine="x = 4";
+_x = (int) (4);
+ //BA.debugLineNum = 388;BA.debugLine="InitializeCamera2";
+_initializecamera2();
+ //BA.debugLineNum = 389;BA.debugLine="p_camara.Visible = True";
+_p_camara.setVisible(__c.True);
+ //BA.debugLineNum = 391;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 106;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 107;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 108;BA.debugLine="End Sub";
+return null;
+}
+public void _initializecamera2() throws Exception{
+ResumableSub_InitializeCamera2 rsub = new ResumableSub_InitializeCamera2(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_InitializeCamera2 extends BA.ResumableSub {
+public ResumableSub_InitializeCamera2(reparto_izca.keymon.lat.c_cheklist parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_cheklist parent;
+String _permission = "";
+boolean _result = false;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 213;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
+parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_CAMERA);
+ //BA.debugLineNum = 214;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
+parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
+this.state = 7;
+return;
+case 7:
+//C
+this.state = 1;
+_permission = (String) result[0];
+_result = (Boolean) result[1];
+;
+ //BA.debugLineNum = 215;BA.debugLine="If Result Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (_result) {
+this.state = 3;
+}else {
+this.state = 5;
+}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+ //BA.debugLineNum = 216;BA.debugLine="camEx.Initialize(p_cam, frontCamera, Me, \"Camera";
+parent._camex._initialize /*String*/ (ba,parent._p_cam,parent._frontcamera,parent,"Camera1");
+ //BA.debugLineNum = 217;BA.debugLine="frontCamera = camEx.Front";
+parent._frontcamera = parent._camex._front /*boolean*/ ;
+ //BA.debugLineNum = 218;BA.debugLine="Log(\"inicializamos Camara\")";
+parent.__c.LogImpl("54653062","inicializamos Camara",0);
+ if (true) break;
+
+case 5:
+//C
+this.state = 6;
+ //BA.debugLineNum = 220;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission Camara!!!"),parent.__c.True);
+ if (true) break;
+
+case 6:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 222;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+reparto_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null;
+String _cliente = "";
+int _i = 0;
+reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
+Object[] _records = null;
+String _k = "";
+ //BA.debugLineNum = 747;BA.debugLine="Sub JobDone(Job As HttpJob)";
+ //BA.debugLineNum = 748;BA.debugLine="Log(\"JOBDONE CLIENTE . \" & Job.Success)";
+__c.LogImpl("57798785","JOBDONE CLIENTE . "+BA.ObjectToString(_job._success /*boolean*/ ),0);
+ //BA.debugLineNum = 749;BA.debugLine="If Job.Success = False Then";
+if (_job._success /*boolean*/ ==__c.False) {
+ //BA.debugLineNum = 752;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Job.Error";
+__c.LogImpl("57798789","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Blue);
+ }else {
+ //BA.debugLineNum = 754;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
+__c.LogImpl("57798791","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
+ //BA.debugLineNum = 755;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 756;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
+_resultado = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 757;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_checkl";
+if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_checkliPendientes_head_")>-1) {
+ //BA.debugLineNum = 758;BA.debugLine="Private cliente As String= resultado.Tag";
+_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
+ //BA.debugLineNum = 759;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
+_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
+ //BA.debugLineNum = 760;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
+__c.LogImpl("57798797",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
+ //BA.debugLineNum = 762;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLAC";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE, RUTA FROM CHECKLIST2")));
+ //BA.debugLineNum = 763;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
+__c.LogImpl("57798800",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
+ //BA.debugLineNum = 764;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 765;BA.debugLine="For i = 0 To c.RowCount -1";
+{
+final int step15 = 1;
+final int limit15 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit15 ;_i = _i + step15 ) {
+ //BA.debugLineNum = 766;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 767;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 769;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")";
+_foto1 = _c.GetBlob("FOTO1");
+ //BA.debugLineNum = 770;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")";
+_foto2 = _c.GetBlob("FOTO12");
+ //BA.debugLineNum = 771;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")";
+_foto3 = _c.GetBlob("FOTO3");
+ //BA.debugLineNum = 772;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")";
+_foto4 = _c.GetBlob("FOTO4");
+ //BA.debugLineNum = 774;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 775;BA.debugLine="cmd.Name = \"update_CHECK_MARDS\"";
+_cmd.Name /*String*/ = "update_CHECK_MARDS";
+ //BA.debugLineNum = 776;BA.debugLine="cmd.Parameters = Array As Object(c.GetString";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CONDICION_LLANTAS_DEL_DER")),(Object)(_c.GetString("CONDICION_LLANTAS_DEL_IZQ")),(Object)(_c.GetString("CONDICION_LLANTAS_TRASERA_DER")),(Object)(_c.GetString("CONDICION_LLANTAS_TRASERA_IZQ")),(Object)(_c.GetString("ACEITE")),(Object)(_c.GetString("ANTICONGELANTE")),(Object)(_c.GetString("FRENOS")),(Object)(_c.GetString("AIRE")),(Object)(_c.GetString("FUGAS")),(Object)(_c.GetString("COMETARIOS_FUGAS")),(Object)(_foto1),(Object)(_foto2),(Object)(_foto3),(Object)(_foto4),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._almacen /*String*/ ),(Object)(_c.GetString("KILIMETRAJE")),(Object)(_c.GetString("RUTA")),(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("PLACA")),(Object)(_c.GetString("FECHA_CAPTURA"))};
+ //BA.debugLineNum = 777;BA.debugLine="reqManager.ExecuteCommand(cmd , \"update\")";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("update"));
+ }
+};
+ };
+ //BA.debugLineNum = 781;BA.debugLine="For Each records() As Object In resultado.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group28 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen28 = group28.getSize()
+;int index28 = 0;
+;
+for (; index28 < groupLen28;index28++){
+_records = (Object[])(group28.Get(index28));
+ //BA.debugLineNum = 782;BA.debugLine="For Each k As String In resultado.Columns.Key";
+{
+final anywheresoftware.b4a.BA.IterableList group29 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
+final int groupLen29 = group29.getSize()
+;int index29 = 0;
+;
+for (; index29 < groupLen29;index29++){
+_k = BA.ObjectToString(group29.Get(index29));
+ //BA.debugLineNum = 783;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
+__c.LogImpl("57798820",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
+ }
+};
+ }
+};
+ //BA.debugLineNum = 786;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE CHECADO_CHEC";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE CHECADO_CHECK set CHECADO = 1 ");
+ //BA.debugLineNum = 787;BA.debugLine="B4XPages.MainPage.principal.checachek";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._checachek /*String*/ ();
+ };
+ };
+ //BA.debugLineNum = 791;BA.debugLine="Job.Release";
+_job._release /*String*/ ();
+ };
+ //BA.debugLineNum = 794;BA.debugLine="End Sub";
+return "";
+}
+public String _mandapendientes() throws Exception{
+int _i = 0;
+reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
+ //BA.debugLineNum = 724;BA.debugLine="Sub mandaPendientes";
+ //BA.debugLineNum = 725;BA.debugLine="Log(\"MandaPendientes\")";
+__c.LogImpl("57733249","MandaPendientes",0);
+ //BA.debugLineNum = 727;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLACA,";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4 FROM CHECKLIST2")));
+ //BA.debugLineNum = 728;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
+__c.LogImpl("57733252",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
+ //BA.debugLineNum = 729;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 730;BA.debugLine="For i = 0 To c.RowCount -1";
+{
+final int step5 = 1;
+final int limit5 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit5 ;_i = _i + step5 ) {
+ //BA.debugLineNum = 731;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 732;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 734;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")";
+_foto1 = _c.GetBlob("FOTO1");
+ //BA.debugLineNum = 735;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")";
+_foto2 = _c.GetBlob("FOTO12");
+ //BA.debugLineNum = 736;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")";
+_foto3 = _c.GetBlob("FOTO3");
+ //BA.debugLineNum = 737;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")";
+_foto4 = _c.GetBlob("FOTO4");
+ //BA.debugLineNum = 739;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 740;BA.debugLine="cmd.Name = \"insert_CHECK_MARDS\"";
+_cmd.Name /*String*/ = "insert_CHECK_MARDS";
+ //BA.debugLineNum = 741;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"U";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("PLACA")),(Object)(_c.GetString("FECHA_CAPTURA")),(Object)(_c.GetString("TARJETA_CIRCULACION")),(Object)(_c.GetString("POLIZA_SEGURO")),(Object)(_c.GetString("LICENCIA_CONDUCIR")),(Object)(_c.GetString("LIMPIA_EXTERNA")),(Object)(_c.GetString("LIMPIA_INTERNA")),(Object)(_c.GetString("TRIANGULO")),(Object)(_c.GetString("GATO")),(Object)(_c.GetString("LLANTA_REFACCION")),(Object)(_c.GetString("CARROCERIA")),(Object)(_c.GetString("CARROCERIA_COMENTARIOS")),(Object)(_c.GetString("LUCES")),(Object)(_c.GetString("LUCES_COMENTARIOS")),(Object)(_c.GetString("CONDICION_PLACAS")),(Object)(_c.GetString("CONDICION_PLACAS_COMENTARIOS"))};
+ //BA.debugLineNum = 742;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_checkliPe";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_checkliPendientes_head_"+__c.SmartStringFormatter("",(Object)(_c.GetString("USUARIO")))+"")));
+ }
+};
+ };
+ //BA.debugLineNum = 745;BA.debugLine="End Sub";
+return "";
+}
+public String _p_camara_click() throws Exception{
+ //BA.debugLineNum = 344;BA.debugLine="Private Sub p_camara_Click";
+ //BA.debugLineNum = 346;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno1_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 393;BA.debugLine="Private Sub rb_docno1_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 394;BA.debugLine="p1 = \"No\"";
+_p1 = "No";
+ //BA.debugLineNum = 395;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno11_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 465;BA.debugLine="Private Sub rb_docno11_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 466;BA.debugLine="p11 = \"Incorrecto\"";
+_p11 = "Incorrecto";
+ //BA.debugLineNum = 467;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno13_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 473;BA.debugLine="Private Sub rb_docno13_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 474;BA.debugLine="p13 = \"Incorrecto\"";
+_p13 = "Incorrecto";
+ //BA.debugLineNum = 475;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno15_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 481;BA.debugLine="Private Sub rb_docno15_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 482;BA.debugLine="p15 = \"Incorrecto\"";
+_p15 = "Incorrecto";
+ //BA.debugLineNum = 483;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno16_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 489;BA.debugLine="Private Sub rb_docno16_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 490;BA.debugLine="p16 = \"Incorrecto\"";
+_p16 = "Incorrecto";
+ //BA.debugLineNum = 491;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno17_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 497;BA.debugLine="Private Sub rb_docno17_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 498;BA.debugLine="p17 = \"Incorrecto\"";
+_p17 = "Incorrecto";
+ //BA.debugLineNum = 499;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno18_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 505;BA.debugLine="Private Sub rb_docno18_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 506;BA.debugLine="p18 = \"Incorrecto\"";
+_p18 = "Incorrecto";
+ //BA.debugLineNum = 507;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno19_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 513;BA.debugLine="Private Sub rb_docno19_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 514;BA.debugLine="p19 = \"Incorrecto\"";
+_p19 = "Incorrecto";
+ //BA.debugLineNum = 515;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno2_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 401;BA.debugLine="Private Sub rb_docno2_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 402;BA.debugLine="p2 = \"No\"";
+_p2 = "No";
+ //BA.debugLineNum = 403;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno3_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 409;BA.debugLine="Private Sub rb_docno3_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 410;BA.debugLine="p3 = \"No\"";
+_p3 = "No";
+ //BA.debugLineNum = 411;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno4_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 417;BA.debugLine="Private Sub rb_docno4_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 418;BA.debugLine="p4 = \"No\"";
+_p4 = "No";
+ //BA.debugLineNum = 419;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno5_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 425;BA.debugLine="Private Sub rb_docno5_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 426;BA.debugLine="p5 = \"No\"";
+_p5 = "No";
+ //BA.debugLineNum = 427;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno6_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 433;BA.debugLine="Private Sub rb_docno6_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 434;BA.debugLine="p6 = \"No\"";
+_p6 = "No";
+ //BA.debugLineNum = 435;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno7_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 441;BA.debugLine="Private Sub rb_docno7_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 442;BA.debugLine="p7 = \"No\"";
+_p7 = "No";
+ //BA.debugLineNum = 443;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno8_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 449;BA.debugLine="Private Sub rb_docno8_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 450;BA.debugLine="p8 = \"No\"";
+_p8 = "No";
+ //BA.debugLineNum = 451;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docno9_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 457;BA.debugLine="Private Sub rb_docno9_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 458;BA.debugLine="p9 = \"Incorrecto\"";
+_p9 = "Incorrecto";
+ //BA.debugLineNum = 459;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi1_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 397;BA.debugLine="Private Sub rb_docsi1_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 398;BA.debugLine="p1 = \"Si\"";
+_p1 = "Si";
+ //BA.debugLineNum = 399;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi11_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 469;BA.debugLine="Private Sub rb_docsi11_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 470;BA.debugLine="p11 = \"Correcto\"";
+_p11 = "Correcto";
+ //BA.debugLineNum = 471;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi13_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 477;BA.debugLine="Private Sub rb_docsi13_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 478;BA.debugLine="p13 = \"Correcto\"";
+_p13 = "Correcto";
+ //BA.debugLineNum = 479;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi15_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 485;BA.debugLine="Private Sub rb_docsi15_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 486;BA.debugLine="p15 = \"Correcto\"";
+_p15 = "Correcto";
+ //BA.debugLineNum = 487;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi16_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 493;BA.debugLine="Private Sub rb_docsi16_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 494;BA.debugLine="p16 = \"Correcto\"";
+_p16 = "Correcto";
+ //BA.debugLineNum = 495;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi17_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 501;BA.debugLine="Private Sub rb_docsi17_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 502;BA.debugLine="p17 = \"Correcto\"";
+_p17 = "Correcto";
+ //BA.debugLineNum = 503;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi18_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 509;BA.debugLine="Private Sub rb_docsi18_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 510;BA.debugLine="p18 = \"Correcto\"";
+_p18 = "Correcto";
+ //BA.debugLineNum = 511;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi19_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 517;BA.debugLine="Private Sub rb_docsi19_CheckedChange(Checked As Bo";
+ //BA.debugLineNum = 518;BA.debugLine="p19 = \"Correcto\"";
+_p19 = "Correcto";
+ //BA.debugLineNum = 519;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi2_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 405;BA.debugLine="Private Sub rb_docsi2_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 406;BA.debugLine="p2 = \"Si\"";
+_p2 = "Si";
+ //BA.debugLineNum = 407;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi3_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 413;BA.debugLine="Private Sub rb_docsi3_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 414;BA.debugLine="p3 = \"Si\"";
+_p3 = "Si";
+ //BA.debugLineNum = 415;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi4_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 421;BA.debugLine="Private Sub rb_docsi4_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 422;BA.debugLine="p4 = \"Si\"";
+_p4 = "Si";
+ //BA.debugLineNum = 423;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi5_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 429;BA.debugLine="Private Sub rb_docsi5_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 430;BA.debugLine="p5 = \"Si\"";
+_p5 = "Si";
+ //BA.debugLineNum = 431;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi6_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 437;BA.debugLine="Private Sub rb_docsi6_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 438;BA.debugLine="p6 = \"Si\"";
+_p6 = "Si";
+ //BA.debugLineNum = 439;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi7_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 445;BA.debugLine="Private Sub rb_docsi7_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 446;BA.debugLine="p7 = \"Si\"";
+_p7 = "Si";
+ //BA.debugLineNum = 447;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi8_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 453;BA.debugLine="Private Sub rb_docsi8_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 454;BA.debugLine="p8 = \"Si\"";
+_p8 = "Si";
+ //BA.debugLineNum = 455;BA.debugLine="End Sub";
+return "";
+}
+public String _rb_docsi9_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 461;BA.debugLine="Private Sub rb_docsi9_CheckedChange(Checked As Boo";
+ //BA.debugLineNum = 462;BA.debugLine="p9 = \"Correcto\"";
+_p9 = "Correcto";
+ //BA.debugLineNum = 463;BA.debugLine="End Sub";
+return "";
+}
+public String _stopcamera2() throws Exception{
+ //BA.debugLineNum = 354;BA.debugLine="Private Sub StopCamera2";
+ //BA.debugLineNum = 356;BA.debugLine="If camEx.IsInitialized Then";
+if (_camex.IsInitialized /*boolean*/ ()) {
+ //BA.debugLineNum = 357;BA.debugLine="camEx.Release";
+_camex._release /*String*/ ();
+ };
+ //BA.debugLineNum = 359;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "JOBDONE"))
+ return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_cliente.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_cliente.java
new file mode 100644
index 0000000..7071c64
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_cliente.java
@@ -0,0 +1,3817 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_cliente extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_cliente");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_cliente.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.gps.GPS _g = null;
+public String _clie_id = "";
+public String _sdate = "";
+public String _stime = "";
+public String _usuario = "";
+public String _cuenta = "";
+public anywheresoftware.b4a.objects.Serial.BluetoothAdmin _btadmin = null;
+public anywheresoftware.b4a.objects.Serial _cmp20 = null;
+public anywheresoftware.b4a.objects.streams.File.TextWriterWrapper _printer = null;
+public anywheresoftware.b4a.objects.collections.Map _paireddevices = null;
+public anywheresoftware.b4a.objects.collections.List _l = null;
+public int _tamano = 0;
+public int _espacio = 0;
+public String _blanco = "";
+public boolean _impresoraconectada = false;
+public String _longitud = "";
+public String _latitud = "";
+public String _nombre = "";
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_cuenta = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_nombre = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_calle = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_numero = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_nint = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_edo = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_pob = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_col = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_cp = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_zona = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _gest = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_saldotot = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_saldooper = null;
+public reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_noentrega = null;
+public anywheresoftware.b4a.objects.LabelWrapper _label10 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _label11 = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
+public anywheresoftware.b4a.objects.IME _ime = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _tar = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_qr = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _bt_qr = null;
+public reparto_izca.keymon.lat.escposprinter _printer1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_comm = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_actdte = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_usuario = null;
+public anywheresoftware.b4a.objects.LabelWrapper _la_resultado = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_entre1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_entre2 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_atiende = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_atiende2 = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _datos = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _guardar = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _nuevo = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _hist = null;
+public String _pasa_imp = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_imp = null;
+public String _total_cliente = "";
+public String _credito = "";
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_paso2 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
+public int _errorimpresora = 0;
+public int _banderaimp = 0;
+public anywheresoftware.b4a.objects.LabelWrapper _l_credi = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_pagare = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_montopag = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_efectivo = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_montoefec = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_credito = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_acred = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_cancred = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_montoacredito = null;
+public anywheresoftware.b4a.objects.LabelWrapper _label16 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_limite = null;
+public String _almacen = "";
+public String _fechaprev = "";
+public String _rutaprev = "";
+public String _rutarep = "";
+public String _montopagare = "";
+public anywheresoftware.b4a.objects.PanelWrapper _p_abono = null;
+public b4a.example3.customlistview _clv_abonos = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_abono = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelar = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_abono = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_montoabonostotal = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _h = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _j = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _b = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_folio = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_saldo = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_cxc = null;
+public reparto_izca.keymon.lat.b4xcombobox _cb_tipopago = null;
+public String _itemselect = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _activity_pause(boolean _userclosed) throws Exception{
+ //BA.debugLineNum = 341;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
+ //BA.debugLineNum = 343;BA.debugLine="End Sub";
+return "";
+}
+public void _b_abono_click() throws Exception{
+ResumableSub_b_abono_Click rsub = new ResumableSub_b_abono_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_b_abono_Click extends BA.ResumableSub {
+public ResumableSub_b_abono_Click(reparto_izca.keymon.lat.c_cliente parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_cliente parent;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _con = null;
+int _consecutivo = 0;
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null;
+int _resultado = 0;
+int step10;
+int limit10;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 1265;BA.debugLine="If et_abono.Text <> \"\" Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 28;
+if ((parent._et_abono.getText()).equals("") == false) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 1266;BA.debugLine="If et_abono.text > l_montoabonostotal.text Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 27;
+if ((double)(Double.parseDouble(parent._et_abono.getText()))>(double)(Double.parseDouble(parent._l_montoabonostotal.getText()))) {
+this.state = 6;
+}else {
+this.state = 8;
+}if (true) break;
+
+case 6:
+//C
+this.state = 27;
+ //BA.debugLineNum = 1267;BA.debugLine="MsgboxAsync(\"El monto a abonar no puede ser may";
+parent.__c.MsgboxAsync(BA.ObjectToCharSequence("El monto a abonar no puede ser mayor que el monto total"),BA.ObjectToCharSequence("Atención"),ba);
+ if (true) break;
+
+case 8:
+//C
+this.state = 9;
+ //BA.debugLineNum = 1269;BA.debugLine="If et_abono.Text <> \"\" And et_abono.Text > 0 Th";
+if (true) break;
+
+case 9:
+//if
+this.state = 26;
+if ((parent._et_abono.getText()).equals("") == false && (double)(Double.parseDouble(parent._et_abono.getText()))>0) {
+this.state = 11;
+}if (true) break;
+
+case 11:
+//C
+this.state = 12;
+ //BA.debugLineNum = 1270;BA.debugLine="If itemselect <> \"SELECCIONA UNA OPCION\" Then";
+if (true) break;
+
+case 12:
+//if
+this.state = 25;
+if ((parent._itemselect).equals("SELECCIONA UNA OPCION") == false) {
+this.state = 14;
+}else {
+this.state = 24;
+}if (true) break;
+
+case 14:
+//C
+this.state = 15;
+ //BA.debugLineNum = 1280;BA.debugLine="Dim con As Cursor = Starter.skmt.ExecQuery(\"S";
+_con = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_con = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM ABONOS WHERE a_cliente in (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 1281;BA.debugLine="Private consecutivo As Int = con.RowCount +1";
+_consecutivo = (int) (_con.getRowCount()+1);
+ //BA.debugLineNum = 1283;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT NOTA, SALD";
+parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE in (SELECT CUENTA FROM CUENTAA) AND SALDO_PENDIENTE <> 0")));
+ //BA.debugLineNum = 1285;BA.debugLine="For i = 0 To d.RowCount - 1";
+if (true) break;
+
+case 15:
+//for
+this.state = 18;
+step10 = 1;
+limit10 = (int) (parent._d.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 29;
+if (true) break;
+
+case 29:
+//C
+this.state = 18;
+if ((step10 > 0 && _i <= limit10) || (step10 < 0 && _i >= limit10)) this.state = 17;
+if (true) break;
+
+case 30:
+//C
+this.state = 29;
+_i = ((int)(0 + _i + step10)) ;
+if (true) break;
+
+case 17:
+//C
+this.state = 30;
+ //BA.debugLineNum = 1286;BA.debugLine="d.Position = i";
+parent._d.setPosition(_i);
+ //BA.debugLineNum = 1287;BA.debugLine="Log(d.GetString(\"NOTA\"))";
+parent.__c.LogImpl("59895960",parent._d.GetString("NOTA"),0);
+ //BA.debugLineNum = 1288;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
+parent.__c.LogImpl("59895961",parent._d.GetString("SALDO_PENDIENTE"),0);
+ if (true) break;
+if (true) break;
+
+case 18:
+//C
+this.state = 19;
+;
+ //BA.debugLineNum = 1293;BA.debugLine="Dim d5 As Cursor= Starter.skmt.ExecQuery(\"SEL";
+_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
+ //BA.debugLineNum = 1295;BA.debugLine="d5.Position = 0";
+_d5.setPosition((int) (0));
+ //BA.debugLineNum = 1301;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar u";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("¿Seguro que quieres realizar un abono de $"+parent.__c.SmartStringFormatter("",(Object)(parent._et_abono.getText()))+" para este cliente?")),BA.ObjectToCharSequence("Guardar Abono"),"Guardar","Cancelar","",(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(parent.__c.Null)),ba,parent.__c.True);
+ //BA.debugLineNum = 1302;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 31;
+return;
+case 31:
+//C
+this.state = 19;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 1303;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 19:
+//if
+this.state = 22;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 21;
+}if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 1304;BA.debugLine="p_abono.Visible = False";
+parent._p_abono.setVisible(parent.__c.False);
+ //BA.debugLineNum = 1305;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABON";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha, TIPO_PAGO, CONSECUTIVO, NUM_TICKET, RUTA_REP) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(parent._et_abono.getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._itemselect))+"', '"+parent.__c.SmartStringFormatter("",(Object)(_consecutivo))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._d.GetString("NOTA")))+"' , '"+parent.__c.SmartStringFormatter("",(Object)(_d5.GetString("RUTAA")))+"')"));
+ //BA.debugLineNum = 1306;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False);
+ if (true) break;
+
+case 22:
+//C
+this.state = 25;
+;
+ //BA.debugLineNum = 1322;BA.debugLine="d.Close";
+parent._d.Close();
+ //BA.debugLineNum = 1323;BA.debugLine="d5.Close";
+_d5.Close();
+ if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 1325;BA.debugLine="MsgboxAsync(\"Por favor selecciona un metodo d";
+parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor selecciona un metodo de pago"),BA.ObjectToCharSequence("Atención"),ba);
+ if (true) break;
+
+case 25:
+//C
+this.state = 26;
+;
+ if (true) break;
+
+case 26:
+//C
+this.state = 27;
+;
+ if (true) break;
+
+case 27:
+//C
+this.state = 28;
+;
+ if (true) break;
+
+case 28:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 1330;BA.debugLine="ime.HideKeyboard";
+parent._ime.HideKeyboard(ba);
+ //BA.debugLineNum = 1331;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _msgbox_result(int _resultado) throws Exception{
+}
+public String _b_acred_click() throws Exception{
+ //BA.debugLineNum = 994;BA.debugLine="Private Sub b_acred_Click";
+ //BA.debugLineNum = 995;BA.debugLine="If et_montoacredito.Text > l_total.Text Then";
+if ((double)(Double.parseDouble(_et_montoacredito.getText()))>(double)(Double.parseDouble(_l_total.getText()))) {
+ //BA.debugLineNum = 996;BA.debugLine="MsgboxAsync(\"El monto del pagare no puede ser ma";
+__c.MsgboxAsync(BA.ObjectToCharSequence("El monto del pagare no puede ser mayor a la venta"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 998;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
+__c.DateTime.setDateFormat("dd/MM/yyyy");
+ //BA.debugLineNum = 999;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
+__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 1000;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 1001;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 1003;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cue";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa")));
+ //BA.debugLineNum = 1004;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1005;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+_cuenta = _c.GetString("CUENTA");
+ //BA.debugLineNum = 1006;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1008;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 1009;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1010;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 1011;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1013;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 1014;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1015;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")";
+_almacen = _c.GetString("ID_ALMACEN");
+ //BA.debugLineNum = 1016;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1018;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_FECHA from";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 1019;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1020;BA.debugLine="fechaprev = c.GetString(\"HVD_FECHA\")";
+_fechaprev = _c.GetString("HVD_FECHA");
+ //BA.debugLineNum = 1021;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1023;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fro";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 1024;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1025;BA.debugLine="rutaprev = c.GetString(\"CAT_CL_RUTA\")";
+_rutaprev = _c.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 1026;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1028;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 1029;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1030;BA.debugLine="rutarep = c.GetString(\"RUTAA\")";
+_rutarep = _c.GetString("RUTAA");
+ //BA.debugLineNum = 1031;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1032;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGARES";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA_REP, PA_RUTAPREV, PA_FECHA_PREV, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_rutarep),(Object)(_rutaprev),(Object)(_fechaprev),(Object)((_sdate)),(Object)(_et_montoacredito.getText()),(Object)(_usuario),(Object)(_cuenta)}));
+ //BA.debugLineNum = 1033;BA.debugLine="et_montoacredito.Text = \"\"";
+_et_montoacredito.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 1034;BA.debugLine="p_credito.Visible = False";
+_p_credito.setVisible(__c.False);
+ //BA.debugLineNum = 1035;BA.debugLine="Guardado";
+_guardado();
+ };
+ //BA.debugLineNum = 1037;BA.debugLine="End Sub";
+return "";
+}
+public String _b_cancelar_click() throws Exception{
+ //BA.debugLineNum = 1214;BA.debugLine="Private Sub b_cancelar_Click";
+ //BA.debugLineNum = 1215;BA.debugLine="et_abono.Text = \"\"";
+_et_abono.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 1216;BA.debugLine="p_abono.Visible = False";
+_p_abono.setVisible(__c.False);
+ //BA.debugLineNum = 1217;BA.debugLine="ime.HideKeyboard";
+_ime.HideKeyboard(ba);
+ //BA.debugLineNum = 1218;BA.debugLine="End Sub";
+return "";
+}
+public String _b_cancred_click() throws Exception{
+ //BA.debugLineNum = 1039;BA.debugLine="Private Sub b_cancred_Click";
+ //BA.debugLineNum = 1040;BA.debugLine="et_montoacredito.Text = \"\"";
+_et_montoacredito.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 1041;BA.debugLine="p_credito.Visible = False";
+_p_credito.setVisible(__c.False);
+ //BA.debugLineNum = 1042;BA.debugLine="End Sub";
+return "";
+}
+public String _b_cxc_click() throws Exception{
+anywheresoftware.b4a.objects.collections.List _items = null;
+double _total = 0;
+int _i = 0;
+ //BA.debugLineNum = 1106;BA.debugLine="Private Sub b_cxc_Click";
+ //BA.debugLineNum = 1107;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from CU";
+_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA")));
+ //BA.debugLineNum = 1108;BA.debugLine="h.Position = 0";
+_h.setPosition((int) (0));
+ //BA.debugLineNum = 1109;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
+__c.LogImpl("59633795",_h.GetString("CUENTA"),0);
+ //BA.debugLineNum = 1112;BA.debugLine="Dim Items As List";
+_items = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 1113;BA.debugLine="Items.Initialize";
+_items.Initialize();
+ //BA.debugLineNum = 1115;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")";
+_items.Add((Object)("SELECCIONA UNA OPCION"));
+ //BA.debugLineNum = 1116;BA.debugLine="Items.Add(\"TRANSFERENCIA\")";
+_items.Add((Object)("TRANSFERENCIA"));
+ //BA.debugLineNum = 1117;BA.debugLine="Items.Add(\"EFECTIVO\")";
+_items.Add((Object)("EFECTIVO"));
+ //BA.debugLineNum = 1118;BA.debugLine="Items.Add(\"CHEQUE\")";
+_items.Add((Object)("CHEQUE"));
+ //BA.debugLineNum = 1120;BA.debugLine="cb_tipopago.SetItems(Items)";
+_cb_tipopago._setitems /*String*/ (_items);
+ //BA.debugLineNum = 1122;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\"";
+_itemselect = "SELECCIONA UNA OPCION";
+ //BA.debugLineNum = 1124;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FROM";
+_j = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{_h.GetString("CUENTA")})));
+ //BA.debugLineNum = 1125;BA.debugLine="j.position = 0";
+_j.setPosition((int) (0));
+ //BA.debugLineNum = 1126;BA.debugLine="Log(j.RowCount)";
+__c.LogImpl("59633812",BA.NumberToString(_j.getRowCount()),0);
+ //BA.debugLineNum = 1127;BA.debugLine="If j.RowCount = 0 Then";
+if (_j.getRowCount()==0) {
+ //BA.debugLineNum = 1128;BA.debugLine="p_abono.Visible = True";
+_p_abono.setVisible(__c.True);
+ //BA.debugLineNum = 1129;BA.debugLine="p_abono.Height = Root.Height";
+_p_abono.setHeight(_root.getHeight());
+ //BA.debugLineNum = 1130;BA.debugLine="p_abono.Width = Root.Width";
+_p_abono.setWidth(_root.getWidth());
+ //BA.debugLineNum = 1131;BA.debugLine="et_abono.text = \"\"";
+_et_abono.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 1132;BA.debugLine="Dim total As Double = 0";
+_total = 0;
+ //BA.debugLineNum = 1133;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
+ //BA.debugLineNum = 1134;BA.debugLine="f.Position = 0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 1135;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{_f.GetString("CUENTA")})));
+ //BA.debugLineNum = 1136;BA.debugLine="clv_abonos.Clear";
+_clv_abonos._clear();
+ //BA.debugLineNum = 1137;BA.debugLine="For i = 0 To d.RowCount - 1";
+{
+final int step25 = 1;
+final int limit25 = (int) (_d.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit25 ;_i = _i + step25 ) {
+ //BA.debugLineNum = 1138;BA.debugLine="d.Position = i";
+_d.setPosition(_i);
+ //BA.debugLineNum = 1139;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA";
+_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_d.GetString("NOTA"),"$ "+_d.GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i));
+ //BA.debugLineNum = 1140;BA.debugLine="Log(d.GetString(\"NOTA\"))";
+__c.LogImpl("59633826",_d.GetString("NOTA"),0);
+ //BA.debugLineNum = 1141;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
+__c.LogImpl("59633827",_d.GetString("SALDO_PENDIENTE"),0);
+ //BA.debugLineNum = 1142;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
+_total = _total+(double)(Double.parseDouble(_d.GetString("SALDO_PENDIENTE")));
+ //BA.debugLineNum = 1143;BA.debugLine="Log(total)";
+__c.LogImpl("59633829",BA.NumberToString(_total),0);
+ }
+};
+ //BA.debugLineNum = 1145;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1146;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? ",new String[]{_f.GetString("CUENTA")})));
+ //BA.debugLineNum = 1147;BA.debugLine="If d.RowCount > 0 Then";
+if (_d.getRowCount()>0) {
+ //BA.debugLineNum = 1148;BA.debugLine="For i = 0 To d.RowCount - 1";
+{
+final int step36 = 1;
+final int limit36 = (int) (_d.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit36 ;_i = _i + step36 ) {
+ //BA.debugLineNum = 1149;BA.debugLine="d.Position = i";
+_d.setPosition(_i);
+ //BA.debugLineNum = 1150;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d";
+_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem("ABONO","$ "+_d.GetString("a_abono")).getObject())),(Object)(_i));
+ //BA.debugLineNum = 1151;BA.debugLine="total = total - d.GetString(\"a_abono\")";
+_total = _total-(double)(Double.parseDouble(_d.GetString("a_abono")));
+ //BA.debugLineNum = 1152;BA.debugLine="Log(total)";
+__c.LogImpl("59633838",BA.NumberToString(_total),0);
+ }
+};
+ };
+ //BA.debugLineNum = 1155;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,";
+_l_montoabonostotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 1156;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1157;BA.debugLine="f.Close";
+_f.Close();
+ }else if(_j.getRowCount()>0) {
+ //BA.debugLineNum = 1159;BA.debugLine="p_abono.Visible = True";
+_p_abono.setVisible(__c.True);
+ //BA.debugLineNum = 1160;BA.debugLine="p_abono.Height = Root.Height";
+_p_abono.setHeight(_root.getHeight());
+ //BA.debugLineNum = 1161;BA.debugLine="p_abono.Width = Root.Width";
+_p_abono.setWidth(_root.getWidth());
+ //BA.debugLineNum = 1162;BA.debugLine="et_abono.text = \"\"";
+_et_abono.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 1163;BA.debugLine="Dim total As Double = 0";
+_total = 0;
+ //BA.debugLineNum = 1164;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
+ //BA.debugLineNum = 1165;BA.debugLine="f.Position = 0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 1166;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{_f.GetString("CUENTA")})));
+ //BA.debugLineNum = 1167;BA.debugLine="clv_abonos.Clear";
+_clv_abonos._clear();
+ //BA.debugLineNum = 1168;BA.debugLine="For i = 0 To d.RowCount - 1";
+{
+final int step56 = 1;
+final int limit56 = (int) (_d.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit56 ;_i = _i + step56 ) {
+ //BA.debugLineNum = 1169;BA.debugLine="d.Position = i";
+_d.setPosition(_i);
+ //BA.debugLineNum = 1170;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA";
+_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_d.GetString("NOTA"),"$ "+_d.GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i));
+ //BA.debugLineNum = 1171;BA.debugLine="Log(d.GetString(\"NOTA\"))";
+__c.LogImpl("59633857",_d.GetString("NOTA"),0);
+ //BA.debugLineNum = 1172;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
+__c.LogImpl("59633858",_d.GetString("SALDO_PENDIENTE"),0);
+ //BA.debugLineNum = 1173;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
+_total = _total+(double)(Double.parseDouble(_d.GetString("SALDO_PENDIENTE")));
+ //BA.debugLineNum = 1174;BA.debugLine="Log(total)";
+__c.LogImpl("59633860",BA.NumberToString(_total),0);
+ }
+};
+ //BA.debugLineNum = 1176;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1177;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? ",new String[]{_f.GetString("CUENTA")})));
+ //BA.debugLineNum = 1178;BA.debugLine="If d.RowCount > 0 Then";
+if (_d.getRowCount()>0) {
+ //BA.debugLineNum = 1179;BA.debugLine="For i = 0 To d.RowCount - 1";
+{
+final int step67 = 1;
+final int limit67 = (int) (_d.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit67 ;_i = _i + step67 ) {
+ //BA.debugLineNum = 1180;BA.debugLine="d.Position = i";
+_d.setPosition(_i);
+ //BA.debugLineNum = 1181;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d";
+_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem("ABONO","$ "+_d.GetString("a_abono")).getObject())),(Object)(_i));
+ //BA.debugLineNum = 1182;BA.debugLine="total = total - d.GetString(\"a_abono\")";
+_total = _total-(double)(Double.parseDouble(_d.GetString("a_abono")));
+ //BA.debugLineNum = 1183;BA.debugLine="Log(total)";
+__c.LogImpl("59633869",BA.NumberToString(_total),0);
+ }
+};
+ };
+ //BA.debugLineNum = 1186;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,";
+_l_montoabonostotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 1187;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1188;BA.debugLine="f.Close";
+_f.Close();
+ };
+ //BA.debugLineNum = 1191;BA.debugLine="h.Close";
+_h.Close();
+ //BA.debugLineNum = 1192;BA.debugLine="j.Close";
+_j.Close();
+ //BA.debugLineNum = 1193;BA.debugLine="End Sub";
+return "";
+}
+public void _b_imp_click() throws Exception{
+ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_B_IMP_Click extends BA.ResumableSub {
+public ResumableSub_B_IMP_Click(reparto_izca.keymon.lat.c_cliente parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_cliente parent;
+int _cont = 0;
+int _i = 0;
+String _punit = "";
+String _ptot = "";
+int _e = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
+int _resultado = 0;
+int step53;
+int limit53;
+int step65;
+int limit65;
+int step88;
+int limit88;
+int step114;
+int limit114;
+int step129;
+int limit129;
+int step154;
+int limit154;
+int step164;
+int limit164;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 552;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 553;BA.debugLine="c.Position=0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 554;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+parent._usuario = parent._c.GetString("USUARIO");
+ //BA.debugLineNum = 556;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 557;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
+parent.__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 558;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 559;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 560;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 566;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
+parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
+ //BA.debugLineNum = 567;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 568;BA.debugLine="If Not(Printer1.IsConnected) Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 38;
+if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 3;
+}else {
+this.state = 21;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 570;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 571;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 572;BA.debugLine="Do While Not(impresoraConectada)";
+if (true) break;
+
+case 4:
+//do while
+this.state = 19;
+while (parent.__c.Not(parent._impresoraconectada)) {
+this.state = 6;
+if (true) break;
+}
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 573;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 125;
+return;
+case 125:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 575;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 576;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
+if (true) break;
+
+case 7:
+//if
+this.state = 12;
+if (_cont==2) {
+this.state = 9;
+;}if (true) break;
+
+case 9:
+//C
+this.state = 12;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 12:
+//C
+this.state = 13;
+;
+ //BA.debugLineNum = 577;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 13:
+//if
+this.state = 18;
+if (_cont>3) {
+this.state = 15;
+;}if (true) break;
+
+case 15:
+//C
+this.state = 18;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 18:
+//C
+this.state = 4;
+;
+ if (true) break;
+
+case 19:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 579;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 126;
+return;
+case 126:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 580;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 583;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 584;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 585;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
+if (true) break;
+
+case 22:
+//do while
+this.state = 37;
+while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 24;
+if (true) break;
+}
+if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 586;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 127;
+return;
+case 127:
+//C
+this.state = 25;
+;
+ //BA.debugLineNum = 588;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 589;BA.debugLine="If cont = 2 Then Printer1.Connect";
+if (true) break;
+
+case 25:
+//if
+this.state = 30;
+if (_cont==2) {
+this.state = 27;
+;}if (true) break;
+
+case 27:
+//C
+this.state = 30;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 30:
+//C
+this.state = 31;
+;
+ //BA.debugLineNum = 590;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 31:
+//if
+this.state = 36;
+if (_cont>3) {
+this.state = 33;
+;}if (true) break;
+
+case 33:
+//C
+this.state = 36;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 36:
+//C
+this.state = 22;
+;
+ if (true) break;
+
+case 37:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 592;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 128;
+return;
+case 128:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 593;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 38:
+//C
+this.state = 39;
+;
+ //BA.debugLineNum = 596;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 597;BA.debugLine="ESPACIO = 28";
+parent._espacio = (int) (28);
+ //BA.debugLineNum = 598;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 615;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL";
+parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF);
+ //BA.debugLineNum = 617;BA.debugLine="Printer1.WriteString(sDate & CRLF)";
+parent._printer1._writestring /*String*/ (parent._sdate+parent.__c.CRLF);
+ //BA.debugLineNum = 618;BA.debugLine="Printer1.WriteString(sTime & CRLF)";
+parent._printer1._writestring /*String*/ (parent._stime+parent.__c.CRLF);
+ //BA.debugLineNum = 619;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL";
+parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+parent.__c.CRLF);
+ //BA.debugLineNum = 620;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
+parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 621;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta.";
+parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 622;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
+parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 623;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
+parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 627;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 628;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 629;BA.debugLine="If c.RowCount > 0 Then";
+if (true) break;
+
+case 39:
+//if
+this.state = 68;
+if (parent._c.getRowCount()>0) {
+this.state = 41;
+}if (true) break;
+
+case 41:
+//C
+this.state = 42;
+ //BA.debugLineNum = 630;BA.debugLine="Printer1.WriteString(\"------------ENTREGA-------";
+parent._printer1._writestring /*String*/ ("------------ENTREGA-----------"+parent.__c.CRLF);
+ //BA.debugLineNum = 633;BA.debugLine="Printer1.WriteString(\"Cant. Precio I";
+parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF);
+ //BA.debugLineNum = 635;BA.debugLine="Printer1.WriteString(\"--------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 637;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
+parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PROID"))));
+ //BA.debugLineNum = 638;BA.debugLine="If S.RowCount>0 Then";
+if (true) break;
+
+case 42:
+//if
+this.state = 67;
+if (parent._s.getRowCount()>0) {
+this.state = 44;
+}if (true) break;
+
+case 44:
+//C
+this.state = 45;
+ //BA.debugLineNum = 639;BA.debugLine="For i=0 To S.RowCount -1";
+if (true) break;
+
+case 45:
+//for
+this.state = 66;
+step53 = 1;
+limit53 = (int) (parent._s.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 129;
+if (true) break;
+
+case 129:
+//C
+this.state = 66;
+if ((step53 > 0 && _i <= limit53) || (step53 < 0 && _i >= limit53)) this.state = 47;
+if (true) break;
+
+case 130:
+//C
+this.state = 129;
+_i = ((int)(0 + _i + step53)) ;
+if (true) break;
+
+case 47:
+//C
+this.state = 48;
+ //BA.debugLineNum = 640;BA.debugLine="S.Position=i";
+parent._s.setPosition(_i);
+ //BA.debugLineNum = 641;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))";
+parent.__c.LogImpl("58912986",parent._s.GetString("HVD_RECHAZO"),0);
+ //BA.debugLineNum = 642;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_";
+if (true) break;
+
+case 48:
+//if
+this.state = 65;
+if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) {
+this.state = 50;
+}if (true) break;
+
+case 50:
+//C
+this.state = 51;
+ //BA.debugLineNum = 645;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm";
+if (true) break;
+
+case 51:
+//if
+this.state = 64;
+if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) {
+this.state = 53;
+}else if((parent._s.GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) {
+this.state = 59;
+}if (true) break;
+
+case 53:
+//C
+this.state = 54;
+ //BA.debugLineNum = 647;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 648;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
+parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 651;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST";
+_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 652;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 655;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
+_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 656;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 658;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 660;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 54:
+//for
+this.state = 57;
+step65 = 1;
+limit65 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 131;
+if (true) break;
+
+case 131:
+//C
+this.state = 57;
+if ((step65 > 0 && _e <= limit65) || (step65 < 0 && _e >= limit65)) this.state = 56;
+if (true) break;
+
+case 132:
+//C
+this.state = 131;
+_e = ((int)(0 + _e + step65)) ;
+if (true) break;
+
+case 56:
+//C
+this.state = 132;
+ //BA.debugLineNum = 661;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 57:
+//C
+this.state = 64;
+;
+ //BA.debugLineNum = 663;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 664;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
+parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco);
+ //BA.debugLineNum = 665;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 666;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 667;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 668;BA.debugLine="Printer1.WriteString( ptot & CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 669;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 670;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 671;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ if (true) break;
+
+case 59:
+//C
+this.state = 60;
+ //BA.debugLineNum = 675;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 676;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
+parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 678;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue";
+_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 679;BA.debugLine="vc5.Position = 0";
+_vc5.setPosition((int) (0));
+ //BA.debugLineNum = 680;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get";
+_punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 681;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 682;BA.debugLine="vc5.Close";
+_vc5.Close();
+ //BA.debugLineNum = 684;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
+_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 685;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 687;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 689;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 60:
+//for
+this.state = 63;
+step88 = 1;
+limit88 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 133;
+if (true) break;
+
+case 133:
+//C
+this.state = 63;
+if ((step88 > 0 && _e <= limit88) || (step88 < 0 && _e >= limit88)) this.state = 62;
+if (true) break;
+
+case 134:
+//C
+this.state = 133;
+_e = ((int)(0 + _e + step88)) ;
+if (true) break;
+
+case 62:
+//C
+this.state = 134;
+ //BA.debugLineNum = 690;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 63:
+//C
+this.state = 64;
+;
+ //BA.debugLineNum = 692;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 693;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
+parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco);
+ //BA.debugLineNum = 694;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 695;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 696;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 697;BA.debugLine="Printer1.WriteString(ptot& CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 698;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 699;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 700;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 701;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ if (true) break;
+
+case 64:
+//C
+this.state = 65;
+;
+ if (true) break;
+
+case 65:
+//C
+this.state = 130;
+;
+ if (true) break;
+if (true) break;
+
+case 66:
+//C
+this.state = 67;
+;
+ if (true) break;
+
+case 67:
+//C
+this.state = 68;
+;
+ if (true) break;
+
+case 68:
+//C
+this.state = 69;
+;
+ //BA.debugLineNum = 707;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 708;BA.debugLine="s.Close";
+parent._s.Close();
+ //BA.debugLineNum = 709;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 710;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
+parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID"))));
+ //BA.debugLineNum = 712;BA.debugLine="If S.RowCount>0 Then";
+if (true) break;
+
+case 69:
+//if
+this.state = 96;
+if (parent._s.getRowCount()>0) {
+this.state = 71;
+}if (true) break;
+
+case 71:
+//C
+this.state = 72;
+ //BA.debugLineNum = 713;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----";
+parent._printer1._writestring /*String*/ ("-------PROMOS ENTREGA--------"+parent.__c.CRLF);
+ //BA.debugLineNum = 714;BA.debugLine="Printer1.WriteString(\"Cant. Precio I";
+parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF);
+ //BA.debugLineNum = 715;BA.debugLine="Printer1.WriteString(\"--------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 717;BA.debugLine="For i=0 To S.RowCount -1";
+if (true) break;
+
+case 72:
+//for
+this.state = 95;
+step114 = 1;
+limit114 = (int) (parent._s.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 135;
+if (true) break;
+
+case 135:
+//C
+this.state = 95;
+if ((step114 > 0 && _i <= limit114) || (step114 < 0 && _i >= limit114)) this.state = 74;
+if (true) break;
+
+case 136:
+//C
+this.state = 135;
+_i = ((int)(0 + _i + step114)) ;
+if (true) break;
+
+case 74:
+//C
+this.state = 75;
+ //BA.debugLineNum = 718;BA.debugLine="S.Position=i";
+parent._s.setPosition(_i);
+ //BA.debugLineNum = 719;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R";
+if (true) break;
+
+case 75:
+//if
+this.state = 94;
+if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) {
+this.state = 77;
+}if (true) break;
+
+case 77:
+//C
+this.state = 78;
+ //BA.debugLineNum = 722;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
+if (true) break;
+
+case 78:
+//if
+this.state = 93;
+if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) {
+this.state = 80;
+}else {
+this.state = 92;
+}if (true) break;
+
+case 80:
+//C
+this.state = 81;
+ //BA.debugLineNum = 724;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 725;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString(";
+if (true) break;
+
+case 81:
+//if
+this.state = 90;
+if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._s.GetString("HVD_PROID"))) {
+this.state = 83;
+}else {
+this.state = 85;
+}if (true) break;
+
+case 83:
+//C
+this.state = 90;
+ //BA.debugLineNum = 726;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P";
+parent._printer1._writestring /*String*/ ("* "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ if (true) break;
+
+case 85:
+//C
+this.state = 86;
+ //BA.debugLineNum = 728;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
+parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 730;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR";
+_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 731;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 734;BA.debugLine="Private ptot As String = NumberFormat2((puni";
+_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 735;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 738;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 739;BA.debugLine="Log(ESPACIO)";
+parent.__c.LogImpl("58913084",BA.NumberToString(parent._espacio),0);
+ //BA.debugLineNum = 740;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 86:
+//for
+this.state = 89;
+step129 = 1;
+limit129 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 137;
+if (true) break;
+
+case 137:
+//C
+this.state = 89;
+if ((step129 > 0 && _e <= limit129) || (step129 < 0 && _e >= limit129)) this.state = 88;
+if (true) break;
+
+case 138:
+//C
+this.state = 137;
+_e = ((int)(0 + _e + step129)) ;
+if (true) break;
+
+case 88:
+//C
+this.state = 138;
+ //BA.debugLineNum = 741;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 89:
+//C
+this.state = 90;
+;
+ //BA.debugLineNum = 743;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 744;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
+parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco);
+ //BA.debugLineNum = 745;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 746;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 747;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 748;BA.debugLine="Printer1.WriteString(ptot & CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 749;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 750;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 751;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 752;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ if (true) break;
+
+case 90:
+//C
+this.state = 93;
+;
+ if (true) break;
+
+case 92:
+//C
+this.state = 93;
+ if (true) break;
+
+case 93:
+//C
+this.state = 94;
+;
+ if (true) break;
+
+case 94:
+//C
+this.state = 136;
+;
+ if (true) break;
+if (true) break;
+
+case 95:
+//C
+this.state = 96;
+;
+ if (true) break;
+
+case 96:
+//C
+this.state = 97;
+;
+ //BA.debugLineNum = 764;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 765;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P";
+parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID"))));
+ //BA.debugLineNum = 767;BA.debugLine="If S.RowCount>0 Then";
+if (true) break;
+
+case 97:
+//if
+this.state = 108;
+if (parent._s.getRowCount()>0) {
+this.state = 99;
+}if (true) break;
+
+case 99:
+//C
+this.state = 100;
+ //BA.debugLineNum = 768;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------";
+parent._printer1._writestring /*String*/ ("-----------VENTA------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 769;BA.debugLine="Printer1.WriteString(\"Cant. Precio I";
+parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF);
+ //BA.debugLineNum = 770;BA.debugLine="Printer1.WriteString(\"--------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 772;BA.debugLine="For i=0 To S.RowCount -1";
+if (true) break;
+
+case 100:
+//for
+this.state = 107;
+step154 = 1;
+limit154 = (int) (parent._s.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 139;
+if (true) break;
+
+case 139:
+//C
+this.state = 107;
+if ((step154 > 0 && _i <= limit154) || (step154 < 0 && _i >= limit154)) this.state = 102;
+if (true) break;
+
+case 140:
+//C
+this.state = 139;
+_i = ((int)(0 + _i + step154)) ;
+if (true) break;
+
+case 102:
+//C
+this.state = 103;
+ //BA.debugLineNum = 773;BA.debugLine="S.Position=i";
+parent._s.setPosition(_i);
+ //BA.debugLineNum = 775;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 776;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\"";
+parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 779;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN";
+_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 780;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 782;BA.debugLine="Private ptot As String = NumberFormat2((punit*s";
+_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 783;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 786;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 787;BA.debugLine="Log(ESPACIO)";
+parent.__c.LogImpl("58913132",BA.NumberToString(parent._espacio),0);
+ //BA.debugLineNum = 788;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 103:
+//for
+this.state = 106;
+step164 = 1;
+limit164 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 141;
+if (true) break;
+
+case 141:
+//C
+this.state = 106;
+if ((step164 > 0 && _e <= limit164) || (step164 < 0 && _e >= limit164)) this.state = 105;
+if (true) break;
+
+case 142:
+//C
+this.state = 141;
+_e = ((int)(0 + _e + step164)) ;
+if (true) break;
+
+case 105:
+//C
+this.state = 142;
+ //BA.debugLineNum = 789;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 106:
+//C
+this.state = 140;
+;
+ //BA.debugLineNum = 791;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 792;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &";
+parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+parent._blanco);
+ //BA.debugLineNum = 793;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 794;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 795;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 796;BA.debugLine="Printer1.WriteString(ptot & CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 797;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 798;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 799;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 800;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ if (true) break;
+if (true) break;
+
+case 107:
+//C
+this.state = 108;
+;
+ if (true) break;
+
+case 108:
+//C
+this.state = 109;
+;
+ //BA.debugLineNum = 804;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 805;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 808;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & L_CA";
+parent._printer1._writestring /*String*/ ("Total Articulos: "+parent._l_cant.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 809;BA.debugLine="Printer1.WriteString(\"Total: $\" & l_total.Text)";
+parent._printer1._writestring /*String*/ ("Total: $"+parent._l_total.getText());
+ //BA.debugLineNum = 812;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 813;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 816;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
+parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+parent.__c.CRLF);
+ //BA.debugLineNum = 817;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
+parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF);
+ //BA.debugLineNum = 818;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
+parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+parent.__c.CRLF);
+ //BA.debugLineNum = 819;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 820;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 821;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 822;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 823;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 143;
+return;
+case 143:
+//C
+this.state = 109;
+;
+ //BA.debugLineNum = 824;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 826;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 828;BA.debugLine="If banderaimp = 1 Then";
+if (true) break;
+
+case 109:
+//if
+this.state = 124;
+if (parent._banderaimp==1) {
+this.state = 111;
+}else if(parent._banderaimp==0) {
+this.state = 119;
+}if (true) break;
+
+case 111:
+//C
+this.state = 112;
+ //BA.debugLineNum = 829;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
+ //BA.debugLineNum = 830;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 144;
+return;
+case 144:
+//C
+this.state = 112;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 831;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 112:
+//if
+this.state = 117;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 114;
+}else {
+this.state = 116;
+}if (true) break;
+
+case 114:
+//C
+this.state = 117;
+ //BA.debugLineNum = 832;BA.debugLine="B_IMP_Click";
+parent._b_imp_click();
+ if (true) break;
+
+case 116:
+//C
+this.state = 117;
+ //BA.debugLineNum = 834;BA.debugLine="Guardado";
+parent._guardado();
+ if (true) break;
+
+case 117:
+//C
+this.state = 124;
+;
+ if (true) break;
+
+case 119:
+//C
+this.state = 120;
+ //BA.debugLineNum = 840;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
+ //BA.debugLineNum = 841;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 145;
+return;
+case 145:
+//C
+this.state = 120;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 842;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 120:
+//if
+this.state = 123;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 122;
+}if (true) break;
+
+case 122:
+//C
+this.state = 123;
+ //BA.debugLineNum = 843;BA.debugLine="B_IMP_Click";
+parent._b_imp_click();
+ if (true) break;
+
+case 123:
+//C
+this.state = 124;
+;
+ if (true) break;
+
+case 124:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 848;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _b_imp2_click() throws Exception{
+ResumableSub_B_IMP2_Click rsub = new ResumableSub_B_IMP2_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_B_IMP2_Click extends BA.ResumableSub {
+public ResumableSub_B_IMP2_Click(reparto_izca.keymon.lat.c_cliente parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_cliente parent;
+int _cont = 0;
+int _i = 0;
+String _punit = "";
+String _ptot = "";
+int _e = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
+int _resultado = 0;
+int step53;
+int limit53;
+int step65;
+int limit65;
+int step88;
+int limit88;
+int step114;
+int limit114;
+int step131;
+int limit131;
+int step156;
+int limit156;
+int step166;
+int limit166;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 1482;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 1483;BA.debugLine="c.Position=0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 1484;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+parent._usuario = parent._c.GetString("USUARIO");
+ //BA.debugLineNum = 1486;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 1487;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
+parent.__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 1488;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 1489;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 1490;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 1496;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
+parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
+ //BA.debugLineNum = 1497;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 1498;BA.debugLine="If Not(Printer1.IsConnected) Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 38;
+if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 3;
+}else {
+this.state = 21;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 1500;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 1501;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 1502;BA.debugLine="Do While Not(impresoraConectada)";
+if (true) break;
+
+case 4:
+//do while
+this.state = 19;
+while (parent.__c.Not(parent._impresoraconectada)) {
+this.state = 6;
+if (true) break;
+}
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 1503;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 125;
+return;
+case 125:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 1505;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 1506;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
+if (true) break;
+
+case 7:
+//if
+this.state = 12;
+if (_cont==2) {
+this.state = 9;
+;}if (true) break;
+
+case 9:
+//C
+this.state = 12;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 12:
+//C
+this.state = 13;
+;
+ //BA.debugLineNum = 1507;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 13:
+//if
+this.state = 18;
+if (_cont>3) {
+this.state = 15;
+;}if (true) break;
+
+case 15:
+//C
+this.state = 18;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 18:
+//C
+this.state = 4;
+;
+ if (true) break;
+
+case 19:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 1509;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 126;
+return;
+case 126:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 1510;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 1513;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 1514;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 1515;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
+if (true) break;
+
+case 22:
+//do while
+this.state = 37;
+while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 24;
+if (true) break;
+}
+if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 1516;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 127;
+return;
+case 127:
+//C
+this.state = 25;
+;
+ //BA.debugLineNum = 1518;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 1519;BA.debugLine="If cont = 2 Then Printer1.Connect";
+if (true) break;
+
+case 25:
+//if
+this.state = 30;
+if (_cont==2) {
+this.state = 27;
+;}if (true) break;
+
+case 27:
+//C
+this.state = 30;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 30:
+//C
+this.state = 31;
+;
+ //BA.debugLineNum = 1520;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 31:
+//if
+this.state = 36;
+if (_cont>3) {
+this.state = 33;
+;}if (true) break;
+
+case 33:
+//C
+this.state = 36;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 36:
+//C
+this.state = 22;
+;
+ if (true) break;
+
+case 37:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 1522;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 128;
+return;
+case 128:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 1523;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 38:
+//C
+this.state = 39;
+;
+ //BA.debugLineNum = 1526;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 1527;BA.debugLine="ESPACIO = 28";
+parent._espacio = (int) (28);
+ //BA.debugLineNum = 1528;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 1545;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL";
+parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF);
+ //BA.debugLineNum = 1547;BA.debugLine="Printer1.WriteString(sDate & CRLF)";
+parent._printer1._writestring /*String*/ (parent._sdate+parent.__c.CRLF);
+ //BA.debugLineNum = 1548;BA.debugLine="Printer1.WriteString(sTime & CRLF)";
+parent._printer1._writestring /*String*/ (parent._stime+parent.__c.CRLF);
+ //BA.debugLineNum = 1549;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL";
+parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+parent.__c.CRLF);
+ //BA.debugLineNum = 1550;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
+parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 1551;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta.";
+parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 1552;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
+parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 1553;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
+parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 1557;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1558;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 1559;BA.debugLine="If c.RowCount > 0 Then";
+if (true) break;
+
+case 39:
+//if
+this.state = 68;
+if (parent._c.getRowCount()>0) {
+this.state = 41;
+}if (true) break;
+
+case 41:
+//C
+this.state = 42;
+ //BA.debugLineNum = 1560;BA.debugLine="Printer1.WriteString(\"------------ENTREGA-------";
+parent._printer1._writestring /*String*/ ("------------ENTREGA-----------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1563;BA.debugLine="Printer1.WriteString(\"Cant. Precio I";
+parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF);
+ //BA.debugLineNum = 1565;BA.debugLine="Printer1.WriteString(\"--------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1567;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
+parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PROID"))));
+ //BA.debugLineNum = 1568;BA.debugLine="If S.RowCount>0 Then";
+if (true) break;
+
+case 42:
+//if
+this.state = 67;
+if (parent._s.getRowCount()>0) {
+this.state = 44;
+}if (true) break;
+
+case 44:
+//C
+this.state = 45;
+ //BA.debugLineNum = 1569;BA.debugLine="For i=0 To S.RowCount -1";
+if (true) break;
+
+case 45:
+//for
+this.state = 66;
+step53 = 1;
+limit53 = (int) (parent._s.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 129;
+if (true) break;
+
+case 129:
+//C
+this.state = 66;
+if ((step53 > 0 && _i <= limit53) || (step53 < 0 && _i >= limit53)) this.state = 47;
+if (true) break;
+
+case 130:
+//C
+this.state = 129;
+_i = ((int)(0 + _i + step53)) ;
+if (true) break;
+
+case 47:
+//C
+this.state = 48;
+ //BA.debugLineNum = 1570;BA.debugLine="S.Position=i";
+parent._s.setPosition(_i);
+ //BA.debugLineNum = 1571;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))";
+parent.__c.LogImpl("510027220",parent._s.GetString("HVD_RECHAZO"),0);
+ //BA.debugLineNum = 1572;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_";
+if (true) break;
+
+case 48:
+//if
+this.state = 65;
+if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) {
+this.state = 50;
+}if (true) break;
+
+case 50:
+//C
+this.state = 51;
+ //BA.debugLineNum = 1575;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm";
+if (true) break;
+
+case 51:
+//if
+this.state = 64;
+if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) {
+this.state = 53;
+}else if((parent._s.GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) {
+this.state = 59;
+}if (true) break;
+
+case 53:
+//C
+this.state = 54;
+ //BA.debugLineNum = 1577;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1578;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
+parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 1581;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST";
+_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1582;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 1585;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
+_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1586;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 1588;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 1590;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 54:
+//for
+this.state = 57;
+step65 = 1;
+limit65 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 131;
+if (true) break;
+
+case 131:
+//C
+this.state = 57;
+if ((step65 > 0 && _e <= limit65) || (step65 < 0 && _e >= limit65)) this.state = 56;
+if (true) break;
+
+case 132:
+//C
+this.state = 131;
+_e = ((int)(0 + _e + step65)) ;
+if (true) break;
+
+case 56:
+//C
+this.state = 132;
+ //BA.debugLineNum = 1591;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 57:
+//C
+this.state = 64;
+;
+ //BA.debugLineNum = 1593;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1594;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
+parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco);
+ //BA.debugLineNum = 1595;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 1596;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 1597;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 1598;BA.debugLine="Printer1.WriteString( ptot & CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 1599;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 1600;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 1601;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ if (true) break;
+
+case 59:
+//C
+this.state = 60;
+ //BA.debugLineNum = 1605;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1606;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
+parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 1608;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue";
+_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 1609;BA.debugLine="vc5.Position = 0";
+_vc5.setPosition((int) (0));
+ //BA.debugLineNum = 1610;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get";
+_punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1611;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 1612;BA.debugLine="vc5.Close";
+_vc5.Close();
+ //BA.debugLineNum = 1614;BA.debugLine="Private ptot As String = NumberFormat2(( (s.";
+_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1615;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 1617;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 1619;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 60:
+//for
+this.state = 63;
+step88 = 1;
+limit88 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 133;
+if (true) break;
+
+case 133:
+//C
+this.state = 63;
+if ((step88 > 0 && _e <= limit88) || (step88 < 0 && _e >= limit88)) this.state = 62;
+if (true) break;
+
+case 134:
+//C
+this.state = 133;
+_e = ((int)(0 + _e + step88)) ;
+if (true) break;
+
+case 62:
+//C
+this.state = 134;
+ //BA.debugLineNum = 1620;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 63:
+//C
+this.state = 64;
+;
+ //BA.debugLineNum = 1622;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1623;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
+parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco);
+ //BA.debugLineNum = 1624;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 1625;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 1626;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 1627;BA.debugLine="Printer1.WriteString(ptot& CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 1628;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 1629;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 1630;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 1631;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ if (true) break;
+
+case 64:
+//C
+this.state = 65;
+;
+ if (true) break;
+
+case 65:
+//C
+this.state = 130;
+;
+ if (true) break;
+if (true) break;
+
+case 66:
+//C
+this.state = 67;
+;
+ if (true) break;
+
+case 67:
+//C
+this.state = 68;
+;
+ if (true) break;
+
+case 68:
+//C
+this.state = 69;
+;
+ //BA.debugLineNum = 1637;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1638;BA.debugLine="s.Close";
+parent._s.Close();
+ //BA.debugLineNum = 1639;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1640;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,";
+parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID"))));
+ //BA.debugLineNum = 1642;BA.debugLine="If S.RowCount>0 Then";
+if (true) break;
+
+case 69:
+//if
+this.state = 96;
+if (parent._s.getRowCount()>0) {
+this.state = 71;
+}if (true) break;
+
+case 71:
+//C
+this.state = 72;
+ //BA.debugLineNum = 1643;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----";
+parent._printer1._writestring /*String*/ ("-------PROMOS ENTREGA--------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1644;BA.debugLine="Printer1.WriteString(\"Cant. Precio I";
+parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF);
+ //BA.debugLineNum = 1645;BA.debugLine="Printer1.WriteString(\"--------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1647;BA.debugLine="For i=0 To S.RowCount -1";
+if (true) break;
+
+case 72:
+//for
+this.state = 95;
+step114 = 1;
+limit114 = (int) (parent._s.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 135;
+if (true) break;
+
+case 135:
+//C
+this.state = 95;
+if ((step114 > 0 && _i <= limit114) || (step114 < 0 && _i >= limit114)) this.state = 74;
+if (true) break;
+
+case 136:
+//C
+this.state = 135;
+_i = ((int)(0 + _i + step114)) ;
+if (true) break;
+
+case 74:
+//C
+this.state = 75;
+ //BA.debugLineNum = 1648;BA.debugLine="S.Position=i";
+parent._s.setPosition(_i);
+ //BA.debugLineNum = 1649;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R";
+if (true) break;
+
+case 75:
+//if
+this.state = 94;
+if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) {
+this.state = 77;
+}if (true) break;
+
+case 77:
+//C
+this.state = 78;
+ //BA.debugLineNum = 1652;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
+if (true) break;
+
+case 78:
+//if
+this.state = 93;
+if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) {
+this.state = 80;
+}else {
+this.state = 92;
+}if (true) break;
+
+case 80:
+//C
+this.state = 81;
+ //BA.debugLineNum = 1654;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1655;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString(";
+if (true) break;
+
+case 81:
+//if
+this.state = 90;
+if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._s.GetString("HVD_PROID"))) {
+this.state = 83;
+}else {
+this.state = 85;
+}if (true) break;
+
+case 83:
+//C
+this.state = 90;
+ //BA.debugLineNum = 1656;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P";
+parent._printer1._writestring /*String*/ ("* "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 1657;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1658;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ if (true) break;
+
+case 85:
+//C
+this.state = 86;
+ //BA.debugLineNum = 1660;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM";
+parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 1662;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR";
+_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1663;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 1666;BA.debugLine="Private ptot As String = NumberFormat2((puni";
+_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1667;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 1670;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 1671;BA.debugLine="Log(ESPACIO)";
+parent.__c.LogImpl("510027320",BA.NumberToString(parent._espacio),0);
+ //BA.debugLineNum = 1672;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 86:
+//for
+this.state = 89;
+step131 = 1;
+limit131 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 137;
+if (true) break;
+
+case 137:
+//C
+this.state = 89;
+if ((step131 > 0 && _e <= limit131) || (step131 < 0 && _e >= limit131)) this.state = 88;
+if (true) break;
+
+case 138:
+//C
+this.state = 137;
+_e = ((int)(0 + _e + step131)) ;
+if (true) break;
+
+case 88:
+//C
+this.state = 138;
+ //BA.debugLineNum = 1673;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 89:
+//C
+this.state = 90;
+;
+ //BA.debugLineNum = 1675;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1676;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT";
+parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco);
+ //BA.debugLineNum = 1677;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 1678;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 1679;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 1680;BA.debugLine="Printer1.WriteString(ptot & CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 1681;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 1682;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 1683;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 1684;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ if (true) break;
+
+case 90:
+//C
+this.state = 93;
+;
+ if (true) break;
+
+case 92:
+//C
+this.state = 93;
+ if (true) break;
+
+case 93:
+//C
+this.state = 94;
+;
+ if (true) break;
+
+case 94:
+//C
+this.state = 136;
+;
+ if (true) break;
+if (true) break;
+
+case 95:
+//C
+this.state = 96;
+;
+ if (true) break;
+
+case 96:
+//C
+this.state = 97;
+;
+ //BA.debugLineNum = 1696;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1697;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P";
+parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID"))));
+ //BA.debugLineNum = 1699;BA.debugLine="If S.RowCount>0 Then";
+if (true) break;
+
+case 97:
+//if
+this.state = 108;
+if (parent._s.getRowCount()>0) {
+this.state = 99;
+}if (true) break;
+
+case 99:
+//C
+this.state = 100;
+ //BA.debugLineNum = 1700;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------";
+parent._printer1._writestring /*String*/ ("-----------VENTA------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1701;BA.debugLine="Printer1.WriteString(\"Cant. Precio I";
+parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF);
+ //BA.debugLineNum = 1702;BA.debugLine="Printer1.WriteString(\"--------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1704;BA.debugLine="For i=0 To S.RowCount -1";
+if (true) break;
+
+case 100:
+//for
+this.state = 107;
+step156 = 1;
+limit156 = (int) (parent._s.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 139;
+if (true) break;
+
+case 139:
+//C
+this.state = 107;
+if ((step156 > 0 && _i <= limit156) || (step156 < 0 && _i >= limit156)) this.state = 102;
+if (true) break;
+
+case 140:
+//C
+this.state = 139;
+_i = ((int)(0 + _i + step156)) ;
+if (true) break;
+
+case 102:
+//C
+this.state = 103;
+ //BA.debugLineNum = 1705;BA.debugLine="S.Position=i";
+parent._s.setPosition(_i);
+ //BA.debugLineNum = 1707;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1708;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\"";
+parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 1711;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN";
+_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1712;BA.debugLine="TAMANO = punit.Length + TAMANO";
+parent._tamano = (int) (_punit.length()+parent._tamano);
+ //BA.debugLineNum = 1714;BA.debugLine="Private ptot As String = NumberFormat2((punit*s";
+_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False);
+ //BA.debugLineNum = 1715;BA.debugLine="TAMANO = ptot.Length + TAMANO";
+parent._tamano = (int) (_ptot.length()+parent._tamano);
+ //BA.debugLineNum = 1718;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2";
+parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2);
+ //BA.debugLineNum = 1719;BA.debugLine="Log(ESPACIO)";
+parent.__c.LogImpl("510027368",BA.NumberToString(parent._espacio),0);
+ //BA.debugLineNum = 1720;BA.debugLine="For E=0 To ESPACIO -1";
+if (true) break;
+
+case 103:
+//for
+this.state = 106;
+step166 = 1;
+limit166 = (int) (parent._espacio-1);
+_e = (int) (0) ;
+this.state = 141;
+if (true) break;
+
+case 141:
+//C
+this.state = 106;
+if ((step166 > 0 && _e <= limit166) || (step166 < 0 && _e >= limit166)) this.state = 105;
+if (true) break;
+
+case 142:
+//C
+this.state = 141;
+_e = ((int)(0 + _e + step166)) ;
+if (true) break;
+
+case 105:
+//C
+this.state = 142;
+ //BA.debugLineNum = 1721;BA.debugLine="BLANCO = \" \" & BLANCO";
+parent._blanco = " "+parent._blanco;
+ if (true) break;
+if (true) break;
+
+case 106:
+//C
+this.state = 140;
+;
+ //BA.debugLineNum = 1723;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 1724;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &";
+parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+parent._blanco);
+ //BA.debugLineNum = 1725;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 1726;BA.debugLine="Printer1.WriteString( punit & BLANCO)";
+parent._printer1._writestring /*String*/ (_punit+parent._blanco);
+ //BA.debugLineNum = 1727;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 1728;BA.debugLine="Printer1.WriteString(ptot & CRLF )";
+parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF);
+ //BA.debugLineNum = 1729;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 1730;BA.debugLine="ESPACIO = 29";
+parent._espacio = (int) (29);
+ //BA.debugLineNum = 1731;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 1732;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ if (true) break;
+if (true) break;
+
+case 107:
+//C
+this.state = 108;
+;
+ if (true) break;
+
+case 108:
+//C
+this.state = 109;
+;
+ //BA.debugLineNum = 1736;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1737;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1740;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & L_CA";
+parent._printer1._writestring /*String*/ ("Total Articulos: "+parent._l_cant.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 1741;BA.debugLine="Printer1.WriteString(\"Total: $\" & l_total.Text)";
+parent._printer1._writestring /*String*/ ("Total: $"+parent._l_total.getText());
+ //BA.debugLineNum = 1744;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1745;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1748;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
+parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+parent.__c.CRLF);
+ //BA.debugLineNum = 1749;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
+parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF);
+ //BA.debugLineNum = 1750;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
+parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1751;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 1752;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1753;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1754;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 1755;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 143;
+return;
+case 143:
+//C
+this.state = 109;
+;
+ //BA.debugLineNum = 1756;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 1758;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 1760;BA.debugLine="If banderaimp = 1 Then";
+if (true) break;
+
+case 109:
+//if
+this.state = 124;
+if (parent._banderaimp==1) {
+this.state = 111;
+}else if(parent._banderaimp==0) {
+this.state = 119;
+}if (true) break;
+
+case 111:
+//C
+this.state = 112;
+ //BA.debugLineNum = 1761;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
+ //BA.debugLineNum = 1762;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 144;
+return;
+case 144:
+//C
+this.state = 112;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 1763;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 112:
+//if
+this.state = 117;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 114;
+}else {
+this.state = 116;
+}if (true) break;
+
+case 114:
+//C
+this.state = 117;
+ //BA.debugLineNum = 1764;BA.debugLine="B_IMP_Click";
+parent._b_imp_click();
+ if (true) break;
+
+case 116:
+//C
+this.state = 117;
+ if (true) break;
+
+case 117:
+//C
+this.state = 124;
+;
+ if (true) break;
+
+case 119:
+//C
+this.state = 120;
+ //BA.debugLineNum = 1772;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
+ //BA.debugLineNum = 1773;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 145;
+return;
+case 145:
+//C
+this.state = 120;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 1774;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 120:
+//if
+this.state = 123;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 122;
+}if (true) break;
+
+case 122:
+//C
+this.state = 123;
+ //BA.debugLineNum = 1775;BA.debugLine="B_IMP_Click";
+parent._b_imp_click();
+ if (true) break;
+
+case 123:
+//C
+this.state = 124;
+;
+ if (true) break;
+
+case 124:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 1780;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b_noentrega_click() throws Exception{
+ //BA.debugLineNum = 485;BA.debugLine="Sub b_noEntrega_Click";
+ //BA.debugLineNum = 487;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT gestion FROM k";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 488;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 489;BA.debugLine="If c.GetInt(\"gestion\") = 2 Then";
+if (_c.GetInt("gestion")==2) {
+ //BA.debugLineNum = 490;BA.debugLine="MsgboxAsync(\"El cliente ya fue entregado y no se";
+__c.MsgboxAsync(BA.ObjectToCharSequence("El cliente ya fue entregado y no se puede realizar modificación"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 494;BA.debugLine="B4XPages.ShowPage(\"noVenta\")";
+_b4xpages._showpage /*String*/ (ba,"noVenta");
+ };
+ //BA.debugLineNum = 496;BA.debugLine="End Sub";
+return "";
+}
+public String _b_paso2_click() throws Exception{
+ //BA.debugLineNum = 926;BA.debugLine="Sub B_PASO2_Click";
+ //BA.debugLineNum = 927;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 928;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 929;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 930;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa")));
+ //BA.debugLineNum = 931;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 932;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+_cuenta = _c.GetString("CUENTA");
+ //BA.debugLineNum = 933;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 934;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 935;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 936;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 937;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)");
+ //BA.debugLineNum = 938;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON) VALUES(?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+_stime),(Object)(_usuario),(Object)("PASO"),(Object)("PASO ESPERA"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
+ //BA.debugLineNum = 944;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ //BA.debugLineNum = 946;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+anywheresoftware.b4a.objects.collections.Map _cym = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
+String _cuenta0 = "";
+String _arti = "";
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc2 = null;
+String _cuenta1 = "";
+String _arti1 = "";
+float _preu = 0f;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc3 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc4 = null;
+String _cuenta2 = "";
+String _arti2 = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null;
+String _cuenta3 = "";
+String _arti3 = "";
+String _cabonos = "";
+ //BA.debugLineNum = 144;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 145;BA.debugLine="banderaimp = 0";
+_banderaimp = (int) (0);
+ //BA.debugLineNum = 146;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth());
+ //BA.debugLineNum = 147;BA.debugLine="Starter.skmt.Initialize(Starter.ruta,\"kmt.db\", Tr";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_starter._ruta /*String*/ ,"kmt.db",__c.True);
+ //BA.debugLineNum = 148;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 149;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,CA";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_BCREDITO from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
+ //BA.debugLineNum = 150;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot";
+_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
+ //BA.debugLineNum = 151;BA.debugLine="s.Position=0";
+_s.setPosition((int) (0));
+ //BA.debugLineNum = 152;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 153;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
+_la_cuenta.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")));
+ //BA.debugLineNum = 154;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
+_la_nombre.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE")));
+ //BA.debugLineNum = 155;BA.debugLine="NOMBRE = c.GetString(\"CAT_CL_NOMBRE\")";
+_nombre = _c.GetString("CAT_CL_NOMBRE");
+ //BA.debugLineNum = 156;BA.debugLine="LONGITUD = c.GetString(\"CAT_CL_LONG\")";
+_longitud = _c.GetString("CAT_CL_LONG");
+ //BA.debugLineNum = 157;BA.debugLine="LATITUD = c.GetString(\"CAT_CL_LAT\")";
+_latitud = _c.GetString("CAT_CL_LAT");
+ //BA.debugLineNum = 158;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G";
+_la_calle.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE")+_c.GetString("CAT_CL_NOEXT")));
+ //BA.debugLineNum = 159;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
+_la_col.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_COLONIA")));
+ //BA.debugLineNum = 160;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
+_la_edo.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EDO")));
+ //BA.debugLineNum = 161;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")";
+_la_cp.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CP")));
+ //BA.debugLineNum = 162;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
+_l_entre1.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE1")));
+ //BA.debugLineNum = 163;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
+_l_entre2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE2")));
+ //BA.debugLineNum = 164;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G";
+if (_c.GetString("CAT_CL_ATIENDE1")!= null && (_c.GetString("CAT_CL_ATIENDE1")).equals("null") == false) {
+ //BA.debugLineNum = 165;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
+_l_atiende.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENDE1")));
+ }else {
+ //BA.debugLineNum = 167;BA.debugLine="l_atiende.Text = \" \"";
+_l_atiende.setText(BA.ObjectToCharSequence(" "));
+ };
+ //BA.debugLineNum = 169;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G";
+if (_c.GetString("CAT_CL_ATIENTE2")!= null && (_c.GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) {
+ //BA.debugLineNum = 170;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
+_l_atiende2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENTE2")));
+ }else {
+ //BA.debugLineNum = 172;BA.debugLine="l_atiende2.Text = \" \"";
+_l_atiende2.setText(BA.ObjectToCharSequence(" "));
+ };
+ //BA.debugLineNum = 174;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")";
+_la_saldotot.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_TELEFONO")));
+ //BA.debugLineNum = 175;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")";
+_la_saldooper.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EMAIL")));
+ //BA.debugLineNum = 177;BA.debugLine="CREDITO = C.GetString(\"CAT_CL_BCREDITO\")";
+_credito = _c.GetString("CAT_CL_BCREDITO");
+ //BA.debugLineNum = 180;BA.debugLine="Private cym As Map = Subs.traeCantYMonto2(Subs.tr";
+_cym = new anywheresoftware.b4a.objects.collections.Map();
+_cym = _subs._traecantymonto2 /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_subs._traecliente /*String*/ (ba));
+ //BA.debugLineNum = 181;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")";
+_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad"))));
+ //BA.debugLineNum = 182;BA.debugLine="l_total.Text = Round2(cym.Get(\"monto\"), 2)";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2))));
+ //BA.debugLineNum = 190;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE HIST_VENTAS set";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE HIST_VENTAS set ESPROMO = 1 where HVD_CODPROMO = HVD_PROID AND HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
+ //BA.debugLineNum = 191;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s";
+_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE in (select cuenta from cuentaa)"))));
+ //BA.debugLineNum = 193;BA.debugLine="Private cuenta0 As String = 0";
+_cuenta0 = BA.NumberToString(0);
+ //BA.debugLineNum = 194;BA.debugLine="Private arti As String = 0";
+_arti = BA.NumberToString(0);
+ //BA.debugLineNum = 195;BA.debugLine="If vc.RowCount > 0 Then";
+if (_vc.getRowCount()>0) {
+ //BA.debugLineNum = 196;BA.debugLine="For i = 0 To vc.RowCount - 1";
+{
+final int step41 = 1;
+final int limit41 = (int) (_vc.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit41 ;_i = _i + step41 ) {
+ //BA.debugLineNum = 197;BA.debugLine="vc.Position = i";
+_vc.setPosition(_i);
+ //BA.debugLineNum = 200;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CANT\")";
+_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT"))))));
+ //BA.debugLineNum = 205;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge";
+_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT")))));
+ }
+};
+ };
+ //BA.debugLineNum = 211;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s";
+_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1")));
+ //BA.debugLineNum = 212;BA.debugLine="Private Cuenta1 As String = 0";
+_cuenta1 = BA.NumberToString(0);
+ //BA.debugLineNum = 213;BA.debugLine="Private arti1 As String = 0";
+_arti1 = BA.NumberToString(0);
+ //BA.debugLineNum = 214;BA.debugLine="If vc2.RowCount > 0 Then";
+if (_vc2.getRowCount()>0) {
+ //BA.debugLineNum = 215;BA.debugLine="For i = 0 To vc2.RowCount - 1";
+{
+final int step51 = 1;
+final int limit51 = (int) (_vc2.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit51 ;_i = _i + step51 ) {
+ //BA.debugLineNum = 216;BA.debugLine="vc2.Position = i";
+_vc2.setPosition(_i);
+ //BA.debugLineNum = 217;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString";
+_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 218;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery(";
+_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 219;BA.debugLine="If vc3.RowCount > 0 Then";
+if (_vc3.getRowCount()>0) {
+ //BA.debugLineNum = 220;BA.debugLine="vc3.Position = 0";
+_vc3.setPosition((int) (0));
+ //BA.debugLineNum = 221;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC\")-(";
+_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu));
+ //BA.debugLineNum = 222;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v";
+_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))));
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 228;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\"";
+_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_PRONOMBRE,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'"))));
+ //BA.debugLineNum = 229;BA.debugLine="Private Cuenta2 As String = 0";
+_cuenta2 = BA.NumberToString(0);
+ //BA.debugLineNum = 230;BA.debugLine="Private arti2 As String = 0";
+_arti2 = BA.NumberToString(0);
+ //BA.debugLineNum = 231;BA.debugLine="If vc4.RowCount > 0 Then";
+if (_vc4.getRowCount()>0) {
+ //BA.debugLineNum = 233;BA.debugLine="For i = 0 To vc4.RowCount - 1";
+{
+final int step66 = 1;
+final int limit66 = (int) (_vc4.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit66 ;_i = _i + step66 ) {
+ //BA.debugLineNum = 234;BA.debugLine="vc4.Position = i";
+_vc4.setPosition(_i);
+ //BA.debugLineNum = 235;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString(";
+if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) {
+ //BA.debugLineNum = 236;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
+if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 237;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT"))));
+ //BA.debugLineNum = 238;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT"))));
+ }else {
+ //BA.debugLineNum = 240;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer";
+_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 241;BA.debugLine="If vc5.RowCount > 0 Then";
+if (_vc5.getRowCount()>0) {
+ //BA.debugLineNum = 242;BA.debugLine="vc5.Position= 0";
+_vc5.setPosition((int) (0));
+ //BA.debugLineNum = 244;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc4.GetString("HVD_CANT"))))));
+ //BA.debugLineNum = 245;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT")))));
+ };
+ };
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 253;BA.debugLine="Subs.centraPanel(p_credito, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_credito,_root.getWidth());
+ //BA.debugLineNum = 254;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S";
+_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
+ //BA.debugLineNum = 255;BA.debugLine="Private Cuenta3 As String = 0";
+_cuenta3 = BA.NumberToString(0);
+ //BA.debugLineNum = 256;BA.debugLine="Private arti3 As String = 0";
+_arti3 = BA.NumberToString(0);
+ //BA.debugLineNum = 257;BA.debugLine="If c4.RowCount > 0 Then";
+if (_c4.getRowCount()>0) {
+ //BA.debugLineNum = 258;BA.debugLine="For i = 0 To c4.RowCount -1";
+{
+final int step88 = 1;
+final int limit88 = (int) (_c4.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit88 ;_i = _i + step88 ) {
+ //BA.debugLineNum = 259;BA.debugLine="c4.Position = i";
+_c4.setPosition(_i);
+ //BA.debugLineNum = 260;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
+_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
+ //BA.debugLineNum = 261;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\"";
+_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT"))));
+ }
+};
+ };
+ //BA.debugLineNum = 264;BA.debugLine="Log(cuenta0)";
+__c.LogImpl("58061048",_cuenta0,0);
+ //BA.debugLineNum = 265;BA.debugLine="Log(Cuenta1)";
+__c.LogImpl("58061049",_cuenta1,0);
+ //BA.debugLineNum = 266;BA.debugLine="Log(Cuenta2)";
+__c.LogImpl("58061050",_cuenta2,0);
+ //BA.debugLineNum = 267;BA.debugLine="Log(Cuenta3)";
+__c.LogImpl("58061051",_cuenta3,0);
+ //BA.debugLineNum = 269;BA.debugLine="l_total.Text = NumberFormat2((cuenta0 + Cuenta1 +";
+_l_total.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.True)));
+ //BA.debugLineNum = 270;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2";
+_l_cant.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))),(int) (0),(int) (0),(int) (0),__c.True)));
+ //BA.debugLineNum = 275;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"})));
+ //BA.debugLineNum = 276;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 277;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 278;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO";
+_starter._mac_impresora /*String*/ = _c.GetString("CAT_VA_VALOR");
+ };
+ //BA.debugLineNum = 280;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
+if ((_starter._mac_impresora /*String*/ ).equals("")) {
+_starter._mac_impresora /*String*/ = "0";};
+ //BA.debugLineNum = 282;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
+_printer1._initialize /*String*/ (ba,this,"Printer1");
+ //BA.debugLineNum = 284;BA.debugLine="If Printer1.IsConnected = False Then";
+if (_printer1._isconnected /*boolean*/ ()==__c.False) {
+ }else {
+ //BA.debugLineNum = 288;BA.debugLine="Printer1.DisConnect";
+_printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 289;BA.debugLine="Printer1.Connect";
+_printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 290;BA.debugLine="Log(\"2\")";
+__c.LogImpl("58061074","2",0);
+ };
+ //BA.debugLineNum = 320;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 321;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 322;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")";
+_almacen = _c.GetString("ID_ALMACEN");
+ //BA.debugLineNum = 323;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 326;BA.debugLine="If almacen = \"3\" Or almacen = 3 Or almacen = \"5\"";
+if ((_almacen).equals("3") || (_almacen).equals(BA.NumberToString(3)) || (_almacen).equals("5") || (_almacen).equals(BA.NumberToString(5))) {
+ //BA.debugLineNum = 327;BA.debugLine="Tar.Visible = False";
+_tar.setVisible(__c.False);
+ //BA.debugLineNum = 328;BA.debugLine="Log(\"SI AQUI\")";
+__c.LogImpl("58061112","SI AQUI",0);
+ //BA.debugLineNum = 329;BA.debugLine="b = Starter.skmt.ExecQuery(\"select COUNT(*) AS C";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)")));
+ //BA.debugLineNum = 330;BA.debugLine="b.Position = 0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 331;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")";
+_cabonos = _b.GetString("CLIENTE");
+ //BA.debugLineNum = 332;BA.debugLine="If cabonos = 0 Then";
+if ((_cabonos).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 333;BA.debugLine="b_cxc.Visible = False";
+_b_cxc.setVisible(__c.False);
+ }else {
+ //BA.debugLineNum = 335;BA.debugLine="b_cxc.Visible = False";
+_b_cxc.setVisible(__c.False);
+ };
+ };
+ //BA.debugLineNum = 339;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_cliente parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_cliente parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 501;BA.debugLine="If p_credito.Visible Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent._p_credito.getVisible()) {
+this.state = 3;
+}else {
+this.state = 5;
+}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+ //BA.debugLineNum = 502;BA.debugLine="et_montoacredito.Text = \"\"";
+parent._et_montoacredito.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 503;BA.debugLine="p_credito.Visible = False";
+parent._p_credito.setVisible(parent.__c.False);
+ //BA.debugLineNum = 504;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ if (true) break;
+
+case 5:
+//C
+this.state = 6;
+ //BA.debugLineNum = 506;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
+parent._b4xpages._showpage /*String*/ (ba,"Clientes");
+ //BA.debugLineNum = 507;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ if (true) break;
+
+case 6:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 510;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 105;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 106;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 108;BA.debugLine="g.Initialize(\"GPS\")";
+_g.Initialize("GPS");
+ //BA.debugLineNum = 110;BA.debugLine="Root.LoadLayout(\"cliente\")";
+_root.LoadLayout("cliente",ba);
+ //BA.debugLineNum = 111;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO, C";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, CAT_CL_RUTA, CAT_CL_NOMBRE, CAT_CL_ATIENDE1, CAT_CL_ATIENTE2, CAT_CL_TELEFONO, CAT_CL_EMAIL, CAT_CL_CALLE, CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)")));
+ //BA.debugLineNum = 112;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot";
+_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
+ //BA.debugLineNum = 113;BA.debugLine="s.Position=0";
+_s.setPosition((int) (0));
+ //BA.debugLineNum = 114;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 115;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
+_la_cuenta.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")));
+ //BA.debugLineNum = 116;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
+_la_nombre.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE")));
+ //BA.debugLineNum = 117;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G";
+_la_calle.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE")+_c.GetString("CAT_CL_NOEXT")));
+ //BA.debugLineNum = 118;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
+_la_col.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_COLONIA")));
+ //BA.debugLineNum = 119;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
+_la_edo.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EDO")));
+ //BA.debugLineNum = 120;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")";
+_la_cp.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CP")));
+ //BA.debugLineNum = 121;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
+_l_entre1.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE1")));
+ //BA.debugLineNum = 122;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
+_l_entre2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE2")));
+ //BA.debugLineNum = 123;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G";
+if (_c.GetString("CAT_CL_ATIENDE1")!= null && (_c.GetString("CAT_CL_ATIENDE1")).equals("null") == false) {
+ //BA.debugLineNum = 124;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
+_l_atiende.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENDE1")));
+ }else {
+ //BA.debugLineNum = 126;BA.debugLine="l_atiende.Text = \" \"";
+_l_atiende.setText(BA.ObjectToCharSequence(" "));
+ };
+ //BA.debugLineNum = 128;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G";
+if (_c.GetString("CAT_CL_ATIENTE2")!= null && (_c.GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) {
+ //BA.debugLineNum = 129;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
+_l_atiende2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENTE2")));
+ //BA.debugLineNum = 130;BA.debugLine="Log(\"|\"&c.GetString(\"CAT_CL_ATIENTE2\")&\"|\")";
+__c.LogImpl("57995417","|"+_c.GetString("CAT_CL_ATIENTE2")+"|",0);
+ }else {
+ //BA.debugLineNum = 132;BA.debugLine="l_atiende2.Text = \" \"";
+_l_atiende2.setText(BA.ObjectToCharSequence(" "));
+ };
+ //BA.debugLineNum = 134;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")";
+_la_saldotot.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_TELEFONO")));
+ //BA.debugLineNum = 135;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")";
+_la_saldooper.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EMAIL")));
+ //BA.debugLineNum = 137;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
+_btadmin.Initialize(ba,"BlueTeeth");
+ //BA.debugLineNum = 138;BA.debugLine="cmp20.Initialize(\"Printer\")";
+_cmp20.Initialize("Printer");
+ //BA.debugLineNum = 139;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 140;BA.debugLine="End Sub";
+return "";
+}
+public String _cb_tipopago_selectedindexchanged(int _index) throws Exception{
+ //BA.debugLineNum = 1355;BA.debugLine="Private Sub cb_tipopago_SelectedIndexChanged (Inde";
+ //BA.debugLineNum = 1356;BA.debugLine="itemselect = cb_tipopago.SelectedItem";
+_itemselect = _cb_tipopago._getselecteditem /*String*/ ();
+ //BA.debugLineNum = 1357;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS";
+_g = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String";
+_clie_id = "";
+ //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 8;BA.debugLine="Dim cuenta As String";
+_cuenta = "";
+ //BA.debugLineNum = 9;BA.debugLine="Dim btAdmin As BluetoothAdmin";
+_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
+ //BA.debugLineNum = 10;BA.debugLine="Dim cmp20 As Serial";
+_cmp20 = new anywheresoftware.b4a.objects.Serial();
+ //BA.debugLineNum = 11;BA.debugLine="Dim printer As TextWriter";
+_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim PairedDevices As Map";
+_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 13;BA.debugLine="Dim L As List";
+_l = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 14;BA.debugLine="Dim TAMANO As Int";
+_tamano = 0;
+ //BA.debugLineNum = 15;BA.debugLine="Dim ESPACIO As Int";
+_espacio = 0;
+ //BA.debugLineNum = 16;BA.debugLine="Dim BLANCO As String";
+_blanco = "";
+ //BA.debugLineNum = 17;BA.debugLine="Dim impresoraConectada As Boolean = False";
+_impresoraconectada = __c.False;
+ //BA.debugLineNum = 18;BA.debugLine="Dim LONGITUD As String";
+_longitud = "";
+ //BA.debugLineNum = 19;BA.debugLine="Dim LATITUD As String";
+_latitud = "";
+ //BA.debugLineNum = 20;BA.debugLine="Dim NOMBRE As String";
+_nombre = "";
+ //BA.debugLineNum = 21;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Dim s As Cursor";
+_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 23;BA.debugLine="Dim ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="Dim la_cuenta As Label";
+_la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Dim La_nombre As Label";
+_la_nombre = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 26;BA.debugLine="Dim la_Calle As Label";
+_la_calle = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Dim la_numero As Label";
+_la_numero = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 28;BA.debugLine="Dim la_nint As Label";
+_la_nint = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Dim la_edo As Label";
+_la_edo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="Dim la_pob As Label";
+_la_pob = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Dim la_col As Label";
+_la_col = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 32;BA.debugLine="Dim la_cp As Label";
+_la_cp = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 33;BA.debugLine="Dim la_zona As Label";
+_la_zona = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 34;BA.debugLine="Dim gest As Button";
+_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 35;BA.debugLine="Dim la_saldotot As Label";
+_la_saldotot = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 36;BA.debugLine="Dim la_saldooper As Label";
+_la_saldooper = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 37;BA.debugLine="Dim reqManager As DBRequestManager";
+_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
+ //BA.debugLineNum = 38;BA.debugLine="Dim b_noEntrega As Button";
+_b_noentrega = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Dim Label10 As Label";
+_label10 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 40;BA.debugLine="Dim Label11 As Label";
+_label11 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 41;BA.debugLine="Dim d As Cursor";
+_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 42;BA.debugLine="Dim ime As IME";
+_ime = new anywheresoftware.b4a.objects.IME();
+ //BA.debugLineNum = 43;BA.debugLine="Dim Tar As Button";
+_tar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Private L_QR As Label";
+_l_qr = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 45;BA.debugLine="Private BT_QR As Button";
+_bt_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 46;BA.debugLine="Dim Printer1 As EscPosPrinter";
+_printer1 = new reparto_izca.keymon.lat.escposprinter();
+ //BA.debugLineNum = 47;BA.debugLine="Dim la_comm As Label";
+_la_comm = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 48;BA.debugLine="Dim la_actdte As Label";
+_la_actdte = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 49;BA.debugLine="Dim la_usuario As Label";
+_la_usuario = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 50;BA.debugLine="Dim la_resultado As Label";
+_la_resultado = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 51;BA.debugLine="Dim l_entre1 As Label";
+_l_entre1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 52;BA.debugLine="Dim l_entre2 As Label";
+_l_entre2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 53;BA.debugLine="Dim l_atiende As Label";
+_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 54;BA.debugLine="Dim l_atiende2 As Label";
+_l_atiende2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 55;BA.debugLine="Dim DATOS As Button";
+_datos = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 56;BA.debugLine="Dim Guardar As Button";
+_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 57;BA.debugLine="Dim NUEVO As Button";
+_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 58;BA.debugLine="Private l_total As Label";
+_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 59;BA.debugLine="Private HIST As Button";
+_hist = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 60;BA.debugLine="Dim PASA_IMP As String";
+_pasa_imp = "";
+ //BA.debugLineNum = 61;BA.debugLine="Private B_IMP As Button";
+_b_imp = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 62;BA.debugLine="Dim total_cliente As String";
+_total_cliente = "";
+ //BA.debugLineNum = 63;BA.debugLine="Dim CREDITO As String";
+_credito = "";
+ //BA.debugLineNum = 64;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 65;BA.debugLine="Private B_PASO2 As Button";
+_b_paso2 = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 66;BA.debugLine="Private L_CANT As Label";
+_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 67;BA.debugLine="Dim errorImpresora As Int = 0";
+_errorimpresora = (int) (0);
+ //BA.debugLineNum = 68;BA.debugLine="Dim banderaimp As Int";
+_banderaimp = 0;
+ //BA.debugLineNum = 69;BA.debugLine="Private l_credi As Label";
+_l_credi = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 70;BA.debugLine="Private l_pagare As Label";
+_l_pagare = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 71;BA.debugLine="Private l_montopag As Label";
+_l_montopag = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 72;BA.debugLine="Private l_efectivo As Label";
+_l_efectivo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 73;BA.debugLine="Private l_montoefec As Label";
+_l_montoefec = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 74;BA.debugLine="Private p_credito As Panel";
+_p_credito = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 75;BA.debugLine="Private b_acred As Button";
+_b_acred = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 76;BA.debugLine="Private b_cancred As Button";
+_b_cancred = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 77;BA.debugLine="Private et_montoacredito As EditText";
+_et_montoacredito = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 78;BA.debugLine="Private Label16 As Label";
+_label16 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 79;BA.debugLine="Private l_limite As Label";
+_l_limite = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 80;BA.debugLine="Dim almacen As String";
+_almacen = "";
+ //BA.debugLineNum = 81;BA.debugLine="Dim fechaprev As String";
+_fechaprev = "";
+ //BA.debugLineNum = 82;BA.debugLine="Dim rutaprev As String";
+_rutaprev = "";
+ //BA.debugLineNum = 83;BA.debugLine="Dim rutarep As String";
+_rutarep = "";
+ //BA.debugLineNum = 84;BA.debugLine="Dim montopagare As String";
+_montopagare = "";
+ //BA.debugLineNum = 85;BA.debugLine="Private p_abono As Panel";
+_p_abono = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 86;BA.debugLine="Private clv_abonos As CustomListView";
+_clv_abonos = new b4a.example3.customlistview();
+ //BA.debugLineNum = 87;BA.debugLine="Private et_abono As EditText";
+_et_abono = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 88;BA.debugLine="Private b_cancelar As Button";
+_b_cancelar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 89;BA.debugLine="Private b_abono As Button";
+_b_abono = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 90;BA.debugLine="Private l_montoabonostotal As Label";
+_l_montoabonostotal = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 91;BA.debugLine="Dim h, j,b, f As Cursor";
+_h = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_j = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 92;BA.debugLine="Private l_folio As Label";
+_l_folio = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 93;BA.debugLine="Private l_saldo As Label";
+_l_saldo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 94;BA.debugLine="Private b_cxc As Button";
+_b_cxc = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 95;BA.debugLine="Private cb_tipopago As B4XComboBox";
+_cb_tipopago = new reparto_izca.keymon.lat.b4xcombobox();
+ //BA.debugLineNum = 96;BA.debugLine="Dim itemselect As String";
+_itemselect = "";
+ //BA.debugLineNum = 97;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _mostrar,String _mostrar1) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+ //BA.debugLineNum = 1200;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As";
+ //BA.debugLineNum = 1201;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 1202;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 10)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10));
+ //BA.debugLineNum = 1203;BA.debugLine="p.LoadLayout(\"folioabono\")";
+_p.LoadLayout("folioabono",ba);
+ //BA.debugLineNum = 1204;BA.debugLine="p.Height= 32dip";
+_p.setHeight(__c.DipToCurrent((int) (32)));
+ //BA.debugLineNum = 1205;BA.debugLine="p.Width = 80dip";
+_p.setWidth(__c.DipToCurrent((int) (80)));
+ //BA.debugLineNum = 1207;BA.debugLine="l_folio.Text = mostrar";
+_l_folio.setText(BA.ObjectToCharSequence(_mostrar));
+ //BA.debugLineNum = 1208;BA.debugLine="l_saldo.Text = mostrar1";
+_l_saldo.setText(BA.ObjectToCharSequence(_mostrar1));
+ //BA.debugLineNum = 1211;BA.debugLine="Return p";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
+ //BA.debugLineNum = 1212;BA.debugLine="End Sub";
+return null;
+}
+public String _datos_click() throws Exception{
+ //BA.debugLineNum = 517;BA.debugLine="Sub DATOS_Click";
+ //BA.debugLineNum = 519;BA.debugLine="End Sub";
+return "";
+}
+public String _gest_click() throws Exception{
+ //BA.debugLineNum = 360;BA.debugLine="Sub gest_Click";
+ //BA.debugLineNum = 361;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT gestion FROM k";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 362;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 363;BA.debugLine="If c.GetInt(\"gestion\") = 2 Then";
+if (_c.GetInt("gestion")==2) {
+ //BA.debugLineNum = 364;BA.debugLine="MsgboxAsync(\"El cliente ya fue entregado y no se";
+__c.MsgboxAsync(BA.ObjectToCharSequence("El cliente ya fue entregado y no se puede realizar modificación"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 429;BA.debugLine="B_IMP_Click";
+_b_imp_click();
+ //BA.debugLineNum = 430;BA.debugLine="banderaimp = 1";
+_banderaimp = (int) (1);
+ };
+ //BA.debugLineNum = 434;BA.debugLine="End Sub";
+return "";
+}
+public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+ //BA.debugLineNum = 345;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 348;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 349;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 350;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 351;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 352;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
+ //BA.debugLineNum = 353;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_GPS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_sdate+_stime),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )}));
+ //BA.debugLineNum = 354;BA.debugLine="End Sub";
+return "";
+}
+public String _guardado() throws Exception{
+String _ruta = "";
+String _rutapre = "";
+String _rutaactualizar = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null;
+ //BA.debugLineNum = 436;BA.debugLine="Sub Guardado";
+ //BA.debugLineNum = 437;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 438;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
+__c.DateTime.setTimeFormat("HHmmss");
+ //BA.debugLineNum = 439;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 440;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 441;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa")));
+ //BA.debugLineNum = 442;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 443;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+_cuenta = _c.GetString("CUENTA");
+ //BA.debugLineNum = 444;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 445;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 446;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 447;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 448;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
+ //BA.debugLineNum = 449;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 450;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")";
+_ruta = _d.GetString("RUTAA");
+ //BA.debugLineNum = 451;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 452;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA FR";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 453;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 454;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUTA\"";
+_rutapre = _d.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 455;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 459;BA.debugLine="Dim fechaprev As String = Subs.traefECHAPREV";
+_fechaprev = _subs._traefechaprev /*String*/ (ba);
+ //BA.debugLineNum = 462;BA.debugLine="Dim rutaactualizar As String";
+_rutaactualizar = "";
+ //BA.debugLineNum = 463;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELEC";
+_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 464;BA.debugLine="If rut.RowCount > 0 Then";
+if (_rut.getRowCount()>0) {
+ //BA.debugLineNum = 465;BA.debugLine="rut.Position = 0";
+_rut.setPosition((int) (0));
+ //BA.debugLineNum = 466;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")";
+_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
+ };
+ //BA.debugLineNum = 469;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA W";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) AND NV_RUTA ='"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' "));
+ //BA.debugLineNum = 470;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA (";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_RUTA) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+" "+_stime),(Object)(_usuario),(Object)("ENTREGA"),(Object)("ENTREGA COMPLETA"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar)}));
+ //BA.debugLineNum = 471;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO_G";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_la_cuenta.getText(),_usuario,_sdate+" "+_stime,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,_fechaprev,"ENTREGADO"}));
+ //BA.debugLineNum = 472;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 2, HORAENT = '"+__c.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' "));
+ //BA.debugLineNum = 473;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_ESTATUS = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
+ //BA.debugLineNum = 474;BA.debugLine="mandaPendientesreparto";
+_mandapendientesreparto();
+ //BA.debugLineNum = 481;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ //BA.debugLineNum = 483;BA.debugLine="End Sub";
+return "";
+}
+public String _guardar_click() throws Exception{
+ //BA.debugLineNum = 521;BA.debugLine="Sub Guardar_Click";
+ //BA.debugLineNum = 526;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ //BA.debugLineNum = 528;BA.debugLine="End Sub";
+return "";
+}
+public String _hist_click() throws Exception{
+ //BA.debugLineNum = 534;BA.debugLine="Sub HIST_Click";
+ //BA.debugLineNum = 536;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT gestion FROM k";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 537;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 538;BA.debugLine="If c.GetInt(\"gestion\") = 2 Then";
+if (_c.GetInt("gestion")==2) {
+ //BA.debugLineNum = 539;BA.debugLine="MsgboxAsync(\"El cliente ya fue entregado y no se";
+__c.MsgboxAsync(BA.ObjectToCharSequence("El cliente ya fue entregado y no se puede realizar modificación"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 545;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initiali";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
+ //BA.debugLineNum = 547;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")";
+_b4xpages._showpage /*String*/ (ba,"DetalleVenta");
+ };
+ //BA.debugLineNum = 549;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 100;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 101;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 102;BA.debugLine="End Sub";
+return null;
+}
+public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+reparto_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null;
+String _cliente = "";
+Object[] _records = null;
+String _k = "";
+ //BA.debugLineNum = 969;BA.debugLine="Sub JobDone(Job As HttpJob)";
+ //BA.debugLineNum = 970;BA.debugLine="Log(Job.Success)";
+__c.LogImpl("59371649",BA.ObjectToString(_job._success /*boolean*/ ),0);
+ //BA.debugLineNum = 971;BA.debugLine="If Job.Success = False Then";
+if (_job._success /*boolean*/ ==__c.False) {
+ }else {
+ //BA.debugLineNum = 974;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
+__c.LogImpl("59371653","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
+ //BA.debugLineNum = 975;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 976;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
+_resultado = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 977;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART";
+if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_REPARTOPendientes_head_")>-1) {
+ //BA.debugLineNum = 978;BA.debugLine="Private cliente As String= resultado.Tag";
+_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
+ //BA.debugLineNum = 979;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
+_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
+ //BA.debugLineNum = 980;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
+__c.LogImpl("59371659",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
+ //BA.debugLineNum = 981;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"1",_cliente,"1"}));
+ //BA.debugLineNum = 982;BA.debugLine="For Each records() As Object In resultado.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group12 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen12 = group12.getSize()
+;int index12 = 0;
+;
+for (; index12 < groupLen12;index12++){
+_records = (Object[])(group12.Get(index12));
+ //BA.debugLineNum = 983;BA.debugLine="For Each k As String In resultado.Columns.Key";
+{
+final anywheresoftware.b4a.BA.IterableList group13 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
+final int groupLen13 = group13.getSize()
+;int index13 = 0;
+;
+for (; index13 < groupLen13;index13++){
+_k = BA.ObjectToString(group13.Get(index13));
+ //BA.debugLineNum = 984;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
+__c.LogImpl("59371663",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
+ }
+};
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 989;BA.debugLine="Job.Release";
+_job._release /*String*/ ();
+ };
+ //BA.debugLineNum = 992;BA.debugLine="End Sub";
+return "";
+}
+public String _listview1_itemlongclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 356;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
+ //BA.debugLineNum = 358;BA.debugLine="End Sub";
+return "";
+}
+public String _mandapendientesreparto() throws Exception{
+ //BA.debugLineNum = 949;BA.debugLine="Sub mandaPendientesreparto";
+ //BA.debugLineNum = 965;BA.debugLine="End Sub";
+return "";
+}
+public String _nuevo_click() throws Exception{
+ //BA.debugLineNum = 530;BA.debugLine="Sub NUEVO_Click";
+ //BA.debugLineNum = 531;BA.debugLine="StartActivity(MAPA_CLIENTE)";
+__c.StartActivity(ba,(Object)(_mapa_cliente.getObject()));
+ //BA.debugLineNum = 532;BA.debugLine="End Sub";
+return "";
+}
+public String _p_abono_click() throws Exception{
+ //BA.debugLineNum = 1196;BA.debugLine="Private Sub p_abono_Click";
+ //BA.debugLineNum = 1198;BA.debugLine="End Sub";
+return "";
+}
+public String _p_credito_click() throws Exception{
+ //BA.debugLineNum = 1044;BA.debugLine="Private Sub p_credito_Click";
+ //BA.debugLineNum = 1046;BA.debugLine="End Sub";
+return "";
+}
+public String _printer_connected(boolean _success) throws Exception{
+ //BA.debugLineNum = 875;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
+ //BA.debugLineNum = 876;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 878;BA.debugLine="PASA_IMP = \"1\"";
+_pasa_imp = "1";
+ }else {
+ //BA.debugLineNum = 881;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel";
+if (__c.Msgbox2(BA.ObjectToCharSequence(""),BA.ObjectToCharSequence("Printer Error"),"Reprint","Cancel","",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) {
+ //BA.debugLineNum = 882;BA.debugLine="StartPrinter";
+_startprinter();
+ };
+ };
+ //BA.debugLineNum = 885;BA.debugLine="End Sub";
+return "";
+}
+public String _printer1_connected(boolean _success) throws Exception{
+ //BA.debugLineNum = 850;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
+ //BA.debugLineNum = 852;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 853;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
+ //BA.debugLineNum = 854;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP")}));
+ //BA.debugLineNum = 855;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP"),(Object)(_starter._mac_impresora /*String*/ )}));
+ //BA.debugLineNum = 858;BA.debugLine="impresoraConectada = True";
+_impresoraconectada = __c.True;
+ }else {
+ //BA.debugLineNum = 862;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
+__c.LogImpl("58978444","Error conectando la impresora",__c.Colors.Red);
+ //BA.debugLineNum = 863;BA.debugLine="errorImpresora = errorImpresora + 1";
+_errorimpresora = (int) (_errorimpresora+1);
+ //BA.debugLineNum = 864;BA.debugLine="If errorImpresora > 1 Then";
+if (_errorimpresora>1) {
+ //BA.debugLineNum = 865;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
+_starter._mac_impresora /*String*/ = "0";
+ //BA.debugLineNum = 866;BA.debugLine="errorImpresora = 0";
+_errorimpresora = (int) (0);
+ };
+ };
+ //BA.debugLineNum = 869;BA.debugLine="End Sub";
+return "";
+}
+public String _printer1_error() throws Exception{
+ //BA.debugLineNum = 871;BA.debugLine="Sub Printer1_Error";
+ //BA.debugLineNum = 872;BA.debugLine="Log(\"error printer\")";
+__c.LogImpl("59043969","error printer",0);
+ //BA.debugLineNum = 873;BA.debugLine="End Sub";
+return "";
+}
+public String _startprinter() throws Exception{
+anywheresoftware.b4a.objects.collections.List _l1 = null;
+int _resimp = 0;
+int _i = 0;
+ //BA.debugLineNum = 887;BA.debugLine="Sub StartPrinter";
+ //BA.debugLineNum = 888;BA.debugLine="Dim PairedDevices As Map";
+_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 889;BA.debugLine="Dim L1 As List";
+_l1 = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 890;BA.debugLine="Dim resimp As Int";
+_resimp = 0;
+ //BA.debugLineNum = 891;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
+ //BA.debugLineNum = 892;BA.debugLine="PairedDevices.Initialize";
+_paireddevices.Initialize();
+ //BA.debugLineNum = 893;BA.debugLine="Try";
+try { //BA.debugLineNum = 894;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
+_paireddevices = _cmp20.GetPairedDevices();
+ }
+ catch (Exception e9) {
+ ba.setLastException(e9); //BA.debugLineNum = 896;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
+__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
+ //BA.debugLineNum = 897;BA.debugLine="printer.Close";
+_printer.Close();
+ //BA.debugLineNum = 898;BA.debugLine="cmp20.Disconnect";
+_cmp20.Disconnect();
+ };
+ //BA.debugLineNum = 901;BA.debugLine="If PairedDevices.Size = 0 Then";
+if (_paireddevices.getSize()==0) {
+ //BA.debugLineNum = 902;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
+__c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba);
+ //BA.debugLineNum = 903;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 906;BA.debugLine="If PairedDevices.Size = 1 Then";
+if (_paireddevices.getSize()==1) {
+ //BA.debugLineNum = 907;BA.debugLine="Try";
+try { //BA.debugLineNum = 908;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
+_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0)))));
+ }
+ catch (Exception e21) {
+ ba.setLastException(e21); //BA.debugLineNum = 910;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
+__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
+ //BA.debugLineNum = 911;BA.debugLine="printer.Close";
+_printer.Close();
+ //BA.debugLineNum = 912;BA.debugLine="cmp20.Disconnect";
+_cmp20.Disconnect();
+ };
+ }else {
+ //BA.debugLineNum = 915;BA.debugLine="L1.Initialize";
+_l1.Initialize();
+ //BA.debugLineNum = 916;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
+{
+final int step27 = 1;
+final int limit27 = (int) (_paireddevices.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit27 ;_i = _i + step27 ) {
+ //BA.debugLineNum = 917;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
+_l1.Add(_paireddevices.GetKeyAt(_i));
+ }
+};
+ //BA.debugLineNum = 919;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
+_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
+ //BA.debugLineNum = 920;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
+if (_resimp!=__c.DialogResponse.CANCEL) {
+ //BA.debugLineNum = 921;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
+_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp))));
+ };
+ };
+ //BA.debugLineNum = 924;BA.debugLine="End Sub";
+return "";
+}
+public String _tar_click() throws Exception{
+ //BA.debugLineNum = 512;BA.debugLine="Sub Tar_Click";
+ //BA.debugLineNum = 514;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
+_b4xpages._showpage /*String*/ (ba,"Productos");
+ //BA.debugLineNum = 515;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
+ return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
+if (BA.fastSubCompare(sub, "JOBDONE"))
+ return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_clientes.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_clientes.java
new file mode 100644
index 0000000..9571712
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_clientes.java
@@ -0,0 +1,2528 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_clientes extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_clientes");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_clientes.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public String _q_buscar = "";
+public String _entro = "";
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _lfila = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _busca = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_colonia = null;
+public String _laruta = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_getdirs = null;
+public reparto_izca.keymon.lat.b4xorderedmap _distorderedmap = null;
+public reparto_izca.keymon.lat.b4xorderedmap _clientesmapao = null;
+public anywheresoftware.b4a.objects.ImageViewWrapper _img_getdirs = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_rutainfo = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_getrutainfo = null;
+public boolean _conmapa = false;
+public anywheresoftware.b4a.objects.collections.List _listawaypoints = null;
+public String _lv1top = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_limpiarruta = null;
+public boolean _rutagenerada = false;
+public String _rutaacambiar = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public boolean _activity_keypress(int _key) throws Exception{
+ //BA.debugLineNum = 219;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean 'ign";
+ //BA.debugLineNum = 221;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then";
+if (_key==__c.KeyCodes.KEYCODE_BACK) {
+ //BA.debugLineNum = 222;BA.debugLine="If entro = 3 And Not(conMapa) Then";
+if ((_entro).equals(BA.NumberToString(3)) && __c.Not(_conmapa)) {
+ //BA.debugLineNum = 223;BA.debugLine="b_GetDirs.Visible = False";
+_b_getdirs.setVisible(__c.False);
+ //BA.debugLineNum = 225;BA.debugLine="B4XPage_Created(Root)";
+_b4xpage_created(_root);
+ //BA.debugLineNum = 226;BA.debugLine="Return True";
+if (true) return __c.True;
+ };
+ //BA.debugLineNum = 228;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ //BA.debugLineNum = 229;BA.debugLine="Return False";
+if (true) return __c.False;
+ };
+ //BA.debugLineNum = 233;BA.debugLine="End Sub";
+return false;
+}
+public void _b_getdirs_click() throws Exception{
+ResumableSub_b_GetDirs_Click rsub = new ResumableSub_b_GetDirs_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_b_GetDirs_Click extends BA.ResumableSub {
+public ResumableSub_b_GetDirs_Click(reparto_izca.keymon.lat.c_clientes parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_clientes parent;
+anywheresoftware.b4a.objects.collections.Map _m2 = null;
+int _f = 0;
+Object _k = null;
+String _distancia2 = "";
+String _thisloc1 = "";
+String _locactual = "";
+anywheresoftware.b4a.objects.collections.List _r = null;
+int _tid = 0;
+anywheresoftware.b4a.objects.collections.Map _tmap = null;
+String _tempndd = "";
+int _indexd = 0;
+anywheresoftware.b4a.objects.collections.Map _estecliente = null;
+anywheresoftware.b4a.objects.collections.Map _m3 = null;
+anywheresoftware.b4a.BA.IterableList group4;
+int index4;
+int groupLen4;
+anywheresoftware.b4a.BA.IterableList group38;
+int index38;
+int groupLen38;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 467;BA.debugLine="ProgressDialogShow(\"Calculando distancias y tiemp";
+parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Calculando distancias y tiempos ..."));
+ //BA.debugLineNum = 468;BA.debugLine="Private m2 As Map";
+_m2 = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 469;BA.debugLine="Private f As Int = 0";
+_f = (int) (0);
+ //BA.debugLineNum = 470;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'Trae";
+if (true) break;
+
+case 1:
+//for
+this.state = 30;
+group4 = parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ();
+index4 = 0;
+groupLen4 = group4.getSize();
+this.state = 31;
+if (true) break;
+
+case 31:
+//C
+this.state = 30;
+if (index4 < groupLen4) {
+this.state = 3;
+_k = group4.Get(index4);}
+if (true) break;
+
+case 32:
+//C
+this.state = 31;
+index4++;
+if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 471;BA.debugLine="m2 = distOrderedMap.Get(k)";
+_m2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ (_k)));
+ //BA.debugLineNum = 472;BA.debugLine="Private distancia2 As String = m2.Get(\"distancia";
+_distancia2 = BA.ObjectToString(_m2.Get((Object)("distancia")));
+ //BA.debugLineNum = 473;BA.debugLine="Private thisLoc1 As String = m2.Get(\"ubicacion\")";
+_thisloc1 = BA.ObjectToString(_m2.Get((Object)("ubicacion")));
+ //BA.debugLineNum = 474;BA.debugLine="Private locActual As String = Tracker.UUGCoords.";
+_locactual = BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude())+","+BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude());
+ //BA.debugLineNum = 475;BA.debugLine="If locActual = \"0,0\" Then 'Si no tenemos ubicaci";
+if (true) break;
+
+case 4:
+//if
+this.state = 11;
+if ((_locactual).equals("0,0")) {
+this.state = 6;
+}if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 476;BA.debugLine="c = Starter.skmt.ExecQuery(\"select * from hist_";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from hist_gps")));
+ //BA.debugLineNum = 477;BA.debugLine="If c.RowCount > 0 Then";
+if (true) break;
+
+case 7:
+//if
+this.state = 10;
+if (parent._c.getRowCount()>0) {
+this.state = 9;
+}if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 478;BA.debugLine="c.Position = 0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 479;BA.debugLine="locActual = c.GetString(\"hglon\") & \",\" & c.Get";
+_locactual = parent._c.GetString("hglon")+","+parent._c.GetString("hglat");
+ if (true) break;
+
+case 10:
+//C
+this.state = 11;
+;
+ //BA.debugLineNum = 481;BA.debugLine="c.Close";
+parent._c.Close();
+ if (true) break;
+
+case 11:
+//C
+this.state = 12;
+;
+ //BA.debugLineNum = 483;BA.debugLine="f = f+1";
+_f = (int) (_f+1);
+ //BA.debugLineNum = 484;BA.debugLine="If f < 8 Then";
+if (true) break;
+
+case 12:
+//if
+this.state = 29;
+if (_f<8) {
+this.state = 14;
+}if (true) break;
+
+case 14:
+//C
+this.state = 15;
+ //BA.debugLineNum = 485;BA.debugLine="If locActual = \"0,0\" Then 'Si todavia no tenemo";
+if (true) break;
+
+case 15:
+//if
+this.state = 18;
+if ((_locactual).equals("0,0")) {
+this.state = 17;
+}if (true) break;
+
+case 17:
+//C
+this.state = 18;
+ //BA.debugLineNum = 486;BA.debugLine="ToastMessageShow(\"No se pudo obtener la ubicac";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No se pudo obtener la ubicacion actual!!"),parent.__c.True);
+ //BA.debugLineNum = 487;BA.debugLine="f = 8";
+_f = (int) (8);
+ if (true) break;
+
+case 18:
+//C
+this.state = 19;
+;
+ //BA.debugLineNum = 489;BA.debugLine="Log($\"locActual: ${locActual}, thisLoc1: ${this";
+parent.__c.LogImpl("510813463",("locActual: "+parent.__c.SmartStringFormatter("",(Object)(_locactual))+", thisLoc1: "+parent.__c.SmartStringFormatter("",(Object)(_thisloc1))+""),0);
+ //BA.debugLineNum = 490;BA.debugLine="Wait For(distanciaEntreCoords(distancia2, locAc";
+parent.__c.WaitFor("complete", ba, this, parent._distanciaentrecoords(_distancia2,_locactual,_thisloc1));
+this.state = 33;
+return;
+case 33:
+//C
+this.state = 19;
+_r = (anywheresoftware.b4a.objects.collections.List) result[0];
+;
+ //BA.debugLineNum = 491;BA.debugLine="LogColor($\"R: ${r.Get(0)} - ${r.Get(1)} - ${r.G";
+parent.__c.LogImpl("510813465",("R: "+parent.__c.SmartStringFormatter("",_r.Get((int) (0)))+" - "+parent.__c.SmartStringFormatter("",_r.Get((int) (1)))+" - "+parent.__c.SmartStringFormatter("",_r.Get((int) (2)))+""),parent.__c.Colors.Green);
+ //BA.debugLineNum = 492;BA.debugLine="Private tId As Int = r.Get(0)";
+_tid = (int)(BA.ObjectToNumber(_r.Get((int) (0))));
+ //BA.debugLineNum = 493;BA.debugLine="Private tMap As Map = distOrderedMap.Get(tId)";
+_tmap = new anywheresoftware.b4a.objects.collections.Map();
+_tmap = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ ((Object)(_tid))));
+ //BA.debugLineNum = 494;BA.debugLine="LogColor(\"|\" & tId & \"| - \" &distOrderedMap.Get";
+parent.__c.LogImpl("510813468","|"+BA.NumberToString(_tid)+"| - "+BA.ObjectToString(parent._distorderedmap._get /*Object*/ ((Object)(_tid))),parent.__c.Colors.Blue);
+ //BA.debugLineNum = 495;BA.debugLine="Private tempNDD As String = tMap.Get(\"nomDirDis";
+_tempndd = BA.ObjectToString(_tmap.Get((Object)("nomDirDist")));
+ //BA.debugLineNum = 496;BA.debugLine="Private indexD As Int = tempNDD.IndexOf(\"Distan";
+_indexd = _tempndd.indexOf("Distancia:");
+ //BA.debugLineNum = 497;BA.debugLine="If indexD > -1 Then tempNDD = tempNDD.SubString";
+if (true) break;
+
+case 19:
+//if
+this.state = 24;
+if (_indexd>-1) {
+this.state = 21;
+;}if (true) break;
+
+case 21:
+//C
+this.state = 24;
+_tempndd = _tempndd.substring((int) (0),_indexd);
+if (true) break;
+
+case 24:
+//C
+this.state = 25;
+;
+ //BA.debugLineNum = 498;BA.debugLine="Log(tempNDD)";
+parent.__c.LogImpl("510813472",_tempndd,0);
+ //BA.debugLineNum = 499;BA.debugLine="tempNDD = tempNDD & $\"Dist: $1.1{(r.Get(1)/1000";
+_tempndd = _tempndd+("Dist: "+parent.__c.SmartStringFormatter("1.1",(Object)(((double)(BA.ObjectToNumber(_r.Get((int) (1))))/(double)1000)))+" kms, Tiempo aprox: "+parent.__c.SmartStringFormatter("1.0",(Object)((((double)(BA.ObjectToNumber(_r.Get((int) (2))))*2)/(double)60)))+" min.");
+ //BA.debugLineNum = 500;BA.debugLine="Private esteCliente As Map = CreateMap(\"distanc";
+_estecliente = new anywheresoftware.b4a.objects.collections.Map();
+_estecliente = parent.__c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia2),(Object)("ubicacion"),_tmap.Get((Object)("ubicacion")),(Object)("codigo"),_tmap.Get((Object)("codigo")),(Object)("nomDirDist"),(Object)(_tempndd)});
+ //BA.debugLineNum = 501;BA.debugLine="distOrderedMap.Put(tId, esteCliente)";
+parent._distorderedmap._put /*String*/ ((Object)(_tid),(Object)(_estecliente.getObject()));
+ //BA.debugLineNum = 502;BA.debugLine="ListView1.Clear";
+parent._listview1.Clear();
+ //BA.debugLineNum = 503;BA.debugLine="Private m3 As Map";
+_m3 = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 504;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'G";
+if (true) break;
+
+case 25:
+//for
+this.state = 28;
+group38 = parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ();
+index38 = 0;
+groupLen38 = group38.getSize();
+this.state = 34;
+if (true) break;
+
+case 34:
+//C
+this.state = 28;
+if (index38 < groupLen38) {
+this.state = 27;
+_k = group38.Get(index38);}
+if (true) break;
+
+case 35:
+//C
+this.state = 34;
+index38++;
+if (true) break;
+
+case 27:
+//C
+this.state = 35;
+ //BA.debugLineNum = 505;BA.debugLine="m3 = distOrderedMap.Get(k)";
+_m3 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ (_k)));
+ //BA.debugLineNum = 506;BA.debugLine="m3.Get(\"codigo\")";
+_m3.Get((Object)("codigo"));
+ //BA.debugLineNum = 507;BA.debugLine="ListView1.AddTwoLines(m3.Get(\"codigo\"), m3.Get";
+parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_m3.Get((Object)("codigo"))),BA.ObjectToCharSequence(_m3.Get((Object)("nomDirDist"))));
+ if (true) break;
+if (true) break;
+
+case 28:
+//C
+this.state = 29;
+;
+ if (true) break;
+
+case 29:
+//C
+this.state = 32;
+;
+ if (true) break;
+if (true) break;
+
+case 30:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 511;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 512;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _complete(anywheresoftware.b4a.objects.collections.List _r) throws Exception{
+}
+public String _b_getrutainfo_click() throws Exception{
+ //BA.debugLineNum = 570;BA.debugLine="Private Sub b_getRutaInfo_Click";
+ //BA.debugLineNum = 572;BA.debugLine="caculaRutaGPS(todosAVisitar)";
+_cacularutagps(_todosavisitar());
+ //BA.debugLineNum = 573;BA.debugLine="End Sub";
+return "";
+}
+public String _b_getrutainfo_longclick() throws Exception{
+ //BA.debugLineNum = 576;BA.debugLine="Private Sub b_getRutaInfo_LongClick";
+ //BA.debugLineNum = 577;BA.debugLine="If b_limpiarRuta.Visible Then";
+if (_b_limpiarruta.getVisible()) {
+ //BA.debugLineNum = 578;BA.debugLine="b_limpiarRuta.Visible = False";
+_b_limpiarruta.setVisible(__c.False);
+ }else {
+ //BA.debugLineNum = 580;BA.debugLine="b_limpiarRuta.Visible = True";
+_b_limpiarruta.setVisible(__c.True);
+ };
+ //BA.debugLineNum = 582;BA.debugLine="End Sub";
+return "";
+}
+public String _b_limpiarruta_click() throws Exception{
+ //BA.debugLineNum = 585;BA.debugLine="Private Sub b_limpiarRuta_Click";
+ //BA.debugLineNum = 586;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
+ //BA.debugLineNum = 587;BA.debugLine="b_limpiarRuta.Visible = False";
+_b_limpiarruta.setVisible(__c.False);
+ //BA.debugLineNum = 588;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 589;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+anywheresoftware.b4a.objects.CSBuilder _cs2 = null;
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null;
+String[] _y = null;
+ //BA.debugLineNum = 49;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 50;BA.debugLine="busca.Text = \"\"";
+_busca.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 51;BA.debugLine="b_GetDirs.Visible = False";
+_b_getdirs.setVisible(__c.False);
+ //BA.debugLineNum = 53;BA.debugLine="entro =\"2\"";
+_entro = "2";
+ //BA.debugLineNum = 57;BA.debugLine="p_colonia.Width = Root.Width";
+_p_colonia.setWidth(_root.getWidth());
+ //BA.debugLineNum = 58;BA.debugLine="p_colonia.Height = Root.Height";
+_p_colonia.setHeight(_root.getHeight());
+ //BA.debugLineNum = 59;BA.debugLine="p_colonia.Top = 0";
+_p_colonia.setTop((int) (0));
+ //BA.debugLineNum = 60;BA.debugLine="p_colonia.Left = 0";
+_p_colonia.setLeft((int) (0));
+ //BA.debugLineNum = 61;BA.debugLine="Subs.centraListView(ListView1, p_colonia.Width)";
+_subs._centralistview /*String*/ (ba,_listview1,_p_colonia.getWidth());
+ //BA.debugLineNum = 62;BA.debugLine="ListView1.Height = p_colonia.Height * 0.75";
+_listview1.setHeight((int) (_p_colonia.getHeight()*0.75));
+ //BA.debugLineNum = 63;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 64;BA.debugLine="If Not(l_rutaInfo.Visible) Then";
+if (__c.Not(_l_rutainfo.getVisible())) {
+ //BA.debugLineNum = 65;BA.debugLine="ListView1.Top = lv1Top";
+_listview1.setTop((int)(Double.parseDouble(_lv1top)));
+ }else {
+ //BA.debugLineNum = 67;BA.debugLine="ListView1.Top = lv1Top + 100";
+_listview1.setTop((int) ((double)(Double.parseDouble(_lv1top))+100));
+ };
+ //BA.debugLineNum = 69;BA.debugLine="c=Starter.skmt.ExecQuery(\"select codigo, indice,";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice")));
+ //BA.debugLineNum = 70;BA.debugLine="If c.RowCount > 0 Then 'Ya hay waypoints en la ba";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 71;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 73;BA.debugLine="conMapa = True";
+_conmapa = __c.True;
+ //BA.debugLineNum = 75;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 76;BA.debugLine="Dim cs, cs2 As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+_cs2 = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 77;BA.debugLine="entro = 3";
+_entro = BA.NumberToString(3);
+ //BA.debugLineNum = 79;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listView";
+{
+final int step23 = 1;
+final int limit23 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit23 ;_i = _i + step23 ) {
+ //BA.debugLineNum = 80;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 81;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 82;BA.debugLine="cs2.Initialize";
+_cs2.Initialize();
+ //BA.debugLineNum = 86;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100,1";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(_c.GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE"))).Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE").trim()+" "+_c.GetString("CAT_CL_NOEXT"))).PopAll().getObject()));
+ }
+};
+ }else {
+ //BA.debugLineNum = 89;BA.debugLine="generaListViewRutas";
+_generalistviewrutas();
+ };
+ //BA.debugLineNum = 91;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 92;BA.debugLine="p_colonia.Width = Root.Width";
+_p_colonia.setWidth(_root.getWidth());
+ //BA.debugLineNum = 93;BA.debugLine="p_colonia.Height = Root.Height";
+_p_colonia.setHeight(_root.getHeight());
+ //BA.debugLineNum = 94;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)";
+_subs._centraetiqueta /*String*/ (ba,_l_rutainfo,_root.getWidth());
+ //BA.debugLineNum = 95;BA.debugLine="Subs.centraListView(ListView1, p_colonia.Width)";
+_subs._centralistview /*String*/ (ba,_listview1,_p_colonia.getWidth());
+ //BA.debugLineNum = 96;BA.debugLine="ListView1.Height = p_colonia.Height * 0.70";
+_listview1.setHeight((int) (_p_colonia.getHeight()*0.70));
+ //BA.debugLineNum = 97;BA.debugLine="Subs.centraEtiqueta(lfila, Root.Width)";
+_subs._centraetiqueta /*String*/ (ba,_lfila,_root.getWidth());
+ //BA.debugLineNum = 98;BA.debugLine="b_getRutaInfo.Visible = True";
+_b_getrutainfo.setVisible(__c.True);
+ //BA.debugLineNum = 99;BA.debugLine="b_getRutaInfo.BringToFront";
+_b_getrutainfo.BringToFront();
+ //BA.debugLineNum = 100;BA.debugLine="If Starter.cedisLocation.Latitude = \"0\" Then";
+if (_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()==(double)(Double.parseDouble("0"))) {
+ //BA.debugLineNum = 101;BA.debugLine="Private x As Cursor = Starter.skmt.ExecQuery(\"se";
+_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'COORDS_ALMACEN'")));
+ //BA.debugLineNum = 102;BA.debugLine="If x.RowCount > 0 Then";
+if (_x.getRowCount()>0) {
+ //BA.debugLineNum = 103;BA.debugLine="x.Position = 0";
+_x.setPosition((int) (0));
+ //BA.debugLineNum = 104;BA.debugLine="Private y() As String";
+_y = new String[(int) (0)];
+java.util.Arrays.fill(_y,"");
+ //BA.debugLineNum = 105;BA.debugLine="Starter.cedisLocation.Latitude = Regex.Split(\",";
+_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude((double)(Double.parseDouble(__c.Regex.Split(",",_x.GetString("CAT_VA_VALOR"))[(int) (1)])));
+ //BA.debugLineNum = 106;BA.debugLine="Starter.cedisLocation.Longitude = Regex.Split(\"";
+_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude((double)(Double.parseDouble(__c.Regex.Split(",",_x.GetString("CAT_VA_VALOR"))[(int) (0)])));
+ };
+ };
+ //BA.debugLineNum = 109;BA.debugLine="Log(Starter.cedisLocation)";
+__c.LogImpl("510289212",BA.ObjectToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ ),0);
+ //BA.debugLineNum = 110;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_clientes parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_clientes parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 116;BA.debugLine="Log(entro)";
+parent.__c.LogImpl("510354691",parent._entro,0);
+ //BA.debugLineNum = 117;BA.debugLine="If rutaGenerada Or entro = 3 Then ' Si ya generam";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent._rutagenerada || (parent._entro).equals(BA.NumberToString(3))) {
+this.state = 3;
+}else if((parent._entro).equals(BA.NumberToString(2))) {
+this.state = 5;
+}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+ //BA.debugLineNum = 118;BA.debugLine="b_limpiarRuta_Click";
+parent._b_limpiarruta_click();
+ //BA.debugLineNum = 119;BA.debugLine="l_rutaInfo.Text = \"\"";
+parent._l_rutainfo.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 120;BA.debugLine="rutaGenerada = False";
+parent._rutagenerada = parent.__c.False;
+ if (true) break;
+
+case 5:
+//C
+this.state = 6;
+ //BA.debugLineNum = 122;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+parent._b4xpages._showpage /*String*/ (ba,"Principal");
+ if (true) break;
+
+case 6:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 124;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 125;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 36;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 37;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 39;BA.debugLine="Root.LoadLayout(\"clientes\")";
+_root.LoadLayout("clientes",ba);
+ //BA.debugLineNum = 40;BA.debugLine="entro =\"2\"";
+_entro = "2";
+ //BA.debugLineNum = 41;BA.debugLine="lv1Top = ListView1.Top";
+_lv1top = BA.NumberToString(_listview1.getTop());
+ //BA.debugLineNum = 42;BA.debugLine="clientesMapaO.Initialize";
+_clientesmapao._initialize /*String*/ (ba);
+ //BA.debugLineNum = 43;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
+ //BA.debugLineNum = 44;BA.debugLine="Log(\"Coordenadas del almacen: \" & Starter.cedisLo";
+__c.LogImpl("510223624","Coordenadas del almacen: "+BA.NumberToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude())+","+BA.NumberToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()),0);
+ //BA.debugLineNum = 45;BA.debugLine="End Sub";
+return "";
+}
+public String _busca_textchanged(String _old,String _new) throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+ //BA.debugLineNum = 235;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin";
+ //BA.debugLineNum = 236;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\"";
+_q_buscar = "%"+_busca.getText()+"%";
+ //BA.debugLineNum = 237;BA.debugLine="c2=Starter.skmt.ExecQuery2(\"select CAT_CL_NOMBRE";
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where CAT_CL_NOMBRE like ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_CODIGO ",new String[]{_q_buscar})));
+ //BA.debugLineNum = 238;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 239;BA.debugLine="lfila.text = \"Nombre y Calle\"";
+_lfila.setText(BA.ObjectToCharSequence("Nombre y Calle"));
+ //BA.debugLineNum = 240;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 241;BA.debugLine="If c2.RowCount>0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 242;BA.debugLine="For i=0 To c2.RowCount -1";
+{
+final int step7 = 1;
+final int limit7 = (int) (_c2.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit7 ;_i = _i + step7 ) {
+ //BA.debugLineNum = 243;BA.debugLine="c2.Position=i";
+_c2.setPosition(_i);
+ //BA.debugLineNum = 244;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 245;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 246;BA.debugLine="label1.TextSize = 15";
+_label1.setTextSize((float) (15));
+ //BA.debugLineNum = 247;BA.debugLine="label1.TextColor = Colors.Black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 248;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 249;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 250;BA.debugLine="label2.TextSize = 15";
+_label2.setTextSize((float) (15));
+ //BA.debugLineNum = 251;BA.debugLine="label2.TextColor = Colors.Black";
+_label2.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 252;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CODI";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_CL_CODIGO")),BA.ObjectToCharSequence(_c2.GetString("CAT_CL_NOMBRE")+" CALLE: "+_c2.GetString("CAT_CL_CALLE")));
+ }
+};
+ };
+ //BA.debugLineNum = 255;BA.debugLine="entro = \"3\"";
+_entro = "3";
+ //BA.debugLineNum = 256;BA.debugLine="c2.Close";
+_c2.Close();
+ //BA.debugLineNum = 257;BA.debugLine="End Sub";
+return "";
+}
+public void _cacularutagps(anywheresoftware.b4a.objects.collections.List _coords) throws Exception{
+ResumableSub_caculaRutaGPS rsub = new ResumableSub_caculaRutaGPS(this,_coords);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_caculaRutaGPS extends BA.ResumableSub {
+public ResumableSub_caculaRutaGPS(reparto_izca.keymon.lat.c_clientes parent,anywheresoftware.b4a.objects.collections.List _coords) {
+this.parent = parent;
+this._coords = _coords;
+}
+reparto_izca.keymon.lat.c_clientes parent;
+anywheresoftware.b4a.objects.collections.List _coords;
+anywheresoftware.b4a.objects.collections.List _tmplist = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+anywheresoftware.b4a.objects.CSBuilder _cs2 = null;
+String _coordsstr = "";
+anywheresoftware.b4a.objects.collections.List _tienda = null;
+reparto_izca.keymon.lat.httpjob _j = null;
+anywheresoftware.b4a.objects.collections.JSONParser _jp = null;
+anywheresoftware.b4a.objects.collections.Map _m = null;
+int _puntos = 0;
+String _duration = "";
+String _distance = "";
+String _mensaje = "";
+int _i = 0;
+anywheresoftware.b4a.objects.collections.Map _ti = null;
+anywheresoftware.b4a.BA.IterableList group8;
+int index8;
+int groupLen8;
+int step37;
+int limit37;
+int step49;
+int limit49;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 592;BA.debugLine="Private tmpList As List";
+_tmplist = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 593;BA.debugLine="Dim cs, cs2 As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+_cs2 = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 594;BA.debugLine="tmpList.Initialize";
+_tmplist.Initialize();
+ //BA.debugLineNum = 595;BA.debugLine="tmpList.AddAll(Array As String(\"ACTUAL\", Tracker.";
+_tmplist.AddAll(anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"ACTUAL",BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()),BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude())}));
+ //BA.debugLineNum = 596;BA.debugLine="coords.InsertAt(0,tmpList)";
+_coords.InsertAt((int) (0),(Object)(_tmplist.getObject()));
+ //BA.debugLineNum = 597;BA.debugLine="Log(\"=================================\")";
+parent.__c.LogImpl("511141126","=================================",0);
+ //BA.debugLineNum = 599;BA.debugLine="Private coordsStr As String = \"\"";
+_coordsstr = "";
+ //BA.debugLineNum = 600;BA.debugLine="For Each tienda As List In coords";
+if (true) break;
+
+case 1:
+//for
+this.state = 10;
+_tienda = new anywheresoftware.b4a.objects.collections.List();
+group8 = _coords;
+index8 = 0;
+groupLen8 = group8.getSize();
+this.state = 33;
+if (true) break;
+
+case 33:
+//C
+this.state = 10;
+if (index8 < groupLen8) {
+this.state = 3;
+_tienda = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(group8.Get(index8)));}
+if (true) break;
+
+case 34:
+//C
+this.state = 33;
+index8++;
+if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 602;BA.debugLine="If coordsStr = \"\" Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 9;
+if ((_coordsstr).equals("")) {
+this.state = 6;
+}else {
+this.state = 8;
+}if (true) break;
+
+case 6:
+//C
+this.state = 9;
+ //BA.debugLineNum = 603;BA.debugLine="coordsStr = $\"${tienda.get(0)},${tienda.get(1)}";
+_coordsstr = (""+parent.__c.SmartStringFormatter("",_tienda.Get((int) (0)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (1)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (2)))+"");
+ if (true) break;
+
+case 8:
+//C
+this.state = 9;
+ //BA.debugLineNum = 605;BA.debugLine="coordsStr = $\"${coordsStr};${tienda.get(0)},${t";
+_coordsstr = (""+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+";"+parent.__c.SmartStringFormatter("",_tienda.Get((int) (0)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (1)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (2)))+"");
+ if (true) break;
+
+case 9:
+//C
+this.state = 34;
+;
+ if (true) break;
+if (true) break;
+
+case 10:
+//C
+this.state = 11;
+;
+ //BA.debugLineNum = 608;BA.debugLine="Log(coordsStr)";
+parent.__c.LogImpl("511141137",_coordsstr,0);
+ //BA.debugLineNum = 609;BA.debugLine="ProgressDialogShow2(\"Calculando distancia y tiemp";
+parent.__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Calculando distancia y tiempo, un momento por favor."),parent.__c.False);
+ //BA.debugLineNum = 610;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 611;BA.debugLine="j.Initialize(\"trip\", Me) 'Calculamos el resto de";
+_j._initialize /*String*/ (ba,"trip",parent);
+ //BA.debugLineNum = 612;BA.debugLine="j.Download($\"http://keymon.net:9002/ruteador?m=OS";
+_j._download /*String*/ (("http://keymon.net:9002/ruteador?m=OSRM&r="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traerutareparto /*String*/ (ba)))+"&a="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"&f=CEDIS,"+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+"&c="+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+""));
+ //BA.debugLineNum = 613;BA.debugLine="Log($\"http://keymon.net:9002/ruteador?m=OSRM&r=${";
+parent.__c.LogImpl("511141142",("http://keymon.net:9002/ruteador?m=OSRM&r="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traerutareparto /*String*/ (ba)))+"&a="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"&f=CEDIS,"+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+"&c="+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+""),0);
+ //BA.debugLineNum = 614;BA.debugLine="Wait For (j) JobDone(j As HttpJob)";
+parent.__c.WaitFor("jobdone", ba, this, (Object)(_j));
+this.state = 35;
+return;
+case 35:
+//C
+this.state = 11;
+_j = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 615;BA.debugLine="If j.Success Then";
+if (true) break;
+
+case 11:
+//if
+this.state = 32;
+if (_j._success /*boolean*/ ) {
+this.state = 13;
+}else {
+this.state = 31;
+}if (true) break;
+
+case 13:
+//C
+this.state = 14;
+ //BA.debugLineNum = 616;BA.debugLine="Dim jp As JSONParser";
+_jp = new anywheresoftware.b4a.objects.collections.JSONParser();
+ //BA.debugLineNum = 617;BA.debugLine="jp.Initialize(j.GetString)";
+_jp.Initialize(_j._getstring /*String*/ ());
+ //BA.debugLineNum = 618;BA.debugLine="Dim m As Map = jp.NextObject";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+_m = _jp.NextObject();
+ //BA.debugLineNum = 619;BA.debugLine="Log(m)";
+parent.__c.LogImpl("511141148",BA.ObjectToString(_m),0);
+ //BA.debugLineNum = 620;BA.debugLine="If m.Get(\"code\") = \"OK\" Then";
+if (true) break;
+
+case 14:
+//if
+this.state = 29;
+if ((_m.Get((Object)("code"))).equals((Object)("OK"))) {
+this.state = 16;
+}if (true) break;
+
+case 16:
+//C
+this.state = 17;
+ //BA.debugLineNum = 621;BA.debugLine="Log(\"===== OK\")";
+parent.__c.LogImpl("511141150","===== OK",0);
+ //BA.debugLineNum = 622;BA.debugLine="rutaGenerada = True";
+parent._rutagenerada = parent.__c.True;
+ //BA.debugLineNum = 623;BA.debugLine="Dim puntos As Int = m.Get(\"puntos\")";
+_puntos = (int)(BA.ObjectToNumber(_m.Get((Object)("puntos"))));
+ //BA.debugLineNum = 624;BA.debugLine="Private coords As List = m.Get(\"coords\")";
+_coords = new anywheresoftware.b4a.objects.collections.List();
+_coords = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("coords"))));
+ //BA.debugLineNum = 625;BA.debugLine="Private duration As String = m.Get(\"duration\")";
+_duration = BA.ObjectToString(_m.Get((Object)("duration")));
+ //BA.debugLineNum = 626;BA.debugLine="Private distance As String = m.Get(\"distance\")";
+_distance = BA.ObjectToString(_m.Get((Object)("distance")));
+ //BA.debugLineNum = 627;BA.debugLine="Private mensaje As String = m.Get(\"mensaje\")";
+_mensaje = BA.ObjectToString(_m.Get((Object)("mensaje")));
+ //BA.debugLineNum = 628;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoint";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
+ //BA.debugLineNum = 629;BA.debugLine="Starter.skmt.ExecNonQuery(\"update kmt_info set";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update kmt_info set SECUENCIA = 0");
+ //BA.debugLineNum = 630;BA.debugLine="For i = 0 To coords.Size - 1";
+if (true) break;
+
+case 17:
+//for
+this.state = 20;
+step37 = 1;
+limit37 = (int) (_coords.getSize()-1);
+_i = (int) (0) ;
+this.state = 36;
+if (true) break;
+
+case 36:
+//C
+this.state = 20;
+if ((step37 > 0 && _i <= limit37) || (step37 < 0 && _i >= limit37)) this.state = 19;
+if (true) break;
+
+case 37:
+//C
+this.state = 36;
+_i = ((int)(0 + _i + step37)) ;
+if (true) break;
+
+case 19:
+//C
+this.state = 37;
+ //BA.debugLineNum = 631;BA.debugLine="Private ti As Map = coords.Get(i)";
+_ti = new anywheresoftware.b4a.objects.collections.Map();
+_ti = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_coords.Get(_i)));
+ //BA.debugLineNum = 632;BA.debugLine="Starter.skmt.ExecNonQuery($\"update kmt_info se";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update kmt_info set SECUENCIA = "+parent.__c.SmartStringFormatter("",_ti.Get((Object)("pos")))+" where CAT_CL_CODIGO = '"+parent.__c.SmartStringFormatter("",(Object)((BA.ObjectToString(_ti.Get((Object)("id")))).substring((int) (1))))+"'"));
+ //BA.debugLineNum = 633;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into waypoi";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into waypoints (codigo, indice) values ('"+parent.__c.SmartStringFormatter("",(Object)((BA.ObjectToString(_ti.Get((Object)("id")))).substring((int) (1))))+"', '"+parent.__c.SmartStringFormatter("",_ti.Get((Object)("pos")))+"')"));
+ if (true) break;
+if (true) break;
+
+case 20:
+//C
+this.state = 21;
+;
+ //BA.debugLineNum = 635;BA.debugLine="c = Starter.skmt.ExecQuery(\"select codigo, indi";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice")));
+ //BA.debugLineNum = 636;BA.debugLine="If c.RowCount > 0 Then 'Ya hay waypoints en la";
+if (true) break;
+
+case 21:
+//if
+this.state = 28;
+if (parent._c.getRowCount()>0) {
+this.state = 23;
+}if (true) break;
+
+case 23:
+//C
+this.state = 24;
+ //BA.debugLineNum = 637;BA.debugLine="c.Position = 0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 638;BA.debugLine="conMapa = True";
+parent._conmapa = parent.__c.True;
+ //BA.debugLineNum = 639;BA.debugLine="ListView1.Clear";
+parent._listview1.Clear();
+ //BA.debugLineNum = 640;BA.debugLine="Dim cs, cs2 As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+_cs2 = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 641;BA.debugLine="entro = 3";
+parent._entro = BA.NumberToString(3);
+ //BA.debugLineNum = 642;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listVie";
+if (true) break;
+
+case 24:
+//for
+this.state = 27;
+step49 = 1;
+limit49 = (int) (parent._c.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 38;
+if (true) break;
+
+case 38:
+//C
+this.state = 27;
+if ((step49 > 0 && _i <= limit49) || (step49 < 0 && _i >= limit49)) this.state = 26;
+if (true) break;
+
+case 39:
+//C
+this.state = 38;
+_i = ((int)(0 + _i + step49)) ;
+if (true) break;
+
+case 26:
+//C
+this.state = 39;
+ //BA.debugLineNum = 643;BA.debugLine="c.Position = i";
+parent._c.setPosition(_i);
+ //BA.debugLineNum = 644;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 645;BA.debugLine="cs2.Initialize";
+_cs2.Initialize();
+ //BA.debugLineNum = 646;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100";
+parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_cs.Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(parent._c.GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE"))).Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE").trim()+" "+parent._c.GetString("CAT_CL_NOEXT"))).PopAll().getObject()));
+ if (true) break;
+if (true) break;
+
+case 27:
+//C
+this.state = 28;
+;
+ if (true) break;
+
+case 28:
+//C
+this.state = 29;
+;
+ //BA.debugLineNum = 649;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 650;BA.debugLine="Log($\"Distancia total: $1.1{distance/1000} kms,";
+parent.__c.LogImpl("511141179",("Distancia total: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_distance))/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60/(double)60))+" hrs)"),0);
+ //BA.debugLineNum = 651;BA.debugLine="l_rutaInfo.Text = $\"Distancia: $1.1{distance/10";
+parent._l_rutainfo.setText(BA.ObjectToCharSequence(("Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_distance))/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60/(double)60))+" hrs"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Visitas restantes: "+parent.__c.SmartStringFormatter("",(Object)(_puntos-1))+"")));
+ //BA.debugLineNum = 652;BA.debugLine="l_rutaInfo.Width = Root.Width * 0.9";
+parent._l_rutainfo.setWidth((int) (parent._root.getWidth()*0.9));
+ //BA.debugLineNum = 653;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)";
+parent._subs._centraetiqueta /*String*/ (ba,parent._l_rutainfo,parent._root.getWidth());
+ //BA.debugLineNum = 654;BA.debugLine="l_rutaInfo.Visible = True";
+parent._l_rutainfo.setVisible(parent.__c.True);
+ //BA.debugLineNum = 655;BA.debugLine="l_rutaInfo.BringToFront";
+parent._l_rutainfo.BringToFront();
+ //BA.debugLineNum = 656;BA.debugLine="ListView1.Top = lv1Top + 100";
+parent._listview1.setTop((int) ((double)(Double.parseDouble(parent._lv1top))+100));
+ if (true) break;
+
+case 29:
+//C
+this.state = 32;
+;
+ if (true) break;
+
+case 31:
+//C
+this.state = 32;
+ //BA.debugLineNum = 659;BA.debugLine="LogColor(\"**************** Error! ************";
+parent.__c.LogImpl("511141188","**************** Error! ******************",parent.__c.Colors.Red);
+ if (true) break;
+
+case 32:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 661;BA.debugLine="j.Release";
+_j._release /*String*/ ();
+ //BA.debugLineNum = 662;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 663;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _jobdone(reparto_izca.keymon.lat.httpjob _j) throws Exception{
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim q_buscar As String";
+_q_buscar = "";
+ //BA.debugLineNum = 6;BA.debugLine="Dim entro As String";
+_entro = "";
+ //BA.debugLineNum = 7;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="Dim c2 As Cursor";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Dim ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Dim lfila As Label";
+_lfila = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim busca As EditText";
+_busca = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Private p_colonia As Panel";
+_p_colonia = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 16;BA.debugLine="Dim laRuta As String";
+_laruta = "";
+ //BA.debugLineNum = 17;BA.debugLine="Private b_GetDirs As Button";
+_b_getdirs = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Private distOrderedMap, clientesMapaO As B4XOrder";
+_distorderedmap = new reparto_izca.keymon.lat.b4xorderedmap();
+_clientesmapao = new reparto_izca.keymon.lat.b4xorderedmap();
+ //BA.debugLineNum = 19;BA.debugLine="Private img_getDirs As ImageView";
+_img_getdirs = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Private l_rutaInfo As Label";
+_l_rutainfo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 21;BA.debugLine="Private b_getRutaInfo As Button";
+_b_getrutainfo = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Private conMapa As Boolean = False";
+_conmapa = __c.False;
+ //BA.debugLineNum = 23;BA.debugLine="Dim listaWayPoints As List";
+_listawaypoints = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 24;BA.debugLine="Dim lv1Top As String";
+_lv1top = "";
+ //BA.debugLineNum = 25;BA.debugLine="Private b_limpiarRuta As Button";
+_b_limpiarruta = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 26;BA.debugLine="Dim rutaGenerada As Boolean = False";
+_rutagenerada = __c.False;
+ //BA.debugLineNum = 27;BA.debugLine="Dim rutaacambiar As String";
+_rutaacambiar = "";
+ //BA.debugLineNum = 28;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _distanciaentrecoords(String _id,String _coords1,String _coords2) throws Exception{
+ResumableSub_distanciaEntreCoords rsub = new ResumableSub_distanciaEntreCoords(this,_id,_coords1,_coords2);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_distanciaEntreCoords extends BA.ResumableSub {
+public ResumableSub_distanciaEntreCoords(reparto_izca.keymon.lat.c_clientes parent,String _id,String _coords1,String _coords2) {
+this.parent = parent;
+this._id = _id;
+this._coords1 = _coords1;
+this._coords2 = _coords2;
+}
+reparto_izca.keymon.lat.c_clientes parent;
+String _id;
+String _coords1;
+String _coords2;
+String _distanciatotal = "";
+String _tiempo = "";
+reparto_izca.keymon.lat.httpjob _j = null;
+anywheresoftware.b4a.objects.collections.JSONParser _jp = null;
+anywheresoftware.b4a.objects.collections.Map _m = null;
+anywheresoftware.b4a.objects.collections.List _rutas = null;
+anywheresoftware.b4a.objects.collections.Map _rutas2 = null;
+anywheresoftware.b4a.objects.collections.List _r = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 263;BA.debugLine="Sleep(1050)";
+parent.__c.Sleep(ba,this,(int) (1050));
+this.state = 11;
+return;
+case 11:
+//C
+this.state = 1;
+;
+ //BA.debugLineNum = 264;BA.debugLine="Private distanciaTotal As String = \"0\"";
+_distanciatotal = "0";
+ //BA.debugLineNum = 265;BA.debugLine="Private tiempo As String = \"0\"";
+_tiempo = "0";
+ //BA.debugLineNum = 266;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 267;BA.debugLine="j.Initialize(\"\", Me)";
+_j._initialize /*String*/ (ba,"",parent);
+ //BA.debugLineNum = 268;BA.debugLine="j.Download(\"https://router.project-osrm.org/route";
+_j._download /*String*/ ("https://router.project-osrm.org/route/v1/driving/"+_coords1+";"+_coords2+"?overview=false");
+ //BA.debugLineNum = 269;BA.debugLine="Wait For (j) JobDone(j As HttpJob)";
+parent.__c.WaitFor("jobdone", ba, this, (Object)(_j));
+this.state = 12;
+return;
+case 12:
+//C
+this.state = 1;
+_j = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 270;BA.debugLine="If j.Success Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 10;
+if (_j._success /*boolean*/ ) {
+this.state = 3;
+}else {
+this.state = 9;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 271;BA.debugLine="Dim jp As JSONParser";
+_jp = new anywheresoftware.b4a.objects.collections.JSONParser();
+ //BA.debugLineNum = 272;BA.debugLine="jp.Initialize(j.GetString)";
+_jp.Initialize(_j._getstring /*String*/ ());
+ //BA.debugLineNum = 273;BA.debugLine="Dim m As Map = jp.NextObject";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+_m = _jp.NextObject();
+ //BA.debugLineNum = 274;BA.debugLine="Log($\"Respuesta: ${m.Get(\"code\")}\"$)";
+parent.__c.LogImpl("510682380",("Respuesta: "+parent.__c.SmartStringFormatter("",_m.Get((Object)("code")))+""),0);
+ //BA.debugLineNum = 275;BA.debugLine="If m.Get(\"code\") = \"Ok\" Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 7;
+if ((_m.Get((Object)("code"))).equals((Object)("Ok"))) {
+this.state = 6;
+}if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 277;BA.debugLine="Dim rutas As List = m.Get(\"routes\")";
+_rutas = new anywheresoftware.b4a.objects.collections.List();
+_rutas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("routes"))));
+ //BA.debugLineNum = 278;BA.debugLine="Dim rutas2 As Map = rutas.Get(0)";
+_rutas2 = new anywheresoftware.b4a.objects.collections.Map();
+_rutas2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_rutas.Get((int) (0))));
+ //BA.debugLineNum = 282;BA.debugLine="distanciaTotal = rutas2.Get(\"distance\")";
+_distanciatotal = BA.ObjectToString(_rutas2.Get((Object)("distance")));
+ //BA.debugLineNum = 283;BA.debugLine="tiempo = rutas2.Get(\"duration\")";
+_tiempo = BA.ObjectToString(_rutas2.Get((Object)("duration")));
+ //BA.debugLineNum = 284;BA.debugLine="Log($\"Distancia total: ${distanciaTotal}, Tiemp";
+parent.__c.LogImpl("510682390",("Distancia total: "+parent.__c.SmartStringFormatter("",(Object)(_distanciatotal))+", Tiempo: "+parent.__c.SmartStringFormatter("",(Object)(_tiempo))+""),0);
+ if (true) break;
+
+case 7:
+//C
+this.state = 10;
+;
+ if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 287;BA.debugLine="Log(\"Error!\")";
+parent.__c.LogImpl("510682393","Error!",0);
+ if (true) break;
+
+case 10:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 289;BA.debugLine="j.Release";
+_j._release /*String*/ ();
+ //BA.debugLineNum = 290;BA.debugLine="Private r As List";
+_r = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 291;BA.debugLine="r.Initialize";
+_r.Initialize();
+ //BA.debugLineNum = 292;BA.debugLine="r.Add(id)";
+_r.Add((Object)(_id));
+ //BA.debugLineNum = 293;BA.debugLine="r.Add(distanciaTotal)";
+_r.Add((Object)(_distanciatotal));
+ //BA.debugLineNum = 294;BA.debugLine="r.Add(tiempo)";
+_r.Add((Object)(_tiempo));
+ //BA.debugLineNum = 295;BA.debugLine="Return r";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(_r));return;};
+ //BA.debugLineNum = 296;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _generalistviewrutas() throws Exception{
+ResumableSub_generaListViewRutas rsub = new ResumableSub_generaListViewRutas(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_generaListViewRutas extends BA.ResumableSub {
+public ResumableSub_generaListViewRutas(reparto_izca.keymon.lat.c_clientes parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_clientes parent;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+int _i = 0;
+int step16;
+int limit16;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 196;BA.debugLine="ListView1.Clear";
+parent._listview1.Clear();
+ //BA.debugLineNum = 197;BA.debugLine="Sleep(110)";
+parent.__c.Sleep(ba,this,(int) (110));
+this.state = 9;
+return;
+case 9:
+//C
+this.state = 1;
+;
+ //BA.debugLineNum = 198;BA.debugLine="lfila.Text = \"RUTA PREVENTA\"";
+parent._lfila.setText(BA.ObjectToCharSequence("RUTA PREVENTA"));
+ //BA.debugLineNum = 199;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 200;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = parent._listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 201;BA.debugLine="label1.TextSize = 15";
+_label1.setTextSize((float) (15));
+ //BA.debugLineNum = 202;BA.debugLine="label1.TextColor = Colors.Black";
+_label1.setTextColor(parent.__c.Colors.Black);
+ //BA.debugLineNum = 203;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 204;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = parent._listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 205;BA.debugLine="label2.TextSize = 15";
+_label2.setTextSize((float) (15));
+ //BA.debugLineNum = 206;BA.debugLine="label2.TextColor = Colors.Black";
+_label2.setTextColor(parent.__c.Colors.Black);
+ //BA.debugLineNum = 207;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 60dip";
+parent._listview1.getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (60)));
+ //BA.debugLineNum = 208;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA, cou";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc")));
+ //BA.debugLineNum = 209;BA.debugLine="If c.RowCount>0 Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 8;
+if (parent._c.getRowCount()>0) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 210;BA.debugLine="ListView1.Clear";
+parent._listview1.Clear();
+ //BA.debugLineNum = 211;BA.debugLine="For i=0 To c.RowCount -1";
+if (true) break;
+
+case 4:
+//for
+this.state = 7;
+step16 = 1;
+limit16 = (int) (parent._c.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 10;
+if (true) break;
+
+case 10:
+//C
+this.state = 7;
+if ((step16 > 0 && _i <= limit16) || (step16 < 0 && _i >= limit16)) this.state = 6;
+if (true) break;
+
+case 11:
+//C
+this.state = 10;
+_i = ((int)(0 + _i + step16)) ;
+if (true) break;
+
+case 6:
+//C
+this.state = 11;
+ //BA.debugLineNum = 212;BA.debugLine="c.Position=i";
+parent._c.setPosition(_i);
+ //BA.debugLineNum = 213;BA.debugLine="ListView1.AddTwoLines(\"Ruta: \" & c.GetString(\"C";
+parent._listview1.AddTwoLines(BA.ObjectToCharSequence("Ruta: "+parent._c.GetString("CAT_CL_RUTA")),BA.ObjectToCharSequence("Por visitar: "+parent._c.GetString("cuantos")));
+ if (true) break;
+if (true) break;
+
+case 7:
+//C
+this.state = 8;
+;
+ if (true) break;
+
+case 8:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 216;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 217;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 31;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 32;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 33;BA.debugLine="End Sub";
+return null;
+}
+public void _listview1_itemclick(int _position,Object _value) throws Exception{
+ResumableSub_ListView1_ItemClick rsub = new ResumableSub_ListView1_ItemClick(this,_position,_value);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_ListView1_ItemClick extends BA.ResumableSub {
+public ResumableSub_ListView1_ItemClick(reparto_izca.keymon.lat.c_clientes parent,int _position,Object _value) {
+this.parent = parent;
+this._position = _position;
+this._value = _value;
+}
+reparto_izca.keymon.lat.c_clientes parent;
+int _position;
+Object _value;
+String _lrt = "";
+anywheresoftware.b4a.gps.LocationWrapper _thisloc = null;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+int _i = 0;
+int _distancia = 0;
+anywheresoftware.b4a.objects.collections.Map _estecliente = null;
+anywheresoftware.b4a.objects.collections.Map _m1 = null;
+Object _k = null;
+int step34;
+int limit34;
+anywheresoftware.b4a.BA.IterableList group45;
+int index45;
+int groupLen45;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 129;BA.debugLine="Log(Value)";
+parent.__c.LogImpl("510420226",BA.ObjectToString(_value),0);
+ //BA.debugLineNum = 130;BA.debugLine="ListView1.Clear";
+parent._listview1.Clear();
+ //BA.debugLineNum = 131;BA.debugLine="Sleep(50)";
+parent.__c.Sleep(ba,this,(int) (50));
+this.state = 31;
+return;
+case 31:
+//C
+this.state = 1;
+;
+ //BA.debugLineNum = 132;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+parent._subs._setdivider /*String*/ (ba,parent._listview1,parent.__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 133;BA.debugLine="If Not(l_rutaInfo.Visible) Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent.__c.Not(parent._l_rutainfo.getVisible())) {
+this.state = 3;
+}else {
+this.state = 5;
+}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+ //BA.debugLineNum = 134;BA.debugLine="ListView1.Top = lv1Top";
+parent._listview1.setTop((int)(Double.parseDouble(parent._lv1top)));
+ if (true) break;
+
+case 5:
+//C
+this.state = 6;
+ //BA.debugLineNum = 136;BA.debugLine="ListView1.Top = lv1Top + 100";
+parent._listview1.setTop((int) ((double)(Double.parseDouble(parent._lv1top))+100));
+ if (true) break;
+
+case 6:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 138;BA.debugLine="l_rutaInfo.Visible = False";
+parent._l_rutainfo.setVisible(parent.__c.False);
+ //BA.debugLineNum = 139;BA.debugLine="b_GetDirs.Visible = False";
+parent._b_getdirs.setVisible(parent.__c.False);
+ //BA.debugLineNum = 140;BA.debugLine="If entro = \"2\" Then";
+if (true) break;
+
+case 7:
+//if
+this.state = 30;
+if ((parent._entro).equals("2")) {
+this.state = 9;
+}else if((parent._entro).equals("3")) {
+this.state = 29;
+}if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 144;BA.debugLine="Private lrt As String";
+_lrt = "";
+ //BA.debugLineNum = 145;BA.debugLine="lrt = Value";
+_lrt = BA.ObjectToString(_value);
+ //BA.debugLineNum = 146;BA.debugLine="laRuta = lrt.SubString(6) 'Quitamos el texto \"Ru";
+parent._laruta = _lrt.substring((int) (6));
+ //BA.debugLineNum = 147;BA.debugLine="Log($\"Original: ${Value} - Mod: |${lrt.SubString";
+parent.__c.LogImpl("510420244",("Original: "+parent.__c.SmartStringFormatter("",_value)+" - Mod: |"+parent.__c.SmartStringFormatter("",(Object)(_lrt.substring((int) (6))))+"| - laRuta: "+parent.__c.SmartStringFormatter("",(Object)(parent._laruta))+""),0);
+ //BA.debugLineNum = 148;BA.debugLine="rutaacambiar = laRuta";
+parent._rutaacambiar = parent._laruta;
+ //BA.debugLineNum = 149;BA.debugLine="c2 = Starter.skmt.ExecQuery2(\"select CAT_CL_NOMB";
+parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ",new String[]{parent._laruta})));
+ //BA.debugLineNum = 150;BA.debugLine="Private thisLoc As Location";
+_thisloc = new anywheresoftware.b4a.gps.LocationWrapper();
+ //BA.debugLineNum = 151;BA.debugLine="Private label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 152;BA.debugLine="Private label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 153;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = parent._listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 154;BA.debugLine="label1.TextSize = 15";
+_label1.setTextSize((float) (15));
+ //BA.debugLineNum = 155;BA.debugLine="label1.TextColor = Colors.black";
+_label1.setTextColor(parent.__c.Colors.Black);
+ //BA.debugLineNum = 156;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = parent._listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 157;BA.debugLine="label2.TextSize = 15";
+_label2.setTextSize((float) (15));
+ //BA.debugLineNum = 158;BA.debugLine="label2.TextColor = Colors.black";
+_label2.setTextColor(parent.__c.Colors.Black);
+ //BA.debugLineNum = 159;BA.debugLine="label2.Height = 57dip";
+_label2.setHeight(parent.__c.DipToCurrent((int) (57)));
+ //BA.debugLineNum = 160;BA.debugLine="thisLoc.Initialize";
+_thisloc.Initialize();
+ //BA.debugLineNum = 161;BA.debugLine="If entro = 2 Then ListView1.TwoLinesLayout.ItemH";
+if (true) break;
+
+case 10:
+//if
+this.state = 15;
+if ((parent._entro).equals(BA.NumberToString(2))) {
+this.state = 12;
+;}if (true) break;
+
+case 12:
+//C
+this.state = 15;
+parent._listview1.getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (90)));
+if (true) break;
+
+case 15:
+//C
+this.state = 16;
+;
+ //BA.debugLineNum = 162;BA.debugLine="lfila.text = \"Nombre y Calle\"";
+parent._lfila.setText(BA.ObjectToCharSequence("Nombre y Calle"));
+ //BA.debugLineNum = 163;BA.debugLine="distOrderedMap.Initialize";
+parent._distorderedmap._initialize /*String*/ (ba);
+ //BA.debugLineNum = 164;BA.debugLine="If c2.RowCount > 0 Then";
+if (true) break;
+
+case 16:
+//if
+this.state = 27;
+if (parent._c2.getRowCount()>0) {
+this.state = 18;
+}if (true) break;
+
+case 18:
+//C
+this.state = 19;
+ //BA.debugLineNum = 165;BA.debugLine="For i = 0 To c2.RowCount -1 'Generamos mapa de";
+if (true) break;
+
+case 19:
+//for
+this.state = 22;
+step34 = 1;
+limit34 = (int) (parent._c2.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 32;
+if (true) break;
+
+case 32:
+//C
+this.state = 22;
+if ((step34 > 0 && _i <= limit34) || (step34 < 0 && _i >= limit34)) this.state = 21;
+if (true) break;
+
+case 33:
+//C
+this.state = 32;
+_i = ((int)(0 + _i + step34)) ;
+if (true) break;
+
+case 21:
+//C
+this.state = 33;
+ //BA.debugLineNum = 166;BA.debugLine="c2.Position = i";
+parent._c2.setPosition(_i);
+ //BA.debugLineNum = 167;BA.debugLine="thisLoc.Latitude = c2.GetString(\"CAT_CL_LAT\")";
+_thisloc.setLatitude((double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT"))));
+ //BA.debugLineNum = 168;BA.debugLine="thisLoc.Longitude = c2.GetString(\"CAT_CL_LONG\"";
+_thisloc.setLongitude((double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG"))));
+ //BA.debugLineNum = 170;BA.debugLine="Private distancia As Int = Tracker.UUGCoords.D";
+_distancia = (int) (parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .DistanceTo((android.location.Location)(_thisloc.getObject())));
+ //BA.debugLineNum = 171;BA.debugLine="Private esteCliente As Map = CreateMap(\"distan";
+_estecliente = new anywheresoftware.b4a.objects.collections.Map();
+_estecliente = parent.__c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia),(Object)("ubicacion"),(Object)(BA.NumberToString(_thisloc.getLongitude())+","+BA.NumberToString(_thisloc.getLatitude())),(Object)("codigo"),(Object)(parent._c2.GetString("CAT_CL_CODIGO")),(Object)("nomDirDist"),(Object)((""+parent.__c.SmartStringFormatter("",(Object)(parent._c2.GetString("CAT_CL_NOMBRE")))+" CALLE: "+parent.__c.SmartStringFormatter("",(Object)(parent._c2.GetString("CAT_CL_CALLE")))+" "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)((_distancia/(double)1000)))+" kms"))});
+ //BA.debugLineNum = 172;BA.debugLine="distOrderedMap.Put(distancia, esteCliente)";
+parent._distorderedmap._put /*String*/ ((Object)(_distancia),(Object)(_estecliente.getObject()));
+ if (true) break;
+if (true) break;
+
+case 22:
+//C
+this.state = 23;
+;
+ //BA.debugLineNum = 174;BA.debugLine="distOrderedMap.Keys.Sort(True) 'Ordenamos la ma";
+parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().Sort(parent.__c.True);
+ //BA.debugLineNum = 175;BA.debugLine="ListView1.Clear";
+parent._listview1.Clear();
+ //BA.debugLineNum = 176;BA.debugLine="Private m1 As Map";
+_m1 = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 177;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'G";
+if (true) break;
+
+case 23:
+//for
+this.state = 26;
+group45 = parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ();
+index45 = 0;
+groupLen45 = group45.getSize();
+this.state = 34;
+if (true) break;
+
+case 34:
+//C
+this.state = 26;
+if (index45 < groupLen45) {
+this.state = 25;
+_k = group45.Get(index45);}
+if (true) break;
+
+case 35:
+//C
+this.state = 34;
+index45++;
+if (true) break;
+
+case 25:
+//C
+this.state = 35;
+ //BA.debugLineNum = 178;BA.debugLine="m1 = distOrderedMap.Get(k)";
+_m1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ (_k)));
+ //BA.debugLineNum = 179;BA.debugLine="m1.Get(\"codigo\")";
+_m1.Get((Object)("codigo"));
+ //BA.debugLineNum = 181;BA.debugLine="ListView1.AddTwoLines(m1.Get(\"codigo\"), m1.Get";
+parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_m1.Get((Object)("codigo"))),BA.ObjectToCharSequence(_m1.Get((Object)("nomDirDist"))));
+ if (true) break;
+if (true) break;
+
+case 26:
+//C
+this.state = 27;
+;
+ if (true) break;
+
+case 27:
+//C
+this.state = 30;
+;
+ //BA.debugLineNum = 184;BA.debugLine="c2.Close";
+parent._c2.Close();
+ //BA.debugLineNum = 185;BA.debugLine="entro = \"3\"";
+parent._entro = "3";
+ if (true) break;
+
+case 29:
+//C
+this.state = 30;
+ //BA.debugLineNum = 188;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
+ //BA.debugLineNum = 189;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value}));
+ //BA.debugLineNum = 190;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+parent._b4xpages._showpage /*String*/ (ba,"Cliente");
+ if (true) break;
+
+case 30:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 192;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public anywheresoftware.b4a.objects.collections.List _todosavisitar() throws Exception{
+String _sqlderuta = "";
+anywheresoftware.b4a.objects.collections.List _avisitar = null;
+anywheresoftware.b4a.objects.collections.List _tmplist = null;
+anywheresoftware.b4a.sql.SQL.ResultSetWrapper _coords = null;
+ //BA.debugLineNum = 666;BA.debugLine="Sub todosAVisitar As List";
+ //BA.debugLineNum = 667;BA.debugLine="Log(laRuta)";
+__c.LogImpl("511206657",_laruta,0);
+ //BA.debugLineNum = 668;BA.debugLine="Log(entro)";
+__c.LogImpl("511206658",_entro,0);
+ //BA.debugLineNum = 669;BA.debugLine="Private sqlDeRuta As String = \"\"";
+_sqlderuta = "";
+ //BA.debugLineNum = 670;BA.debugLine="If entro = 3 Then sqlDeRuta = $\"and CAT_CL_RUTA =";
+if ((_entro).equals(BA.NumberToString(3))) {
+_sqlderuta = ("and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_laruta))+"'");};
+ //BA.debugLineNum = 671;BA.debugLine="Private aVisitar, tmpList As List";
+_avisitar = new anywheresoftware.b4a.objects.collections.List();
+_tmplist = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 672;BA.debugLine="aVisitar.Initialize";
+_avisitar.Initialize();
+ //BA.debugLineNum = 673;BA.debugLine="Private coords As ResultSet = Starter.skmt.ExecQu";
+_coords = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
+_coords = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 "+__c.SmartStringFormatter("",(Object)(_sqlderuta))+""))));
+ //BA.debugLineNum = 674;BA.debugLine="Do While coords.NextRow";
+while (_coords.NextRow()) {
+ //BA.debugLineNum = 675;BA.debugLine="tmpList.Initialize";
+_tmplist.Initialize();
+ //BA.debugLineNum = 676;BA.debugLine="tmpList.AddAll(Array As String(coords.GetString(";
+_tmplist.AddAll(anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_coords.GetString("CAT_CL_CODIGO"),_coords.GetString("CAT_CL_LONG"),_coords.GetString("CAT_CL_LAT")}));
+ //BA.debugLineNum = 677;BA.debugLine="aVisitar.Add(tmpList)";
+_avisitar.Add((Object)(_tmplist.getObject()));
+ }
+;
+ //BA.debugLineNum = 679;BA.debugLine="Log(aVisitar)";
+__c.LogImpl("511206669",BA.ObjectToString(_avisitar),0);
+ //BA.debugLineNum = 680;BA.debugLine="Return aVisitar";
+if (true) return _avisitar;
+ //BA.debugLineNum = 681;BA.debugLine="End Sub";
+return null;
+}
+public void _traerutadia(reparto_izca.keymon.lat.b4xorderedmap _avisitar) throws Exception{
+ResumableSub_traeRutaDia rsub = new ResumableSub_traeRutaDia(this,_avisitar);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_traeRutaDia extends BA.ResumableSub {
+public ResumableSub_traeRutaDia(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.b4xorderedmap _avisitar) {
+this.parent = parent;
+this._avisitar = _avisitar;
+}
+reparto_izca.keymon.lat.c_clientes parent;
+reparto_izca.keymon.lat.b4xorderedmap _avisitar;
+String _coordsinicio = "";
+String _rutacompleta = "";
+String _preruta = "";
+double _distanciatotal = 0;
+double _distanciatotal0 = 0;
+double _tiempo0 = 0;
+double _tiempo = 0;
+boolean _masde100 = false;
+anywheresoftware.b4a.objects.collections.Map _m4 = null;
+int _visitaactual = 0;
+int _cuantosantes = 0;
+Object _k = null;
+double _tiempovisitas = 0;
+reparto_izca.keymon.lat.httpjob _j0 = null;
+anywheresoftware.b4a.objects.collections.JSONParser _jp0 = null;
+anywheresoftware.b4a.objects.collections.Map _m0 = null;
+anywheresoftware.b4a.objects.collections.List _puntos0 = null;
+anywheresoftware.b4a.objects.collections.Map _estewaypoint0 = null;
+int _p = 0;
+anywheresoftware.b4a.objects.collections.List _rutas0 = null;
+anywheresoftware.b4a.objects.collections.Map _rutas20 = null;
+reparto_izca.keymon.lat.httpjob _j = null;
+anywheresoftware.b4a.objects.collections.JSONParser _jp = null;
+anywheresoftware.b4a.objects.collections.Map _m = null;
+anywheresoftware.b4a.objects.collections.List _puntos = null;
+anywheresoftware.b4a.objects.collections.Map _estewaypoint = null;
+int _twpi = 0;
+anywheresoftware.b4a.objects.collections.List _rutas = null;
+anywheresoftware.b4a.objects.collections.Map _rutas2 = null;
+int _r = 0;
+anywheresoftware.b4a.objects.collections.Map _r1 = null;
+anywheresoftware.b4a.objects.collections.Map _wps = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+anywheresoftware.b4a.objects.CSBuilder _cs2 = null;
+int _i = 0;
+anywheresoftware.b4a.BA.IterableList group18;
+int index18;
+int groupLen18;
+int step47;
+int limit47;
+int step78;
+int limit78;
+anywheresoftware.b4a.BA.IterableList group112;
+int index112;
+int groupLen112;
+int step135;
+int limit135;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 301;BA.debugLine="Private coordsInicio As String = $\"${Starter.cedi";
+_coordsinicio = (""+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+"");
+ //BA.debugLineNum = 302;BA.debugLine="Log($\"Coordenadas de inicio: ${Starter.cedisLocat";
+parent.__c.LogImpl("510747906",("Coordenadas de inicio: "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+""),0);
+ //BA.debugLineNum = 303;BA.debugLine="Private rutaCompleta As String = coordsInicio";
+_rutacompleta = _coordsinicio;
+ //BA.debugLineNum = 304;BA.debugLine="Private preRuta As String = coordsInicio";
+_preruta = _coordsinicio;
+ //BA.debugLineNum = 305;BA.debugLine="Private distanciaTotal, distanciaTotal0, tiempo0,";
+_distanciatotal = 0;
+_distanciatotal0 = 0;
+_tiempo0 = 0;
+_tiempo = 0;
+ //BA.debugLineNum = 306;BA.debugLine="Private masDe100 As Boolean";
+_masde100 = false;
+ //BA.debugLineNum = 307;BA.debugLine="Private m4 As Map";
+_m4 = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 308;BA.debugLine="Private visitaActual As Int = 0";
+_visitaactual = (int) (0);
+ //BA.debugLineNum = 309;BA.debugLine="Private cuantosAntes As Int = 0";
+_cuantosantes = (int) (0);
+ //BA.debugLineNum = 310;BA.debugLine="listaWayPoints.Initialize";
+parent._listawaypoints.Initialize();
+ //BA.debugLineNum = 311;BA.debugLine="If aVisitar.Keys.Size > 98 Then 'Si los clientes";
+if (true) break;
+
+case 1:
+//if
+this.state = 4;
+if (_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()>98) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 312;BA.debugLine="cuantosAntes = aVisitar.Keys.Size - 98 'Definimo";
+_cuantosantes = (int) (_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()-98);
+ //BA.debugLineNum = 313;BA.debugLine="preRuta = coordsInicio 'Ponemos las coordenadas";
+_preruta = _coordsinicio;
+ //BA.debugLineNum = 314;BA.debugLine="rutaCompleta = \"\"";
+_rutacompleta = "";
+ //BA.debugLineNum = 315;BA.debugLine="masDe100 = True";
+_masde100 = parent.__c.True;
+ if (true) break;
+
+case 4:
+//C
+this.state = 5;
+;
+ //BA.debugLineNum = 317;BA.debugLine="Log($\"a visitar: ${aVisitar.Keys.Size}\"$)";
+parent.__c.LogImpl("510747921",("a visitar: "+parent.__c.SmartStringFormatter("",(Object)(_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()))+""),0);
+ //BA.debugLineNum = 318;BA.debugLine="For Each k As Object In aVisitar.Keys";
+if (true) break;
+
+case 5:
+//for
+this.state = 15;
+group18 = _avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ();
+index18 = 0;
+groupLen18 = group18.getSize();
+this.state = 70;
+if (true) break;
+
+case 70:
+//C
+this.state = 15;
+if (index18 < groupLen18) {
+this.state = 7;
+_k = group18.Get(index18);}
+if (true) break;
+
+case 71:
+//C
+this.state = 70;
+index18++;
+if (true) break;
+
+case 7:
+//C
+this.state = 8;
+ //BA.debugLineNum = 319;BA.debugLine="visitaActual = visitaActual + 1";
+_visitaactual = (int) (_visitaactual+1);
+ //BA.debugLineNum = 320;BA.debugLine="m4 = aVisitar.Get(k)";
+_m4 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_avisitar._get /*Object*/ (_k)));
+ //BA.debugLineNum = 322;BA.debugLine="If visitaActual < cuantosAntes + 2 Then 'Si esta";
+if (true) break;
+
+case 8:
+//if
+this.state = 11;
+if (_visitaactual<_cuantosantes+2) {
+this.state = 10;
+}if (true) break;
+
+case 10:
+//C
+this.state = 11;
+ //BA.debugLineNum = 323;BA.debugLine="preRuta = preRuta & \";\" & m4.Get(\"coords\")";
+_preruta = _preruta+";"+BA.ObjectToString(_m4.Get((Object)("coords")));
+ if (true) break;
+;
+ //BA.debugLineNum = 326;BA.debugLine="If visitaActual >= cuantosAntes + 2 Then 'Si est";
+
+case 11:
+//if
+this.state = 14;
+if (_visitaactual>=_cuantosantes+2) {
+this.state = 13;
+}if (true) break;
+
+case 13:
+//C
+this.state = 14;
+ //BA.debugLineNum = 327;BA.debugLine="rutaCompleta = rutaCompleta & \";\" & m4.Get(\"coo";
+_rutacompleta = _rutacompleta+";"+BA.ObjectToString(_m4.Get((Object)("coords")));
+ if (true) break;
+
+case 14:
+//C
+this.state = 71;
+;
+ if (true) break;
+if (true) break;
+
+case 15:
+//C
+this.state = 16;
+;
+ //BA.debugLineNum = 331;BA.debugLine="rutaCompleta = rutaCompleta & \";\" & coordsInicio";
+_rutacompleta = _rutacompleta+";"+_coordsinicio;
+ //BA.debugLineNum = 333;BA.debugLine="If rutaCompleta.StartsWith(\";\") Then rutaCompleta";
+if (true) break;
+
+case 16:
+//if
+this.state = 21;
+if (_rutacompleta.startsWith(";")) {
+this.state = 18;
+;}if (true) break;
+
+case 18:
+//C
+this.state = 21;
+_rutacompleta = _rutacompleta.substring((int) (1));
+if (true) break;
+
+case 21:
+//C
+this.state = 22;
+;
+ //BA.debugLineNum = 336;BA.debugLine="ProgressDialogShow2(\"Calculando distancia y tiemp";
+parent.__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Calculando distancia y tiempo, un momento por favor."),parent.__c.False);
+ //BA.debugLineNum = 337;BA.debugLine="Private tiempoVisitas As Double 'TIMEPO DE 4 MINU";
+_tiempovisitas = 0;
+ //BA.debugLineNum = 338;BA.debugLine="tiempoVisitas = aVisitar.Keys.Size * 4 * 60 'Aqui";
+_tiempovisitas = _avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()*4*60;
+ //BA.debugLineNum = 339;BA.debugLine="tiempo0 = 0";
+_tiempo0 = 0;
+ //BA.debugLineNum = 340;BA.debugLine="distanciaTotal0 = 0";
+_distanciatotal0 = 0;
+ //BA.debugLineNum = 341;BA.debugLine="If masDe100 Then 'Si son mas de 100, entonces pri";
+if (true) break;
+
+case 22:
+//if
+this.state = 39;
+if (_masde100) {
+this.state = 24;
+}if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 342;BA.debugLine="Dim j0 As HttpJob";
+_j0 = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 343;BA.debugLine="j0.Initialize(\"trip0\", Me)";
+_j0._initialize /*String*/ (ba,"trip0",parent);
+ //BA.debugLineNum = 344;BA.debugLine="j0.Download(\"https://router.project-osrm.org/tri";
+_j0._download /*String*/ ("https://router.project-osrm.org/trip/v1/driving/"+_preruta+"?source=first&destination=last&roundtrip=false&geometries=geojson");
+ //BA.debugLineNum = 346;BA.debugLine="Wait For (j0) JobDone(j0 As HttpJob)";
+parent.__c.WaitFor("jobdone", ba, this, (Object)(_j0));
+this.state = 72;
+return;
+case 72:
+//C
+this.state = 25;
+_j0 = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 347;BA.debugLine="If j0.Success Then";
+if (true) break;
+
+case 25:
+//if
+this.state = 38;
+if (_j0._success /*boolean*/ ) {
+this.state = 27;
+}else {
+this.state = 37;
+}if (true) break;
+
+case 27:
+//C
+this.state = 28;
+ //BA.debugLineNum = 348;BA.debugLine="Dim jp0 As JSONParser";
+_jp0 = new anywheresoftware.b4a.objects.collections.JSONParser();
+ //BA.debugLineNum = 349;BA.debugLine="jp0.Initialize(j0.GetString)";
+_jp0.Initialize(_j0._getstring /*String*/ ());
+ //BA.debugLineNum = 350;BA.debugLine="Dim m0 As Map = jp0.NextObject";
+_m0 = new anywheresoftware.b4a.objects.collections.Map();
+_m0 = _jp0.NextObject();
+ //BA.debugLineNum = 351;BA.debugLine="If m0.Get(\"code\") = \"Ok\" Then";
+if (true) break;
+
+case 28:
+//if
+this.state = 35;
+if ((_m0.Get((Object)("code"))).equals((Object)("Ok"))) {
+this.state = 30;
+}if (true) break;
+
+case 30:
+//C
+this.state = 31;
+ //BA.debugLineNum = 352;BA.debugLine="Dim puntos0 As List = m0.Get(\"waypoints\")";
+_puntos0 = new anywheresoftware.b4a.objects.collections.List();
+_puntos0 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m0.Get((Object)("waypoints"))));
+ //BA.debugLineNum = 353;BA.debugLine="Private esteWayPoint0 As Map";
+_estewaypoint0 = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 354;BA.debugLine="For p = 0 To puntos0.Size -1";
+if (true) break;
+
+case 31:
+//for
+this.state = 34;
+step47 = 1;
+limit47 = (int) (_puntos0.getSize()-1);
+_p = (int) (0) ;
+this.state = 73;
+if (true) break;
+
+case 73:
+//C
+this.state = 34;
+if ((step47 > 0 && _p <= limit47) || (step47 < 0 && _p >= limit47)) this.state = 33;
+if (true) break;
+
+case 74:
+//C
+this.state = 73;
+_p = ((int)(0 + _p + step47)) ;
+if (true) break;
+
+case 33:
+//C
+this.state = 74;
+ //BA.debugLineNum = 355;BA.debugLine="esteWayPoint0 = puntos0.Get(p)";
+_estewaypoint0 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_puntos0.Get(_p)));
+ //BA.debugLineNum = 358;BA.debugLine="esteWayPoint0.Remove(\"hint\")";
+_estewaypoint0.Remove((Object)("hint"));
+ //BA.debugLineNum = 359;BA.debugLine="esteWayPoint0.Remove(\"distance\")";
+_estewaypoint0.Remove((Object)("distance"));
+ //BA.debugLineNum = 360;BA.debugLine="esteWayPoint0.Remove(\"trips_index\")";
+_estewaypoint0.Remove((Object)("trips_index"));
+ //BA.debugLineNum = 361;BA.debugLine="listaWayPoints.Add(esteWayPoint0)";
+parent._listawaypoints.Add((Object)(_estewaypoint0.getObject()));
+ if (true) break;
+if (true) break;
+
+case 34:
+//C
+this.state = 35;
+;
+ //BA.debugLineNum = 364;BA.debugLine="Dim rutas0 As List = m0.Get(\"trips\")";
+_rutas0 = new anywheresoftware.b4a.objects.collections.List();
+_rutas0 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m0.Get((Object)("trips"))));
+ //BA.debugLineNum = 365;BA.debugLine="Dim rutas20 As Map = rutas0.Get(0)";
+_rutas20 = new anywheresoftware.b4a.objects.collections.Map();
+_rutas20 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_rutas0.Get((int) (0))));
+ //BA.debugLineNum = 368;BA.debugLine="distanciaTotal0 = rutas20.Get(\"distance\")";
+_distanciatotal0 = (double)(BA.ObjectToNumber(_rutas20.Get((Object)("distance"))));
+ //BA.debugLineNum = 369;BA.debugLine="tiempo0 = rutas20.Get(\"duration\")";
+_tiempo0 = (double)(BA.ObjectToNumber(_rutas20.Get((Object)("duration"))));
+ //BA.debugLineNum = 370;BA.debugLine="tiempo0 = ((tiempo0 * 2) ) 'Tiempo X 2 (es muy";
+_tiempo0 = ((_tiempo0*2));
+ //BA.debugLineNum = 371;BA.debugLine="Log($\"Distancia total ruta inicial: $1.1{dista";
+parent.__c.LogImpl("510747975",("Distancia total ruta inicial: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal0/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo0/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo0/(double)60/(double)60))+" hrs)"),0);
+ if (true) break;
+
+case 35:
+//C
+this.state = 38;
+;
+ if (true) break;
+
+case 37:
+//C
+this.state = 38;
+ //BA.debugLineNum = 375;BA.debugLine="Log(\"Error!\")";
+parent.__c.LogImpl("510747979","Error!",0);
+ if (true) break;
+
+case 38:
+//C
+this.state = 39;
+;
+ //BA.debugLineNum = 377;BA.debugLine="j0.Release";
+_j0._release /*String*/ ();
+ if (true) break;
+
+case 39:
+//C
+this.state = 40;
+;
+ //BA.debugLineNum = 380;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 381;BA.debugLine="j.Initialize(\"trip\", Me) 'Calculamos el resto de";
+_j._initialize /*String*/ (ba,"trip",parent);
+ //BA.debugLineNum = 382;BA.debugLine="j.Download(\"https://router.project-osrm.org/trip/";
+_j._download /*String*/ ("https://router.project-osrm.org/trip/v1/driving/"+_rutacompleta+"?source=first&destination=last&roundtrip=false&geometries=geojson");
+ //BA.debugLineNum = 384;BA.debugLine="Wait For (j) JobDone(j As HttpJob)";
+parent.__c.WaitFor("jobdone", ba, this, (Object)(_j));
+this.state = 75;
+return;
+case 75:
+//C
+this.state = 40;
+_j = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 385;BA.debugLine="If j.Success Then";
+if (true) break;
+
+case 40:
+//if
+this.state = 53;
+if (_j._success /*boolean*/ ) {
+this.state = 42;
+}else {
+this.state = 52;
+}if (true) break;
+
+case 42:
+//C
+this.state = 43;
+ //BA.debugLineNum = 386;BA.debugLine="Dim jp As JSONParser";
+_jp = new anywheresoftware.b4a.objects.collections.JSONParser();
+ //BA.debugLineNum = 387;BA.debugLine="jp.Initialize(j.GetString)";
+_jp.Initialize(_j._getstring /*String*/ ());
+ //BA.debugLineNum = 388;BA.debugLine="Dim m As Map = jp.NextObject";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+_m = _jp.NextObject();
+ //BA.debugLineNum = 389;BA.debugLine="If m.Get(\"code\") = \"Ok\" Then";
+if (true) break;
+
+case 43:
+//if
+this.state = 50;
+if ((_m.Get((Object)("code"))).equals((Object)("Ok"))) {
+this.state = 45;
+}if (true) break;
+
+case 45:
+//C
+this.state = 46;
+ //BA.debugLineNum = 390;BA.debugLine="Dim puntos As List = m.Get(\"waypoints\")";
+_puntos = new anywheresoftware.b4a.objects.collections.List();
+_puntos = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("waypoints"))));
+ //BA.debugLineNum = 391;BA.debugLine="Private esteWayPoint As Map";
+_estewaypoint = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 392;BA.debugLine="Dim twpi As Int";
+_twpi = 0;
+ //BA.debugLineNum = 393;BA.debugLine="For p = 0 To puntos.Size -1";
+if (true) break;
+
+case 46:
+//for
+this.state = 49;
+step78 = 1;
+limit78 = (int) (_puntos.getSize()-1);
+_p = (int) (0) ;
+this.state = 76;
+if (true) break;
+
+case 76:
+//C
+this.state = 49;
+if ((step78 > 0 && _p <= limit78) || (step78 < 0 && _p >= limit78)) this.state = 48;
+if (true) break;
+
+case 77:
+//C
+this.state = 76;
+_p = ((int)(0 + _p + step78)) ;
+if (true) break;
+
+case 48:
+//C
+this.state = 77;
+ //BA.debugLineNum = 394;BA.debugLine="esteWayPoint = puntos.Get(p)";
+_estewaypoint = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_puntos.Get(_p)));
+ //BA.debugLineNum = 397;BA.debugLine="esteWayPoint.Remove(\"hint\")";
+_estewaypoint.Remove((Object)("hint"));
+ //BA.debugLineNum = 398;BA.debugLine="esteWayPoint.Remove(\"distance\")";
+_estewaypoint.Remove((Object)("distance"));
+ //BA.debugLineNum = 399;BA.debugLine="esteWayPoint.Remove(\"trips_index\")";
+_estewaypoint.Remove((Object)("trips_index"));
+ //BA.debugLineNum = 400;BA.debugLine="twpi = esteWayPoint.Get(\"waypoint_index\")";
+_twpi = (int)(BA.ObjectToNumber(_estewaypoint.Get((Object)("waypoint_index"))));
+ //BA.debugLineNum = 401;BA.debugLine="esteWayPoint.Remove(\"waypoint_index\")";
+_estewaypoint.Remove((Object)("waypoint_index"));
+ //BA.debugLineNum = 402;BA.debugLine="esteWayPoint.Put(\"waypoint_index\", (twpi + cua";
+_estewaypoint.Put((Object)("waypoint_index"),(Object)((_twpi+_cuantosantes+2)));
+ //BA.debugLineNum = 403;BA.debugLine="listaWayPoints.Add(esteWayPoint)";
+parent._listawaypoints.Add((Object)(_estewaypoint.getObject()));
+ if (true) break;
+if (true) break;
+
+case 49:
+//C
+this.state = 50;
+;
+ //BA.debugLineNum = 406;BA.debugLine="Dim rutas As List = m.Get(\"trips\")";
+_rutas = new anywheresoftware.b4a.objects.collections.List();
+_rutas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("trips"))));
+ //BA.debugLineNum = 407;BA.debugLine="Dim rutas2 As Map = rutas.Get(0)";
+_rutas2 = new anywheresoftware.b4a.objects.collections.Map();
+_rutas2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_rutas.Get((int) (0))));
+ //BA.debugLineNum = 408;BA.debugLine="distanciaTotal = rutas2.Get(\"distance\")";
+_distanciatotal = (double)(BA.ObjectToNumber(_rutas2.Get((Object)("distance"))));
+ //BA.debugLineNum = 409;BA.debugLine="Log(\"distancia ruta 2:\" & (distanciaTotal) & \"|";
+parent.__c.LogImpl("510748013","distancia ruta 2:"+BA.NumberToString((_distanciatotal))+"|"+BA.ObjectToString(_rutas2.Get((Object)("distance"))),0);
+ //BA.debugLineNum = 410;BA.debugLine="distanciaTotal = distanciaTotal + distanciaTota";
+_distanciatotal = _distanciatotal+_distanciatotal0;
+ //BA.debugLineNum = 411;BA.debugLine="tiempo = rutas2.Get(\"duration\")";
+_tiempo = (double)(BA.ObjectToNumber(_rutas2.Get((Object)("duration"))));
+ //BA.debugLineNum = 412;BA.debugLine="tiempo = (((tiempo + tiempo0) * 2) + tiempoVisi";
+_tiempo = (((_tiempo+_tiempo0)*2)+_tiempovisitas);
+ //BA.debugLineNum = 413;BA.debugLine="Log($\"Distancia total: $1.1{distanciaTotal/1000";
+parent.__c.LogImpl("510748017",("Distancia total: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60/(double)60))+" hrs)"),0);
+ //BA.debugLineNum = 414;BA.debugLine="l_rutaInfo.Text = $\"Distancia: $1.1{distanciaTo";
+parent._l_rutainfo.setText(BA.ObjectToCharSequence(("Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60/(double)60))+" hrs"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Visitas restantes: "+parent.__c.SmartStringFormatter("",(Object)(_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()))+"")));
+ //BA.debugLineNum = 415;BA.debugLine="l_rutaInfo.Width = Root.Width * 0.9";
+parent._l_rutainfo.setWidth((int) (parent._root.getWidth()*0.9));
+ //BA.debugLineNum = 416;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)";
+parent._subs._centraetiqueta /*String*/ (ba,parent._l_rutainfo,parent._root.getWidth());
+ //BA.debugLineNum = 417;BA.debugLine="l_rutaInfo.Visible = True";
+parent._l_rutainfo.setVisible(parent.__c.True);
+ //BA.debugLineNum = 418;BA.debugLine="l_rutaInfo.BringToFront";
+parent._l_rutainfo.BringToFront();
+ //BA.debugLineNum = 419;BA.debugLine="ListView1.Top = lv1Top + 100";
+parent._listview1.setTop((int) ((double)(Double.parseDouble(parent._lv1top))+100));
+ if (true) break;
+
+case 50:
+//C
+this.state = 53;
+;
+ if (true) break;
+
+case 52:
+//C
+this.state = 53;
+ //BA.debugLineNum = 422;BA.debugLine="LogColor(\"**************** Error! ************";
+parent.__c.LogImpl("510748026","**************** Error! ******************",parent.__c.Colors.Red);
+ if (true) break;
+
+case 53:
+//C
+this.state = 54;
+;
+ //BA.debugLineNum = 424;BA.debugLine="j.Release";
+_j._release /*String*/ ();
+ //BA.debugLineNum = 425;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 427;BA.debugLine="Private r As Int = 1";
+_r = (int) (1);
+ //BA.debugLineNum = 428;BA.debugLine="Private r1, wps As Map";
+_r1 = new anywheresoftware.b4a.objects.collections.Map();
+_wps = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 429;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\"";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
+ //BA.debugLineNum = 430;BA.debugLine="Log(\"BORRAMOS WAYPOINTS\")";
+parent.__c.LogImpl("510748034","BORRAMOS WAYPOINTS",0);
+ //BA.debugLineNum = 431;BA.debugLine="For Each k As Object In clientesMapaO.Keys 'Guard";
+if (true) break;
+
+case 54:
+//for
+this.state = 61;
+group112 = parent._clientesmapao._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ();
+index112 = 0;
+groupLen112 = group112.getSize();
+this.state = 78;
+if (true) break;
+
+case 78:
+//C
+this.state = 61;
+if (index112 < groupLen112) {
+this.state = 56;
+_k = group112.Get(index112);}
+if (true) break;
+
+case 79:
+//C
+this.state = 78;
+index112++;
+if (true) break;
+
+case 56:
+//C
+this.state = 57;
+ //BA.debugLineNum = 432;BA.debugLine="If listaWayPoints.Size > 0 Then";
+if (true) break;
+
+case 57:
+//if
+this.state = 60;
+if (parent._listawaypoints.getSize()>0) {
+this.state = 59;
+}if (true) break;
+
+case 59:
+//C
+this.state = 60;
+ //BA.debugLineNum = 433;BA.debugLine="r1 = clientesMapaO.Get(k)";
+_r1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._clientesmapao._get /*Object*/ (_k)));
+ //BA.debugLineNum = 434;BA.debugLine="r1.Get(\"codigo\")";
+_r1.Get((Object)("codigo"));
+ //BA.debugLineNum = 435;BA.debugLine="Log(listaWayPoints.Get(r) & \"|\" & r1.Get(\"coord";
+parent.__c.LogImpl("510748039",BA.ObjectToString(parent._listawaypoints.Get(_r))+"|"+BA.ObjectToString(_r1.Get((Object)("coords")))+"|"+BA.ObjectToString(_r1.Get((Object)("calle"))),0);
+ //BA.debugLineNum = 436;BA.debugLine="wps = listaWayPoints.Get(r)";
+_wps = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._listawaypoints.Get(_r)));
+ //BA.debugLineNum = 437;BA.debugLine="Starter.skmt.ExecNonQuery($\"update kmt_info set";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update kmt_info set SECUENCIA = "+parent.__c.SmartStringFormatter("",_wps.Get((Object)("waypoint_index")))+" where CAT_CL_CODIGO = '"+parent.__c.SmartStringFormatter("",_r1.Get((Object)("codigo")))+"'"));
+ //BA.debugLineNum = 438;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into waypoin";
+parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into waypoints values (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_r1.Get((Object)("codigo")),_wps.Get((Object)("waypoint_index"))}));
+ //BA.debugLineNum = 439;BA.debugLine="r = r + 1";
+_r = (int) (_r+1);
+ if (true) break;
+
+case 60:
+//C
+this.state = 79;
+;
+ if (true) break;
+if (true) break;
+
+case 61:
+//C
+this.state = 62;
+;
+ //BA.debugLineNum = 442;BA.debugLine="ListView1.Clear";
+parent._listview1.Clear();
+ //BA.debugLineNum = 443;BA.debugLine="Sleep(100)";
+parent.__c.Sleep(ba,this,(int) (100));
+this.state = 80;
+return;
+case 80:
+//C
+this.state = 62;
+;
+ //BA.debugLineNum = 444;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 445;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = parent._listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 446;BA.debugLine="label2.TextSize = 15";
+_label2.setTextSize((float) (15));
+ //BA.debugLineNum = 447;BA.debugLine="label2.Height = 100dip";
+_label2.setHeight(parent.__c.DipToCurrent((int) (100)));
+ //BA.debugLineNum = 448;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 70dip";
+parent._listview1.getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (70)));
+ //BA.debugLineNum = 449;BA.debugLine="Dim cs, cs2 As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+_cs2 = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 450;BA.debugLine="entro = 3";
+parent._entro = BA.NumberToString(3);
+ //BA.debugLineNum = 451;BA.debugLine="Log(\"Generamos ListView1 en traeRutaDia\")";
+parent.__c.LogImpl("510748055","Generamos ListView1 en traeRutaDia",0);
+ //BA.debugLineNum = 453;BA.debugLine="c=Starter.skmt.ExecQuery(\"select codigo, indice,";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice")));
+ //BA.debugLineNum = 454;BA.debugLine="If c.RowCount > 0 Then";
+if (true) break;
+
+case 62:
+//if
+this.state = 69;
+if (parent._c.getRowCount()>0) {
+this.state = 64;
+}if (true) break;
+
+case 64:
+//C
+this.state = 65;
+ //BA.debugLineNum = 455;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listView";
+if (true) break;
+
+case 65:
+//for
+this.state = 68;
+step135 = 1;
+limit135 = (int) (parent._c.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 81;
+if (true) break;
+
+case 81:
+//C
+this.state = 68;
+if ((step135 > 0 && _i <= limit135) || (step135 < 0 && _i >= limit135)) this.state = 67;
+if (true) break;
+
+case 82:
+//C
+this.state = 81;
+_i = ((int)(0 + _i + step135)) ;
+if (true) break;
+
+case 67:
+//C
+this.state = 82;
+ //BA.debugLineNum = 456;BA.debugLine="c.Position=i";
+parent._c.setPosition(_i);
+ //BA.debugLineNum = 457;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 458;BA.debugLine="cs2.Initialize";
+_cs2.Initialize();
+ //BA.debugLineNum = 459;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100,1";
+parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_cs.Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(parent._c.GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE"))).Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE").trim()+" "+parent._c.GetString("CAT_CL_NOEXT"))).PopAll().getObject()));
+ if (true) break;
+if (true) break;
+
+case 68:
+//C
+this.state = 69;
+;
+ if (true) break;
+
+case 69:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 462;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 463;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public reparto_izca.keymon.lat.b4xorderedmap _traetodosavisitar() throws Exception{
+anywheresoftware.b4a.gps.LocationWrapper _thisloc = null;
+anywheresoftware.b4a.gps.LocationWrapper _ubicacioninicial = null;
+int _i = 0;
+int _j = 0;
+int _distancia = 0;
+anywheresoftware.b4a.objects.collections.Map _estecliente = null;
+ //BA.debugLineNum = 515;BA.debugLine="Sub traeTodosAVisitar As B4XOrderedMap 'ignore";
+ //BA.debugLineNum = 516;BA.debugLine="Log(\"Iniciamos traeTodosAVisitar\")";
+__c.LogImpl("510878977","Iniciamos traeTodosAVisitar",0);
+ //BA.debugLineNum = 519;BA.debugLine="Private thisLoc, ubicacionInicial As Location";
+_thisloc = new anywheresoftware.b4a.gps.LocationWrapper();
+_ubicacioninicial = new anywheresoftware.b4a.gps.LocationWrapper();
+ //BA.debugLineNum = 520;BA.debugLine="ubicacionInicial = Starter.cedisLocation";
+_ubicacioninicial = _starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ ;
+ //BA.debugLineNum = 521;BA.debugLine="LogColor(ubicacionInicial, Colors.Gray)";
+__c.LogImpl("510878982",BA.ObjectToString(_ubicacioninicial),__c.Colors.Gray);
+ //BA.debugLineNum = 522;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(gestion) as";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(gestion) as hayVisitados from kmt_info")));
+ //BA.debugLineNum = 523;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 524;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 526;BA.debugLine="If c.GetString(\"hayVisitados\") > 0 Then ubicacio";
+if ((double)(Double.parseDouble(_c.GetString("hayVisitados")))>0) {
+_ubicacioninicial = _tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ ;};
+ };
+ //BA.debugLineNum = 528;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 529;BA.debugLine="LogColor(ubicacionInicial, Colors.Red)";
+__c.LogImpl("510878990",BA.ObjectToString(_ubicacioninicial),__c.Colors.Red);
+ //BA.debugLineNum = 530;BA.debugLine="thisLoc.Initialize";
+_thisloc.Initialize();
+ //BA.debugLineNum = 531;BA.debugLine="clientesMapaO.Clear";
+_clientesmapao._clear /*String*/ ();
+ //BA.debugLineNum = 533;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA, cou";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc")));
+ //BA.debugLineNum = 534;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 536;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step16 = 1;
+final int limit16 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit16 ;_i = _i + step16 ) {
+ //BA.debugLineNum = 537;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 539;BA.debugLine="c2=Starter.skmt.ExecQuery2(\"select CAT_CL_NOMB";
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ",new String[]{_c.GetString("CAT_CL_RUTA")})));
+ //BA.debugLineNum = 540;BA.debugLine="If c2.RowCount>0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 541;BA.debugLine="For j=0 To c2.RowCount -1 'Generamos lista de";
+{
+final int step20 = 1;
+final int limit20 = (int) (_c2.getRowCount()-1);
+_j = (int) (0) ;
+for (;_j <= limit20 ;_j = _j + step20 ) {
+ //BA.debugLineNum = 542;BA.debugLine="c2.Position=j";
+_c2.setPosition(_j);
+ //BA.debugLineNum = 544;BA.debugLine="thisLoc.Latitude = c2.GetString(\"CAT_CL_LAT\")";
+_thisloc.setLatitude((double)(Double.parseDouble(_c2.GetString("CAT_CL_LAT"))));
+ //BA.debugLineNum = 545;BA.debugLine="thisLoc.Longitude = c2.GetString(\"CAT_CL_LONG";
+_thisloc.setLongitude((double)(Double.parseDouble(_c2.GetString("CAT_CL_LONG"))));
+ //BA.debugLineNum = 546;BA.debugLine="If Not(thisLoc.Latitude = 0.0) And Not(thisLo";
+if (__c.Not(_thisloc.getLatitude()==0.0) && __c.Not(_thisloc.getLatitude()==0)) {
+ //BA.debugLineNum = 547;BA.debugLine="Private distancia As Int = ubicacionInicial.";
+_distancia = (int) (_ubicacioninicial.DistanceTo((android.location.Location)(_thisloc.getObject())));
+ //BA.debugLineNum = 548;BA.debugLine="If clientesMapaO.ContainsKey(distancia) Then";
+if (_clientesmapao._containskey /*boolean*/ ((Object)(_distancia))) {
+_distancia = (int) (_distancia+1);};
+ //BA.debugLineNum = 549;BA.debugLine="Private esteCliente As Map = CreateMap(\"dist";
+_estecliente = new anywheresoftware.b4a.objects.collections.Map();
+_estecliente = __c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia),(Object)("ordenDist"),(Object)(_j),(Object)("coords"),(Object)(_c2.GetString("CAT_CL_LONG")+","+_c2.GetString("CAT_CL_LAT")),(Object)("codigo"),(Object)(_c2.GetString("CAT_CL_CODIGO")),(Object)("nombre"),(Object)(_c2.GetString("CAT_CL_NOMBRE")),(Object)("calle"),(Object)(_c2.GetString("CAT_CL_CALLE"))});
+ //BA.debugLineNum = 550;BA.debugLine="clientesMapaO.Put(distancia, esteCliente)";
+_clientesmapao._put /*String*/ ((Object)(_distancia),(Object)(_estecliente.getObject()));
+ }else {
+ //BA.debugLineNum = 552;BA.debugLine="ToastMessageShow(\"Hay tiendas SIN coordenada";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Hay tiendas SIN coordenadas, fueron excluidas!!"),__c.False);
+ };
+ }
+};
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 560;BA.debugLine="clientesMapaO.Keys.Sort(True) 'Ordenamos la lista";
+_clientesmapao._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().Sort(__c.True);
+ //BA.debugLineNum = 561;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 562;BA.debugLine="c2.Close";
+_c2.Close();
+ //BA.debugLineNum = 563;BA.debugLine="Log(c.RowCount & \" rutas, \" & clientesMapaO.Size";
+__c.LogImpl("510879024",BA.NumberToString(_c.getRowCount())+" rutas, "+BA.NumberToString(_clientesmapao._getsize /*int*/ ())+" clientes",0);
+ //BA.debugLineNum = 566;BA.debugLine="Return clientesMapaO";
+if (true) return _clientesmapao;
+ //BA.debugLineNum = 567;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_detalle_promo.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalle_promo.java
new file mode 100644
index 0000000..d8ec412
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalle_promo.java
@@ -0,0 +1,245 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_detalle_promo extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_detalle_promo");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_detalle_promo.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _regresar = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _b = null;
+public String _regalo = "";
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _borra = null;
+public String _existe = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public boolean _activity_keypress(int _key) throws Exception{
+ //BA.debugLineNum = 96;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean";
+ //BA.debugLineNum = 98;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then";
+if (_key==__c.KeyCodes.KEYCODE_BACK) {
+ //BA.debugLineNum = 101;BA.debugLine="B4XPages.ShowPage(\"\")";
+_b4xpages._showpage /*String*/ (ba,"");
+ };
+ //BA.debugLineNum = 105;BA.debugLine="Return False";
+if (true) return __c.False;
+ //BA.debugLineNum = 106;BA.debugLine="End Sub";
+return false;
+}
+public String _activity_pause(boolean _userclosed) throws Exception{
+ //BA.debugLineNum = 87;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
+ //BA.debugLineNum = 89;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+ //BA.debugLineNum = 56;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 57;BA.debugLine="Starter.skmt.Initialize(Starter.ruta,\"kmt.db\", Tr";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_starter._ruta /*String*/ ,"kmt.db",__c.True);
+ //BA.debugLineNum = 58;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_DP_IDPROD, C";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)")));
+ //BA.debugLineNum = 59;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 60;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 61;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 62;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step6 = 1;
+final int limit6 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit6 ;_i = _i + step6 ) {
+ //BA.debugLineNum = 63;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 64;BA.debugLine="b=Starter.skmt.ExecQuery2(\"select CAT_GP_NOMBRE";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?",new String[]{_c.GetString("CAT_DP_IDPROD")})));
+ //BA.debugLineNum = 65;BA.debugLine="B.Position =0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 66;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 67;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 68;BA.debugLine="label1.TextSize = 10";
+_label1.setTextSize((float) (10));
+ //BA.debugLineNum = 69;BA.debugLine="label1.TextColor = Colors.White";
+_label1.setTextColor(__c.Colors.White);
+ //BA.debugLineNum = 70;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 71;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 72;BA.debugLine="label2.TextSize = 10";
+_label2.setTextSize((float) (10));
+ //BA.debugLineNum = 73;BA.debugLine="label2.TextColor = Colors.White";
+_label2.setTextColor(__c.Colors.White);
+ //BA.debugLineNum = 74;BA.debugLine="If c.GetString(\"CAT_DP_PRECIO\") = 0 Then";
+if ((_c.GetString("CAT_DP_PRECIO")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 75;BA.debugLine="regalo = \"SI\"";
+_regalo = "SI";
+ }else {
+ //BA.debugLineNum = 77;BA.debugLine="regalo = \"NO\"";
+_regalo = "NO";
+ };
+ //BA.debugLineNum = 79;BA.debugLine="ListView1.AddTwoLines(B.GetString(\"CAT_GP_NOMBR";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_b.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("Cantidad # "+_c.GetString("CAT_DP_PZAS")+" REGALO "+_regalo));
+ //BA.debugLineNum = 80;BA.debugLine="b.Close";
+_b.Close();
+ }
+};
+ //BA.debugLineNum = 82;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 85;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+ //BA.debugLineNum = 22;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 23;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 25;BA.debugLine="Root.LoadLayout(\"detalle_promo\")";
+_root.LoadLayout("detalle_promo",ba);
+ //BA.debugLineNum = 26;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_DP_IDPROD, C";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)")));
+ //BA.debugLineNum = 27;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 28;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 29;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 30;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step7 = 1;
+final int limit7 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit7 ;_i = _i + step7 ) {
+ //BA.debugLineNum = 31;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 32;BA.debugLine="b=Starter.skmt.ExecQuery2(\"select CAT_GP_NOMBRE";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?",new String[]{_c.GetString("CAT_DP_IDPROD")})));
+ //BA.debugLineNum = 33;BA.debugLine="B.Position =0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 34;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 35;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 36;BA.debugLine="label1.TextSize = 10";
+_label1.setTextSize((float) (10));
+ //BA.debugLineNum = 37;BA.debugLine="label1.TextColor = Colors.White";
+_label1.setTextColor(__c.Colors.White);
+ //BA.debugLineNum = 38;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 40;BA.debugLine="label2.TextSize = 10";
+_label2.setTextSize((float) (10));
+ //BA.debugLineNum = 41;BA.debugLine="label2.TextColor = Colors.White";
+_label2.setTextColor(__c.Colors.White);
+ //BA.debugLineNum = 42;BA.debugLine="If c.GetString(\"CAT_DP_PRECIO\") = 0 Then";
+if ((_c.GetString("CAT_DP_PRECIO")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 43;BA.debugLine="regalo = \"SI\"";
+_regalo = "SI";
+ }else {
+ //BA.debugLineNum = 45;BA.debugLine="regalo = \"NO\"";
+_regalo = "NO";
+ };
+ //BA.debugLineNum = 47;BA.debugLine="ListView1.AddTwoLines(B.GetString(\"CAT_GP_NOMBR";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_b.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("Cantidad # "+_c.GetString("CAT_DP_PZAS")+" REGALO "+_regalo));
+ //BA.debugLineNum = 48;BA.debugLine="b.Close";
+_b.Close();
+ }
+};
+ //BA.debugLineNum = 50;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 6;BA.debugLine="Dim Regresar As Button";
+_regresar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 7;BA.debugLine="Dim b As Cursor";
+_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="Dim regalo As String";
+_regalo = "";
+ //BA.debugLineNum = 9;BA.debugLine="Dim ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim L_CANT As Label";
+_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Dim L_TOTAL As Label";
+_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim borra As Button";
+_borra = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Dim Existe As String";
+_existe = "";
+ //BA.debugLineNum = 14;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 17;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 18;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 19;BA.debugLine="End Sub";
+return null;
+}
+public String _regresar_click() throws Exception{
+ //BA.debugLineNum = 91;BA.debugLine="Sub Regresar_Click";
+ //BA.debugLineNum = 93;BA.debugLine="B4XPages.ShowPage(\"\")";
+_b4xpages._showpage /*String*/ (ba,"");
+ //BA.debugLineNum = 94;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_detalleventa.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalleventa.java
new file mode 100644
index 0000000..de3042b
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalleventa.java
@@ -0,0 +1,1386 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_detalleventa extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_detalleventa");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_detalleventa.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.gps.GPS _g = null;
+public String _clie_id = "";
+public String _sdate = "";
+public String _stime = "";
+public String _usuario = "";
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_regresar = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_borra = null;
+public String _existe = "";
+public String _result = "";
+public String _cuantos = "";
+public String _nombre_prod = "";
+public String _cuantos_pedido = "";
+public anywheresoftware.b4a.objects.LabelWrapper _titulo = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p1 = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _lv2 = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public b4a.example3.customlistview _clv_pedido = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null;
+public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
+public boolean _etcanthasfocus = false;
+public int _totalprods = 0;
+public int _totalcompra = 0;
+public anywheresoftware.b4a.objects.collections.Map _prodsmap = null;
+public boolean _reconstruirpedido = false;
+public String _promoaborrar = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_guardar = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenosc = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_pcantc = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_pcantc = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmasc = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmenc = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmen = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cajas = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_piezas = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_guardar_click() throws Exception{
+ //BA.debugLineNum = 915;BA.debugLine="Private Sub b_guardar_Click";
+ //BA.debugLineNum = 917;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmas_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _maxprods = "";
+String _minimoadesc = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+ //BA.debugLineNum = 650;BA.debugLine="Sub b_prodMas_Click";
+ //BA.debugLineNum = 651;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 653;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
+__c.LogImpl("512517379","b_prodMas_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 654;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 655;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 656;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 657;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
+_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 661;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
+ //BA.debugLineNum = 662;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
+__c.LogImpl("512517388","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 663;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 665;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4";
+_maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))));
+ //BA.debugLineNum = 667;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
+__c.LogImpl("512517393",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
+ //BA.debugLineNum = 670;BA.debugLine="Private minimoadesc As String";
+_minimoadesc = "";
+ //BA.debugLineNum = 671;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
+_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 672;BA.debugLine="If minimos.RowCount > 0 Then";
+if (_minimos.getRowCount()>0) {
+ //BA.debugLineNum = 673;BA.debugLine="minimos.Position = 0";
+_minimos.setPosition((int) (0));
+ //BA.debugLineNum = 674;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
+_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA");
+ }else {
+ //BA.debugLineNum = 676;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ };
+ //BA.debugLineNum = 678;BA.debugLine="minimos.Close";
+_minimos.Close();
+ //BA.debugLineNum = 680;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ //BA.debugLineNum = 681;BA.debugLine="If esteTag.Get(7) <> \"1\" Then";
+if ((_estetag.Get((int) (7))).equals((Object)("1")) == false) {
+ //BA.debugLineNum = 684;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then";
+if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) {
+ //BA.debugLineNum = 686;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
+if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
+ //BA.debugLineNum = 687;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
+__c.LogImpl("512517413",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
+ //BA.debugLineNum = 688;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
+ //BA.debugLineNum = 689;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))}));
+ //BA.debugLineNum = 692;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"') WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ //BA.debugLineNum = 694;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
+_subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))));
+ //BA.debugLineNum = 699;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ }else {
+ //BA.debugLineNum = 703;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
+if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
+ //BA.debugLineNum = 704;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
+__c.LogImpl("512517430",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
+ //BA.debugLineNum = 705;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
+ //BA.debugLineNum = 706;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}));
+ //BA.debugLineNum = 707;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PED";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))})));
+ //BA.debugLineNum = 708;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 709;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 710;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 711;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 713;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ };
+ }else {
+ //BA.debugLineNum = 716;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 717;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 718;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 720;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO) VALUES (?,?,?,?,?,?,?,0,0,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("CAT_GP_NOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),_c2.GetString("CAT_GP_PRECIO"),_c2.GetString("CAT_GP_PRECIO"),BA.ObjectToString(_estetag.Get((int) (8)))}));
+ };
+ };
+ //BA.debugLineNum = 725;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
+_subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))));
+ //BA.debugLineNum = 730;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ };
+ };
+ //BA.debugLineNum = 749;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmasc_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _maxprods = "";
+ //BA.debugLineNum = 928;BA.debugLine="Private Sub b_prodMasC_Click";
+ //BA.debugLineNum = 929;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 931;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
+__c.LogImpl("512845059","b_prodMas_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 932;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 933;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 934;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 935;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
+_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
+ //BA.debugLineNum = 939;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
+ //BA.debugLineNum = 940;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta";
+__c.LogImpl("512845068","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 941;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
+if ((_lacantc.getText()).equals("")) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 943;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es";
+_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))));
+ //BA.debugLineNum = 944;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)";
+__c.LogImpl("512845072",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red);
+ //BA.debugLineNum = 945;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)";
+__c.LogImpl("512845073",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red);
+ //BA.debugLineNum = 946;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
+__c.LogImpl("512845074",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
+ //BA.debugLineNum = 948;BA.debugLine="Log(maxProds)";
+__c.LogImpl("512845076",_maxprods,0);
+ //BA.debugLineNum = 951;BA.debugLine="If esteTag.Get(7) <> \"1\" Then";
+if ((_estetag.Get((int) (7))).equals((Object)("1")) == false) {
+ //BA.debugLineNum = 954;BA.debugLine="If laCantc.Text + 1 <= maxProds Then";
+if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
+ //BA.debugLineNum = 955;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)";
+__c.LogImpl("512845083",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0);
+ //BA.debugLineNum = 956;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$";
+_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+"")));
+ //BA.debugLineNum = 958;BA.debugLine="Log(laCantc.Text)";
+__c.LogImpl("512845086",_lacantc.getText(),0);
+ //BA.debugLineNum = 959;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * "+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+") WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ //BA.debugLineNum = 967;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ };
+ //BA.debugLineNum = 970;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmenos_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _minimoadesc = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+float _preciou = 0f;
+ //BA.debugLineNum = 506;BA.debugLine="Sub b_prodMenos_Click";
+ //BA.debugLineNum = 507;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 508;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
+__c.LogImpl("512451842","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
+ //BA.debugLineNum = 509;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
+__c.LogImpl("512451843","b_prodMenos_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 510;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 511;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 512;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 513;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
+_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 515;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
+ //BA.debugLineNum = 516;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
+__c.LogImpl("512451850","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 517;BA.debugLine="Private minimoadesc As String";
+_minimoadesc = "";
+ //BA.debugLineNum = 518;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
+_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 519;BA.debugLine="If minimos.RowCount > 0 Then";
+if (_minimos.getRowCount()>0) {
+ //BA.debugLineNum = 520;BA.debugLine="minimos.Position = 0";
+_minimos.setPosition((int) (0));
+ //BA.debugLineNum = 521;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
+_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA");
+ }else {
+ //BA.debugLineNum = 523;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ };
+ //BA.debugLineNum = 525;BA.debugLine="minimos.Close";
+_minimos.Close();
+ //BA.debugLineNum = 527;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ //BA.debugLineNum = 528;BA.debugLine="If esteTag.Get(7) = \"1\" Then";
+if ((_estetag.Get((int) (7))).equals((Object)("1"))) {
+ //BA.debugLineNum = 529;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 530;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+"")));
+ //BA.debugLineNum = 531;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
+if ((double)(Double.parseDouble(_lacant.getText()))<0) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 532;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))})));
+ //BA.debugLineNum = 533;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 534;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 535;BA.debugLine="If c3.GetString(\"PE_CANT\") > minimoadesc Then";
+if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>(double)(Double.parseDouble(_minimoadesc))) {
+ //BA.debugLineNum = 536;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 537;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 538;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 540;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) and CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ };
+ }else if((_c3.GetString("PE_CANT")).equals(_minimoadesc)) {
+ //BA.debugLineNum = 543;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 544;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 545;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 548;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ };
+ };
+ };
+ //BA.debugLineNum = 555;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ }else {
+ //BA.debugLineNum = 558;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then";
+if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) {
+ //BA.debugLineNum = 559;BA.debugLine="If laCant.Text > 0 Then";
+if ((double)(Double.parseDouble(_lacant.getText()))>0) {
+ //BA.debugLineNum = 560;BA.debugLine="If esteTag.Get(3) <> Subs.traeAlmacen Then 'Si";
+if ((_estetag.Get((int) (3))).equals((Object)(_subs._traealmacen /*String*/ (ba))) == false) {
+ //BA.debugLineNum = 561;BA.debugLine="Private c2 As Cursor =Starter.skmt.ExecQuery(";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' AND HVD_CLIENTE IN (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"))));
+ //BA.debugLineNum = 562;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 563;BA.debugLine="If c2.GetString(\"HVD_RECHAZO\") = \"0\" Then";
+if ((_c2.GetString("HVD_RECHAZO")).equals("0")) {
+ //BA.debugLineNum = 566;BA.debugLine="Log(\"ES PROMO\")";
+__c.LogImpl("512451900","ES PROMO",0);
+ //BA.debugLineNum = 567;BA.debugLine="Log(esteTag.Get(3))";
+__c.LogImpl("512451901",BA.ObjectToString(_estetag.Get((int) (3))),0);
+ //BA.debugLineNum = 568;BA.debugLine="result = Msgbox2(\"Si se modifica una promoc";
+_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
+ //BA.debugLineNum = 569;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Qu";
+if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
+ //BA.debugLineNum = 570;BA.debugLine="prodsMap.Remove(esteTag.Get(3))";
+_prodsmap.Remove(_estetag.Get((int) (3)));
+ //BA.debugLineNum = 574;BA.debugLine="LogColor(esteTag.Get(3),Colors.Blue)";
+__c.LogImpl("512451908",BA.ObjectToString(_estetag.Get((int) (3))),__c.Colors.Blue);
+ //BA.debugLineNum = 577;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
+ //BA.debugLineNum = 578;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
+ //BA.debugLineNum = 581;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 582;BA.debugLine="LogColor(prodsMap, Colors.red)";
+__c.LogImpl("512451916",BA.ObjectToString(_prodsmap),__c.Colors.Red);
+ //BA.debugLineNum = 583;BA.debugLine="reconstruirPedido = True";
+_reconstruirpedido = __c.True;
+ //BA.debugLineNum = 584;BA.debugLine="promoABorrar = esteTag.Get(3)";
+_promoaborrar = BA.ObjectToString(_estetag.Get((int) (3)));
+ //BA.debugLineNum = 585;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ }else {
+ //BA.debugLineNum = 588;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 589;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+"")));
+ //BA.debugLineNum = 590;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
+if ((double)(Double.parseDouble(_lacant.getText()))<0) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 591;BA.debugLine="Log(\"NO ES promo\")";
+__c.LogImpl("512451925","NO ES promo",0);
+ //BA.debugLineNum = 592;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"') WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ //BA.debugLineNum = 593;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunap";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))}));
+ //BA.debugLineNum = 594;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ }else {
+ //BA.debugLineNum = 597;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 598;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+"")));
+ //BA.debugLineNum = 599;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
+if ((double)(Double.parseDouble(_lacant.getText()))<0) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 600;BA.debugLine="Log(\"NO ES promo\")";
+__c.LogImpl("512451934","NO ES promo",0);
+ //BA.debugLineNum = 601;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), BCAJAS = 0, CANTC = 0 WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ //BA.debugLineNum = 602;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapr";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))}));
+ //BA.debugLineNum = 603;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ };
+ }else {
+ //BA.debugLineNum = 608;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 609;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+"")));
+ //BA.debugLineNum = 610;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
+if ((double)(Double.parseDouble(_lacant.getText()))<0) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 611;BA.debugLine="Log(\"NO ES promo\")";
+__c.LogImpl("512451945","NO ES promo",0);
+ //BA.debugLineNum = 616;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))})));
+ //BA.debugLineNum = 617;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 618;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 619;BA.debugLine="If c3.GetString(\"PE_CANT\") > 1 Then";
+if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>1) {
+ //BA.debugLineNum = 620;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 621;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 622;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 623;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ };
+ }else if((_c3.GetString("PE_CANT")).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 626;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 627;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 628;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 629;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ };
+ };
+ };
+ //BA.debugLineNum = 633;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ };
+ //BA.debugLineNum = 636;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
+_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
+ //BA.debugLineNum = 637;BA.debugLine="Log(\"PU: \" & preciou)";
+__c.LogImpl("512451971","PU: "+BA.NumberToString(_preciou),0);
+ //BA.debugLineNum = 648;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmenosc_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+float _preciou = 0f;
+ //BA.debugLineNum = 972;BA.debugLine="Private Sub b_prodMenosC_Click";
+ //BA.debugLineNum = 973;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 974;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
+__c.LogImpl("512910594","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
+ //BA.debugLineNum = 975;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
+__c.LogImpl("512910595","b_prodMenos_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 976;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 977;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 978;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 979;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
+_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
+ //BA.debugLineNum = 981;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
+ //BA.debugLineNum = 982;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get";
+__c.LogImpl("512910602","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 983;BA.debugLine="Log(esteTag)";
+__c.LogImpl("512910603",BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 985;BA.debugLine="If esteTag.Get(7) = \"1\" Then";
+if ((_estetag.Get((int) (7))).equals((Object)("1"))) {
+ //BA.debugLineNum = 986;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS, CONSECUTIVO FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))})));
+ //BA.debugLineNum = 987;BA.debugLine="Log(c3.RowCount)";
+__c.LogImpl("512910607",BA.NumberToString(_c3.getRowCount()),0);
+ //BA.debugLineNum = 988;BA.debugLine="Log(esteTag.Get(8))";
+__c.LogImpl("512910608",BA.ObjectToString(_estetag.Get((int) (8))),0);
+ //BA.debugLineNum = 989;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 990;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")";
+__c.LogImpl("512910610","AQUI VEMOS SI ACTUALIZAMOS",0);
+ //BA.debugLineNum = 991;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 992;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
+if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) {
+ //BA.debugLineNum = 993;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c3.GetString("CONSECUTIVO")))+"'"));
+ }else if((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 995;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c3.GetString("CONSECUTIVO")))+"'"));
+ };
+ };
+ //BA.debugLineNum = 998;BA.debugLine="Log(\"entre al if o algo asi \")";
+__c.LogImpl("512910618","entre al if o algo asi ",0);
+ //BA.debugLineNum = 999;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
+if ((_lacantc.getText()).equals("")) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 1000;BA.debugLine="laCantc.Text = laCantc.Text - 1";
+_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1));
+ //BA.debugLineNum = 1001;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
+if ((double)(Double.parseDouble(_lacantc.getText()))<0) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 1002;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ }else {
+ //BA.debugLineNum = 1007;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then";
+if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) {
+ //BA.debugLineNum = 1009;BA.debugLine="If laCantc.Text > 0 Then";
+if ((double)(Double.parseDouble(_lacantc.getText()))>0) {
+ //BA.debugLineNum = 1010;BA.debugLine="Log(\"entre al if o algo asi \")";
+__c.LogImpl("512910630","entre al if o algo asi ",0);
+ //BA.debugLineNum = 1011;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
+if ((_lacantc.getText()).equals("")) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 1012;BA.debugLine="laCantc.Text = laCantc.Text - 1";
+_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1));
+ //BA.debugLineNum = 1013;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
+if ((double)(Double.parseDouble(_lacantc.getText()))<0) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 1014;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = (IFNULL(HVD_RECHAZOCANT,0) +(1 * "+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+")) WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ //BA.debugLineNum = 1015;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = (cat_gp_almacen + (1 * ?)) where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2)),(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))))}));
+ //BA.debugLineNum = 1016;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ }else if((_lacantc.getText()).equals(BA.NumberToString(0))) {
+ };
+ }else {
+ //BA.debugLineNum = 1023;BA.debugLine="If laCantc.Text > 0 Then";
+if ((double)(Double.parseDouble(_lacantc.getText()))>0) {
+ //BA.debugLineNum = 1026;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))})));
+ //BA.debugLineNum = 1027;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 1028;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")";
+__c.LogImpl("512910648","AQUI VEMOS SI ACTUALIZAMOS",0);
+ //BA.debugLineNum = 1029;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 1030;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
+if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) {
+ //BA.debugLineNum = 1031;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ }else if((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1033;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
+ };
+ };
+ //BA.debugLineNum = 1036;BA.debugLine="Log(\"entre al if o algo asi \")";
+__c.LogImpl("512910656","entre al if o algo asi ",0);
+ //BA.debugLineNum = 1037;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
+if ((_lacantc.getText()).equals("")) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 1038;BA.debugLine="laCantc.Text = laCantc.Text - 1";
+_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1));
+ //BA.debugLineNum = 1039;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
+if ((double)(Double.parseDouble(_lacantc.getText()))<0) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 1040;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ }else if((_lacantc.getText()).equals(BA.NumberToString(0))) {
+ };
+ };
+ };
+ //BA.debugLineNum = 1048;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
+_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
+ //BA.debugLineNum = 1049;BA.debugLine="Log(\"PU: \" & preciou)";
+__c.LogImpl("512910669","PU: "+BA.NumberToString(_preciou),0);
+ //BA.debugLineNum = 1050;BA.debugLine="End Sub";
+return "";
+}
+public String _b_regresar_click() throws Exception{
+ //BA.debugLineNum = 317;BA.debugLine="Sub b_regresar_Click";
+ //BA.debugLineNum = 318;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 319;BA.debugLine="End Sub";
+return "";
+}
+public String _b_revversar_click() throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+ //BA.debugLineNum = 1056;BA.debugLine="Private Sub b_revversar_Click";
+ //BA.debugLineNum = 1057;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery(\"SE";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 1058;BA.debugLine="If c3.RowCount = 0 Then";
+if (_c3.getRowCount()==0) {
+ //BA.debugLineNum = 1059;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS s";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)"));
+ //BA.debugLineNum = 1060;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ }else {
+ //BA.debugLineNum = 1062;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendieron,";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ //BA.debugLineNum = 1066;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null;
+int _cantres = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _oc = null;
+int _cant2 = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+int _bgcolor = 0;
+int _textcolor = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
+String _cuenta = "";
+String _arti = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc2 = null;
+String _cuenta1 = "";
+String _arti1 = "";
+float _preu = 0f;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc3 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc4 = null;
+String _cuenta2 = "";
+String _arti2 = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
+String _cuenta3 = "";
+String _arti3 = "";
+ //BA.debugLineNum = 68;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 69;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth());
+ //BA.debugLineNum = 73;BA.debugLine="L_CANT.Text =\"\"";
+_l_cant.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 74;BA.debugLine="L_TOTAL.Text=\"\"";
+_l_total.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 75;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")));
+ //BA.debugLineNum = 76;BA.debugLine="C.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 77;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
+_existe = _c.GetString("EXISTE");
+ //BA.debugLineNum = 78;BA.debugLine="C.Close";
+_c.Close();
+ //BA.debugLineNum = 80;BA.debugLine="c=Starter.skmt.ExecQuery(\"select hvd_num_registro";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select hvd_num_registro,CONSECUTIVO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO, BCAJAS, CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_rechazo <> 2 and hvd_cant > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 81;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 82;BA.debugLine="clv_pedido.Clear";
+_clv_pedido._clear();
+ //BA.debugLineNum = 83;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 84;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6";
+_clv_pedido._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (_root.getWidth()-50),(int) (_root.getHeight()*0.62));
+ //BA.debugLineNum = 85;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,";
+_clv_pedido._base_resize(_clv_pedido._getbase().getWidth(),_clv_pedido._getbase().getHeight());
+ //BA.debugLineNum = 87;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 90;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step15 = 1;
+final int limit15 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit15 ;_i = _i + step15 ) {
+ //BA.debugLineNum = 91;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 93;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($";
+_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 94;BA.debugLine="If c4.RowCount > 0 Then";
+if (_c4.getRowCount()>0) {
+ //BA.debugLineNum = 95;BA.debugLine="c4.Position = 0";
+_c4.setPosition((int) (0));
+ //BA.debugLineNum = 96;BA.debugLine="Private cantres As Int = c4.GetString(\"PE_CANT";
+_cantres = (int)(Double.parseDouble(_c4.GetString("PE_CANT")));
+ }else {
+ //BA.debugLineNum = 98;BA.debugLine="cantres = 0";
+_cantres = (int) (0);
+ };
+ //BA.debugLineNum = 101;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then";
+if ((_c.GetString("BCAJAS")).equals("0")) {
+ //BA.debugLineNum = 102;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD";
+if ((_c.GetString("HVD_CANT")).equals(_c.GetString("HVD_RECHAZOCANT")) == false) {
+ //BA.debugLineNum = 104;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery";
+_oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'"))));
+ //BA.debugLineNum = 105;BA.debugLine="Private cant2 As Int = 0";
+_cant2 = (int) (0);
+ //BA.debugLineNum = 106;BA.debugLine="If oc.RowCount > 0 Then";
+if (_oc.getRowCount()>0) {
+ //BA.debugLineNum = 107;BA.debugLine="oc.Position = 0";
+_oc.setPosition((int) (0));
+ //BA.debugLineNum = 108;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
+_cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT")));
+ };
+ //BA.debugLineNum = 110;BA.debugLine="oc.Close";
+_oc.Close();
+ //BA.debugLineNum = 111;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 112;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 113;BA.debugLine="label1.TextSize = 12";
+_label1.setTextSize((float) (12));
+ //BA.debugLineNum = 114;BA.debugLine="label1.TextColor = Colors.black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 115;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 116;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 117;BA.debugLine="label2.TextSize = 12";
+_label2.setTextSize((float) (12));
+ //BA.debugLineNum = 118;BA.debugLine="label2.TextColor = Colors.black";
+_label2.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 119;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 120;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
+_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
+ //BA.debugLineNum = 121;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 122;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl";
+if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) {
+ //BA.debugLineNum = 124;BA.debugLine="bgColor = Colors.White";
+_bgcolor = __c.Colors.White;
+ };
+ //BA.debugLineNum = 128;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int) (((double)(Double.parseDouble(_c.GetString("HVD_CANT")))-(double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT"))))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-_cantres),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba),_subs._traecliente /*String*/ (ba),BA.NumberToString(0),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ };
+ }else if((_c.GetString("BCAJAS")).equals("1")) {
+ //BA.debugLineNum = 132;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD";
+if ((_c.GetString("HVD_CANT")).equals(_c.GetString("HVD_RECHAZOCANT")) == false) {
+ //BA.debugLineNum = 134;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery";
+_oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'"))));
+ //BA.debugLineNum = 135;BA.debugLine="Private cant2 As Int = 0";
+_cant2 = (int) (0);
+ //BA.debugLineNum = 136;BA.debugLine="If oc.RowCount > 0 Then";
+if (_oc.getRowCount()>0) {
+ //BA.debugLineNum = 137;BA.debugLine="oc.Position = 0";
+_oc.setPosition((int) (0));
+ //BA.debugLineNum = 138;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
+_cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT")));
+ };
+ //BA.debugLineNum = 140;BA.debugLine="oc.Close";
+_oc.Close();
+ //BA.debugLineNum = 141;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 142;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 143;BA.debugLine="label1.TextSize = 12";
+_label1.setTextSize((float) (12));
+ //BA.debugLineNum = 144;BA.debugLine="label1.TextColor = Colors.black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 145;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 146;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 147;BA.debugLine="label2.TextSize = 12";
+_label2.setTextSize((float) (12));
+ //BA.debugLineNum = 148;BA.debugLine="label2.TextColor = Colors.black";
+_label2.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 149;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 150;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
+_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
+ //BA.debugLineNum = 151;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 152;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl";
+if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) {
+ //BA.debugLineNum = 154;BA.debugLine="bgColor = Colors.White";
+_bgcolor = __c.Colors.White;
+ };
+ //BA.debugLineNum = 158;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),BA.NumberToString(((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC"))))),(int) ((((double)(Double.parseDouble(_c.GetString("HVD_CANT")))-(double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))))),(int)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT"))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba),_subs._traecliente /*String*/ (ba),BA.NumberToString(0),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ };
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 166;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(\"Sele";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select * from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
+ //BA.debugLineNum = 167;BA.debugLine="If c3.RowCount>0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 168;BA.debugLine="For i= 0 To c3.RowCount -1";
+{
+final int step79 = 1;
+final int limit79 = (int) (_c3.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit79 ;_i = _i + step79 ) {
+ //BA.debugLineNum = 169;BA.debugLine="c3.Position = i";
+_c3.setPosition(_i);
+ //BA.debugLineNum = 170;BA.debugLine="If c3.GetString(\"PE_BCAJAS\") = \"1\" Then";
+if ((_c3.GetString("PE_BCAJAS")).equals("1")) {
+ //BA.debugLineNum = 171;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 172;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa";
+_bgcolor = __c.Colors.RGB((int) (221),(int) (132),(int) (132));
+ //BA.debugLineNum = 173;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 174;BA.debugLine="clv_pedido.Add(CreateListItem2(c3.GetString(\"P";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ //BA.debugLineNum = 175;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P";
+__c.LogImpl("511927659","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0);
+ }else {
+ //BA.debugLineNum = 177;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 178;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa";
+_bgcolor = __c.Colors.RGB((int) (221),(int) (132),(int) (132));
+ //BA.debugLineNum = 179;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 180;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P";
+__c.LogImpl("511927664","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0);
+ //BA.debugLineNum = 181;BA.debugLine="clv_pedido.Add(CreateListItem(c3.GetString(\"PE";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 187;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s";
+_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT,HVD_COSTO_TOT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE in (select cuenta from cuentaa)"))));
+ //BA.debugLineNum = 189;BA.debugLine="Private Cuenta As String = 0";
+_cuenta = BA.NumberToString(0);
+ //BA.debugLineNum = 190;BA.debugLine="Private arti As String = 0";
+_arti = BA.NumberToString(0);
+ //BA.debugLineNum = 191;BA.debugLine="If vc.RowCount > 0 Then";
+if (_vc.getRowCount()>0) {
+ //BA.debugLineNum = 192;BA.debugLine="For i = 0 To vc.RowCount - 1";
+{
+final int step100 = 1;
+final int limit100 = (int) (_vc.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit100 ;_i = _i + step100 ) {
+ //BA.debugLineNum = 193;BA.debugLine="vc.Position = i";
+_vc.setPosition(_i);
+ //BA.debugLineNum = 194;BA.debugLine="Private cantres As Int = 0";
+_cantres = (int) (0);
+ //BA.debugLineNum = 195;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($";
+_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("HVD_PROID")))+"' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))));
+ //BA.debugLineNum = 196;BA.debugLine="If c4.RowCount > 0 Then";
+if (_c4.getRowCount()>0) {
+ //BA.debugLineNum = 197;BA.debugLine="c4.Position = 0";
+_c4.setPosition((int) (0));
+ //BA.debugLineNum = 198;BA.debugLine="cantres = c4.GetString(\"PE_CANT\")";
+_cantres = (int)(Double.parseDouble(_c4.GetString("PE_CANT")));
+ //BA.debugLineNum = 199;BA.debugLine="Log(c4.GetString(\"PE_CANT\"))";
+__c.LogImpl("511927683",_c4.GetString("PE_CANT"),0);
+ }else {
+ //BA.debugLineNum = 201;BA.debugLine="cantres = 0";
+_cantres = (int) (0);
+ };
+ //BA.debugLineNum = 206;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge";
+_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT")))));
+ //BA.debugLineNum = 207;BA.debugLine="Cuenta = Cuenta + ((vc.GetString(\"HVD_CANT\") -";
+_cuenta = BA.NumberToString((double)(Double.parseDouble(_cuenta))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT"))))));
+ }
+};
+ };
+ //BA.debugLineNum = 214;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s";
+_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1")));
+ //BA.debugLineNum = 215;BA.debugLine="Private Cuenta1 As String = 0";
+_cuenta1 = BA.NumberToString(0);
+ //BA.debugLineNum = 216;BA.debugLine="Private arti1 As String = 0";
+_arti1 = BA.NumberToString(0);
+ //BA.debugLineNum = 217;BA.debugLine="If vc2.RowCount > 0 Then";
+if (_vc2.getRowCount()>0) {
+ //BA.debugLineNum = 218;BA.debugLine="For i = 0 To vc2.RowCount - 1";
+{
+final int step119 = 1;
+final int limit119 = (int) (_vc2.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit119 ;_i = _i + step119 ) {
+ //BA.debugLineNum = 219;BA.debugLine="vc2.Position = i";
+_vc2.setPosition(_i);
+ //BA.debugLineNum = 220;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString";
+_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 221;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery(";
+_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 222;BA.debugLine="If vc3.RowCount > 0 Then";
+if (_vc3.getRowCount()>0) {
+ //BA.debugLineNum = 223;BA.debugLine="vc3.Position = 0";
+_vc3.setPosition((int) (0));
+ //BA.debugLineNum = 224;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC\")-(";
+_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu));
+ //BA.debugLineNum = 225;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v";
+_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))));
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 231;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\"";
+_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'"))));
+ //BA.debugLineNum = 232;BA.debugLine="Private Cuenta2 As String = 0";
+_cuenta2 = BA.NumberToString(0);
+ //BA.debugLineNum = 233;BA.debugLine="Private arti2 As String = 0";
+_arti2 = BA.NumberToString(0);
+ //BA.debugLineNum = 234;BA.debugLine="If vc4.RowCount > 0 Then";
+if (_vc4.getRowCount()>0) {
+ //BA.debugLineNum = 236;BA.debugLine="For i = 0 To vc4.RowCount - 1";
+{
+final int step134 = 1;
+final int limit134 = (int) (_vc4.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit134 ;_i = _i + step134 ) {
+ //BA.debugLineNum = 237;BA.debugLine="vc4.Position = i";
+_vc4.setPosition(_i);
+ //BA.debugLineNum = 238;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString(";
+if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) {
+ //BA.debugLineNum = 239;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
+if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 240;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT"))));
+ //BA.debugLineNum = 241;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT"))));
+ }else {
+ //BA.debugLineNum = 243;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer";
+_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 244;BA.debugLine="If vc5.RowCount > 0 Then";
+if (_vc5.getRowCount()>0) {
+ //BA.debugLineNum = 245;BA.debugLine="vc5.Position= 0";
+_vc5.setPosition((int) (0));
+ //BA.debugLineNum = 247;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO")))));
+ //BA.debugLineNum = 248;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT")))));
+ };
+ };
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 259;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S";
+_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
+ //BA.debugLineNum = 260;BA.debugLine="Private Cuenta3 As String = 0";
+_cuenta3 = BA.NumberToString(0);
+ //BA.debugLineNum = 261;BA.debugLine="Private arti3 As String = 0";
+_arti3 = BA.NumberToString(0);
+ //BA.debugLineNum = 262;BA.debugLine="If c4.RowCount > 0 Then";
+if (_c4.getRowCount()>0) {
+ //BA.debugLineNum = 263;BA.debugLine="For i = 0 To c4.RowCount -1";
+{
+final int step155 = 1;
+final int limit155 = (int) (_c4.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit155 ;_i = _i + step155 ) {
+ //BA.debugLineNum = 264;BA.debugLine="c4.Position = i";
+_c4.setPosition(_i);
+ //BA.debugLineNum = 265;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
+_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
+ //BA.debugLineNum = 266;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\"";
+_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT"))));
+ }
+};
+ };
+ //BA.debugLineNum = 270;BA.debugLine="If Cuenta < 0 Then";
+if ((double)(Double.parseDouble(_cuenta))<0) {
+ //BA.debugLineNum = 271;BA.debugLine="Cuenta = 0";
+_cuenta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 273;BA.debugLine="If Cuenta1 < 0 Then";
+if ((double)(Double.parseDouble(_cuenta1))<0) {
+ //BA.debugLineNum = 274;BA.debugLine="Cuenta = 0";
+_cuenta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 276;BA.debugLine="If Cuenta2 < 0 Then";
+if ((double)(Double.parseDouble(_cuenta2))<0) {
+ //BA.debugLineNum = 277;BA.debugLine="Cuenta = 0";
+_cuenta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 279;BA.debugLine="If Cuenta3 < 0 Then";
+if ((double)(Double.parseDouble(_cuenta3))<0) {
+ //BA.debugLineNum = 280;BA.debugLine="Cuenta = 0";
+_cuenta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 283;BA.debugLine="If arti < 0 Then";
+if ((double)(Double.parseDouble(_arti))<0) {
+ //BA.debugLineNum = 284;BA.debugLine="arti = 0";
+_arti = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 286;BA.debugLine="If arti1 < 0 Then";
+if ((double)(Double.parseDouble(_arti1))<0) {
+ //BA.debugLineNum = 287;BA.debugLine="arti = 0";
+_arti = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 289;BA.debugLine="If arti2 < 0 Then";
+if ((double)(Double.parseDouble(_arti2))<0) {
+ //BA.debugLineNum = 290;BA.debugLine="arti = 0";
+_arti = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 292;BA.debugLine="If arti3 < 0 Then";
+if ((double)(Double.parseDouble(_arti3))<0) {
+ //BA.debugLineNum = 293;BA.debugLine="arti = 0";
+_arti = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 296;BA.debugLine="Log(Cuenta&\",\"&Cuenta1&\",\"&Cuenta2&\",\"&Cuenta3)";
+__c.LogImpl("511927780",_cuenta+","+_cuenta1+","+_cuenta2+","+_cuenta3,0);
+ //BA.debugLineNum = 297;BA.debugLine="Log(arti&\",\"&arti1&\",\"&arti2&\",\"&arti3)";
+__c.LogImpl("511927781",_arti+","+_arti1+","+_arti2+","+_arti3,0);
+ //BA.debugLineNum = 298;BA.debugLine="If Cuenta + Cuenta1 + Cuenta2 + Cuenta3 < 0 Then";
+if ((double)(Double.parseDouble(_cuenta))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))<0) {
+ //BA.debugLineNum = 299;BA.debugLine="L_TOTAL.Text = 0";
+_l_total.setText(BA.ObjectToCharSequence(0));
+ }else {
+ //BA.debugLineNum = 301;BA.debugLine="L_TOTAL.Text = NumberFormat2((Cuenta + Cuenta1 +";
+_l_total.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.True)));
+ };
+ //BA.debugLineNum = 303;BA.debugLine="If arti + arti1 +arti2 + arti3 < 0 Then";
+if ((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))<0) {
+ //BA.debugLineNum = 304;BA.debugLine="L_CANT.Text = 0";
+_l_cant.setText(BA.ObjectToCharSequence(0));
+ }else {
+ //BA.debugLineNum = 306;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2";
+_l_cant.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))),(int) (0),(int) (0),(int) (0),__c.True)));
+ };
+ //BA.debugLineNum = 310;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_detalleventa parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_detalleventa parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 324;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+parent._b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 326;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 327;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 56;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 57;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 58;BA.debugLine="B4XPages.SetTitle(Me, \"Detalle de venta\")";
+_b4xpages._settitle /*String*/ (ba,this,(Object)("Detalle de venta"));
+ //BA.debugLineNum = 60;BA.debugLine="g.Initialize(\"GPS\")";
+_g.Initialize("GPS");
+ //BA.debugLineNum = 61;BA.debugLine="Root.LoadLayout(\"detalleVenta\")";
+_root.LoadLayout("detalleVenta",ba);
+ //BA.debugLineNum = 62;BA.debugLine="b_borra.Visible = False";
+_b_borra.setVisible(__c.False);
+ //BA.debugLineNum = 63;BA.debugLine="Titulo.Text = \"Pedido\"";
+_titulo.setText(BA.ObjectToCharSequence("Pedido"));
+ //BA.debugLineNum = 64;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS";
+_g = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String";
+_clie_id = "";
+ //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim b_regresar As Button";
+_b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label";
+_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label";
+_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button";
+_b_borra = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String";
+_existe = "";
+ //BA.debugLineNum = 16;BA.debugLine="Dim result As String";
+_result = "";
+ //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String";
+_cuantos = "";
+ //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String";
+_nombre_prod = "";
+ //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String";
+_cuantos_pedido = "";
+ //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label";
+_titulo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel";
+_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView";
+_lv2 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView";
+_clv_pedido = new b4a.example3.customlistview();
+ //BA.debugLineNum = 26;BA.debugLine="Private p_prods As Panel";
+_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Private l_prodX As Label";
+_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 28;BA.debugLine="Private l_pCant As Label";
+_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Private et_pCant As EditText";
+_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="Dim bmp As Bitmap";
+_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0";
+_totalprods = (int) (0);
+ //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0";
+_totalcompra = (int) (0);
+ //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map";
+_prodsmap = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False";
+_reconstruirpedido = __c.False;
+ //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String";
+_promoaborrar = "";
+ //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button";
+_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 38;BA.debugLine="Private b_prodMas As Button";
+_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Private b_prodMenos As Button";
+_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 40;BA.debugLine="Private b_prodMenosC As Button";
+_b_prodmenosc = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 41;BA.debugLine="Private l_pCantC As Label";
+_l_pcantc = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 42;BA.debugLine="Private et_pCantC As EditText";
+_et_pcantc = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 43;BA.debugLine="Private b_prodMasC As Button";
+_b_prodmasc = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Private p_botMasMenC As Panel";
+_p_botmasmenc = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 45;BA.debugLine="Private p_botMasMen As Panel";
+_p_botmasmen = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 46;BA.debugLine="Private l_cajas As Label";
+_l_cajas = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 47;BA.debugLine="Private l_piezas As Label";
+_l_piezas = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 48;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,String _clienterecha,String _bandera,int _consecutivo) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+ //BA.debugLineNum = 442;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
+ //BA.debugLineNum = 443;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 444;BA.debugLine="Private cs As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 445;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 446;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 447;BA.debugLine="p.LoadLayout(\"prodItem2\")";
+_p.LoadLayout("prodItem2",ba);
+ //BA.debugLineNum = 448;BA.debugLine="p_prods.Color = bc";
+_p_prods.setColor(_bc);
+ //BA.debugLineNum = 449;BA.debugLine="l_prodX.TextColor = tc";
+_l_prodx.setTextColor(_tc);
+ //BA.debugLineNum = 450;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
+_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+"");
+ //BA.debugLineNum = 451;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\"";
+_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou));
+ //BA.debugLineNum = 452;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
+if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 453;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
+_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject()));
+ };
+ //BA.debugLineNum = 455;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
+_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
+ //BA.debugLineNum = 458;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\"";
+_l_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 459;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
+_et_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 460;BA.debugLine="p_prods.Tag = l_pCant.tag";
+_p_prods.setTag(_l_pcant.getTag());
+ //BA.debugLineNum = 462;BA.debugLine="l_pCant.Text = inv";
+_l_pcant.setText(BA.ObjectToCharSequence(_inv));
+ //BA.debugLineNum = 466;BA.debugLine="l_pCant.BringToFront";
+_l_pcant.BringToFront();
+ //BA.debugLineNum = 467;BA.debugLine="et_pCant.SendToBack";
+_et_pcant.SendToBack();
+ //BA.debugLineNum = 468;BA.debugLine="p_botMasMenC.Visible = False";
+_p_botmasmenc.setVisible(__c.False);
+ //BA.debugLineNum = 469;BA.debugLine="l_cajas.Visible = False";
+_l_cajas.setVisible(__c.False);
+ //BA.debugLineNum = 471;BA.debugLine="Return p";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
+ //BA.debugLineNum = 472;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,String _clienterecha,String _bandera,int _consecutivo) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+ //BA.debugLineNum = 474;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
+ //BA.debugLineNum = 475;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 476;BA.debugLine="Private cs As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 477;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 478;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 479;BA.debugLine="p.LoadLayout(\"prodItem2\")";
+_p.LoadLayout("prodItem2",ba);
+ //BA.debugLineNum = 480;BA.debugLine="p_prods.Color = bc";
+_p_prods.setColor(_bc);
+ //BA.debugLineNum = 481;BA.debugLine="l_prodX.TextColor = tc";
+_l_prodx.setTextColor(_tc);
+ //BA.debugLineNum = 482;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
+_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+"");
+ //BA.debugLineNum = 483;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\"";
+_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou));
+ //BA.debugLineNum = 485;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
+if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 486;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
+_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject()));
+ };
+ //BA.debugLineNum = 488;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
+_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
+ //BA.debugLineNum = 490;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
+_l_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 491;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)";
+_et_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 492;BA.debugLine="p_prods.Tag = l_pCantC.tag";
+_p_prods.setTag(_l_pcantc.getTag());
+ //BA.debugLineNum = 494;BA.debugLine="l_pCantC.Text = NumberFormat2(inv/Subs.traeConver";
+_l_pcantc.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_inv/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_prodid))),(int) (0),(int) (0),(int) (0),__c.False)));
+ //BA.debugLineNum = 498;BA.debugLine="l_pCantC.BringToFront";
+_l_pcantc.BringToFront();
+ //BA.debugLineNum = 499;BA.debugLine="et_pCantC.SendToBack";
+_et_pcantc.SendToBack();
+ //BA.debugLineNum = 500;BA.debugLine="p_botMasMen.Visible = False";
+_p_botmasmen.setVisible(__c.False);
+ //BA.debugLineNum = 501;BA.debugLine="l_piezas.Visible = False";
+_l_piezas.setVisible(__c.False);
+ //BA.debugLineNum = 503;BA.debugLine="Return p";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
+ //BA.debugLineNum = 504;BA.debugLine="End Sub";
+return null;
+}
+public String _cuentaprods(String _accion) throws Exception{
+ //BA.debugLineNum = 751;BA.debugLine="Sub cuentaProds(accion As String)";
+ //BA.debugLineNum = 913;BA.debugLine="End Sub";
+return "";
+}
+public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+ //BA.debugLineNum = 312;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 315;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 51;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 52;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 53;BA.debugLine="End Sub";
+return null;
+}
+public String _l_pcant_click() throws Exception{
+ //BA.debugLineNum = 920;BA.debugLine="Private Sub l_pCant_Click";
+ //BA.debugLineNum = 922;BA.debugLine="End Sub";
+return "";
+}
+public String _l_pcantc_click() throws Exception{
+ //BA.debugLineNum = 1052;BA.debugLine="Private Sub l_pCantC_Click";
+ //BA.debugLineNum = 1054;BA.debugLine="End Sub";
+return "";
+}
+public String _listview1_itemlongclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 329;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
+ //BA.debugLineNum = 373;BA.debugLine="End Sub";
+return "";
+}
+public String _lv2_itemclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 375;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec";
+ //BA.debugLineNum = 436;BA.debugLine="End Sub";
+return "";
+}
+public String _p_prods_click() throws Exception{
+ //BA.debugLineNum = 924;BA.debugLine="Sub p_prods_Click";
+ //BA.debugLineNum = 925;BA.debugLine="Log(Sender.As(Panel).tag)";
+__c.LogImpl("512779521",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
+ //BA.debugLineNum = 926;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
+ return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_foto.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_foto.java
new file mode 100644
index 0000000..110b9f1
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_foto.java
@@ -0,0 +1,387 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_foto extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_foto");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_foto.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public boolean _frontcamera = false;
+public anywheresoftware.b4a.gps.GPS _g = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null;
+public reparto_izca.keymon.lat.cameraexclass _camex = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _btntakepicture = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public String _cuenta = "";
+public String _lat_gps = "";
+public String _usuario = "";
+public String _motivo = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _activity_pause(boolean _userclosed) throws Exception{
+ //BA.debugLineNum = 43;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
+ //BA.debugLineNum = 45;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+ //BA.debugLineNum = 34;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 35;BA.debugLine="InitializeCamera";
+_initializecamera();
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_foto parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_foto parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 157;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+parent._b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 159;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 160;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 22;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 23;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 25;BA.debugLine="g.Initialize(\"GPS\")";
+_g.Initialize("GPS");
+ //BA.debugLineNum = 26;BA.debugLine="Root.LoadLayout(\"foto\")";
+_root.LoadLayout("foto",ba);
+ //BA.debugLineNum = 27;BA.debugLine="c=Starter.skmt.ExecQuery(\"select cuenta from cuen";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select cuenta from cuentaa")));
+ //BA.debugLineNum = 28;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 29;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+_cuenta = _c.GetString("CUENTA");
+ //BA.debugLineNum = 30;BA.debugLine="End Sub";
+return "";
+}
+public String _btneffect_click() throws Exception{
+anywheresoftware.b4a.objects.collections.List _effects = null;
+String _effect = "";
+ //BA.debugLineNum = 116;BA.debugLine="Sub btnEffect_Click";
+ //BA.debugLineNum = 117;BA.debugLine="Dim effects As List = camEx.GetSupportedColorEffe";
+_effects = new anywheresoftware.b4a.objects.collections.List();
+_effects = _camex._getsupportedcoloreffects /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 118;BA.debugLine="If effects.IsInitialized = False Then";
+if (_effects.IsInitialized()==__c.False) {
+ //BA.debugLineNum = 119;BA.debugLine="ToastMessageShow(\"Effects not supported.\", False";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Effects not supported."),__c.False);
+ //BA.debugLineNum = 120;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 122;BA.debugLine="Dim effect As String = effects.Get((effects.Index";
+_effect = BA.ObjectToString(_effects.Get((int) ((_effects.IndexOf((Object)(_camex._getcoloreffect /*String*/ ()))+1)%_effects.getSize())));
+ //BA.debugLineNum = 123;BA.debugLine="camEx.SetColorEffect(effect)";
+_camex._setcoloreffect /*String*/ (_effect);
+ //BA.debugLineNum = 124;BA.debugLine="ToastMessageShow(effect, False)";
+__c.ToastMessageShow(BA.ObjectToCharSequence(_effect),__c.False);
+ //BA.debugLineNum = 125;BA.debugLine="camEx.CommitParameters";
+_camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 126;BA.debugLine="End Sub";
+return "";
+}
+public String _btnflash_click() throws Exception{
+float[] _f = null;
+anywheresoftware.b4a.objects.collections.List _flashmodes = null;
+String _flash = "";
+ //BA.debugLineNum = 128;BA.debugLine="Sub btnFlash_Click";
+ //BA.debugLineNum = 129;BA.debugLine="Dim f() As Float = camEx.GetFocusDistances";
+_f = _camex._getfocusdistances /*float[]*/ ();
+ //BA.debugLineNum = 130;BA.debugLine="Log(f(0) & \", \" & f(1) & \", \" & f(2))";
+__c.LogImpl("513959170",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0);
+ //BA.debugLineNum = 131;BA.debugLine="Dim flashModes As List = camEx.GetSupportedFlashM";
+_flashmodes = new anywheresoftware.b4a.objects.collections.List();
+_flashmodes = _camex._getsupportedflashmodes /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 132;BA.debugLine="If flashModes.IsInitialized = False Then";
+if (_flashmodes.IsInitialized()==__c.False) {
+ //BA.debugLineNum = 133;BA.debugLine="ToastMessageShow(\"Flash not supported.\", False)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Flash not supported."),__c.False);
+ //BA.debugLineNum = 134;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 136;BA.debugLine="Dim flash As String = flashModes.Get((flashModes.";
+_flash = BA.ObjectToString(_flashmodes.Get((int) ((_flashmodes.IndexOf((Object)(_camex._getflashmode /*String*/ ()))+1)%_flashmodes.getSize())));
+ //BA.debugLineNum = 137;BA.debugLine="camEx.SetFlashMode(flash)";
+_camex._setflashmode /*String*/ (_flash);
+ //BA.debugLineNum = 138;BA.debugLine="ToastMessageShow(flash, False)";
+__c.ToastMessageShow(BA.ObjectToCharSequence(_flash),__c.False);
+ //BA.debugLineNum = 139;BA.debugLine="camEx.CommitParameters";
+_camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 140;BA.debugLine="End Sub";
+return "";
+}
+public String _btnfocus_click() throws Exception{
+ //BA.debugLineNum = 72;BA.debugLine="Sub btnFocus_Click";
+ //BA.debugLineNum = 73;BA.debugLine="camEx.FocusAndTakePicture";
+_camex._focusandtakepicture /*String*/ ();
+ //BA.debugLineNum = 74;BA.debugLine="End Sub";
+return "";
+}
+public String _btnpicturesize_click() throws Exception{
+reparto_izca.keymon.lat.cameraexclass._camerasize[] _picturesizes = null;
+reparto_izca.keymon.lat.cameraexclass._camerasize _current = null;
+int _i = 0;
+reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null;
+ //BA.debugLineNum = 142;BA.debugLine="Sub btnPictureSize_Click";
+ //BA.debugLineNum = 143;BA.debugLine="Dim pictureSizes() As CameraSize = camEx.GetSuppo";
+_picturesizes = _camex._getsupportedpicturessizes /*reparto_izca.keymon.lat.cameraexclass._camerasize[]*/ ();
+ //BA.debugLineNum = 144;BA.debugLine="Dim current As CameraSize = camEx.GetPictureSize";
+_current = _camex._getpicturesize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ();
+ //BA.debugLineNum = 145;BA.debugLine="For i = 0 To pictureSizes.Length - 1";
+{
+final int step3 = 1;
+final int limit3 = (int) (_picturesizes.length /*int*/ -1);
+_i = (int) (0) ;
+for (;_i <= limit3 ;_i = _i + step3 ) {
+ //BA.debugLineNum = 146;BA.debugLine="If pictureSizes(i).Width = current.Width And pic";
+if (_picturesizes[_i].Width /*int*/ ==_current.Width /*int*/ && _picturesizes[_i].Height /*int*/ ==_current.Height /*int*/ ) {
+if (true) break;};
+ }
+};
+ //BA.debugLineNum = 148;BA.debugLine="Dim ps As CameraSize = pictureSizes((i + 1) Mod p";
+_ps = _picturesizes[(int) ((_i+1)%_picturesizes.length /*int*/ )];
+ //BA.debugLineNum = 149;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)";
+_camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ );
+ //BA.debugLineNum = 150;BA.debugLine="ToastMessageShow(ps.Width & \"x\" & ps.Height & i,";
+__c.ToastMessageShow(BA.ObjectToCharSequence(BA.NumberToString(_ps.Width /*int*/ )+"x"+BA.NumberToString(_ps.Height /*int*/ )+BA.NumberToString(_i)),__c.False);
+ //BA.debugLineNum = 151;BA.debugLine="camEx.CommitParameters";
+_camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 152;BA.debugLine="End Sub";
+return "";
+}
+public String _btntakepicture_click() throws Exception{
+reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null;
+ //BA.debugLineNum = 62;BA.debugLine="Sub btnTakePicture_Click";
+ //BA.debugLineNum = 63;BA.debugLine="Dim ps As CameraSize";
+_ps = new reparto_izca.keymon.lat.cameraexclass._camerasize();
+ //BA.debugLineNum = 64;BA.debugLine="ps.Width =640";
+_ps.Width /*int*/ = (int) (640);
+ //BA.debugLineNum = 65;BA.debugLine="ps.Height =480";
+_ps.Height /*int*/ = (int) (480);
+ //BA.debugLineNum = 66;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)";
+_camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ );
+ //BA.debugLineNum = 68;BA.debugLine="camEx.CommitParameters";
+_camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 69;BA.debugLine="camEx.TakePicture";
+_camex._takepicture /*String*/ ();
+ //BA.debugLineNum = 70;BA.debugLine="End Sub";
+return "";
+}
+public String _camera1_picturetaken(byte[] _data) throws Exception{
+String _filename = "";
+String _dir = "";
+String _sdate = "";
+String _stime = "";
+int _i = 0;
+ //BA.debugLineNum = 76;BA.debugLine="Sub Camera1_PictureTaken (Data() As Byte)";
+ //BA.debugLineNum = 77;BA.debugLine="Dim filename As String = \"1.jpg\"";
+_filename = "1.jpg";
+ //BA.debugLineNum = 78;BA.debugLine="Dim dir As String = File.DirInternal";
+_dir = __c.File.getDirInternal();
+ //BA.debugLineNum = 80;BA.debugLine="camEx.SavePictureToFile(Data, dir, filename)";
+_camex._savepicturetofile /*String*/ (_data,_dir,_filename);
+ //BA.debugLineNum = 81;BA.debugLine="camEx.StartPreview 'restart preview";
+_camex._startpreview /*String*/ ();
+ //BA.debugLineNum = 83;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 84;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 85;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 86;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 87;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa")));
+ //BA.debugLineNum = 88;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 89;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+_cuenta = _c.GetString("CUENTA");
+ //BA.debugLineNum = 90;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 91;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 92;BA.debugLine="USUARIO = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 93;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 94;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)");
+ //BA.debugLineNum = 95;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_CLIENTE,HVD_";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 96;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 97;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step19 = 1;
+final int limit19 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit19 ;_i = _i + step19 ) {
+ //BA.debugLineNum = 98;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 99;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("HVD_PRONOMBRE")}));
+ //BA.debugLineNum = 100;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_c.GetString("HVD_CANT")),(Object)(_c.GetString("HVD_PRONOMBRE"))}));
+ }
+};
+ };
+ //BA.debugLineNum = 104;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+_stime),(Object)(_usuario),(Object)("CERRADO"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._noventa /*reparto_izca.keymon.lat.c_noventa*/ ._comentario /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_data)}));
+ //BA.debugLineNum = 105;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+__c.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
+ //BA.debugLineNum = 106;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
+ //BA.debugLineNum = 107;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 108;BA.debugLine="End Sub";
+return "";
+}
+public String _camera1_ready(boolean _success) throws Exception{
+ //BA.debugLineNum = 51;BA.debugLine="Sub Camera1_Ready (Success As Boolean)";
+ //BA.debugLineNum = 52;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 53;BA.debugLine="camEx.SetJpegQuality(90)";
+_camex._setjpegquality /*String*/ ((int) (90));
+ //BA.debugLineNum = 54;BA.debugLine="camEx.CommitParameters";
+_camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 55;BA.debugLine="camEx.StartPreview";
+_camex._startpreview /*String*/ ();
+ //BA.debugLineNum = 56;BA.debugLine="Log(camEx.GetPreviewSize)";
+__c.LogImpl("513565957",BA.ObjectToString(_camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ()),0);
+ }else {
+ //BA.debugLineNum = 58;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True);
+ };
+ //BA.debugLineNum = 60;BA.debugLine="End Sub";
+return "";
+}
+public String _changecamera_click() throws Exception{
+ //BA.debugLineNum = 110;BA.debugLine="Sub ChangeCamera_Click";
+ //BA.debugLineNum = 111;BA.debugLine="camEx.Release";
+_camex._release /*String*/ ();
+ //BA.debugLineNum = 112;BA.debugLine="frontCamera = Not(frontCamera)";
+_frontcamera = __c.Not(_frontcamera);
+ //BA.debugLineNum = 113;BA.debugLine="InitializeCamera";
+_initializecamera();
+ //BA.debugLineNum = 114;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Private frontCamera As Boolean = False";
+_frontcamera = __c.False;
+ //BA.debugLineNum = 5;BA.debugLine="Dim g As GPS";
+_g = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 6;BA.debugLine="Private p_camara As Panel";
+_p_camara = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 7;BA.debugLine="Private camEx As CameraExClass";
+_camex = new reparto_izca.keymon.lat.cameraexclass();
+ //BA.debugLineNum = 8;BA.debugLine="Dim btnTakePicture As Button";
+_btntakepicture = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim cuenta As String";
+_cuenta = "";
+ //BA.debugLineNum = 11;BA.debugLine="Dim lat_gps As String";
+_lat_gps = "";
+ //BA.debugLineNum = 12;BA.debugLine="Dim USUARIO As String";
+_usuario = "";
+ //BA.debugLineNum = 13;BA.debugLine="Dim MOTIVO As String";
+_motivo = "";
+ //BA.debugLineNum = 14;BA.debugLine="End Sub";
+return "";
+}
+public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+ //BA.debugLineNum = 47;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 49;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 17;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 18;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 19;BA.debugLine="End Sub";
+return null;
+}
+public String _initializecamera() throws Exception{
+ //BA.debugLineNum = 38;BA.debugLine="Private Sub InitializeCamera";
+ //BA.debugLineNum = 39;BA.debugLine="camEx.Initialize(p_camara, frontCamera, Me, \"Came";
+_camex._initialize /*String*/ (ba,_p_camara,_frontcamera,this,"Camera1");
+ //BA.debugLineNum = 40;BA.debugLine="frontCamera = camEx.Front";
+_frontcamera = _camex._front /*boolean*/ ;
+ //BA.debugLineNum = 41;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
+ return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_historico.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_historico.java
new file mode 100644
index 0000000..fa7a83b
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_historico.java
@@ -0,0 +1,916 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_historico extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_historico");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_historico.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.gps.GPS _g = null;
+public String _clie_id = "";
+public String _sdate = "";
+public String _stime = "";
+public String _usuario = "";
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_regresar = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_borra = null;
+public String _existe = "";
+public String _result = "";
+public String _cuantos = "";
+public String _nombre_prod = "";
+public String _cuantos_pedido = "";
+public anywheresoftware.b4a.objects.LabelWrapper _titulo = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p1 = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _lv2 = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public b4a.example3.customlistview _clv_pedido = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null;
+public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
+public boolean _etcanthasfocus = false;
+public int _totalprods = 0;
+public int _totalcompra = 0;
+public anywheresoftware.b4a.objects.collections.Map _prodsmap = null;
+public boolean _reconstruirpedido = false;
+public String _promoaborrar = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_guardar = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_guardar_click() throws Exception{
+ //BA.debugLineNum = 592;BA.debugLine="Private Sub b_guardar_Click";
+ //BA.debugLineNum = 594;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmas_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _maxprods = "";
+anywheresoftware.b4a.objects.collections.Map _cym = null;
+ //BA.debugLineNum = 383;BA.debugLine="Sub b_prodMas_Click";
+ //BA.debugLineNum = 384;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 386;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
+__c.LogImpl("517432579","b_prodMas_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 387;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 388;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 389;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 390;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
+_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 394;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
+ //BA.debugLineNum = 395;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
+__c.LogImpl("517432588","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 396;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 398;BA.debugLine="Private maxProds as string = esteTag.Get(1) + est";
+_maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))));
+ //BA.debugLineNum = 400;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
+__c.LogImpl("517432593",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
+ //BA.debugLineNum = 402;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
+if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
+ //BA.debugLineNum = 403;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
+__c.LogImpl("517432596",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
+ //BA.debugLineNum = 404;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
+ //BA.debugLineNum = 405;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))}));
+ //BA.debugLineNum = 406;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
+_subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))));
+ //BA.debugLineNum = 407;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_";
+_cym = new anywheresoftware.b4a.objects.collections.Map();
+_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_clv_pedido);
+ //BA.debugLineNum = 408;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")";
+_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad"))));
+ //BA.debugLineNum = 409;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2))));
+ };
+ //BA.debugLineNum = 426;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmenos_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+float _preciou = 0f;
+anywheresoftware.b4a.objects.collections.Map _cym = null;
+ //BA.debugLineNum = 340;BA.debugLine="Sub b_prodMenos_Click";
+ //BA.debugLineNum = 341;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 342;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
+__c.LogImpl("517367042","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
+ //BA.debugLineNum = 343;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
+__c.LogImpl("517367043","b_prodMenos_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 344;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 345;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 346;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 347;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
+_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 349;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
+ //BA.debugLineNum = 350;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
+__c.LogImpl("517367050","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 351;BA.debugLine="If esteTag.Get(3) <> \"1\" Then 'Si es PROMO entonc";
+if ((_estetag.Get((int) (3))).equals((Object)("1")) == false) {
+ //BA.debugLineNum = 352;BA.debugLine="Log(\"ES PROMO\")";
+__c.LogImpl("517367052","ES PROMO",0);
+ //BA.debugLineNum = 353;BA.debugLine="result = Msgbox2(\"Si se modifica una promoción,";
+_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
+ //BA.debugLineNum = 354;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Quitam";
+if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
+ //BA.debugLineNum = 355;BA.debugLine="prodsMap.Remove(esteTag.Get(3))";
+_prodsmap.Remove(_estetag.Get((int) (3)));
+ //BA.debugLineNum = 356;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_cliente in (Select CUENTA from cuentaa)"));
+ //BA.debugLineNum = 357;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' WHERE HVD_cliente in (Select CUENTA from cuentaa) AND HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"'"));
+ //BA.debugLineNum = 358;BA.debugLine="LogColor(prodsMap, Colors.red)";
+__c.LogImpl("517367058",BA.ObjectToString(_prodsmap),__c.Colors.Red);
+ //BA.debugLineNum = 359;BA.debugLine="reconstruirPedido = True";
+_reconstruirpedido = __c.True;
+ //BA.debugLineNum = 360;BA.debugLine="promoABorrar = esteTag.Get(3)";
+_promoaborrar = BA.ObjectToString(_estetag.Get((int) (3)));
+ //BA.debugLineNum = 361;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ }else {
+ //BA.debugLineNum = 364;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 365;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+"")));
+ //BA.debugLineNum = 366;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
+if ((double)(Double.parseDouble(_lacant.getText()))<0) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 367;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))}));
+ };
+ //BA.debugLineNum = 369;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
+_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
+ //BA.debugLineNum = 370;BA.debugLine="Log(\"PU: \" & preciou)";
+__c.LogImpl("517367070","PU: "+BA.NumberToString(_preciou),0);
+ //BA.debugLineNum = 376;BA.debugLine="Subs.prodRechazo(esteTag.Get(5), esteTag.Get(2))";
+_subs._prodrechazo /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))));
+ //BA.debugLineNum = 377;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_p";
+_cym = new anywheresoftware.b4a.objects.collections.Map();
+_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_clv_pedido);
+ //BA.debugLineNum = 378;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")";
+_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad"))));
+ //BA.debugLineNum = 379;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2))));
+ //BA.debugLineNum = 381;BA.debugLine="End Sub";
+return "";
+}
+public String _b_regresar_click() throws Exception{
+ //BA.debugLineNum = 185;BA.debugLine="Sub b_regresar_Click";
+ //BA.debugLineNum = 186;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 187;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _oc = null;
+int _cant2 = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+int _bgcolor = 0;
+int _textcolor = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
+int _cantco = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _cco = null;
+anywheresoftware.b4a.objects.collections.Map _cym = null;
+ //BA.debugLineNum = 59;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 60;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth());
+ //BA.debugLineNum = 64;BA.debugLine="L_CANT.Text =\"\"";
+_l_cant.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 65;BA.debugLine="L_TOTAL.Text=\"\"";
+_l_total.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 66;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")));
+ //BA.debugLineNum = 67;BA.debugLine="C.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 68;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
+_existe = _c.GetString("EXISTE");
+ //BA.debugLineNum = 69;BA.debugLine="C.Close";
+_c.Close();
+ //BA.debugLineNum = 71;BA.debugLine="c=Starter.skmt.ExecQuery(\"select hvd_num_registro";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select hvd_num_registro, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 and hvd_cant > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 72;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 73;BA.debugLine="clv_pedido.Clear";
+_clv_pedido._clear();
+ //BA.debugLineNum = 74;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 75;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6";
+_clv_pedido._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (_root.getWidth()-50),(int) (_root.getHeight()*0.62));
+ //BA.debugLineNum = 76;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,";
+_clv_pedido._base_resize(_clv_pedido._getbase().getWidth(),_clv_pedido._getbase().getHeight());
+ //BA.debugLineNum = 78;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 80;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step15 = 1;
+final int limit15 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit15 ;_i = _i + step15 ) {
+ //BA.debugLineNum = 81;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 83;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery($";
+_oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'"))));
+ //BA.debugLineNum = 84;BA.debugLine="Private cant2 As Int = 0";
+_cant2 = (int) (0);
+ //BA.debugLineNum = 85;BA.debugLine="If oc.RowCount > 0 Then";
+if (_oc.getRowCount()>0) {
+ //BA.debugLineNum = 86;BA.debugLine="oc.Position = 0";
+_oc.setPosition((int) (0));
+ //BA.debugLineNum = 87;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
+_cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT")));
+ };
+ //BA.debugLineNum = 89;BA.debugLine="oc.Close";
+_oc.Close();
+ //BA.debugLineNum = 90;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 91;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 92;BA.debugLine="label1.TextSize = 12";
+_label1.setTextSize((float) (12));
+ //BA.debugLineNum = 93;BA.debugLine="label1.TextColor = Colors.black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 94;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 95;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 96;BA.debugLine="label2.TextSize = 12";
+_label2.setTextSize((float) (12));
+ //BA.debugLineNum = 97;BA.debugLine="label2.TextColor = Colors.black";
+_label2.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 98;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 99;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
+_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
+ //BA.debugLineNum = 100;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 101;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> \"1\" Then";
+if ((_c.GetString("HVD_CODPROMO")).equals("1") == false) {
+ //BA.debugLineNum = 103;BA.debugLine="bgColor = Colors.White";
+_bgcolor = __c.Colors.White;
+ };
+ //BA.debugLineNum = 107;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HVD_";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO")),(int)(Double.parseDouble(_c.GetString("HVD_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (50)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba)).getObject())),(Object)(_c.GetString("HVD_PRONOMBRE")));
+ }
+};
+ };
+ //BA.debugLineNum = 112;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery(\"se";
+_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")));
+ //BA.debugLineNum = 113;BA.debugLine="Log($\"VENTA: ${vc.RowCount}\"$)";
+__c.LogImpl("516908342",("VENTA: "+__c.SmartStringFormatter("",(Object)(_vc.getRowCount()))+""),0);
+ //BA.debugLineNum = 114;BA.debugLine="If vc.RowCount > 0 Then";
+if (_vc.getRowCount()>0) {
+ //BA.debugLineNum = 117;BA.debugLine="textColor = Colors.RGB(0,87,142)";
+_textcolor = __c.Colors.RGB((int) (0),(int) (87),(int) (142));
+ //BA.debugLineNum = 118;BA.debugLine="For i=0 To vc.RowCount -1";
+{
+final int step45 = 1;
+final int limit45 = (int) (_vc.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit45 ;_i = _i + step45 ) {
+ //BA.debugLineNum = 119;BA.debugLine="vc.Position = i";
+_vc.setPosition(_i);
+ //BA.debugLineNum = 120;BA.debugLine="Private cantCO As Int = 0";
+_cantco = (int) (0);
+ //BA.debugLineNum = 122;BA.debugLine="Private cco As Cursor = Starter.skmt.ExecQuery(";
+_cco = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cco = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLI_ORIG")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID='"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '1' and REP_CANT > 0"))));
+ //BA.debugLineNum = 124;BA.debugLine="If cco.RowCount > 0 Then";
+if (_cco.getRowCount()>0) {
+ //BA.debugLineNum = 125;BA.debugLine="cco.Position = 0";
+_cco.setPosition((int) (0));
+ //BA.debugLineNum = 126;BA.debugLine="cantCO = cco.GetString(\"REP_CANT\") + vc.GetStr";
+_cantco = (int) ((double)(Double.parseDouble(_cco.GetString("REP_CANT")))+(double)(Double.parseDouble(_vc.GetString("REP_CANT"))));
+ };
+ //BA.debugLineNum = 128;BA.debugLine="cantCO = Subs.traeCantidadRechazada(vc.GetStrin";
+_cantco = _subs._traecantidadrechazada /*int*/ (ba,_vc.GetString("REP_CLI_ORIG"),_vc.GetString("REP_PRODID"));
+ //BA.debugLineNum = 131;BA.debugLine="clv_pedido.Add(CreateListItem(vc.GetString(\"REP";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_vc.GetString("REP_PRONOMBRE"),_subs._traeprecio /*String*/ (ba,_vc.GetString("REP_PRODID"),_subs._traealmacen /*String*/ (ba)),(int)(Double.parseDouble(_vc.GetString("REP_CANT"))),_cantco,_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (50)),_bmp,_vc.GetString("REP_PRODID"),_bgcolor,_textcolor,BA.NumberToString(1),_vc.GetString("REP_CLI_ORIG")).getObject())),(Object)(_vc.GetString("REP_PRONOMBRE")));
+ }
+};
+ //BA.debugLineNum = 133;BA.debugLine="cco.Close";
+_cco.Close();
+ //BA.debugLineNum = 134;BA.debugLine="vc.Close";
+_vc.Close();
+ };
+ //BA.debugLineNum = 137;BA.debugLine="If Existe <> 0 Then";
+if ((_existe).equals(BA.NumberToString(0)) == false) {
+ //BA.debugLineNum = 138;BA.debugLine="c = Starter.skmt.ExecQuery(\"select SUM(HVD_CANT)";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(HVD_CANT) AS PC_NOART, SUM(HVD_COSTO_TOT) AS PC_MONTO from HIST_VENTAS where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")));
+ //BA.debugLineNum = 139;BA.debugLine="C.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 140;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")";
+_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART")));
+ //BA.debugLineNum = 141;BA.debugLine="L_TOTAL.Text = Round2(c.GetString(\"PC_MONTO\"), 2";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_c.GetString("PC_MONTO"))),(int) (2))));
+ };
+ //BA.debugLineNum = 143;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
+ //BA.debugLineNum = 144;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 145;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
+_existe = _c.GetString("EXISTE");
+ //BA.debugLineNum = 146;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 149;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 167;BA.debugLine="If Existe <> 0 Then";
+if ((_existe).equals(BA.NumberToString(0)) == false) {
+ //BA.debugLineNum = 168;BA.debugLine="c=Starter.skmt.ExecQuery(\"select SUM(PE_CANT) AS";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(PE_CANT) AS PE_CANT, SUM(PE_COSTO_TOT) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)")));
+ //BA.debugLineNum = 169;BA.debugLine="C.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 170;BA.debugLine="L_CANT.Text = L_CANT.Text + c.GetString(\"PE_CANT";
+_l_cant.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_l_cant.getText()))+(double)(Double.parseDouble(_c.GetString("PE_CANT")))));
+ //BA.debugLineNum = 171;BA.debugLine="L_TOTAL.Text = Round2(L_TOTAL.Text + c.GetStrin";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_total.getText()))+(double)(Double.parseDouble(_c.GetString("PE_COSTO_TOT"))),(int) (2))));
+ };
+ //BA.debugLineNum = 175;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_p";
+_cym = new anywheresoftware.b4a.objects.collections.Map();
+_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_clv_pedido);
+ //BA.debugLineNum = 176;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")";
+_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad"))));
+ //BA.debugLineNum = 177;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2))));
+ //BA.debugLineNum = 178;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_historico parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_historico parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 192;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+parent._b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 194;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 195;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 48;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 49;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 51;BA.debugLine="g.Initialize(\"GPS\")";
+_g.Initialize("GPS");
+ //BA.debugLineNum = 52;BA.debugLine="Root.LoadLayout(\"historico\")";
+_root.LoadLayout("historico",ba);
+ //BA.debugLineNum = 53;BA.debugLine="b_borra.Visible = False";
+_b_borra.setVisible(__c.False);
+ //BA.debugLineNum = 54;BA.debugLine="Titulo.Text = \"Pedido\"";
+_titulo.setText(BA.ObjectToCharSequence("Pedido"));
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS";
+_g = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String";
+_clie_id = "";
+ //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim b_regresar As Button";
+_b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label";
+_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label";
+_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button";
+_b_borra = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String";
+_existe = "";
+ //BA.debugLineNum = 16;BA.debugLine="Dim result As String";
+_result = "";
+ //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String";
+_cuantos = "";
+ //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String";
+_nombre_prod = "";
+ //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String";
+_cuantos_pedido = "";
+ //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label";
+_titulo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel";
+_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView";
+_lv2 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView";
+_clv_pedido = new b4a.example3.customlistview();
+ //BA.debugLineNum = 26;BA.debugLine="Private p_prods As Panel";
+_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Private l_prodX As Label";
+_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 28;BA.debugLine="Private l_pCant As Label";
+_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Private et_pCant As EditText";
+_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="Dim bmp As Bitmap";
+_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0";
+_totalprods = (int) (0);
+ //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0";
+_totalcompra = (int) (0);
+ //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map";
+_prodsmap = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False";
+_reconstruirpedido = __c.False;
+ //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String";
+_promoaborrar = "";
+ //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button";
+_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 38;BA.debugLine="Private b_prodMas As Button";
+_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Private b_prodMenos As Button";
+_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 40;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+ //BA.debugLineNum = 310;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
+ //BA.debugLineNum = 311;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 312;BA.debugLine="Private cs As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 313;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 314;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 315;BA.debugLine="p.LoadLayout(\"prodItem\")";
+_p.LoadLayout("prodItem",ba);
+ //BA.debugLineNum = 316;BA.debugLine="p_prods.Color = bc";
+_p_prods.setColor(_bc);
+ //BA.debugLineNum = 317;BA.debugLine="l_prodX.TextColor = tc";
+_l_prodx.setTextColor(_tc);
+ //BA.debugLineNum = 318;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
+_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+"");
+ //BA.debugLineNum = 319;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\"";
+_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou));
+ //BA.debugLineNum = 320;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
+if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 321;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
+_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject()));
+ };
+ //BA.debugLineNum = 323;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
+_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
+ //BA.debugLineNum = 325;BA.debugLine="l_pCant.Tag = Round2(precioU,2)&\"|\"&inv&\"|\"&prodI";
+_l_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou)),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original));
+ //BA.debugLineNum = 326;BA.debugLine="et_pCant.Tag = Round2(precioU,2)&\"|\"&inv&\"|\"&prod";
+_et_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou)),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original));
+ //BA.debugLineNum = 327;BA.debugLine="p_prods.Tag = l_pCant.tag";
+_p_prods.setTag(_l_pcant.getTag());
+ //BA.debugLineNum = 329;BA.debugLine="l_pCant.Text = inv";
+_l_pcant.setText(BA.ObjectToCharSequence(_inv));
+ //BA.debugLineNum = 333;BA.debugLine="l_pCant.BringToFront";
+_l_pcant.BringToFront();
+ //BA.debugLineNum = 334;BA.debugLine="et_pCant.SendToBack";
+_et_pcant.SendToBack();
+ //BA.debugLineNum = 337;BA.debugLine="Return p";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
+ //BA.debugLineNum = 338;BA.debugLine="End Sub";
+return null;
+}
+public String _cuentaprods(String _accion) throws Exception{
+int _cantrechazada = 0;
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _esteprod = "";
+int _estacant = 0;
+int _estacantoriginal = 0;
+String _estecliente = "";
+String _esteprodnombre = "";
+int _esteclienteoriginal = 0;
+String _fechareparto = "";
+String _maxprods = "";
+String _esteprecio = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rr = null;
+anywheresoftware.b4a.objects.collections.Map _m = null;
+int _bgcolor = 0;
+int _textcolor = 0;
+String _newpromo = "";
+String _newprecio = "";
+String _pr = "";
+anywheresoftware.b4a.objects.collections.Map _pr1 = null;
+String _cantidad1 = "";
+String _totalfinal = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null;
+String _cantidady = "";
+String _preciou = "";
+String _costototalhist = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _z = null;
+String _cantidad2 = "";
+ //BA.debugLineNum = 428;BA.debugLine="Sub cuentaProds(accion As String)";
+ //BA.debugLineNum = 430;BA.debugLine="Log(\"*********************************************";
+__c.LogImpl("517498114","*******************************************************",0);
+ //BA.debugLineNum = 431;BA.debugLine="Private cantRechazada As Int = 0";
+_cantrechazada = (int) (0);
+ //BA.debugLineNum = 432;BA.debugLine="If Not(reconstruirPedido) Then";
+if (__c.Not(_reconstruirpedido)) {
+ //BA.debugLineNum = 433;BA.debugLine="Log(\"*********** CUENTAPRODS - NO RECONSTRUIR\")";
+__c.LogImpl("517498117","*********** CUENTAPRODS - NO RECONSTRUIR",0);
+ //BA.debugLineNum = 434;BA.debugLine="prodsMap.Initialize";
+_prodsmap.Initialize();
+ //BA.debugLineNum = 435;BA.debugLine="For i = 0 To clv_pedido.GetSize - 1";
+{
+final int step6 = 1;
+final int limit6 = (int) (_clv_pedido._getsize()-1);
+_i = (int) (0) ;
+for (;_i <= limit6 ;_i = _i + step6 ) {
+ //BA.debugLineNum = 436;BA.debugLine="Private p0 As B4XView = clv_pedido.GetPanel(i)";
+_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p0 = _clv_pedido._getpanel(_i);
+ //BA.debugLineNum = 437;BA.debugLine="Private p As B4XView = p0.GetView(0)";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _p0.GetView((int) (0));
+ //BA.debugLineNum = 438;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView";
+_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_cant1 = _p.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 439;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0";
+if ((_cant1.getText()).equals("")) {
+_cant1.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 441;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_cant1.getTag())));
+ //BA.debugLineNum = 442;BA.debugLine="Log(\"-------------------------------------\")";
+__c.LogImpl("517498126","-------------------------------------",0);
+ //BA.debugLineNum = 443;BA.debugLine="Log($\"ET: ${esteTag}\"$)";
+__c.LogImpl("517498127",("ET: "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),0);
+ //BA.debugLineNum = 444;BA.debugLine="Private esteProd As String = esteTag.Get(2)";
+_esteprod = BA.ObjectToString(_estetag.Get((int) (2)));
+ //BA.debugLineNum = 445;BA.debugLine="Private estaCant As Int = cant1.Text";
+_estacant = (int)(Double.parseDouble(_cant1.getText()));
+ //BA.debugLineNum = 446;BA.debugLine="Private estaCantOriginal As Int = esteTag.Get(1";
+_estacantoriginal = (int)(BA.ObjectToNumber(_estetag.Get((int) (1))));
+ //BA.debugLineNum = 447;BA.debugLine="Private esteCliente = Subs.traeCliente";
+_estecliente = _subs._traecliente /*String*/ (ba);
+ //BA.debugLineNum = 448;BA.debugLine="Private esteProdNombre = Subs.traeNombre(estePr";
+_esteprodnombre = _subs._traenombre /*String*/ (ba,_esteprod);
+ //BA.debugLineNum = 449;BA.debugLine="Private esteClienteOriginal As Int = esteTag.Ge";
+_esteclienteoriginal = (int)(BA.ObjectToNumber(_estetag.Get((int) (5))));
+ //BA.debugLineNum = 450;BA.debugLine="Private fechaReparto As String = Subs.traeFecha";
+_fechareparto = _subs._traefechareparto /*String*/ (ba);
+ //BA.debugLineNum = 451;BA.debugLine="Private maxProds = Subs.traeMaxCantidad(esteTag";
+_maxprods = BA.NumberToString(_subs._traemaxcantidad /*int*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2)))));
+ //BA.debugLineNum = 453;BA.debugLine="If cant1.Text > maxProds Then cant1.Text = maxP";
+if ((double)(Double.parseDouble(_cant1.getText()))>(double)(Double.parseDouble(_maxprods))) {
+_cant1.setText(BA.ObjectToCharSequence(_maxprods));};
+ //BA.debugLineNum = 455;BA.debugLine="cantRechazada = esteTag.Get(4) - cant1.Text";
+_cantrechazada = (int) ((double)(BA.ObjectToNumber(_estetag.Get((int) (4))))-(double)(Double.parseDouble(_cant1.getText())));
+ //BA.debugLineNum = 458;BA.debugLine="Log($\"${Subs.traeCantidadRechazada(esteClienteO";
+__c.LogImpl("517498142",(""+__c.SmartStringFormatter("",(Object)(_subs._traecantidadrechazada /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+", "+__c.SmartStringFormatter("",(Object)(_subs._traecantidadvendida /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+""),0);
+ //BA.debugLineNum = 461;BA.debugLine="LogColor($\"cantRechazada = ${cantRechazada}\"$,";
+__c.LogImpl("517498145",("cantRechazada = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),__c.Colors.Magenta);
+ //BA.debugLineNum = 462;BA.debugLine="Private estePrecio As String = 0";
+_esteprecio = BA.NumberToString(0);
+ //BA.debugLineNum = 463;BA.debugLine="If Subs.traePrecio(esteProd, 1) <> Null Then es";
+if (_subs._traeprecio /*String*/ (ba,_esteprod,BA.NumberToString(1))!= null) {
+_esteprecio = BA.NumberToString((double)(Double.parseDouble(_subs._traeprecio /*String*/ (ba,_esteprod,_subs._traealmacen /*String*/ (ba))))*_cantrechazada);};
+ //BA.debugLineNum = 468;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = ? WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_cant1.getText(),_esteprod}));
+ //BA.debugLineNum = 469;BA.debugLine="Private rr As Cursor = Starter.skmt.ExecQuery($";
+_rr = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '"+__c.SmartStringFormatter("",(Object)(_esteprod))+"' and REP_CLIENTE in (Select CUENTA from cuentaa)"))));
+ //BA.debugLineNum = 470;BA.debugLine="rr.Position = 0";
+_rr.setPosition((int) (0));
+ //BA.debugLineNum = 472;BA.debugLine="If rr.GetString(\"hayRechazo\") = 0 Then";
+if ((_rr.GetString("hayRechazo")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 473;BA.debugLine="Log(\"INSERTAMOS EN REPARTO\")";
+__c.LogImpl("517498157","INSERTAMOS EN REPARTO",0);
+ //BA.debugLineNum = 474;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_estecliente,_esteprodnombre,BA.NumberToString(0),_esteprecio,_fechareparto,_esteprod,_esteprecio,_estecliente}));
+ //BA.debugLineNum = 475;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_estecliente,_esteprodnombre,BA.NumberToString(_cantrechazada),BA.NumberToString(0),_fechareparto,_esteprod,_esteprecio,_estecliente}));
+ }else if(_esteclienteoriginal==(double)(Double.parseDouble("0"))) {
+ }else {
+ //BA.debugLineNum = 480;BA.debugLine="Log($\"Actualizamos REP_CANT RECHAZO = ${cantRe";
+__c.LogImpl("517498164",("Actualizamos REP_CANT RECHAZO = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),0);
+ };
+ //BA.debugLineNum = 485;BA.debugLine="If cant1.Text > 0 Then";
+if ((double)(Double.parseDouble(_cant1.getText()))>0) {
+ //BA.debugLineNum = 488;BA.debugLine="Private m As Map";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 489;BA.debugLine="m=CreateMap(\"cant\":cant1.Text, \"cant2\":esteTag";
+_m = __c.createMap(new Object[] {(Object)("cant"),(Object)(_cant1.getText()),(Object)("cant2"),_estetag.Get((int) (4)),(Object)("precio"),_estetag.Get((int) (0)),(Object)("promo"),_estetag.Get((int) (3)),(Object)("nombre"),(Object)(_subs._traenombre /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))),(Object)("cli_orig"),_estetag.Get((int) (5))});
+ //BA.debugLineNum = 491;BA.debugLine="prodsMap.Put(esteTag.Get(2), m)";
+_prodsmap.Put(_estetag.Get((int) (2)),(Object)(_m.getObject()));
+ };
+ //BA.debugLineNum = 493;BA.debugLine="Log(\"-------------------------------------\")";
+__c.LogImpl("517498177","-------------------------------------",0);
+ }
+};
+ };
+ //BA.debugLineNum = 496;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 498;BA.debugLine="If reconstruirPedido Then";
+if (_reconstruirpedido) {
+ //BA.debugLineNum = 499;BA.debugLine="Log(\"*********** CUENTAPRODS - SI RECONSTRUIR\")";
+__c.LogImpl("517498183","*********** CUENTAPRODS - SI RECONSTRUIR",0);
+ //BA.debugLineNum = 500;BA.debugLine="Private newPromo, newPrecio As String";
+_newpromo = "";
+_newprecio = "";
+ //BA.debugLineNum = 501;BA.debugLine="clv_pedido.Clear";
+_clv_pedido._clear();
+ //BA.debugLineNum = 502;BA.debugLine="Log(\"Usamos PRODSMAP\")";
+__c.LogImpl("517498186","Usamos PRODSMAP",0);
+ //BA.debugLineNum = 503;BA.debugLine="For Each pr As String In prodsMap.Keys";
+{
+final anywheresoftware.b4a.BA.IterableList group53 = _prodsmap.Keys();
+final int groupLen53 = group53.getSize()
+;int index53 = 0;
+;
+for (; index53 < groupLen53;index53++){
+_pr = BA.ObjectToString(group53.Get(index53));
+ //BA.debugLineNum = 504;BA.debugLine="Private pr1 As Map = prodsMap.Get(pr)";
+_pr1 = new anywheresoftware.b4a.objects.collections.Map();
+_pr1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap.Get((Object)(_pr))));
+ //BA.debugLineNum = 505;BA.debugLine="Log(\"PPP: \" & pr & \"|PromoABorrar=\" & promoABor";
+__c.LogImpl("517498189","PPP: "+_pr+"|PromoABorrar="+_promoaborrar+"|"+BA.ObjectToString(_pr1),0);
+ //BA.debugLineNum = 506;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
+_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
+ //BA.debugLineNum = 507;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 508;BA.debugLine="newPromo = pr1.Get(\"promo\")";
+_newpromo = BA.ObjectToString(_pr1.Get((Object)("promo")));
+ //BA.debugLineNum = 509;BA.debugLine="newPrecio = pr1.Get(\"precio\")";
+_newprecio = BA.ObjectToString(_pr1.Get((Object)("precio")));
+ //BA.debugLineNum = 510;BA.debugLine="Log(\"AAA: \" & newPromo & \"|\" & promoABorrar)";
+__c.LogImpl("517498194","AAA: "+_newpromo+"|"+_promoaborrar,0);
+ //BA.debugLineNum = 511;BA.debugLine="If newPromo = promoABorrar Then";
+if ((_newpromo).equals(_promoaborrar)) {
+ //BA.debugLineNum = 512;BA.debugLine="newPromo = 1";
+_newpromo = BA.NumberToString(1);
+ //BA.debugLineNum = 513;BA.debugLine="newPrecio = Subs.traePrecio(pr, False) * pr1.G";
+_newprecio = BA.NumberToString((double)(Double.parseDouble(_subs._traeprecio /*String*/ (ba,_pr,BA.ObjectToString(__c.False))))*(double)(BA.ObjectToNumber(_pr1.Get((Object)("cant")))));
+ //BA.debugLineNum = 515;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_COSTO_TOT = "+__c.SmartStringFormatter("",(Object)(_newprecio))+", HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' WHERE HVD_PRONOMBRE = '"+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+"' and HVD_cliente in (Select CUENTA from cuentaa)"));
+ //BA.debugLineNum = 516;BA.debugLine="LogColor(\"CAMBIAMOS PROMO: \" & newPromo, Color";
+__c.LogImpl("517498200","CAMBIAMOS PROMO: "+_newpromo,__c.Colors.Magenta);
+ };
+ //BA.debugLineNum = 518;BA.debugLine="If newPromo <> \"1\" Then";
+if ((_newpromo).equals("1") == false) {
+ //BA.debugLineNum = 520;BA.debugLine="bgColor = Colors.White";
+_bgcolor = __c.Colors.White;
+ };
+ //BA.debugLineNum = 522;BA.debugLine="Log($\"CLI: ${pr1.Get(\"nombre\")}, ${newPrecio},";
+__c.LogImpl("517498206",("CLI: "+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+", "+__c.SmartStringFormatter("",(Object)(_newprecio))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant")))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant2")))+""),0);
+ //BA.debugLineNum = 523;BA.debugLine="clv_pedido.Add(CreateListItem(pr1.Get(\"nombre\")";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(BA.ObjectToString(_pr1.Get((Object)("nombre"))),_newprecio,(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant")))),(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant2")))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (50)),_bmp,_pr,_bgcolor,_textcolor,_newpromo,BA.ObjectToString(_pr1.Get((Object)("cli_orig")))).getObject())),_pr1.Get((Object)("nombre")));
+ //BA.debugLineNum = 524;BA.debugLine="reconstruirPedido = False";
+_reconstruirpedido = __c.False;
+ }
+};
+ //BA.debugLineNum = 526;BA.debugLine="promoABorrar = \"\"";
+_promoaborrar = "";
+ };
+ //BA.debugLineNum = 528;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $";
+__c.LogImpl("517498212",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);
+ //BA.debugLineNum = 529;BA.debugLine="LogColor(\"prodsMap=\" & prodsMap, Colors.Green)";
+__c.LogImpl("517498213","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Green);
+ //BA.debugLineNum = 532;BA.debugLine="LogColor(prodsMap, Colors.Blue)";
+__c.LogImpl("517498216",BA.ObjectToString(_prodsmap),__c.Colors.Blue);
+ //BA.debugLineNum = 533;BA.debugLine="c = Starter.skmt.ExecQuery($\"SELECT sum(HVD_CANT)";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT sum(HVD_CANT) as CANTIDAD FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
+ //BA.debugLineNum = 534;BA.debugLine="Dim cantidad1 As String = 0";
+_cantidad1 = BA.NumberToString(0);
+ //BA.debugLineNum = 535;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 536;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 537;BA.debugLine="cantidad1 = c.GetString(\"CANTIDAD\")";
+_cantidad1 = _c.GetString("CANTIDAD");
+ //BA.debugLineNum = 538;BA.debugLine="L_CANT.Text = Round(cantidad1)";
+_l_cant.setText(BA.ObjectToCharSequence(__c.Round((double)(Double.parseDouble(_cantidad1)))));
+ };
+ //BA.debugLineNum = 540;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 542;BA.debugLine="Dim totalfinal As String = 0";
+_totalfinal = BA.NumberToString(0);
+ //BA.debugLineNum = 543;BA.debugLine="For Each pr As String In prodsMap.Keys";
+{
+final anywheresoftware.b4a.BA.IterableList group88 = _prodsmap.Keys();
+final int groupLen88 = group88.getSize()
+;int index88 = 0;
+;
+for (; index88 < groupLen88;index88++){
+_pr = BA.ObjectToString(group88.Get(index88));
+ //BA.debugLineNum = 544;BA.debugLine="Private pr1 As Map = prodsMap.Get(pr)";
+_pr1 = new anywheresoftware.b4a.objects.collections.Map();
+_pr1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap.Get((Object)(_pr))));
+ //BA.debugLineNum = 546;BA.debugLine="Dim x As Cursor = Starter.skmt.ExecQuery($\"SELEC";
+_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_pr))+"'"))));
+ //BA.debugLineNum = 547;BA.debugLine="c = Starter.skmt.ExecQuery($\"SELECT HVD_CANT FRO";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT HVD_CANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID ='"+__c.SmartStringFormatter("",(Object)(_pr))+"' "))));
+ //BA.debugLineNum = 548;BA.debugLine="Dim cantidady As String = 0";
+_cantidady = BA.NumberToString(0);
+ //BA.debugLineNum = 549;BA.debugLine="If c.RowCount >0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 550;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 551;BA.debugLine="cantidady = c.GetString(\"HVD_CANT\")";
+_cantidady = _c.GetString("HVD_CANT");
+ };
+ //BA.debugLineNum = 554;BA.debugLine="If x.RowCount > 0 Then";
+if (_x.getRowCount()>0) {
+ //BA.debugLineNum = 555;BA.debugLine="x.Position = 0";
+_x.setPosition((int) (0));
+ //BA.debugLineNum = 557;BA.debugLine="Dim preciou As String = x.GetString(\"CAT_GP_PRE";
+_preciou = _x.GetString("CAT_GP_PRECIO");
+ //BA.debugLineNum = 558;BA.debugLine="Dim costototalhist As String = preciou * canti";
+_costototalhist = BA.NumberToString((double)(Double.parseDouble(_preciou))*(double)(Double.parseDouble(_cantidady)));
+ };
+ //BA.debugLineNum = 561;BA.debugLine="totalfinal = totalfinal + costototalhist";
+_totalfinal = BA.NumberToString((double)(Double.parseDouble(_totalfinal))+(double)(Double.parseDouble(_costototalhist)));
+ //BA.debugLineNum = 562;BA.debugLine="x.Close";
+_x.Close();
+ }
+};
+ //BA.debugLineNum = 564;BA.debugLine="L_TOTAL.Text = Round2(totalfinal, 2)";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_totalfinal)),(int) (2))));
+ //BA.debugLineNum = 565;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 567;BA.debugLine="c = Starter.skmt.ExecQuery(\"select COUNT(*) AS CU";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")));
+ //BA.debugLineNum = 568;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 569;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 570;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
+if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) {
+ //BA.debugLineNum = 572;BA.debugLine="Dim z As Cursor = Starter.skmt.ExecQuery($\"sele";
+_z = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_z = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select SUM(REP_CANT) AS CANTIDAD , SUM(REP_PRECIO) AS PRECIO from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE"))));
+ //BA.debugLineNum = 573;BA.debugLine="Dim cantidad2 As String = 0";
+_cantidad2 = BA.NumberToString(0);
+ //BA.debugLineNum = 575;BA.debugLine="If z.RowCount > 0 Then";
+if (_z.getRowCount()>0) {
+ //BA.debugLineNum = 576;BA.debugLine="z.Position = 0";
+_z.setPosition((int) (0));
+ //BA.debugLineNum = 577;BA.debugLine="cantidad2= z.GetString(\"CANTIDAD\")";
+_cantidad2 = _z.GetString("CANTIDAD");
+ //BA.debugLineNum = 580;BA.debugLine="L_CANT.Text = Round((cantidad1 + cantidad2))";
+_l_cant.setText(BA.ObjectToCharSequence(__c.Round(((double)(Double.parseDouble(_cantidad1))+(double)(Double.parseDouble(_cantidad2))))));
+ };
+ //BA.debugLineNum = 582;BA.debugLine="z.Close";
+_z.Close();
+ };
+ };
+ //BA.debugLineNum = 590;BA.debugLine="End Sub";
+return "";
+}
+public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+ //BA.debugLineNum = 180;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 183;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 43;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 44;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 45;BA.debugLine="End Sub";
+return null;
+}
+public String _l_pcant_click() throws Exception{
+ //BA.debugLineNum = 597;BA.debugLine="Private Sub l_pCant_Click";
+ //BA.debugLineNum = 599;BA.debugLine="End Sub";
+return "";
+}
+public String _listview1_itemlongclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 197;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
+ //BA.debugLineNum = 241;BA.debugLine="End Sub";
+return "";
+}
+public String _lv2_itemclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 243;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec";
+ //BA.debugLineNum = 304;BA.debugLine="End Sub";
+return "";
+}
+public String _p_prods_click() throws Exception{
+ //BA.debugLineNum = 601;BA.debugLine="Sub p_prods_Click";
+ //BA.debugLineNum = 602;BA.debugLine="Log(Sender.As(Panel).tag)";
+__c.LogImpl("517694721",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
+ //BA.debugLineNum = 603;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
+ return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_mapas.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_mapas.java
new file mode 100644
index 0000000..bfcb8a0
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_mapas.java
@@ -0,0 +1,73 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_mapas extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_mapas");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_mapas.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 13;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 16;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 8;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_noventa.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_noventa.java
new file mode 100644
index 0000000..b229715
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_noventa.java
@@ -0,0 +1,958 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_noventa extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_noventa");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_noventa.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.gps.GPS _g = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public String _comentario = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _cancela = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _guarda = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_1 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_2 = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_3 = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _e_comm = null;
+public String _motivo = "";
+public String _cuenta = "";
+public String _usuario = "";
+public String _sdate = "";
+public String _stime = "";
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_4 = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
+public reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null;
+public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb_reprogramar = null;
+public int _reprogramar = 0;
+public String _pasa_imp = "";
+public reparto_izca.keymon.lat.escposprinter _printer1 = null;
+public boolean _impresoraconectada = false;
+public int _errorimpresora = 0;
+public anywheresoftware.b4a.objects.Serial _cmp20 = null;
+public anywheresoftware.b4a.objects.Serial.BluetoothAdmin _btadmin = null;
+public anywheresoftware.b4a.objects.streams.File.TextWriterWrapper _printer = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public void _b_imp_click() throws Exception{
+ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_B_IMP_Click extends BA.ResumableSub {
+public ResumableSub_B_IMP_Click(reparto_izca.keymon.lat.c_noventa parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_noventa parent;
+int _cont = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _clientecur = null;
+int _resultado = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 144;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 145;BA.debugLine="c.Position=0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 146;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+parent._usuario = parent._c.GetString("USUARIO");
+ //BA.debugLineNum = 148;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+parent.__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 149;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
+parent.__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 150;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 151;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 152;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 158;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
+parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
+ //BA.debugLineNum = 159;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 160;BA.debugLine="If Not(Printer1.IsConnected) Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 38;
+if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 3;
+}else {
+this.state = 21;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 162;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 163;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 164;BA.debugLine="Do While Not(impresoraConectada)";
+if (true) break;
+
+case 4:
+//do while
+this.state = 19;
+while (parent.__c.Not(parent._impresoraconectada)) {
+this.state = 6;
+if (true) break;
+}
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 165;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 55;
+return;
+case 55:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 167;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 168;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
+if (true) break;
+
+case 7:
+//if
+this.state = 12;
+if (_cont==2) {
+this.state = 9;
+;}if (true) break;
+
+case 9:
+//C
+this.state = 12;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 12:
+//C
+this.state = 13;
+;
+ //BA.debugLineNum = 169;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 13:
+//if
+this.state = 18;
+if (_cont>3) {
+this.state = 15;
+;}if (true) break;
+
+case 15:
+//C
+this.state = 18;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 18:
+//C
+this.state = 4;
+;
+ if (true) break;
+
+case 19:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 171;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 56;
+return;
+case 56:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 172;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 175;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 176;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 177;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
+if (true) break;
+
+case 22:
+//do while
+this.state = 37;
+while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 24;
+if (true) break;
+}
+if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 178;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 57;
+return;
+case 57:
+//C
+this.state = 25;
+;
+ //BA.debugLineNum = 180;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 181;BA.debugLine="If cont = 2 Then Printer1.Connect";
+if (true) break;
+
+case 25:
+//if
+this.state = 30;
+if (_cont==2) {
+this.state = 27;
+;}if (true) break;
+
+case 27:
+//C
+this.state = 30;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 30:
+//C
+this.state = 31;
+;
+ //BA.debugLineNum = 182;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 31:
+//if
+this.state = 36;
+if (_cont>3) {
+this.state = 33;
+;}if (true) break;
+
+case 33:
+//C
+this.state = 36;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 36:
+//C
+this.state = 22;
+;
+ if (true) break;
+
+case 37:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 184;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 58;
+return;
+case 58:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 185;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 38:
+//C
+this.state = 39;
+;
+ //BA.debugLineNum = 189;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL";
+parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF);
+ //BA.debugLineNum = 191;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL";
+parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+parent.__c.CRLF);
+ //BA.debugLineNum = 194;BA.debugLine="Dim clientecur As Cursor = Starter.skmt.ExecQuery";
+_clientecur = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_clientecur = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_NOMBRE FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 195;BA.debugLine="clientecur.Position = 0";
+_clientecur.setPosition((int) (0));
+ //BA.debugLineNum = 197;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & Subs.traeC";
+parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._subs._traecliente /*String*/ (ba)+parent.__c.CRLF);
+ //BA.debugLineNum = 199;BA.debugLine="Printer1.WriteString(\"Tienda: \" & clientecur.GetS";
+parent._printer1._writestring /*String*/ ("Tienda: "+_clientecur.GetString("CAT_CL_NOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 201;BA.debugLine="Printer1.WriteString(sDate &\" \"& sTime & CRLF)";
+parent._printer1._writestring /*String*/ (parent._sdate+" "+parent._stime+parent.__c.CRLF);
+ //BA.debugLineNum = 202;BA.debugLine="If r_1.Checked Then";
+if (true) break;
+
+case 39:
+//if
+this.state = 48;
+if (parent._r_1.getChecked()) {
+this.state = 41;
+}else if(parent._r_2.getChecked()) {
+this.state = 43;
+}else if(parent._r_3.getChecked()) {
+this.state = 45;
+}else {
+this.state = 47;
+}if (true) break;
+
+case 41:
+//C
+this.state = 48;
+ //BA.debugLineNum = 203;BA.debugLine="motivo = \"CERRADO\"";
+parent._motivo = "CERRADO";
+ if (true) break;
+
+case 43:
+//C
+this.state = 48;
+ //BA.debugLineNum = 205;BA.debugLine="motivo = \"NO PIDIO\"";
+parent._motivo = "NO PIDIO";
+ if (true) break;
+
+case 45:
+//C
+this.state = 48;
+ //BA.debugLineNum = 207;BA.debugLine="motivo = \"CANCELA\"";
+parent._motivo = "CANCELA";
+ if (true) break;
+
+case 47:
+//C
+this.state = 48;
+ //BA.debugLineNum = 209;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\"";
+parent._motivo = "NO ESTA EL ENCARGADO";
+ if (true) break;
+
+case 48:
+//C
+this.state = 49;
+;
+ //BA.debugLineNum = 211;BA.debugLine="Printer1.WriteString(motivo & CRLF)";
+parent._printer1._writestring /*String*/ (parent._motivo+parent.__c.CRLF);
+ //BA.debugLineNum = 215;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 216;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
+parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+parent.__c.CRLF);
+ //BA.debugLineNum = 217;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 218;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 219;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 220;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 221;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 59;
+return;
+case 59:
+//C
+this.state = 49;
+;
+ //BA.debugLineNum = 222;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 224;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 226;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket?";
+parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False);
+ //BA.debugLineNum = 227;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 60;
+return;
+case 60:
+//C
+this.state = 49;
+_resultado = (Integer) result[0];
+;
+ //BA.debugLineNum = 228;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
+if (true) break;
+
+case 49:
+//if
+this.state = 54;
+if (_resultado==parent.__c.DialogResponse.POSITIVE) {
+this.state = 51;
+}else {
+this.state = 53;
+}if (true) break;
+
+case 51:
+//C
+this.state = 54;
+ //BA.debugLineNum = 229;BA.debugLine="B_IMP_Click";
+parent._b_imp_click();
+ if (true) break;
+
+case 53:
+//C
+this.state = 54;
+ //BA.debugLineNum = 231;BA.debugLine="Guardado";
+parent._guardado();
+ if (true) break;
+
+case 54:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 233;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _msgbox_result(int _resultado) throws Exception{
+}
+public String _b4xpage_appear() throws Exception{
+ //BA.debugLineNum = 47;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 48;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
+_printer1._initialize /*String*/ (ba,this,"Printer1");
+ //BA.debugLineNum = 50;BA.debugLine="If Printer1.IsConnected = False Then";
+if (_printer1._isconnected /*boolean*/ ()==__c.False) {
+ }else {
+ //BA.debugLineNum = 54;BA.debugLine="Printer1.DisConnect";
+_printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 55;BA.debugLine="Printer1.Connect";
+_printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 56;BA.debugLine="Log(\"2\")";
+__c.LogImpl("518153481","2",0);
+ };
+ //BA.debugLineNum = 58;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
+_btadmin.Initialize(ba,"BlueTeeth");
+ //BA.debugLineNum = 59;BA.debugLine="cmp20.Initialize(\"Printer\")";
+_cmp20.Initialize("Printer");
+ //BA.debugLineNum = 61;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 62;BA.debugLine="e_comm.Text=\"\"";
+_e_comm.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 63;BA.debugLine="r_1.Checked = False";
+_r_1.setChecked(__c.False);
+ //BA.debugLineNum = 64;BA.debugLine="r_2.Checked = False";
+_r_2.setChecked(__c.False);
+ //BA.debugLineNum = 65;BA.debugLine="r_3.Checked = False";
+_r_3.setChecked(__c.False);
+ //BA.debugLineNum = 66;BA.debugLine="r_4.Checked = False";
+_r_4.setChecked(__c.False);
+ //BA.debugLineNum = 67;BA.debugLine="cb_reprogramar.Checked = False";
+_cb_reprogramar.setChecked(__c.False);
+ //BA.debugLineNum = 68;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 38;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 39;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 41;BA.debugLine="Root.LoadLayout(\"no_venta\")";
+_root.LoadLayout("no_venta",ba);
+ //BA.debugLineNum = 42;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 43;BA.debugLine="End Sub";
+return "";
+}
+public String _cancela_click() throws Exception{
+ //BA.debugLineNum = 75;BA.debugLine="Sub CANCELA_Click";
+ //BA.debugLineNum = 76;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 77;BA.debugLine="End Sub";
+return "";
+}
+public String _cb_reprogramar_checkedchange(boolean _checked) throws Exception{
+ //BA.debugLineNum = 134;BA.debugLine="Private Sub cb_reprogramar_CheckedChange(Checked A";
+ //BA.debugLineNum = 135;BA.debugLine="If Checked Then";
+if (_checked) {
+ //BA.debugLineNum = 136;BA.debugLine="reprogramar = 1";
+_reprogramar = (int) (1);
+ }else {
+ //BA.debugLineNum = 138;BA.debugLine="reprogramar = 0";
+_reprogramar = (int) (0);
+ };
+ //BA.debugLineNum = 140;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS";
+_g = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 5;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 6;BA.debugLine="Dim COMENTARIO As String";
+_comentario = "";
+ //BA.debugLineNum = 7;BA.debugLine="Dim CANCELA As Button";
+_cancela = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="Dim GUARDA As Button";
+_guarda = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Dim r_1 As RadioButton";
+_r_1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim r_2 As RadioButton";
+_r_2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Dim r_3 As RadioButton";
+_r_3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim e_comm As EditText";
+_e_comm = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Dim motivo As String";
+_motivo = "";
+ //BA.debugLineNum = 14;BA.debugLine="Dim cuenta As String";
+_cuenta = "";
+ //BA.debugLineNum = 15;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 16;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 17;BA.debugLine="Dim r_4 As RadioButton";
+_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Dim d As Cursor";
+_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Dim reqManager As DBRequestManager";
+_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
+ //BA.debugLineNum = 21;BA.debugLine="Private cb_reprogramar As CheckBox";
+_cb_reprogramar = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Dim reprogramar As Int = 0";
+_reprogramar = (int) (0);
+ //BA.debugLineNum = 23;BA.debugLine="Dim PASA_IMP As String";
+_pasa_imp = "";
+ //BA.debugLineNum = 24;BA.debugLine="Dim Printer1 As EscPosPrinter";
+_printer1 = new reparto_izca.keymon.lat.escposprinter();
+ //BA.debugLineNum = 25;BA.debugLine="Dim impresoraConectada As Boolean = False";
+_impresoraconectada = __c.False;
+ //BA.debugLineNum = 26;BA.debugLine="Dim errorImpresora As Int = 0";
+_errorimpresora = (int) (0);
+ //BA.debugLineNum = 27;BA.debugLine="Dim cmp20 As Serial";
+_cmp20 = new anywheresoftware.b4a.objects.Serial();
+ //BA.debugLineNum = 28;BA.debugLine="Dim btAdmin As BluetoothAdmin";
+_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
+ //BA.debugLineNum = 29;BA.debugLine="Dim printer As TextWriter";
+_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="End Sub";
+return "";
+}
+public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+ //BA.debugLineNum = 70;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 73;BA.debugLine="End Sub";
+return "";
+}
+public String _guarda_click() throws Exception{
+ //BA.debugLineNum = 79;BA.debugLine="Sub GUARDA_Click";
+ //BA.debugLineNum = 80;BA.debugLine="If r_1.Checked = False And r_2.Checked = False An";
+if (_r_1.getChecked()==__c.False && _r_2.getChecked()==__c.False && _r_3.getChecked()==__c.False && _r_4.getChecked()==__c.False) {
+ //BA.debugLineNum = 81;BA.debugLine="MsgboxAsync(\"Selecciona un motivo de rechazo\",\"A";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Selecciona un motivo de rechazo"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 83;BA.debugLine="B_IMP_Click";
+_b_imp_click();
+ };
+ //BA.debugLineNum = 86;BA.debugLine="End Sub";
+return "";
+}
+public String _guardado() throws Exception{
+String _rutaactualizar = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null;
+String _estecliente = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rv = null;
+int _i2 = 0;
+int _i = 0;
+String _ruta = "";
+String _rutapre = "";
+String _fechaprev = "";
+ //BA.debugLineNum = 235;BA.debugLine="Sub Guardado";
+ //BA.debugLineNum = 237;BA.debugLine="If r_1.Checked Then";
+if (_r_1.getChecked()) {
+ //BA.debugLineNum = 238;BA.debugLine="motivo = \"CERRADO\"";
+_motivo = "CERRADO";
+ }else if(_r_2.getChecked()) {
+ //BA.debugLineNum = 240;BA.debugLine="motivo = \"NO PIDIO\"";
+_motivo = "NO PIDIO";
+ }else if(_r_3.getChecked()) {
+ //BA.debugLineNum = 242;BA.debugLine="motivo = \"CANCELA\"";
+_motivo = "CANCELA";
+ }else {
+ //BA.debugLineNum = 244;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\"";
+_motivo = "NO ESTA EL ENCARGADO";
+ };
+ //BA.debugLineNum = 247;BA.debugLine="If motivo <> \"CERRADO\" Or motivo = \"CERRADO\" The";
+if ((_motivo).equals("CERRADO") == false || (_motivo).equals("CERRADO")) {
+ //BA.debugLineNum = 248;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 249;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
+__c.DateTime.setTimeFormat("HHmmss");
+ //BA.debugLineNum = 250;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 251;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 252;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cue";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa")));
+ //BA.debugLineNum = 253;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 254;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+_cuenta = _c.GetString("CUENTA");
+ //BA.debugLineNum = 255;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 256;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 257;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 258;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 259;BA.debugLine="Dim rutaactualizar As String";
+_rutaactualizar = "";
+ //BA.debugLineNum = 260;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELE";
+_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 261;BA.debugLine="If rut.RowCount > 0 Then";
+if (_rut.getRowCount()>0) {
+ //BA.debugLineNum = 262;BA.debugLine="rut.Position = 0";
+_rut.setPosition((int) (0));
+ //BA.debugLineNum = 263;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")";
+_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
+ };
+ //BA.debugLineNum = 265;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) AND NV_RUTA ='"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' "));
+ //BA.debugLineNum = 267;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_NUM_REGISTR";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_NUM_REGISTRO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_PROID, CAT_GP_PRECIO from HIST_VENTAS2 join CAT_GUNAPROD on CAT_GP_ID = HVD_PROID WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 268;BA.debugLine="If c.RowCount > 0 Then 'Si hay pedido en HIST_V";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 271;BA.debugLine="Private esteCliente As String = Subs.traeClient";
+_estecliente = _subs._traecliente /*String*/ (ba);
+ //BA.debugLineNum = 272;BA.debugLine="Private rv As Cursor = Starter.skmt.ExecQuery($";
+_rv = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_estecliente))+"' and REP_CLI_ORIG <> '"+__c.SmartStringFormatter("",(Object)(_estecliente))+"' and REP_RECHAZO = 0"))));
+ //BA.debugLineNum = 273;BA.debugLine="If rv.RowCount > 0 Then 'Si tenemos venta en el";
+if (_rv.getRowCount()>0) {
+ //BA.debugLineNum = 274;BA.debugLine="For i2=0 To rv.RowCount - 1";
+{
+final int step34 = 1;
+final int limit34 = (int) (_rv.getRowCount()-1);
+_i2 = (int) (0) ;
+for (;_i2 <= limit34 ;_i2 = _i2 + step34 ) {
+ //BA.debugLineNum = 275;BA.debugLine="rv.Position = i2";
+_rv.setPosition(_i2);
+ //BA.debugLineNum = 276;BA.debugLine="Log($\"Actualizamos REPARTO - cliente=${rv.Get";
+__c.LogImpl("518677801",("Actualizamos REPARTO - cliente="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLIENTE")))+", cliente orignal="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+", le agregamos "+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+""),0);
+ //BA.debugLineNum = 277;BA.debugLine="Starter.skmt.ExecNonQuery($\"update REPARTO se";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update REPARTO set REP_CANT = REP_CANT + "+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+" where REP_RECHAZO = '1' and REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"'"));
+ }
+};
+ };
+ //BA.debugLineNum = 281;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from reparto";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from reparto where REP_CLIENTE IN (Select CUENTA from cuentaa)");
+ //BA.debugLineNum = 282;BA.debugLine="For i=0 To c.RowCount - 1 'Insertamos los produ";
+{
+final int step41 = 1;
+final int limit41 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit41 ;_i = _i + step41 ) {
+ //BA.debugLineNum = 283;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 284;BA.debugLine="Log($\"REGISTRO= ${c.GetString(\"HVD_NUM_REGISTR";
+__c.LogImpl("518677809",("REGISTRO= "+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+""),0);
+ //BA.debugLineNum = 285;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("HVD_CLIENTE"),_c.GetString("HVD_PRONOMBRE"),_c.GetString("HVD_CANT"),_c.GetString("HVD_COSTO_TOT"),_c.GetString("HVD_FECHA"),_c.GetString("HVD_PROID"),_c.GetString("CAT_GP_PRECIO"),_c.GetString("HVD_NUM_REGISTRO"),_c.GetString("HVD_CLIENTE")}));
+ //BA.debugLineNum = 286;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("HVD_CLIENTE"),_c.GetString("HVD_PRONOMBRE"),BA.NumberToString(0),_c.GetString("HVD_COSTO_TOT"),_c.GetString("HVD_FECHA"),_c.GetString("HVD_PROID"),_c.GetString("CAT_GP_PRECIO"),_c.GetString("HVD_NUM_REGISTRO"),_c.GetString("HVD_CLIENTE")}));
+ //BA.debugLineNum = 287;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_c.GetString("HVD_CANT")),(Object)(_c.GetString("HVD_PRONOMBRE"))}));
+ }
+};
+ };
+ //BA.debugLineNum = 291;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_motivo),(Object)(_e_comm.getText()),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(_reprogramar)}));
+ //BA.debugLineNum = 292;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+__c.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'"));
+ //BA.debugLineNum = 293;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SE";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
+ //BA.debugLineNum = 294;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS s";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
+ //BA.debugLineNum = 295;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDIDO WH";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
+ //BA.debugLineNum = 296;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RU";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
+ //BA.debugLineNum = 297;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 298;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")";
+_ruta = _d.GetString("RUTAA");
+ //BA.debugLineNum = 299;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 300;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA F";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 301;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 302;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUTA";
+_rutapre = _d.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 303;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 304;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FRO";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 305;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 306;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_FECHA";
+_fechaprev = _d.GetString("HVD_FECHA");
+ //BA.debugLineNum = 307;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 308;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
+ //BA.debugLineNum = 309;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 310;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO_";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_cuenta,_usuario,_sdate+" "+_stime,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,_fechaprev,_motivo,_e_comm.getText(),"NO ENTREGADO"}));
+ //BA.debugLineNum = 317;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ }else {
+ //BA.debugLineNum = 320;BA.debugLine="COMENTARIO = e_comm.Text";
+_comentario = _e_comm.getText();
+ };
+ //BA.debugLineNum = 325;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 33;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 34;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return null;
+}
+public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+reparto_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null;
+String _cliente = "";
+Object[] _records = null;
+String _k = "";
+ //BA.debugLineNum = 109;BA.debugLine="Sub JobDone(Job As HttpJob)";
+ //BA.debugLineNum = 110;BA.debugLine="Log(Job.Success)";
+__c.LogImpl("518481153",BA.ObjectToString(_job._success /*boolean*/ ),0);
+ //BA.debugLineNum = 111;BA.debugLine="If Job.Success = False Then";
+if (_job._success /*boolean*/ ==__c.False) {
+ }else {
+ //BA.debugLineNum = 114;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
+__c.LogImpl("518481157","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
+ //BA.debugLineNum = 115;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 116;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
+_resultado = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 117;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART";
+if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_REPARTOPendientes_head_")>-1) {
+ //BA.debugLineNum = 118;BA.debugLine="Private cliente As String= resultado.Tag";
+_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
+ //BA.debugLineNum = 119;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
+_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
+ //BA.debugLineNum = 120;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
+__c.LogImpl("518481163",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
+ //BA.debugLineNum = 121;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"1",_cliente,"1"}));
+ //BA.debugLineNum = 122;BA.debugLine="For Each records() As Object In resultado.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group12 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen12 = group12.getSize()
+;int index12 = 0;
+;
+for (; index12 < groupLen12;index12++){
+_records = (Object[])(group12.Get(index12));
+ //BA.debugLineNum = 123;BA.debugLine="For Each k As String In resultado.Columns.Key";
+{
+final anywheresoftware.b4a.BA.IterableList group13 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
+final int groupLen13 = group13.getSize()
+;int index13 = 0;
+;
+for (; index13 < groupLen13;index13++){
+_k = BA.ObjectToString(group13.Get(index13));
+ //BA.debugLineNum = 124;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
+__c.LogImpl("518481167",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
+ }
+};
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 129;BA.debugLine="Job.Release";
+_job._release /*String*/ ();
+ };
+ //BA.debugLineNum = 132;BA.debugLine="End Sub";
+return "";
+}
+public String _mandapendientesreparto() throws Exception{
+ //BA.debugLineNum = 89;BA.debugLine="Sub mandaPendientesreparto";
+ //BA.debugLineNum = 105;BA.debugLine="End Sub";
+return "";
+}
+public String _printer_connected(boolean _success) throws Exception{
+ //BA.debugLineNum = 352;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
+ //BA.debugLineNum = 353;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 355;BA.debugLine="PASA_IMP = \"1\"";
+_pasa_imp = "1";
+ }else {
+ //BA.debugLineNum = 358;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel";
+if (__c.Msgbox2(BA.ObjectToCharSequence(""),BA.ObjectToCharSequence("Printer Error"),"Reprint","Cancel","",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) {
+ //BA.debugLineNum = 359;BA.debugLine="StartPrinter";
+_startprinter();
+ };
+ };
+ //BA.debugLineNum = 362;BA.debugLine="End Sub";
+return "";
+}
+public String _printer1_connected(boolean _success) throws Exception{
+ //BA.debugLineNum = 327;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
+ //BA.debugLineNum = 329;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 330;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
+ //BA.debugLineNum = 331;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP")}));
+ //BA.debugLineNum = 332;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP"),(Object)(_starter._mac_impresora /*String*/ )}));
+ //BA.debugLineNum = 335;BA.debugLine="impresoraConectada = True";
+_impresoraconectada = __c.True;
+ }else {
+ //BA.debugLineNum = 339;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
+__c.LogImpl("518743308","Error conectando la impresora",__c.Colors.Red);
+ //BA.debugLineNum = 340;BA.debugLine="errorImpresora = errorImpresora + 1";
+_errorimpresora = (int) (_errorimpresora+1);
+ //BA.debugLineNum = 341;BA.debugLine="If errorImpresora > 1 Then";
+if (_errorimpresora>1) {
+ //BA.debugLineNum = 342;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
+_starter._mac_impresora /*String*/ = "0";
+ //BA.debugLineNum = 343;BA.debugLine="errorImpresora = 0";
+_errorimpresora = (int) (0);
+ };
+ };
+ //BA.debugLineNum = 346;BA.debugLine="End Sub";
+return "";
+}
+public String _printer1_error() throws Exception{
+ //BA.debugLineNum = 348;BA.debugLine="Sub Printer1_Error";
+ //BA.debugLineNum = 349;BA.debugLine="Log(\"error printer\")";
+__c.LogImpl("518808833","error printer",0);
+ //BA.debugLineNum = 350;BA.debugLine="End Sub";
+return "";
+}
+public String _startprinter() throws Exception{
+anywheresoftware.b4a.objects.collections.Map _paireddevices = null;
+anywheresoftware.b4a.objects.collections.List _l1 = null;
+int _resimp = 0;
+int _i = 0;
+ //BA.debugLineNum = 364;BA.debugLine="Sub StartPrinter";
+ //BA.debugLineNum = 365;BA.debugLine="Dim PairedDevices As Map";
+_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 366;BA.debugLine="Dim L1 As List";
+_l1 = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 367;BA.debugLine="Dim resimp As Int";
+_resimp = 0;
+ //BA.debugLineNum = 368;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
+ //BA.debugLineNum = 369;BA.debugLine="PairedDevices.Initialize";
+_paireddevices.Initialize();
+ //BA.debugLineNum = 370;BA.debugLine="Try";
+try { //BA.debugLineNum = 371;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
+_paireddevices = _cmp20.GetPairedDevices();
+ }
+ catch (Exception e9) {
+ ba.setLastException(e9); //BA.debugLineNum = 373;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
+__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
+ //BA.debugLineNum = 374;BA.debugLine="printer.Close";
+_printer.Close();
+ //BA.debugLineNum = 375;BA.debugLine="cmp20.Disconnect";
+_cmp20.Disconnect();
+ };
+ //BA.debugLineNum = 378;BA.debugLine="If PairedDevices.Size = 0 Then";
+if (_paireddevices.getSize()==0) {
+ //BA.debugLineNum = 379;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
+__c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba);
+ //BA.debugLineNum = 380;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 383;BA.debugLine="If PairedDevices.Size = 1 Then";
+if (_paireddevices.getSize()==1) {
+ //BA.debugLineNum = 384;BA.debugLine="Try";
+try { //BA.debugLineNum = 385;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
+_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0)))));
+ }
+ catch (Exception e21) {
+ ba.setLastException(e21); //BA.debugLineNum = 387;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
+__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
+ //BA.debugLineNum = 388;BA.debugLine="printer.Close";
+_printer.Close();
+ //BA.debugLineNum = 389;BA.debugLine="cmp20.Disconnect";
+_cmp20.Disconnect();
+ };
+ }else {
+ //BA.debugLineNum = 392;BA.debugLine="L1.Initialize";
+_l1.Initialize();
+ //BA.debugLineNum = 393;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
+{
+final int step27 = 1;
+final int limit27 = (int) (_paireddevices.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit27 ;_i = _i + step27 ) {
+ //BA.debugLineNum = 394;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
+_l1.Add(_paireddevices.GetKeyAt(_i));
+ }
+};
+ //BA.debugLineNum = 396;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
+_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
+ //BA.debugLineNum = 397;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
+if (_resimp!=__c.DialogResponse.CANCEL) {
+ //BA.debugLineNum = 398;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
+_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp))));
+ };
+ };
+ //BA.debugLineNum = 401;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
+ return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
+if (BA.fastSubCompare(sub, "JOBDONE"))
+ return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_nuevocliente.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_nuevocliente.java
new file mode 100644
index 0000000..04664aa
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_nuevocliente.java
@@ -0,0 +1,73 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_nuevocliente extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_nuevocliente");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_nuevocliente.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 13;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 16;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 8;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_pedidos.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_pedidos.java
new file mode 100644
index 0000000..1bc82a1
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_pedidos.java
@@ -0,0 +1,73 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_pedidos extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_pedidos");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_pedidos.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 13;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 16;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 8;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_principal.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_principal.java
new file mode 100644
index 0000000..1067529
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_principal.java
@@ -0,0 +1,5363 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_principal extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_principal");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_principal.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null;
+public String _conectado = "";
+public anywheresoftware.b4a.objects.Timer _t1 = null;
+public anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
+public anywheresoftware.b4a.phone.Phone _phone = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _trabajar = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _b = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _e = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _f1 = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _f2 = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _f3 = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _f4 = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _lv = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _cargar = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _pendiente = null;
+public byte[] _foto1 = null;
+public String _usuario = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _connecta = null;
+public String _conn = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _subir = null;
+public reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
+public int _tope = 0;
+public int _count_clie = 0;
+public String _fecha = "";
+public double _drop = 0;
+public double _efectiva = 0;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _l = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_aliquidar = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cuantosc = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_montosalida = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_ctast = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _busca = null;
+public String _cuantos = "";
+public anywheresoftware.b4a.objects.LabelWrapper _l_cuantosn = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _e_ruta = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_porvisitar = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_mapa = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_ruta = null;
+public String _almacen = "";
+public anywheresoftware.b4a.objects.ImageViewWrapper _img2 = null;
+public String _listo1 = "";
+public String _listo2 = "";
+public String _listo3 = "";
+public String _listo4 = "";
+public String _listo5 = "";
+public String _ejecutando = "";
+public String _res = "";
+public String _inve = "";
+public String _cuantos_pedidosc = "";
+public String _cuantos_pedido = "";
+public String _cuantos_noventa = "";
+public String _datos_iguales = "";
+public anywheresoftware.b4a.phone.Phone.PhoneId _p = null;
+public String _imei = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _inv = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_montoe = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_clieprod = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_regresa = null;
+public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null;
+public String _estatus = "";
+public int[] _batterystatus = null;
+public reparto_izca.keymon.lat.batteryutilities _bu = null;
+public String _ruta_t = "";
+public anywheresoftware.b4a.objects.collections.List _reqs = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _btn_ubicar_ru = null;
+public String _cargo = "";
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public anywheresoftware.b4a.objects.IME _ime = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_tabulador = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_rutasp = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_rechazo = null;
+public anywheresoftware.b4a.objects.LabelWrapper _label9 = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _cp = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_check = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_rechazos = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_prod = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_regreso = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _lv_prod_prin = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_venta_emp = null;
+public anywheresoftware.b4a.objects.Timer _t8 = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_carga = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_carga = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_carga = null;
+public anywheresoftware.b4a.objects.ProgressBarWrapper _pb_carga = null;
+public anywheresoftware.b4a.objects.ProgressBarWrapper _pb_carga2 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_carga2 = null;
+public anywheresoftware.b4a.objects.Serial.BluetoothAdmin _btadmin = null;
+public anywheresoftware.b4a.objects.Serial _cmp20 = null;
+public anywheresoftware.b4a.objects.streams.File.TextWriterWrapper _printer = null;
+public int _tamano = 0;
+public int _espacio = 0;
+public String _blanco = "";
+public reparto_izca.keymon.lat.escposprinter _printer1 = null;
+public boolean _impresoraconectada = false;
+public int _errorimpresora = 0;
+public anywheresoftware.b4a.objects.ImageViewWrapper _inventario = null;
+public String _pasa_imp = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_imp_inventario = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
+public boolean _printerisready = false;
+public long _lastconnectionattempt = 0L;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_impresion_rec = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_clientes_visit = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_clientes_recha = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_clientes_visitados = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_numtickets = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_carga_click() throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _checagestion = null;
+ //BA.debugLineNum = 2563;BA.debugLine="Private Sub B_carga_Click";
+ //BA.debugLineNum = 2564;BA.debugLine="If L_carga.Text = \"LISTO\" And l_carga2.Text = \"LI";
+if ((_l_carga.getText()).equals("LISTO") && (_l_carga2.getText()).equals("LISTO")) {
+ //BA.debugLineNum = 2565;BA.debugLine="P_carga.Visible = False";
+_p_carga.setVisible(__c.False);
+ }else {
+ //BA.debugLineNum = 2567;BA.debugLine="Dim checagestion As Cursor = Starter.skmt.ExecQu";
+_checagestion = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_checagestion = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA")));
+ //BA.debugLineNum = 2568;BA.debugLine="If checagestion.RowCount = 0 Then";
+if (_checagestion.getRowCount()==0) {
+ //BA.debugLineNum = 2569;BA.debugLine="P_carga.Visible = False";
+_p_carga.setVisible(__c.False);
+ //BA.debugLineNum = 2570;BA.debugLine="e_ruta.Text = \"\"";
+_e_ruta.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 2571;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO");
+ //BA.debugLineNum = 2572;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
+ //BA.debugLineNum = 2573;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES");
+ //BA.debugLineNum = 2574;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK");
+ //BA.debugLineNum = 2575;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2");
+ //BA.debugLineNum = 2576;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
+ //BA.debugLineNum = 2577;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
+ //BA.debugLineNum = 2578;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
+ //BA.debugLineNum = 2579;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
+ //BA.debugLineNum = 2580;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
+ //BA.debugLineNum = 2581;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
+ //BA.debugLineNum = 2582;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
+ //BA.debugLineNum = 2583;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
+ //BA.debugLineNum = 2584;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
+ //BA.debugLineNum = 2585;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
+ //BA.debugLineNum = 2586;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
+ //BA.debugLineNum = 2587;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
+ //BA.debugLineNum = 2588;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
+ //BA.debugLineNum = 2589;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS");
+ //BA.debugLineNum = 2590;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO");
+ //BA.debugLineNum = 2591;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 2592;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f";
+__c.MsgboxAsync(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar día nuevamente"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 2594;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f";
+__c.MsgboxAsync(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar día nuevamente"),BA.ObjectToCharSequence("Atención"),ba);
+ //BA.debugLineNum = 2595;BA.debugLine="P_carga.Visible = False";
+_p_carga.setVisible(__c.False);
+ };
+ };
+ //BA.debugLineNum = 2598;BA.debugLine="End Sub";
+return "";
+}
+public String _b_check_click() throws Exception{
+ //BA.debugLineNum = 2431;BA.debugLine="Private Sub b_check_Click";
+ //BA.debugLineNum = 2433;BA.debugLine="B4XPages.ShowPage(\"checklist\")";
+_b4xpages._showpage /*String*/ (ba,"checklist");
+ //BA.debugLineNum = 2435;BA.debugLine="End Sub";
+return "";
+}
+public String _b_clieprod_click() throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _ch = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _ch1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
+String _cuenta0 = "";
+String _arti = "";
+int _a = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc2 = null;
+String _cuenta1 = "";
+String _arti1 = "";
+int _h = 0;
+float _preu = 0f;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc3 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc4 = null;
+String _cuenta2 = "";
+String _arti2 = "";
+int _k = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null;
+String _cuenta3 = "";
+String _arti3 = "";
+int _x = 0;
+String _totalmonto = "";
+String _totalcantidad = "";
+ //BA.debugLineNum = 2160;BA.debugLine="Sub B_CLIEPROD_Click";
+ //BA.debugLineNum = 2161;BA.debugLine="If b_check.Visible = True Then";
+if (_b_check.getVisible()==__c.True) {
+ //BA.debugLineNum = 2162;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 2164;BA.debugLine="BUSCA.Visible = True";
+_busca.setVisible(__c.True);
+ //BA.debugLineNum = 2165;BA.debugLine="connecta.Visible = False";
+_connecta.setVisible(__c.False);
+ //BA.debugLineNum = 2166;BA.debugLine="trabajar.Visible = True";
+_trabajar.setVisible(__c.True);
+ //BA.debugLineNum = 2167;BA.debugLine="B_CLIEPROD.Visible = True";
+_b_clieprod.setVisible(__c.True);
+ //BA.debugLineNum = 2168;BA.debugLine="Panel1.Visible = True";
+_panel1.setVisible(__c.True);
+ //BA.debugLineNum = 2169;BA.debugLine="Panel1.BringToFront";
+_panel1.BringToFront();
+ //BA.debugLineNum = 2170;BA.debugLine="Panel1.Width = Root.Width";
+_panel1.setWidth(_root.getWidth());
+ //BA.debugLineNum = 2171;BA.debugLine="Panel1.Height = Root.Height";
+_panel1.setHeight(_root.getHeight());
+ //BA.debugLineNum = 2172;BA.debugLine="B_REGRESA.Top = Panel1.Height - B_REGRESA.Height";
+_b_regresa.setTop((int) (_panel1.getHeight()-_b_regresa.getHeight()));
+ //BA.debugLineNum = 2173;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
+_btn_ubicar_ru.setVisible(__c.True);
+ //BA.debugLineNum = 2175;BA.debugLine="Dim ch As Cursor = Starter.skmt.ExecQuery(\"selec";
+_ch = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_ch = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as visit from kmt_info WHERE gestion = 2")));
+ //BA.debugLineNum = 2176;BA.debugLine="ch.Position = 0";
+_ch.setPosition((int) (0));
+ //BA.debugLineNum = 2177;BA.debugLine="L_clientes_visit.Text = ch.GetInt(\"visit\")";
+_l_clientes_visit.setText(BA.ObjectToCharSequence(_ch.GetInt("visit")));
+ //BA.debugLineNum = 2179;BA.debugLine="Dim ch1 As Cursor = Starter.skmt.ExecQuery(\"sele";
+_ch1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_ch1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as rechazo from kmt_info WHERE gestion = 3")));
+ //BA.debugLineNum = 2180;BA.debugLine="ch1.Position = 0";
+_ch1.setPosition((int) (0));
+ //BA.debugLineNum = 2181;BA.debugLine="l_clientes_recha.Text = ch1.GetInt(\"rechazo\")";
+_l_clientes_recha.setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo")));
+ //BA.debugLineNum = 2182;BA.debugLine="l_clientes_visitados.Text = ch1.GetInt(\"rechazo\"";
+_l_clientes_visitados.setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo")+_ch.GetInt("visit")));
+ //BA.debugLineNum = 2184;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from kmt_info";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from kmt_info WHERE gestion <> 0 order by HORAENT")));
+ //BA.debugLineNum = 2185;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 2186;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 2187;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 2188;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 2189;BA.debugLine="label1.TextSize = 16";
+_label1.setTextSize((float) (16));
+ //BA.debugLineNum = 2190;BA.debugLine="label1.TextColor = Colors.Black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 2191;BA.debugLine="Dim label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 2192;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 2193;BA.debugLine="label2.TextSize = 16";
+_label2.setTextSize((float) (16));
+ //BA.debugLineNum = 2194;BA.debugLine="label2.TextColor = Colors.Black";
+_label2.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 2196;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 2197;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step33 = 1;
+final int limit33 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit33 ;_i = _i + step33 ) {
+ //BA.debugLineNum = 2198;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 2199;BA.debugLine="If c.GetString(\"gestion\") = \"2\" Then";
+if ((_c.GetString("gestion")).equals("2")) {
+ //BA.debugLineNum = 2200;BA.debugLine="ESTATUS = \"ENTREGADO\"";
+_estatus = "ENTREGADO";
+ //BA.debugLineNum = 2201;BA.debugLine="Log(\"entrega\")";
+__c.LogImpl("515466537","entrega",0);
+ }else if((_c.GetString("gestion")).equals("3")) {
+ //BA.debugLineNum = 2203;BA.debugLine="Log(\"no entrega\")";
+__c.LogImpl("515466539","no entrega",0);
+ //BA.debugLineNum = 2204;BA.debugLine="ESTATUS = \"RECHAZADO\"";
+_estatus = "RECHAZADO";
+ }else {
+ //BA.debugLineNum = 2206;BA.debugLine="ESTATUS = \"SIN ESTATUS\"";
+_estatus = "SIN ESTATUS";
+ };
+ //BA.debugLineNum = 2211;BA.debugLine="If ESTATUS = \"ENTREGADO\" Then";
+if ((_estatus).equals("ENTREGADO")) {
+ //BA.debugLineNum = 2212;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery";
+_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"'"))));
+ //BA.debugLineNum = 2214;BA.debugLine="Private cuenta0 As String = 0";
+_cuenta0 = BA.NumberToString(0);
+ //BA.debugLineNum = 2215;BA.debugLine="Private arti As String = 0";
+_arti = BA.NumberToString(0);
+ //BA.debugLineNum = 2216;BA.debugLine="If vc.RowCount > 0 Then";
+if (_vc.getRowCount()>0) {
+ //BA.debugLineNum = 2217;BA.debugLine="For a = 0 To vc.RowCount - 1";
+{
+final int step49 = 1;
+final int limit49 = (int) (_vc.getRowCount()-1);
+_a = (int) (0) ;
+for (;_a <= limit49 ;_a = _a + step49 ) {
+ //BA.debugLineNum = 2218;BA.debugLine="vc.Position = a";
+_vc.setPosition(_a);
+ //BA.debugLineNum = 2220;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - v";
+_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT")))));
+ //BA.debugLineNum = 2221;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CAN";
+_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT"))))));
+ }
+};
+ };
+ //BA.debugLineNum = 2226;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer";
+_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 1"))));
+ //BA.debugLineNum = 2227;BA.debugLine="Private Cuenta1 As String = 0";
+_cuenta1 = BA.NumberToString(0);
+ //BA.debugLineNum = 2228;BA.debugLine="Private arti1 As String = 0";
+_arti1 = BA.NumberToString(0);
+ //BA.debugLineNum = 2229;BA.debugLine="If vc2.RowCount > 0 Then";
+if (_vc2.getRowCount()>0) {
+ //BA.debugLineNum = 2230;BA.debugLine="For h = 0 To vc2.RowCount - 1";
+{
+final int step59 = 1;
+final int limit59 = (int) (_vc2.getRowCount()-1);
+_h = (int) (0) ;
+for (;_h <= limit59 ;_h = _h + step59 ) {
+ //BA.debugLineNum = 2231;BA.debugLine="vc2.Position = h";
+_vc2.setPosition(_h);
+ //BA.debugLineNum = 2232;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt";
+_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 2233;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu";
+_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 2234;BA.debugLine="If vc3.RowCount > 0 Then";
+if (_vc3.getRowCount()>0) {
+ //BA.debugLineNum = 2235;BA.debugLine="vc3.Position = 0";
+_vc3.setPosition((int) (0));
+ //BA.debugLineNum = 2236;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC";
+_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu));
+ //BA.debugLineNum = 2237;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\")";
+_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))));
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 2243;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer";
+_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'"))));
+ //BA.debugLineNum = 2244;BA.debugLine="Private Cuenta2 As String = 0";
+_cuenta2 = BA.NumberToString(0);
+ //BA.debugLineNum = 2245;BA.debugLine="Private arti2 As String = 0";
+_arti2 = BA.NumberToString(0);
+ //BA.debugLineNum = 2246;BA.debugLine="If vc4.RowCount > 0 Then";
+if (_vc4.getRowCount()>0) {
+ //BA.debugLineNum = 2248;BA.debugLine="For k = 0 To vc4.RowCount - 1";
+{
+final int step74 = 1;
+final int limit74 = (int) (_vc4.getRowCount()-1);
+_k = (int) (0) ;
+for (;_k <= limit74 ;_k = _k + step74 ) {
+ //BA.debugLineNum = 2249;BA.debugLine="vc4.Position = k";
+_vc4.setPosition(_k);
+ //BA.debugLineNum = 2250;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
+if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) {
+ //BA.debugLineNum = 2251;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
+if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 2252;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT"))));
+ //BA.debugLineNum = 2253;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT"))));
+ }else {
+ //BA.debugLineNum = 2255;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec";
+_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 2256;BA.debugLine="If vc5.RowCount > 0 Then";
+if (_vc5.getRowCount()>0) {
+ //BA.debugLineNum = 2257;BA.debugLine="vc5.Position= 0";
+_vc5.setPosition((int) (0));
+ //BA.debugLineNum = 2259;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO")))));
+ //BA.debugLineNum = 2260;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\"";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT")))));
+ };
+ };
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 2269;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery";
+_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"'"))));
+ //BA.debugLineNum = 2270;BA.debugLine="Private Cuenta3 As String = 0";
+_cuenta3 = BA.NumberToString(0);
+ //BA.debugLineNum = 2271;BA.debugLine="Private arti3 As String = 0";
+_arti3 = BA.NumberToString(0);
+ //BA.debugLineNum = 2272;BA.debugLine="If c4.RowCount > 0 Then";
+if (_c4.getRowCount()>0) {
+ //BA.debugLineNum = 2273;BA.debugLine="For x = 0 To c4.RowCount -1";
+{
+final int step95 = 1;
+final int limit95 = (int) (_c4.getRowCount()-1);
+_x = (int) (0) ;
+for (;_x <= limit95 ;_x = _x + step95 ) {
+ //BA.debugLineNum = 2274;BA.debugLine="c4.Position = x";
+_c4.setPosition(_x);
+ //BA.debugLineNum = 2275;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
+_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
+ //BA.debugLineNum = 2276;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_";
+_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT"))));
+ }
+};
+ };
+ //BA.debugLineNum = 2281;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen";
+_totalmonto = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3)));
+ //BA.debugLineNum = 2282;BA.debugLine="Private TOTALcantidad As String = arti + arti";
+_totalcantidad = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3)));
+ //BA.debugLineNum = 2284;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")+" - "+_c.GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+" "+_estatus));
+ //BA.debugLineNum = 2285;BA.debugLine="Log(\"si entre2\")";
+__c.LogImpl("515466621","si entre2",0);
+ }else if((_estatus).equals("RECHAZADO")) {
+ //BA.debugLineNum = 2289;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery";
+_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO, HVD_COSTO_TOT from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"'"))));
+ //BA.debugLineNum = 2291;BA.debugLine="Private cuenta0 As String = 0";
+_cuenta0 = BA.NumberToString(0);
+ //BA.debugLineNum = 2292;BA.debugLine="Private arti As String = 0";
+_arti = BA.NumberToString(0);
+ //BA.debugLineNum = 2293;BA.debugLine="If vc.RowCount > 0 Then";
+if (_vc.getRowCount()>0) {
+ //BA.debugLineNum = 2294;BA.debugLine="For a = 0 To vc.RowCount - 1";
+{
+final int step110 = 1;
+final int limit110 = (int) (_vc.getRowCount()-1);
+_a = (int) (0) ;
+for (;_a <= limit110 ;_a = _a + step110 ) {
+ //BA.debugLineNum = 2295;BA.debugLine="vc.Position = a";
+_vc.setPosition(_a);
+ //BA.debugLineNum = 2296;BA.debugLine="Dim preu As Float = NumberFormat2(vc.GetStr";
+_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT"))),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 2298;BA.debugLine="arti = arti + (vc.GetString(\"HVD_RECHAZOCAN";
+_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble((_vc.GetString("HVD_RECHAZOCANT")))));
+ //BA.debugLineNum = 2299;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_REC";
+_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+((double)(Double.parseDouble((_vc.GetString("HVD_RECHAZOCANT"))))*_preu));
+ }
+};
+ };
+ //BA.debugLineNum = 2304;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer";
+_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 1"))));
+ //BA.debugLineNum = 2305;BA.debugLine="Private Cuenta1 As String = 0";
+_cuenta1 = BA.NumberToString(0);
+ //BA.debugLineNum = 2306;BA.debugLine="Private arti1 As String = 0";
+_arti1 = BA.NumberToString(0);
+ //BA.debugLineNum = 2307;BA.debugLine="If vc2.RowCount > 0 Then";
+if (_vc2.getRowCount()>0) {
+ //BA.debugLineNum = 2308;BA.debugLine="For h = 0 To vc2.RowCount - 1";
+{
+final int step121 = 1;
+final int limit121 = (int) (_vc2.getRowCount()-1);
+_h = (int) (0) ;
+for (;_h <= limit121 ;_h = _h + step121 ) {
+ //BA.debugLineNum = 2309;BA.debugLine="vc2.Position = h";
+_vc2.setPosition(_h);
+ //BA.debugLineNum = 2310;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt";
+_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 2311;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu";
+_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 2312;BA.debugLine="If vc3.RowCount > 0 Then";
+if (_vc3.getRowCount()>0) {
+ //BA.debugLineNum = 2313;BA.debugLine="vc3.Position = 0";
+_vc3.setPosition((int) (0));
+ //BA.debugLineNum = 2314;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"HVD_R";
+_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION"))))*_preu));
+ //BA.debugLineNum = 2315;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_RECHAZ";
+_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble((_vc2.GetString("HVD_RECHAZOCANT")))));
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 2321;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer";
+_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'"))));
+ //BA.debugLineNum = 2322;BA.debugLine="Private Cuenta2 As String = 0";
+_cuenta2 = BA.NumberToString(0);
+ //BA.debugLineNum = 2323;BA.debugLine="Private arti2 As String = 0";
+_arti2 = BA.NumberToString(0);
+ //BA.debugLineNum = 2324;BA.debugLine="If vc4.RowCount > 0 Then";
+if (_vc4.getRowCount()>0) {
+ //BA.debugLineNum = 2326;BA.debugLine="For k = 0 To vc4.RowCount - 1";
+{
+final int step136 = 1;
+final int limit136 = (int) (_vc4.getRowCount()-1);
+_k = (int) (0) ;
+for (;_k <= limit136 ;_k = _k + step136 ) {
+ //BA.debugLineNum = 2327;BA.debugLine="vc4.Position = k";
+_vc4.setPosition(_k);
+ //BA.debugLineNum = 2328;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
+if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) {
+ //BA.debugLineNum = 2329;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
+if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 2330;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT"))));
+ //BA.debugLineNum = 2331;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_RECHAZ";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))));
+ }else {
+ //BA.debugLineNum = 2333;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec";
+_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 2334;BA.debugLine="If vc5.RowCount > 0 Then";
+if (_vc5.getRowCount()>0) {
+ //BA.debugLineNum = 2335;BA.debugLine="vc5.Position= 0";
+_vc5.setPosition((int) (0));
+ //BA.debugLineNum = 2337;BA.debugLine="Cuenta2 = Cuenta2 +(( vc4.GetString(\"HVD";
+_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+((double)(Double.parseDouble((_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO")))));
+ //BA.debugLineNum = 2338;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_RECHA";
+_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble((_vc4.GetString("HVD_RECHAZOCANT")))));
+ };
+ };
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 2347;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery";
+_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"'"))));
+ //BA.debugLineNum = 2348;BA.debugLine="Private Cuenta3 As String = 0";
+_cuenta3 = BA.NumberToString(0);
+ //BA.debugLineNum = 2349;BA.debugLine="Private arti3 As String = 0";
+_arti3 = BA.NumberToString(0);
+ //BA.debugLineNum = 2350;BA.debugLine="If c4.RowCount > 0 Then";
+if (_c4.getRowCount()>0) {
+ //BA.debugLineNum = 2351;BA.debugLine="For x = 0 To c4.RowCount -1";
+{
+final int step157 = 1;
+final int limit157 = (int) (_c4.getRowCount()-1);
+_x = (int) (0) ;
+for (;_x <= limit157 ;_x = _x + step157 ) {
+ //BA.debugLineNum = 2352;BA.debugLine="c4.Position = x";
+_c4.setPosition(_x);
+ //BA.debugLineNum = 2353;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
+_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT"))));
+ //BA.debugLineNum = 2354;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_";
+_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT"))));
+ }
+};
+ };
+ //BA.debugLineNum = 2359;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen";
+_totalmonto = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3)));
+ //BA.debugLineNum = 2360;BA.debugLine="Private TOTALcantidad As String = arti + arti";
+_totalcantidad = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3)));
+ //BA.debugLineNum = 2362;BA.debugLine="Log(\"si entre\")";
+__c.LogImpl("515466698","si entre",0);
+ //BA.debugLineNum = 2363;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD";
+_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")+" - "+_c.GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+" "+_estatus));
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 2400;BA.debugLine="End Sub";
+return "";
+}
+public void _b_imp_inventario_click() throws Exception{
+ResumableSub_b_imp_inventario_Click rsub = new ResumableSub_b_imp_inventario_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_b_imp_inventario_Click extends BA.ResumableSub {
+public ResumableSub_b_imp_inventario_Click(reparto_izca.keymon.lat.c_principal parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_principal parent;
+int _cont = 0;
+anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
+reparto_izca.keymon.lat.escposprinter._animage _myimage = null;
+String _sdate = "";
+String _stime = "";
+int _i = 0;
+String _firstchar = "";
+String _productoinven = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _sumainv = null;
+int step56;
+int limit56;
+int step62;
+int limit62;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 2782;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
+parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
+ //BA.debugLineNum = 2783;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 2784;BA.debugLine="If Not(Printer1.IsConnected) Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 38;
+if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 3;
+}else {
+this.state = 21;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 2786;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 2787;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 2788;BA.debugLine="Do While Not(impresoraConectada)";
+if (true) break;
+
+case 4:
+//do while
+this.state = 19;
+while (parent.__c.Not(parent._impresoraconectada)) {
+this.state = 6;
+if (true) break;
+}
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 2789;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 57;
+return;
+case 57:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 2790;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 2791;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
+if (true) break;
+
+case 7:
+//if
+this.state = 12;
+if (_cont==7) {
+this.state = 9;
+;}if (true) break;
+
+case 9:
+//C
+this.state = 12;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 12:
+//C
+this.state = 13;
+;
+ //BA.debugLineNum = 2792;BA.debugLine="If cont > 15 Then impresoraConectada = True";
+if (true) break;
+
+case 13:
+//if
+this.state = 18;
+if (_cont>15) {
+this.state = 15;
+;}if (true) break;
+
+case 15:
+//C
+this.state = 18;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 18:
+//C
+this.state = 4;
+;
+ if (true) break;
+
+case 19:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2794;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 58;
+return;
+case 58:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2795;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 2798;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 2799;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 2800;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
+if (true) break;
+
+case 22:
+//do while
+this.state = 37;
+while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 24;
+if (true) break;
+}
+if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 2801;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 59;
+return;
+case 59:
+//C
+this.state = 25;
+;
+ //BA.debugLineNum = 2802;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 2803;BA.debugLine="If cont = 2 Then Printer1.Connect";
+if (true) break;
+
+case 25:
+//if
+this.state = 30;
+if (_cont==2) {
+this.state = 27;
+;}if (true) break;
+
+case 27:
+//C
+this.state = 30;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 30:
+//C
+this.state = 31;
+;
+ //BA.debugLineNum = 2804;BA.debugLine="If cont > 4 Then impresoraConectada = True";
+if (true) break;
+
+case 31:
+//if
+this.state = 36;
+if (_cont>4) {
+this.state = 33;
+;}if (true) break;
+
+case 33:
+//C
+this.state = 36;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 36:
+//C
+this.state = 22;
+;
+ if (true) break;
+
+case 37:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2806;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 60;
+return;
+case 60:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2807;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 38:
+//C
+this.state = 39;
+;
+ //BA.debugLineNum = 2810;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 2811;BA.debugLine="ESPACIO = 28";
+parent._espacio = (int) (28);
+ //BA.debugLineNum = 2812;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 2813;BA.debugLine="Dim bmp As Bitmap";
+_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
+ //BA.debugLineNum = 2814;BA.debugLine="Printer1.Justify= 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 2815;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"inventarios";
+_bmp.InitializeResize(parent.__c.File.getDirAssets(),"inventarios.jpg",(int) (92),(int) (92),parent.__c.True);
+ //BA.debugLineNum = 2816;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage(";
+_myimage = parent._printer1._imagetobwimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (_bmp);
+ //BA.debugLineNum = 2817;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)";
+_myimage = parent._printer1._ditherimage2d /*reparto_izca.keymon.lat.escposprinter._animage*/ (_myimage,(int) (128));
+ //BA.debugLineNum = 2818;BA.debugLine="myimage= Printer1.PackImage(myimage)";
+_myimage = parent._printer1._packimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (_myimage);
+ //BA.debugLineNum = 2819;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
+parent._printer1._writestring /*String*/ (parent.__c.CRLF);
+ //BA.debugLineNum = 2820;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
+parent._printer1._writestring /*String*/ (parent.__c.CRLF);
+ //BA.debugLineNum = 2821;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)";
+parent._printer1._writestring /*String*/ (parent._printer1._reverse /*String*/ );
+ //BA.debugLineNum = 2822;BA.debugLine="Printer1.PrintImage(myimage)";
+parent._printer1._printimage /*int*/ (_myimage);
+ //BA.debugLineNum = 2823;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)";
+parent._printer1._writestring /*String*/ (parent._printer1._unreverse /*String*/ );
+ //BA.debugLineNum = 2824;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2825;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
+parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, HVD_PROID from HIST_VENTAS WHERE HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 2826;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C";
+parent._lv_prod_prin.getSingleLineLayout().Label.setTextColor(parent.__c.Colors.White);
+ //BA.debugLineNum = 2827;BA.debugLine="lv_prod_Prin.Clear";
+parent._lv_prod_prin.Clear();
+ //BA.debugLineNum = 2828;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 2829;BA.debugLine="Dim sDate, sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 2830;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
+parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
+ //BA.debugLineNum = 2831;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
+parent.__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 2832;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
+_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 2833;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
+_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 2834;BA.debugLine="Printer1.WriteString(\"Fecha: \" &sDate & CRLF)";
+parent._printer1._writestring /*String*/ ("Fecha: "+_sdate+parent.__c.CRLF);
+ //BA.debugLineNum = 2835;BA.debugLine="Printer1.WriteString(\"Hora: \" &sTime & CRLF)";
+parent._printer1._writestring /*String*/ ("Hora: "+_stime+parent.__c.CRLF);
+ //BA.debugLineNum = 2836;BA.debugLine="Printer1.WriteString(\"Ruta: \" & l_ruta.Text & CRL";
+parent._printer1._writestring /*String*/ ("Ruta: "+parent._l_ruta.getText()+parent.__c.CRLF);
+ //BA.debugLineNum = 2837;BA.debugLine="Printer1.WriteString(\"Usuario: \" & Subs.dameUsuar";
+parent._printer1._writestring /*String*/ ("Usuario: "+parent._subs._dameusuariodedb /*String*/ (ba)+parent.__c.CRLF);
+ //BA.debugLineNum = 2839;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2840;BA.debugLine="If c.RowCount > 0 Then";
+if (true) break;
+
+case 39:
+//if
+this.state = 56;
+if (parent._c.getRowCount()>0) {
+this.state = 41;
+}if (true) break;
+
+case 41:
+//C
+this.state = 42;
+ //BA.debugLineNum = 2841;BA.debugLine="For i = 0 To c.RowCount - 1";
+if (true) break;
+
+case 42:
+//for
+this.state = 55;
+step56 = 1;
+limit56 = (int) (parent._c.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 61;
+if (true) break;
+
+case 61:
+//C
+this.state = 55;
+if ((step56 > 0 && _i <= limit56) || (step56 < 0 && _i >= limit56)) this.state = 44;
+if (true) break;
+
+case 62:
+//C
+this.state = 61;
+_i = ((int)(0 + _i + step56)) ;
+if (true) break;
+
+case 44:
+//C
+this.state = 45;
+ //BA.debugLineNum = 2842;BA.debugLine="c.Position = i";
+parent._c.setPosition(_i);
+ //BA.debugLineNum = 2844;BA.debugLine="Printer1.WriteString(\"-----------INVENTARIO----";
+parent._printer1._writestring /*String*/ ("-----------INVENTARIO-----------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2845;BA.debugLine="Printer1.WriteString(\"-------------------------";
+parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2846;BA.debugLine="Printer1.WriteString(\"Cant. Producto\" & C";
+parent._printer1._writestring /*String*/ ("Cant. Producto"+parent.__c.CRLF);
+ //BA.debugLineNum = 2847;BA.debugLine="Printer1.WriteString(\"-------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2848;BA.debugLine="For i=0 To c.RowCount -1";
+if (true) break;
+
+case 45:
+//for
+this.state = 54;
+step62 = 1;
+limit62 = (int) (parent._c.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 63;
+if (true) break;
+
+case 63:
+//C
+this.state = 54;
+if ((step62 > 0 && _i <= limit62) || (step62 < 0 && _i >= limit62)) this.state = 47;
+if (true) break;
+
+case 64:
+//C
+this.state = 63;
+_i = ((int)(0 + _i + step62)) ;
+if (true) break;
+
+case 47:
+//C
+this.state = 48;
+ //BA.debugLineNum = 2849;BA.debugLine="c.Position=i";
+parent._c.setPosition(_i);
+ //BA.debugLineNum = 2852;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 2853;BA.debugLine="Printer1.WriteString( (c.GetString(\"HVD_CANT\")";
+parent._printer1._writestring /*String*/ ((parent._c.GetString("HVD_CANT"))+"- ");
+ //BA.debugLineNum = 2854;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 2855;BA.debugLine="Dim firstChar As String = c.GetString(\"HVD_PRO";
+_firstchar = parent._c.GetString("HVD_PRONOMBRE").substring((int) (0),(int) (1));
+ //BA.debugLineNum = 2856;BA.debugLine="Dim productoinven As String";
+_productoinven = "";
+ //BA.debugLineNum = 2859;BA.debugLine="If Asc(firstChar) >= Asc(\"0\") And Asc(firstCha";
+if (true) break;
+
+case 48:
+//if
+this.state = 53;
+if (parent.__c.Asc(BA.ObjectToChar(_firstchar))>=parent.__c.Asc(BA.ObjectToChar("0")) && parent.__c.Asc(BA.ObjectToChar(_firstchar))<=parent.__c.Asc(BA.ObjectToChar("9"))) {
+this.state = 50;
+}else {
+this.state = 52;
+}if (true) break;
+
+case 50:
+//C
+this.state = 53;
+ //BA.debugLineNum = 2861;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\").";
+_productoinven = parent._c.GetString("HVD_PRONOMBRE").substring((int) (4));
+ if (true) break;
+
+case 52:
+//C
+this.state = 53;
+ //BA.debugLineNum = 2864;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\")";
+_productoinven = parent._c.GetString("HVD_PRONOMBRE");
+ if (true) break;
+
+case 53:
+//C
+this.state = 64;
+;
+ //BA.debugLineNum = 2868;BA.debugLine="Printer1.WriteString(productoinven)";
+parent._printer1._writestring /*String*/ (_productoinven);
+ //BA.debugLineNum = 2869;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2870;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ if (true) break;
+if (true) break;
+
+case 54:
+//C
+this.state = 62;
+;
+ if (true) break;
+if (true) break;
+
+case 55:
+//C
+this.state = 56;
+;
+ if (true) break;
+
+case 56:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 2877;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 2879;BA.debugLine="Dim sumainv As Cursor = Starter.skmt.ExecQuery(\"S";
+_sumainv = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_sumainv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(HVD_CANT) AS CANTIDAD FROM HIST_VENTAS WHERE HVD_CODPROMO <> HVD_PROID")));
+ //BA.debugLineNum = 2880;BA.debugLine="sumainv.Position = 0";
+_sumainv.setPosition((int) (0));
+ //BA.debugLineNum = 2882;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2883;BA.debugLine="Printer1.WriteString(\"Total piezas: \" & sumainv.G";
+parent._printer1._writestring /*String*/ ("Total piezas: "+_sumainv.GetString("CANTIDAD")+parent.__c.CRLF);
+ //BA.debugLineNum = 2884;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2885;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 2886;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2887;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2888;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2889;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2890;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 65;
+return;
+case 65:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 2891;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 2892;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 2893;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _b_impresion_rec_click() throws Exception{
+ResumableSub_b_impresion_rec_Click rsub = new ResumableSub_b_impresion_rec_Click(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_b_impresion_rec_Click extends BA.ResumableSub {
+public ResumableSub_b_impresion_rec_Click(reparto_izca.keymon.lat.c_principal parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_principal parent;
+int _totalentrega = 0;
+int _totalrechazo = 0;
+int _totalpiezas = 0;
+String _sdate = "";
+String _stime = "";
+int _cont = 0;
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+String _resta = "";
+int step46;
+int limit46;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 2897;BA.debugLine="Dim totalentrega As Int";
+_totalentrega = 0;
+ //BA.debugLineNum = 2898;BA.debugLine="Dim totalrechazo As Int";
+_totalrechazo = 0;
+ //BA.debugLineNum = 2899;BA.debugLine="Dim totalpiezas As Int";
+_totalpiezas = 0;
+ //BA.debugLineNum = 2900;BA.debugLine="Dim sDate, sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 2901;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 2902;BA.debugLine="c.Position=0";
+parent._c.setPosition((int) (0));
+ //BA.debugLineNum = 2903;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+parent._usuario = parent._c.GetString("USUARIO");
+ //BA.debugLineNum = 2905;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
+parent.__c.DateTime.setDateFormat("dd/MM/yyyy");
+ //BA.debugLineNum = 2906;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
+parent.__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 2907;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 2908;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow());
+ //BA.debugLineNum = 2909;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 2915;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
+parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
+ //BA.debugLineNum = 2916;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 2917;BA.debugLine="If Not(Printer1.IsConnected) Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 38;
+if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 3;
+}else {
+this.state = 21;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 2919;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 2920;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 2921;BA.debugLine="Do While Not(impresoraConectada)";
+if (true) break;
+
+case 4:
+//do while
+this.state = 19;
+while (parent.__c.Not(parent._impresoraconectada)) {
+this.state = 6;
+if (true) break;
+}
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 2922;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 53;
+return;
+case 53:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 2924;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 2925;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
+if (true) break;
+
+case 7:
+//if
+this.state = 12;
+if (_cont==2) {
+this.state = 9;
+;}if (true) break;
+
+case 9:
+//C
+this.state = 12;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 12:
+//C
+this.state = 13;
+;
+ //BA.debugLineNum = 2926;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 13:
+//if
+this.state = 18;
+if (_cont>3) {
+this.state = 15;
+;}if (true) break;
+
+case 15:
+//C
+this.state = 18;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 18:
+//C
+this.state = 4;
+;
+ if (true) break;
+
+case 19:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2928;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 54;
+return;
+case 54:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2929;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 2932;BA.debugLine="Printer1.Connect";
+parent._printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 2933;BA.debugLine="Private cont As Int = 0";
+_cont = (int) (0);
+ //BA.debugLineNum = 2934;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
+if (true) break;
+
+case 22:
+//do while
+this.state = 37;
+while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) {
+this.state = 24;
+if (true) break;
+}
+if (true) break;
+
+case 24:
+//C
+this.state = 25;
+ //BA.debugLineNum = 2935;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 55;
+return;
+case 55:
+//C
+this.state = 25;
+;
+ //BA.debugLineNum = 2937;BA.debugLine="cont = cont + 1";
+_cont = (int) (_cont+1);
+ //BA.debugLineNum = 2938;BA.debugLine="If cont = 2 Then Printer1.Connect";
+if (true) break;
+
+case 25:
+//if
+this.state = 30;
+if (_cont==2) {
+this.state = 27;
+;}if (true) break;
+
+case 27:
+//C
+this.state = 30;
+parent._printer1._connect /*boolean*/ ();
+if (true) break;
+
+case 30:
+//C
+this.state = 31;
+;
+ //BA.debugLineNum = 2939;BA.debugLine="If cont > 3 Then impresoraConectada = True";
+if (true) break;
+
+case 31:
+//if
+this.state = 36;
+if (_cont>3) {
+this.state = 33;
+;}if (true) break;
+
+case 33:
+//C
+this.state = 36;
+parent._impresoraconectada = parent.__c.True;
+if (true) break;
+
+case 36:
+//C
+this.state = 22;
+;
+ if (true) break;
+
+case 37:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2941;BA.debugLine="Sleep(500)";
+parent.__c.Sleep(ba,this,(int) (500));
+this.state = 56;
+return;
+case 56:
+//C
+this.state = 38;
+;
+ //BA.debugLineNum = 2942;BA.debugLine="impresoraConectada = False";
+parent._impresoraconectada = parent.__c.False;
+ if (true) break;
+
+case 38:
+//C
+this.state = 39;
+;
+ //BA.debugLineNum = 2945;BA.debugLine="TAMANO = 0";
+parent._tamano = (int) (0);
+ //BA.debugLineNum = 2946;BA.debugLine="ESPACIO = 28";
+parent._espacio = (int) (28);
+ //BA.debugLineNum = 2947;BA.debugLine="BLANCO = \" \"";
+parent._blanco = " ";
+ //BA.debugLineNum = 2949;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL";
+parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF);
+ //BA.debugLineNum = 2950;BA.debugLine="Printer1.WriteString(sDate & \" \" &sTime & CRLF)";
+parent._printer1._writestring /*String*/ (_sdate+" "+_stime+parent.__c.CRLF);
+ //BA.debugLineNum = 2952;BA.debugLine="Printer1.WriteString(\"------------ENTREGA--------";
+parent._printer1._writestring /*String*/ ("------------ENTREGA-----------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2953;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
+parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, (IFNULL(SUM(HVD_CANT), 0) - IFNULL(SUM(HVD_RECHAZOCANT), 0)) as total, HVD_PROID from HIST_VENTAS where HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 2954;BA.debugLine="If c.RowCount > 0 Then";
+if (true) break;
+
+case 39:
+//if
+this.state = 52;
+if (parent._c.getRowCount()>0) {
+this.state = 41;
+}if (true) break;
+
+case 41:
+//C
+this.state = 42;
+ //BA.debugLineNum = 2955;BA.debugLine="For i = 0 To c.RowCount - 1";
+if (true) break;
+
+case 42:
+//for
+this.state = 51;
+step46 = 1;
+limit46 = (int) (parent._c.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 57;
+if (true) break;
+
+case 57:
+//C
+this.state = 51;
+if ((step46 > 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 44;
+if (true) break;
+
+case 58:
+//C
+this.state = 57;
+_i = ((int)(0 + _i + step46)) ;
+if (true) break;
+
+case 44:
+//C
+this.state = 45;
+ //BA.debugLineNum = 2956;BA.debugLine="c.Position = i";
+parent._c.setPosition(_i);
+ //BA.debugLineNum = 2959;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 2960;BA.debugLine="Private resta As String = 0";
+_resta = BA.NumberToString(0);
+ //BA.debugLineNum = 2962;BA.debugLine="If c3.RowCount > 0 Then";
+if (true) break;
+
+case 45:
+//if
+this.state = 50;
+if (_c3.getRowCount()>0) {
+this.state = 47;
+}else {
+this.state = 49;
+}if (true) break;
+
+case 47:
+//C
+this.state = 50;
+ //BA.debugLineNum = 2963;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 2964;BA.debugLine="resta = c3.GetString(\"PE_CANT\")";
+_resta = _c3.GetString("PE_CANT");
+ if (true) break;
+
+case 49:
+//C
+this.state = 50;
+ //BA.debugLineNum = 2966;BA.debugLine="resta = 0";
+_resta = BA.NumberToString(0);
+ if (true) break;
+
+case 50:
+//C
+this.state = 58;
+;
+ //BA.debugLineNum = 2968;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 2969;BA.debugLine="Printer1.WriteString(c.GetString(\"HVD_PRONOMBRE";
+parent._printer1._writestring /*String*/ (parent._c.GetString("HVD_PRONOMBRE")+parent.__c.CRLF);
+ //BA.debugLineNum = 2970;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 2971;BA.debugLine="Printer1.WriteString(\"TP: \"& c.GetInt(\"HVD_CANT";
+parent._printer1._writestring /*String*/ ("TP: "+BA.NumberToString(parent._c.GetInt("HVD_CANT"))+" ");
+ //BA.debugLineNum = 2972;BA.debugLine="Printer1.Justify = 1";
+parent._printer1._setjustify((int) (1));
+ //BA.debugLineNum = 2973;BA.debugLine="Printer1.WriteString(\" TE: \" & (c.GetInt(\"tot";
+parent._printer1._writestring /*String*/ (" TE: "+BA.NumberToString((parent._c.GetInt("total")+(double)(Double.parseDouble(_resta))))+" ");
+ //BA.debugLineNum = 2974;BA.debugLine="Printer1.Justify = 2";
+parent._printer1._setjustify((int) (2));
+ //BA.debugLineNum = 2975;BA.debugLine="Printer1.WriteString(\" TR: \" & (c.GetInt(\"HVD";
+parent._printer1._writestring /*String*/ (" TR: "+BA.NumberToString((parent._c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))+" ");
+ //BA.debugLineNum = 2976;BA.debugLine="Printer1.Justify = 0";
+parent._printer1._setjustify((int) (0));
+ //BA.debugLineNum = 2977;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2979;BA.debugLine="totalentrega = totalentrega + c.GetInt(\"total\")";
+_totalentrega = (int) (_totalentrega+parent._c.GetInt("total")+(double)(Double.parseDouble(_resta)));
+ //BA.debugLineNum = 2980;BA.debugLine="totalrechazo = totalrechazo + c.GetInt(\"HVD_REC";
+_totalrechazo = (int) (_totalrechazo+parent._c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)));
+ //BA.debugLineNum = 2981;BA.debugLine="totalpiezas = totalpiezas + c.GetInt(\"HVD_CANT\"";
+_totalpiezas = (int) (_totalpiezas+parent._c.GetInt("HVD_CANT"));
+ if (true) break;
+if (true) break;
+
+case 51:
+//C
+this.state = 52;
+;
+ if (true) break;
+
+case 52:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 2986;BA.debugLine="c.Close";
+parent._c.Close();
+ //BA.debugLineNum = 2987;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2988;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2989;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2991;BA.debugLine="Printer1.WriteString(\"Total Piezas: \"& totalpiez";
+parent._printer1._writestring /*String*/ ("Total Piezas: "+BA.NumberToString(_totalpiezas)+parent.__c.CRLF);
+ //BA.debugLineNum = 2992;BA.debugLine="Printer1.WriteString(\"Total Entrega: \"& totalent";
+parent._printer1._writestring /*String*/ ("Total Entrega: "+BA.NumberToString(_totalentrega)+parent.__c.CRLF);
+ //BA.debugLineNum = 2993;BA.debugLine="Printer1.WriteString(\"Total Rechazo: \"& totalrec";
+parent._printer1._writestring /*String*/ ("Total Rechazo: "+BA.NumberToString(_totalrechazo)+parent.__c.CRLF);
+ //BA.debugLineNum = 2996;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2997;BA.debugLine="Printer1.WriteString(\"---------------------------";
+parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF);
+ //BA.debugLineNum = 2998;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 2999;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 3000;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
+parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF);
+ //BA.debugLineNum = 3001;BA.debugLine="Sleep(1000)";
+parent.__c.Sleep(ba,this,(int) (1000));
+this.state = 59;
+return;
+case 59:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 3002;BA.debugLine="Printer1.DisConnect";
+parent._printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 3004;BA.debugLine="ProgressDialogHide";
+parent.__c.ProgressDialogHide();
+ //BA.debugLineNum = 3005;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b_mapa_click() throws Exception{
+ //BA.debugLineNum = 2099;BA.debugLine="Sub b_mapa_Click";
+ //BA.debugLineNum = 2101;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
+_b4xpages._showpage /*String*/ (ba,"mapas");
+ //BA.debugLineNum = 2102;BA.debugLine="End Sub";
+return "";
+}
+public String _b_rechazos_click() throws Exception{
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+int _i = 0;
+String _itemtext = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+String _resta = "";
+ //BA.debugLineNum = 2449;BA.debugLine="Private Sub b_rechazos_Click";
+ //BA.debugLineNum = 2450;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 2451;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label";
+_label1 = _lv_prod_prin.getSingleLineLayout().Label;
+ //BA.debugLineNum = 2452;BA.debugLine="label1.TextSize = 14";
+_label1.setTextSize((float) (14));
+ //BA.debugLineNum = 2453;BA.debugLine="p_prod.Width = Root.Width";
+_p_prod.setWidth(_root.getWidth());
+ //BA.debugLineNum = 2454;BA.debugLine="p_prod.Height = Root.Height";
+_p_prod.setHeight(_root.getHeight());
+ //BA.debugLineNum = 2457;BA.debugLine="b_regreso.Top = p_prod.Height - b_regreso.Height";
+_b_regreso.setTop((int) (_p_prod.getHeight()-_b_regreso.getHeight()));
+ //BA.debugLineNum = 2458;BA.debugLine="b_impresion_rec.Top = p_prod.Height - b_impresion";
+_b_impresion_rec.setTop((int) (_p_prod.getHeight()-_b_impresion_rec.getHeight()));
+ //BA.debugLineNum = 2460;BA.debugLine="p_prod.Visible = True";
+_p_prod.setVisible(__c.True);
+ //BA.debugLineNum = 2461;BA.debugLine="p_prod.BringToFront";
+_p_prod.BringToFront();
+ //BA.debugLineNum = 2463;BA.debugLine="If l_ctast.Text = \"0\" Then";
+if ((_l_ctast.getText()).equals("0")) {
+ //BA.debugLineNum = 2464;BA.debugLine="b_impresion_rec.Enabled = True";
+_b_impresion_rec.setEnabled(__c.True);
+ }else if((_l_ctast.getText()).equals("0") == false) {
+ //BA.debugLineNum = 2466;BA.debugLine="b_impresion_rec.Enabled = False";
+_b_impresion_rec.setEnabled(__c.False);
+ };
+ //BA.debugLineNum = 2470;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 2472;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C";
+_lv_prod_prin.getSingleLineLayout().Label.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 2473;BA.debugLine="lv_prod_Prin.Clear";
+_lv_prod_prin.Clear();
+ //BA.debugLineNum = 2474;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 2475;BA.debugLine="For i = 0 To c.RowCount - 1";
+{
+final int step19 = 1;
+final int limit19 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit19 ;_i = _i + step19 ) {
+ //BA.debugLineNum = 2476;BA.debugLine="c.Position = i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 2477;BA.debugLine="Dim itemText As String";
+_itemtext = "";
+ //BA.debugLineNum = 2479;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 2480;BA.debugLine="Private resta As String = 0";
+_resta = BA.NumberToString(0);
+ //BA.debugLineNum = 2482;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 2483;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 2484;BA.debugLine="resta = c3.GetString(\"PE_CANT\")";
+_resta = _c3.GetString("PE_CANT");
+ }else {
+ //BA.debugLineNum = 2486;BA.debugLine="resta = 0";
+_resta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 2488;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
+if ((_c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) {
+ }else {
+ //BA.debugLineNum = 2491;BA.debugLine="itemText = $\"${c.GetString(\"HVD_PRONOMBRE\")} $";
+_itemtext = (""+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PRONOMBRE")))+" "+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inventario: "+__c.SmartStringFormatter("",(Object)((_c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))))+"");
+ //BA.debugLineNum = 2492;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)";
+_lv_prod_prin.AddSingleLine(BA.ObjectToCharSequence(_itemtext));
+ };
+ }
+};
+ }else {
+ //BA.debugLineNum = 2498;BA.debugLine="lv_prod_Prin.AddSingleLine(\"No hay datos disponi";
+_lv_prod_prin.AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles."));
+ };
+ //BA.debugLineNum = 2500;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 2503;BA.debugLine="End Sub";
+return "";
+}
+public String _b_regresa_click() throws Exception{
+ //BA.debugLineNum = 2402;BA.debugLine="Sub B_REGRESA_Click";
+ //BA.debugLineNum = 2403;BA.debugLine="Log(\"B_REGRESA_Click\")";
+__c.LogImpl("515532033","B_REGRESA_Click",0);
+ //BA.debugLineNum = 2404;BA.debugLine="BUSCA.Visible = False";
+_busca.setVisible(__c.False);
+ //BA.debugLineNum = 2405;BA.debugLine="connecta.Visible = True";
+_connecta.setVisible(__c.True);
+ //BA.debugLineNum = 2406;BA.debugLine="trabajar.Visible = True";
+_trabajar.setVisible(__c.True);
+ //BA.debugLineNum = 2407;BA.debugLine="B_CLIEPROD.Visible = True";
+_b_clieprod.setVisible(__c.True);
+ //BA.debugLineNum = 2408;BA.debugLine="Panel1.Visible = False";
+_panel1.setVisible(__c.False);
+ //BA.debugLineNum = 2409;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
+_btn_ubicar_ru.setVisible(__c.True);
+ //BA.debugLineNum = 2410;BA.debugLine="End Sub";
+return "";
+}
+public String _b_regreso_click() throws Exception{
+ //BA.debugLineNum = 2505;BA.debugLine="Private Sub b_regreso_Click";
+ //BA.debugLineNum = 2506;BA.debugLine="p_prod.Visible = False";
+_p_prod.setVisible(__c.False);
+ //BA.debugLineNum = 2507;BA.debugLine="End Sub";
+return "";
+}
+public String _b_tabulador_click() throws Exception{
+ //BA.debugLineNum = 2423;BA.debugLine="Private Sub b_tabulador_Click";
+ //BA.debugLineNum = 2424;BA.debugLine="If b_check.Visible = True Then";
+if (_b_check.getVisible()==__c.True) {
+ //BA.debugLineNum = 2425;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 2427;BA.debugLine="B4XPages.ShowPage(\"tabulador\")";
+_b4xpages._showpage /*String*/ (ba,"tabulador");
+ };
+ //BA.debugLineNum = 2429;BA.debugLine="End Sub";
+return "";
+}
+public String _b_venta_emp_click() throws Exception{
+ //BA.debugLineNum = 2513;BA.debugLine="Private Sub b_venta_emp_Click";
+ //BA.debugLineNum = 2514;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
+ //BA.debugLineNum = 2515;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("63403")}));
+ //BA.debugLineNum = 2516;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 2517;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _numticks = null;
+String _monto_rec_dia = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null;
+int _i3 = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null;
+int _i4 = 0;
+anywheresoftware.b4a.objects.collections.Map _entmap = null;
+anywheresoftware.b4a.objects.collections.Map _rechmap = null;
+anywheresoftware.b4a.objects.collections.Map _vendmap = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _cancelrecha = null;
+int _h54 = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _r5 = null;
+String _rescant = "";
+int _j4 = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _r6 = null;
+String _totalcantped = "";
+double _rescant2 = 0;
+int _j5 = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _r5r = null;
+String _rescantr = "";
+int _j4r = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _r6r = null;
+String _rescant2r = "";
+int _j5r = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _r55 = null;
+double _rescant3 = 0;
+int _r75 = 0;
+double _rescant4 = 0;
+double _rescant5 = 0;
+double _rescant6 = 0;
+double _rescant7 = 0;
+double _rescant10 = 0;
+int _pztotal = 0;
+int _pztotal2 = 0;
+double _rescant11 = 0;
+int _pztotal3 = 0;
+double _rescant12 = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _g8 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _g11 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _g12 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _g13 = null;
+ //BA.debugLineNum = 196;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 198;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 199;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 200;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA w";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA where NV_MOTIVO <> 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
+ };
+ //BA.debugLineNum = 203;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA")));
+ //BA.debugLineNum = 204;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 205;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 2 WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA')");
+ };
+ //BA.debugLineNum = 207;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE FROM NOVENTA")));
+ //BA.debugLineNum = 208;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 209;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 3 WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO <> 'ENTREGA')");
+ };
+ //BA.debugLineNum = 212;BA.debugLine="b_check.visible = False";
+_b_check.setVisible(__c.False);
+ //BA.debugLineNum = 213;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth());
+ //BA.debugLineNum = 226;BA.debugLine="If EJECUTANDO = 0 Then";
+if ((_ejecutando).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 227;BA.debugLine="Listo1 = 0";
+_listo1 = BA.NumberToString(0);
+ //BA.debugLineNum = 228;BA.debugLine="Listo2 = 0";
+_listo2 = BA.NumberToString(0);
+ //BA.debugLineNum = 229;BA.debugLine="Listo3 = 0";
+_listo3 = BA.NumberToString(0);
+ //BA.debugLineNum = 230;BA.debugLine="Listo4 = 0";
+_listo4 = BA.NumberToString(0);
+ //BA.debugLineNum = 231;BA.debugLine="Listo5 = 0";
+_listo5 = BA.NumberToString(0);
+ //BA.debugLineNum = 232;BA.debugLine="inve = 0";
+_inve = BA.NumberToString(0);
+ //BA.debugLineNum = 233;BA.debugLine="img2.Visible =False";
+_img2.setVisible(__c.False);
+ };
+ //BA.debugLineNum = 235;BA.debugLine="l_ruta.Text = 0";
+_l_ruta.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 236;BA.debugLine="f=Starter.skmt.ExecQuery(\"select rutaa from rutaa";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select rutaa from rutaa")));
+ //BA.debugLineNum = 237;BA.debugLine="If f.RowCount > 0 Then";
+if (_f.getRowCount()>0) {
+ //BA.debugLineNum = 238;BA.debugLine="f.Position = 0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 239;BA.debugLine="l_ruta.Text = f.GetString(\"RUTAA\")";
+_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("RUTAA")));
+ };
+ //BA.debugLineNum = 241;BA.debugLine="f.Close";
+_f.Close();
+ //BA.debugLineNum = 242;BA.debugLine="If l_ruta.Text = 0 Then";
+if ((_l_ruta.getText()).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 243;BA.debugLine="l_ruta.Text = 0";
+_l_ruta.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 244;BA.debugLine="l_rutasP.Text = 0";
+_l_rutasp.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 245;BA.debugLine="l_numtickets.Text = 0";
+_l_numtickets.setText(BA.ObjectToCharSequence(0));
+ }else {
+ //BA.debugLineNum = 247;BA.debugLine="f=Starter.skmt.ExecQuery(\"select distinct CAT_CL";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info WHERE CAT_CL_RUTA <> 1000 order by CAT_CL_RUTA")));
+ //BA.debugLineNum = 249;BA.debugLine="l_rutasP.Text = \"\"";
+_l_rutasp.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 250;BA.debugLine="For i = 0 To f.RowCount - 1";
+{
+final int step38 = 1;
+final int limit38 = (int) (_f.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit38 ;_i = _i + step38 ) {
+ //BA.debugLineNum = 251;BA.debugLine="f.Position = i";
+_f.setPosition(_i);
+ //BA.debugLineNum = 252;BA.debugLine="If i = 0 Then";
+if (_i==0) {
+ //BA.debugLineNum = 253;BA.debugLine="l_rutasP.Text = f.GetString(\"CAT_CL_RUTA\")";
+_l_rutasp.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA")));
+ }else {
+ //BA.debugLineNum = 255;BA.debugLine="l_rutasP.Text = l_rutasP.Text & \", \" & f.GetSt";
+_l_rutasp.setText(BA.ObjectToCharSequence(_l_rutasp.getText()+", "+_f.GetString("CAT_CL_RUTA")));
+ };
+ }
+};
+ //BA.debugLineNum = 258;BA.debugLine="f.Close";
+_f.Close();
+ //BA.debugLineNum = 260;BA.debugLine="Dim numticks As Cursor = Starter.skmt.ExecQuery(";
+_numticks = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_numticks = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(distinct HVD_NUM_TICKET) AS TICKET from HIST_VENTAS")));
+ //BA.debugLineNum = 261;BA.debugLine="numticks.Position = 0";
+_numticks.setPosition((int) (0));
+ //BA.debugLineNum = 262;BA.debugLine="l_numtickets.Text = numticks.GetInt(\"TICKET\")";
+_l_numtickets.setText(BA.ObjectToCharSequence(_numticks.GetInt("TICKET")));
+ };
+ //BA.debugLineNum = 264;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 265;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
+_fecha = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 266;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from kmt_info")));
+ //BA.debugLineNum = 267;BA.debugLine="b.Position=0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 268;BA.debugLine="If b.RowCount > 0 Then Cuantos = b.GetString(\"CUA";
+if (_b.getRowCount()>0) {
+_cuantos = _b.GetString("CUANTOS");};
+ //BA.debugLineNum = 269;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000")));
+ //BA.debugLineNum = 270;BA.debugLine="D.Position=0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 271;BA.debugLine="b.Close";
+_b.Close();
+ //BA.debugLineNum = 272;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
+_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
+ //BA.debugLineNum = 273;BA.debugLine="e.Position=0";
+_e.setPosition((int) (0));
+ //BA.debugLineNum = 284;BA.debugLine="cargar.Visible = False";
+_cargar.setVisible(__c.False);
+ //BA.debugLineNum = 285;BA.debugLine="Subir.Visible = False";
+_subir.setVisible(__c.False);
+ //BA.debugLineNum = 286;BA.debugLine="connecta.Visible = True";
+_connecta.setVisible(__c.True);
+ //BA.debugLineNum = 288;BA.debugLine="If Cuantos = 0 Then";
+if ((_cuantos).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 289;BA.debugLine="l_aLiquidar.Text = 0";
+_l_aliquidar.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 290;BA.debugLine="l_cuantosc.Text = 0";
+_l_cuantosc.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 291;BA.debugLine="l_cuantosn.Text = 0";
+_l_cuantosn.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 292;BA.debugLine="drop = 0";
+_drop = 0;
+ //BA.debugLineNum = 293;BA.debugLine="l_montoSalida.Text = 0";
+_l_montosalida.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 294;BA.debugLine="efectiva = 0";
+_efectiva = 0;
+ //BA.debugLineNum = 297;BA.debugLine="L_MONTOE.Text = 0";
+_l_montoe.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 298;BA.debugLine="l_ctast.Text = 0";
+_l_ctast.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 299;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin";
+if (_d.getRowCount()>0) {
+_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));};
+ //BA.debugLineNum = 300;BA.debugLine="l_porvisitar.Text = 0";
+_l_porvisitar.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 301;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get";
+if (_e.getRowCount()>0) {
+_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));};
+ //BA.debugLineNum = 302;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 303;BA.debugLine="e.Close";
+_e.Close();
+ }else {
+ //BA.debugLineNum = 305;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(hvd_costo_t";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_DIA from hist_ventas where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_ESTATUS = 1 ")));
+ //BA.debugLineNum = 306;BA.debugLine="f1=Starter.skmt.ExecQuery(\"select sum(hvd_costo_";
+_f1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_TOTAL_DIA from hist_ventas2 where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_RECHAZO = 0")));
+ //BA.debugLineNum = 307;BA.debugLine="f2=Starter.skmt.ExecQuery(\"select sum(REP_COSTO_";
+_f2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(REP_COSTO_TOT) as MONTO_REC_DIA FROM REPARTO where REP_cliente in (Select cat_cl_codigo from kmt_info)")));
+ //BA.debugLineNum = 309;BA.debugLine="b=Starter.skmt.ExecQuery(\"select count(DISTINCT";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CUANTOS from noventa where nv_motivo <> 'ENTREGA' and NV_CLIENTE <> 63403")));
+ //BA.debugLineNum = 311;BA.debugLine="L=Starter.skmt.ExecQuery(\"select count(DISTINCT";
+_l = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CLIENTES_DIA from noventa where nv_motivo = 'ENTREGA' and NV_CLIENTE <> 63403")));
+ //BA.debugLineNum = 312;BA.debugLine="f2.Position=0";
+_f2.setPosition((int) (0));
+ //BA.debugLineNum = 315;BA.debugLine="Private MONTO_REC_DIA = 0";
+_monto_rec_dia = BA.NumberToString(0);
+ //BA.debugLineNum = 316;BA.debugLine="If f2.GetString(\"MONTO_REC_DIA\") <> Null Then MO";
+if (_f2.GetString("MONTO_REC_DIA")!= null) {
+_monto_rec_dia = _f2.GetString("MONTO_REC_DIA");};
+ //BA.debugLineNum = 327;BA.debugLine="C.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 328;BA.debugLine="b.Position = 0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 329;BA.debugLine="L.Position = 0";
+_l.setPosition((int) (0));
+ //BA.debugLineNum = 330;BA.debugLine="f1.Position = 0";
+_f1.setPosition((int) (0));
+ //BA.debugLineNum = 331;BA.debugLine="l_aLiquidar.Text = 0";
+_l_aliquidar.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 332;BA.debugLine="If f1.RowCount > 0 Then l_aLiquidar.Text = to_nu";
+if (_f1.getRowCount()>0) {
+_l_aliquidar.setText(BA.ObjectToCharSequence(_to_number_vb((Object)(_f1.GetString("MONTO_TOTAL_DIA")))));};
+ //BA.debugLineNum = 333;BA.debugLine="L_MONTOE.Text = 0";
+_l_montoe.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 335;BA.debugLine="l_cuantosc.Text = 0";
+_l_cuantosc.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 336;BA.debugLine="If L.RowCount > 0 Then l_cuantosc.Text = L.GetSt";
+if (_l.getRowCount()>0) {
+_l_cuantosc.setText(BA.ObjectToCharSequence(_l.GetString("CLIENTES_DIA")));};
+ //BA.debugLineNum = 337;BA.debugLine="l_cuantosn.Text = 0";
+_l_cuantosn.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 338;BA.debugLine="If b.RowCount > 0 Then l_cuantosn.Text = b.GetSt";
+if (_b.getRowCount()>0) {
+_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS")));};
+ //BA.debugLineNum = 340;BA.debugLine="If f1.GetString(\"MONTO_TOTAL_DIA\") <> Null Then";
+if (_f1.GetString("MONTO_TOTAL_DIA")!= null) {
+_l_montosalida.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_f1.GetString("MONTO_TOTAL_DIA"))),(int) (2))));};
+ //BA.debugLineNum = 342;BA.debugLine="l_ctast.Text = 0";
+_l_ctast.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 343;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin";
+if (_d.getRowCount()>0) {
+_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));};
+ //BA.debugLineNum = 344;BA.debugLine="l_porvisitar.Text = 0";
+_l_porvisitar.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 345;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get";
+if (_e.getRowCount()>0) {
+_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));};
+ //BA.debugLineNum = 346;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 347;BA.debugLine="b.Close";
+_b.Close();
+ //BA.debugLineNum = 358;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 360;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 361;BA.debugLine="C.Position =0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 362;BA.debugLine="ALMACEN = 0";
+_almacen = BA.NumberToString(0);
+ //BA.debugLineNum = 363;BA.debugLine="If C.RowCount > 0 Then ALMACEN = C.GetString(\"ID_";
+if (_c.getRowCount()>0) {
+_almacen = _c.GetString("ID_ALMACEN");};
+ //BA.debugLineNum = 364;BA.debugLine="B4XPages.MainPage.almacen = ALMACEN";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ = _almacen;
+ //BA.debugLineNum = 365;BA.debugLine="C.Close";
+_c.Close();
+ //BA.debugLineNum = 366;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HGDATE, HGLAT, H";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS")));
+ //BA.debugLineNum = 368;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 369;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step115 = 1;
+final int limit115 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit115 ;_i = _i + step115 ) {
+ //BA.debugLineNum = 370;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 371;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 372;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 373;BA.debugLine="cmd.Name = \"insert_gps_actual_REP\"";
+_cmd.Name /*String*/ = "insert_gps_actual_REP";
+ //BA.debugLineNum = 374;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"h";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("hgdate")),(Object)(_c.GetString("hglat")),(Object)(_c.GetString("hglon")),(Object)(_usuario)};
+ }
+};
+ };
+ //BA.debugLineNum = 378;BA.debugLine="bu.Initialize";
+_bu._initialize /*String*/ (ba);
+ //BA.debugLineNum = 379;BA.debugLine="batterystatus = bu.BatteryInformation";
+_batterystatus = _bu._getbatteryinformation /*int[]*/ ();
+ //BA.debugLineNum = 381;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._batt /*int*/ = _batterystatus[(int) (0)];
+ //BA.debugLineNum = 382;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 383;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 384;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 385;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 386;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 387;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 388;BA.debugLine="RUTA_T = 0";
+_ruta_t = BA.NumberToString(0);
+ //BA.debugLineNum = 389;BA.debugLine="If c.RowCount > 0 Then RUTA_T = c.GetString(\"RUTA";
+if (_c.getRowCount()>0) {
+_ruta_t = _c.GetString("RUTAA");};
+ //BA.debugLineNum = 390;BA.debugLine="B4XPages.MainPage.rutaPreventa = RUTA_T";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = _ruta_t;
+ //BA.debugLineNum = 391;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 392;BA.debugLine="reqs.Initialize";
+_reqs.Initialize();
+ //BA.debugLineNum = 394;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
+_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_RECHAZO = \"1\" and REP_CANT > 0"))));
+ //BA.debugLineNum = 396;BA.debugLine="If rc.RowCount > 0 Then";
+if (_rc.getRowCount()>0) {
+ //BA.debugLineNum = 397;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from RECHAZOS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from RECHAZOS"));
+ //BA.debugLineNum = 398;BA.debugLine="For i3=0 To rc.RowCount -1 'Copiamos los rechazo";
+{
+final int step140 = 1;
+final int limit140 = (int) (_rc.getRowCount()-1);
+_i3 = (int) (0) ;
+for (;_i3 <= limit140 ;_i3 = _i3 + step140 ) {
+ //BA.debugLineNum = 399;BA.debugLine="rc.Position = i3";
+_rc.setPosition(_i3);
+ //BA.debugLineNum = 402;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into RECHAZO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into RECHAZOS(R_FECHA, R_CLIENTE, R_CLI_ORIG, R_PRODID, R_CANT, R_RECHAZO, R_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_CLIENTE")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '1' and REP_CANT > 0"));
+ }
+};
+ };
+ //BA.debugLineNum = 405;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s";
+_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_RECHAZO = \"0\" and REP_CANT > 0"))));
+ //BA.debugLineNum = 407;BA.debugLine="If vc.RowCount > 0 Then";
+if (_vc.getRowCount()>0) {
+ //BA.debugLineNum = 408;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from VENTAS\"$";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from VENTAS"));
+ //BA.debugLineNum = 409;BA.debugLine="For i4=0 To vc.RowCount -1 'Copiamos las ventas";
+{
+final int step148 = 1;
+final int limit148 = (int) (_vc.getRowCount()-1);
+_i4 = (int) (0) ;
+for (;_i4 <= limit148 ;_i4 = _i4 + step148 ) {
+ //BA.debugLineNum = 410;BA.debugLine="vc.Position = i4";
+_vc.setPosition(_i4);
+ //BA.debugLineNum = 413;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into VENTAS(";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into VENTAS(V_FECHA, V_CLIENTE, V_CLI_ORIG, V_PRODID, V_CANT, V_RECHAZO, V_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLIENTE")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '0' and REP_CANT > 0"));
+ }
+};
+ };
+ //BA.debugLineNum = 416;BA.debugLine="Starter.ENVIA_ULTIMA_GPS";
+_starter._envia_ultima_gps /*String*/ ();
+ //BA.debugLineNum = 421;BA.debugLine="Dim entMap As Map = Subs.traeEntregados";
+_entmap = new anywheresoftware.b4a.objects.collections.Map();
+_entmap = _subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
+ //BA.debugLineNum = 422;BA.debugLine="Dim rechMap As Map = Subs.traeRechazados";
+_rechmap = new anywheresoftware.b4a.objects.collections.Map();
+_rechmap = _subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
+ //BA.debugLineNum = 423;BA.debugLine="Dim vendMap As Map = Subs.traeVendidos";
+_vendmap = new anywheresoftware.b4a.objects.collections.Map();
+_vendmap = _subs._traevendidos /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
+ //BA.debugLineNum = 424;BA.debugLine="l_aLiquidar.Text = entMap.Get(\"monto\") + vendMap.";
+_l_aliquidar.setText(BA.ObjectToCharSequence((double)(BA.ObjectToNumber(_entmap.Get((Object)("monto"))))+(double)(BA.ObjectToNumber(_vendmap.Get((Object)("monto"))))));
+ //BA.debugLineNum = 426;BA.debugLine="Dim cancelrecha As Cursor = Starter.skmt.ExecQuer";
+_cancelrecha = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cancelrecha = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ifnull(HVD_RECHAZOCANT,0), HVD_RECHAZO, CONSECUTIVO FROM HIST_VENTAS")));
+ //BA.debugLineNum = 427;BA.debugLine="If cancelrecha.RowCount > 0 Then";
+if (_cancelrecha.getRowCount()>0) {
+ //BA.debugLineNum = 428;BA.debugLine="For h54 = 0 To cancelrecha.RowCount - 1";
+{
+final int step160 = 1;
+final int limit160 = (int) (_cancelrecha.getRowCount()-1);
+_h54 = (int) (0) ;
+for (;_h54 <= limit160 ;_h54 = _h54 + step160 ) {
+ //BA.debugLineNum = 429;BA.debugLine="cancelrecha.Position = h54";
+_cancelrecha.setPosition(_h54);
+ //BA.debugLineNum = 430;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update HIST_VENTAS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update HIST_VENTAS set HVD_RECHAZO = '0' WHERE CONSECUTIVO = ? and (HVD_RECHAZOCANT = 0 OR HVD_RECHAZOCANT IS NULL)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_cancelrecha.GetString("CONSECUTIVO")}));
+ }
+};
+ };
+ //BA.debugLineNum = 433;BA.debugLine="cancelrecha.Close";
+_cancelrecha.Close();
+ //BA.debugLineNum = 437;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ORDER BY HVD_PROID "))));
+ //BA.debugLineNum = 439;BA.debugLine="Private rescant As String = 0";
+_rescant = BA.NumberToString(0);
+ //BA.debugLineNum = 440;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 441;BA.debugLine="For j4 = 0 To r5.RowCount -1";
+{
+final int step169 = 1;
+final int limit169 = (int) (_r5.getRowCount()-1);
+_j4 = (int) (0) ;
+for (;_j4 <= limit169 ;_j4 = _j4 + step169 ) {
+ //BA.debugLineNum = 442;BA.debugLine="r5.Position = j4";
+_r5.setPosition(_j4);
+ //BA.debugLineNum = 443;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
+_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' "))));
+ //BA.debugLineNum = 444;BA.debugLine="Dim totalcantped As String";
+_totalcantped = "";
+ //BA.debugLineNum = 445;BA.debugLine="If r6.RowCount > 0 Then";
+if (_r6.getRowCount()>0) {
+ //BA.debugLineNum = 446;BA.debugLine="r6.Position = 0";
+_r6.setPosition((int) (0));
+ //BA.debugLineNum = 447;BA.debugLine="totalcantped = r6.GetString(\"PE_CANT\")";
+_totalcantped = _r6.GetString("PE_CANT");
+ }else {
+ //BA.debugLineNum = 450;BA.debugLine="totalcantped = 0";
+_totalcantped = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 453;BA.debugLine="Log(r5.GetString(\"HVD_RECHAZOCANT\") &\" - \"& tot";
+__c.LogImpl("514352641",_r5.GetString("HVD_RECHAZOCANT")+" - "+_totalcantped,0);
+ //BA.debugLineNum = 454;BA.debugLine="rescant = rescant + ((r5.GetString(\"HVD_COSTO_T";
+_rescant = BA.NumberToString((double)(Double.parseDouble(_rescant))+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_totalcantped))))));
+ //BA.debugLineNum = 456;BA.debugLine="r6.Close";
+_r6.Close();
+ }
+};
+ };
+ //BA.debugLineNum = 459;BA.debugLine="If rescant = \"NaN\" Then rescant = 0";
+if ((_rescant).equals("NaN")) {
+_rescant = BA.NumberToString(0);};
+ //BA.debugLineNum = 460;BA.debugLine="LogColor(rescant,Colors.Red)";
+__c.LogImpl("514352648",_rescant,__c.Colors.Red);
+ //BA.debugLineNum = 461;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 465;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "))));
+ //BA.debugLineNum = 469;BA.debugLine="Private rescant2 As Double = 0";
+_rescant2 = 0;
+ //BA.debugLineNum = 470;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 471;BA.debugLine="For j5 = 0 To r5.RowCount -1";
+{
+final int step190 = 1;
+final int limit190 = (int) (_r5.getRowCount()-1);
+_j5 = (int) (0) ;
+for (;_j5 <= limit190 ;_j5 = _j5 + step190 ) {
+ //BA.debugLineNum = 472;BA.debugLine="r5.Position = j5";
+_r5.setPosition(_j5);
+ //BA.debugLineNum = 473;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
+_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 474;BA.debugLine="r6.Position = 0";
+_r6.setPosition((int) (0));
+ //BA.debugLineNum = 476;BA.debugLine="rescant2 = rescant2 + ((r5.GetString(\"HVD_COSTO";
+_rescant2 = _rescant2+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("CANTC")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_r6.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5.GetString("HVD_PROID"))))));
+ //BA.debugLineNum = 477;BA.debugLine="rescant2 = NumberFormat2(rescant2, 0, 2, 2, Fal";
+_rescant2 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant2,(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 478;BA.debugLine="r6.Close";
+_r6.Close();
+ }
+};
+ };
+ //BA.debugLineNum = 481;BA.debugLine="If rescant2 = \"NaN\" Then rescant2 = 0";
+if (_rescant2==(double)(Double.parseDouble("NaN"))) {
+_rescant2 = 0;};
+ //BA.debugLineNum = 482;BA.debugLine="Log(rescant2)";
+__c.LogImpl("514352670",BA.NumberToString(_rescant2),0);
+ //BA.debugLineNum = 483;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 488;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\"";
+_r5r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' "))));
+ //BA.debugLineNum = 490;BA.debugLine="Private rescantr As String = 0";
+_rescantr = BA.NumberToString(0);
+ //BA.debugLineNum = 491;BA.debugLine="If r5r.RowCount > 0 Then";
+if (_r5r.getRowCount()>0) {
+ //BA.debugLineNum = 492;BA.debugLine="For j4r = 0 To r5r.RowCount -1";
+{
+final int step205 = 1;
+final int limit205 = (int) (_r5r.getRowCount()-1);
+_j4r = (int) (0) ;
+for (;_j4r <= limit205 ;_j4r = _j4r + step205 ) {
+ //BA.debugLineNum = 493;BA.debugLine="r5r.Position = j4r";
+_r5r.setPosition(_j4r);
+ //BA.debugLineNum = 494;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery(";
+_r6r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r6r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("CONSECUTIVO")))+"' "))));
+ //BA.debugLineNum = 495;BA.debugLine="r6r.Position = 0";
+_r6r.setPosition((int) (0));
+ //BA.debugLineNum = 498;BA.debugLine="rescantr = rescantr + ((r5r.GetString(\"HVD_COST";
+_rescantr = BA.NumberToString((double)(Double.parseDouble(_rescantr))+(((double)(Double.parseDouble(_r5r.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5r.GetString("HVD_CANT")))))*(double)(Double.parseDouble((_r5r.GetString("HVD_RECHAZOCANT"))))));
+ //BA.debugLineNum = 499;BA.debugLine="r6r.Close";
+_r6r.Close();
+ }
+};
+ };
+ //BA.debugLineNum = 502;BA.debugLine="If rescantr = \"NaN\" Then rescantr = 0";
+if ((_rescantr).equals("NaN")) {
+_rescantr = BA.NumberToString(0);};
+ //BA.debugLineNum = 504;BA.debugLine="r5r.Close";
+_r5r.Close();
+ //BA.debugLineNum = 506;BA.debugLine="Log(rescantr)";
+__c.LogImpl("514352694",_rescantr,0);
+ //BA.debugLineNum = 508;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\"";
+_r5r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "))));
+ //BA.debugLineNum = 512;BA.debugLine="Private rescant2r As String = 0";
+_rescant2r = BA.NumberToString(0);
+ //BA.debugLineNum = 513;BA.debugLine="If r5r.RowCount > 0 Then";
+if (_r5r.getRowCount()>0) {
+ //BA.debugLineNum = 514;BA.debugLine="For j5r = 0 To r5r.RowCount -1";
+{
+final int step219 = 1;
+final int limit219 = (int) (_r5r.getRowCount()-1);
+_j5r = (int) (0) ;
+for (;_j5r <= limit219 ;_j5r = _j5r + step219 ) {
+ //BA.debugLineNum = 515;BA.debugLine="r5r.Position = j5r";
+_r5r.setPosition(_j5r);
+ //BA.debugLineNum = 516;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery(";
+_r6r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r6r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 517;BA.debugLine="r6r.Position = 0";
+_r6r.setPosition((int) (0));
+ //BA.debugLineNum = 519;BA.debugLine="rescant2r = rescant2r + ((r5r.GetString(\"HVD_CO";
+_rescant2r = BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(((double)(Double.parseDouble(_r5r.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5r.GetString("CANTC")))))*((double)(Double.parseDouble((_r5r.GetString("HVD_RECHAZOCANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5r.GetString("HVD_PROID")))))));
+ //BA.debugLineNum = 520;BA.debugLine="r6r.Close";
+_r6r.Close();
+ }
+};
+ };
+ //BA.debugLineNum = 523;BA.debugLine="If rescant2r = \"NaN\" Then rescant2r = 0";
+if ((_rescant2r).equals("NaN")) {
+_rescant2r = BA.NumberToString(0);};
+ //BA.debugLineNum = 525;BA.debugLine="r5r.Close";
+_r5r.Close();
+ //BA.debugLineNum = 526;BA.debugLine="Log(rescant2r)";
+__c.LogImpl("514352714",_rescant2r,0);
+ //BA.debugLineNum = 527;BA.debugLine="Log(rescant2r+rescantr)";
+__c.LogImpl("514352715",BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(double)(Double.parseDouble(_rescantr))),0);
+ //BA.debugLineNum = 543;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\"";
+_r55 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r55 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' "))));
+ //BA.debugLineNum = 544;BA.debugLine="Private rescant3 As Double";
+_rescant3 = 0;
+ //BA.debugLineNum = 545;BA.debugLine="If r55.RowCount > 0 Then";
+if (_r55.getRowCount()>0) {
+ //BA.debugLineNum = 546;BA.debugLine="For r75 = 0 To r55.RowCount -1";
+{
+final int step234 = 1;
+final int limit234 = (int) (_r55.getRowCount()-1);
+_r75 = (int) (0) ;
+for (;_r75 <= limit234 ;_r75 = _r75 + step234 ) {
+ //BA.debugLineNum = 547;BA.debugLine="r55.Position = r75";
+_r55.setPosition(_r75);
+ //BA.debugLineNum = 548;BA.debugLine="rescant3 = rescant3 + r55.GetString(\"HVD_COSTO_";
+_rescant3 = _rescant3+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT")));
+ //BA.debugLineNum = 549;BA.debugLine="rescant3 = NumberFormat2(rescant3, 0, 2, 2, Fal";
+_rescant3 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant3,(int) (0),(int) (2),(int) (2),__c.False)));
+ }
+};
+ };
+ //BA.debugLineNum = 553;BA.debugLine="Log(rescant3)";
+__c.LogImpl("514352741",BA.NumberToString(_rescant3),0);
+ //BA.debugLineNum = 554;BA.debugLine="r55.Close";
+_r55.Close();
+ //BA.debugLineNum = 559;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '1' "))));
+ //BA.debugLineNum = 560;BA.debugLine="Private rescant4 As Double";
+_rescant4 = 0;
+ //BA.debugLineNum = 561;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 562;BA.debugLine="r5.Position = 0";
+_r5.setPosition((int) (0));
+ //BA.debugLineNum = 563;BA.debugLine="rescant4 = r5.GetString(\"HVD_COSTO_TOT\")";
+_rescant4 = (double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")));
+ };
+ //BA.debugLineNum = 565;BA.debugLine="Log(rescant4)";
+__c.LogImpl("514352753",BA.NumberToString(_rescant4),0);
+ //BA.debugLineNum = 566;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 568;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT from PEDIDO "))));
+ //BA.debugLineNum = 569;BA.debugLine="Private rescant5 As Double";
+_rescant5 = 0;
+ //BA.debugLineNum = 570;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 571;BA.debugLine="r5.Position = 0";
+_r5.setPosition((int) (0));
+ //BA.debugLineNum = 572;BA.debugLine="rescant5 = r5.GetString(\"PE_COSTO_TOT\")";
+_rescant5 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT")));
+ };
+ //BA.debugLineNum = 574;BA.debugLine="Log(rescant5)";
+__c.LogImpl("514352762",BA.NumberToString(_rescant5),0);
+ //BA.debugLineNum = 575;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 580;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' "))));
+ //BA.debugLineNum = 581;BA.debugLine="Private rescant6 As Double";
+_rescant6 = 0;
+ //BA.debugLineNum = 582;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 583;BA.debugLine="For j4 = 0 To r5.RowCount -1";
+{
+final int step261 = 1;
+final int limit261 = (int) (_r5.getRowCount()-1);
+_j4 = (int) (0) ;
+for (;_j4 <= limit261 ;_j4 = _j4 + step261 ) {
+ //BA.debugLineNum = 584;BA.debugLine="r5.Position = j4";
+_r5.setPosition(_j4);
+ //BA.debugLineNum = 585;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
+_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' "))));
+ //BA.debugLineNum = 586;BA.debugLine="r6.Position = 0";
+_r6.setPosition((int) (0));
+ //BA.debugLineNum = 589;BA.debugLine="rescant6 = rescant6 + ((r5.GetString(\"HVD_COSTO";
+_rescant6 = _rescant6+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))));
+ //BA.debugLineNum = 591;BA.debugLine="r6.Close";
+_r6.Close();
+ }
+};
+ };
+ //BA.debugLineNum = 594;BA.debugLine="If rescant6 = \"NaN\" Then rescant6 = 0";
+if (_rescant6==(double)(Double.parseDouble("NaN"))) {
+_rescant6 = 0;};
+ //BA.debugLineNum = 595;BA.debugLine="LogColor(rescant6,Colors.Red)";
+__c.LogImpl("514352783",BA.NumberToString(_rescant6),__c.Colors.Red);
+ //BA.debugLineNum = 596;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 598;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' "))));
+ //BA.debugLineNum = 599;BA.debugLine="Private rescant7 As Double";
+_rescant7 = 0;
+ //BA.debugLineNum = 600;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 601;BA.debugLine="For j5 = 0 To r5.RowCount -1";
+{
+final int step275 = 1;
+final int limit275 = (int) (_r5.getRowCount()-1);
+_j5 = (int) (0) ;
+for (;_j5 <= limit275 ;_j5 = _j5 + step275 ) {
+ //BA.debugLineNum = 602;BA.debugLine="r5.Position = j5";
+_r5.setPosition(_j5);
+ //BA.debugLineNum = 603;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
+_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 604;BA.debugLine="r6.Position = 0";
+_r6.setPosition((int) (0));
+ //BA.debugLineNum = 606;BA.debugLine="rescant7 = rescant7 + ((r5.GetString(\"HVD_COSTO";
+_rescant7 = _rescant7+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("CANTC")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5.GetString("HVD_PROID"))))));
+ //BA.debugLineNum = 607;BA.debugLine="r6.Close";
+_r6.Close();
+ }
+};
+ };
+ //BA.debugLineNum = 610;BA.debugLine="If rescant7 = \"NaN\" Then rescant7 = 0";
+if (_rescant7==(double)(Double.parseDouble("NaN"))) {
+_rescant7 = 0;};
+ //BA.debugLineNum = 611;BA.debugLine="Log(rescant7)";
+__c.LogImpl("514352799",BA.NumberToString(_rescant7),0);
+ //BA.debugLineNum = 612;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 615;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\"";
+_r55 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r55 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2)"))));
+ //BA.debugLineNum = 616;BA.debugLine="Private rescant10 As Double";
+_rescant10 = 0;
+ //BA.debugLineNum = 617;BA.debugLine="Private pztotal As Int";
+_pztotal = 0;
+ //BA.debugLineNum = 618;BA.debugLine="If r55.RowCount > 0 Then";
+if (_r55.getRowCount()>0) {
+ //BA.debugLineNum = 619;BA.debugLine="For r75 = 0 To r55.RowCount -1";
+{
+final int step290 = 1;
+final int limit290 = (int) (_r55.getRowCount()-1);
+_r75 = (int) (0) ;
+for (;_r75 <= limit290 ;_r75 = _r75 + step290 ) {
+ //BA.debugLineNum = 620;BA.debugLine="r55.Position = r75";
+_r55.setPosition(_r75);
+ //BA.debugLineNum = 621;BA.debugLine="rescant10 = rescant10 + r55.GetString(\"HVD_COST";
+_rescant10 = _rescant10+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT")));
+ //BA.debugLineNum = 622;BA.debugLine="rescant10 = NumberFormat2(rescant10, 0, 2, 2, F";
+_rescant10 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant10,(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 623;BA.debugLine="pztotal = pztotal + r55.GetString(\"HVD_CANT\")";
+_pztotal = (int) (_pztotal+(double)(Double.parseDouble(_r55.GetString("HVD_CANT"))));
+ }
+};
+ };
+ //BA.debugLineNum = 626;BA.debugLine="Log(rescant10)";
+__c.LogImpl("514352814",BA.NumberToString(_rescant10),0);
+ //BA.debugLineNum = 627;BA.debugLine="r55.Close";
+_r55.Close();
+ //BA.debugLineNum = 640;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT, IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO "))));
+ //BA.debugLineNum = 641;BA.debugLine="Private pztotal2 As Int";
+_pztotal2 = 0;
+ //BA.debugLineNum = 642;BA.debugLine="Private rescant11 As Double";
+_rescant11 = 0;
+ //BA.debugLineNum = 643;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 644;BA.debugLine="r5.Position = 0";
+_r5.setPosition((int) (0));
+ //BA.debugLineNum = 645;BA.debugLine="rescant11 = r5.GetString(\"PE_COSTO_TOT\")";
+_rescant11 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT")));
+ //BA.debugLineNum = 646;BA.debugLine="pztotal2 = pztotal2 + r5.GetString(\"PE_CANT\")";
+_pztotal2 = (int) (_pztotal2+(double)(Double.parseDouble(_r5.GetString("PE_CANT"))));
+ };
+ //BA.debugLineNum = 648;BA.debugLine="Log(rescant11)";
+__c.LogImpl("514352836",BA.NumberToString(_rescant11),0);
+ //BA.debugLineNum = 649;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 651;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
+_r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2) "))));
+ //BA.debugLineNum = 652;BA.debugLine="Private pztotal3 As Int";
+_pztotal3 = 0;
+ //BA.debugLineNum = 653;BA.debugLine="Private rescant12 As Double";
+_rescant12 = 0;
+ //BA.debugLineNum = 654;BA.debugLine="If r5.RowCount > 0 Then";
+if (_r5.getRowCount()>0) {
+ //BA.debugLineNum = 655;BA.debugLine="For j4 = 0 To r5.RowCount -1";
+{
+final int step313 = 1;
+final int limit313 = (int) (_r5.getRowCount()-1);
+_j4 = (int) (0) ;
+for (;_j4 <= limit313 ;_j4 = _j4 + step313 ) {
+ //BA.debugLineNum = 656;BA.debugLine="r5.Position = j4";
+_r5.setPosition(_j4);
+ //BA.debugLineNum = 657;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
+_r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' "))));
+ //BA.debugLineNum = 658;BA.debugLine="r6.Position = 0";
+_r6.setPosition((int) (0));
+ //BA.debugLineNum = 659;BA.debugLine="LogColor(r5.GetString(\"HVD_COSTO_TOT\")&\" / \"& r";
+__c.LogImpl("514352847",_r5.GetString("HVD_COSTO_TOT")+" / "+_r5.GetString("HVD_CANT")+" * "+_r5.GetString("HVD_RECHAZOCANT")+" - "+_r6.GetString("PE_CANT"),__c.Colors.Blue);
+ //BA.debugLineNum = 660;BA.debugLine="LogColor(r6.GetString(\"PE_CANT\"),Colors.Blue)";
+__c.LogImpl("514352848",_r6.GetString("PE_CANT"),__c.Colors.Blue);
+ //BA.debugLineNum = 661;BA.debugLine="rescant12 = rescant12 + ((r5.GetString(\"HVD_COS";
+_rescant12 = _rescant12+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))));
+ //BA.debugLineNum = 662;BA.debugLine="pztotal3 = pztotal3 + (r5.GetString(\"HVD_CANT\"";
+_pztotal3 = (int) (_pztotal3+((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))));
+ //BA.debugLineNum = 663;BA.debugLine="Log(rescant12)";
+__c.LogImpl("514352851",BA.NumberToString(_rescant12),0);
+ //BA.debugLineNum = 664;BA.debugLine="r6.Close";
+_r6.Close();
+ }
+};
+ };
+ //BA.debugLineNum = 667;BA.debugLine="If rescant12 = \"NaN\" Then rescant12 = 0";
+if (_rescant12==(double)(Double.parseDouble("NaN"))) {
+_rescant12 = 0;};
+ //BA.debugLineNum = 668;BA.debugLine="LogColor(rescant12,Colors.Red)";
+__c.LogImpl("514352856",BA.NumberToString(_rescant12),__c.Colors.Red);
+ //BA.debugLineNum = 669;BA.debugLine="r5.Close";
+_r5.Close();
+ //BA.debugLineNum = 671;BA.debugLine="l_rechazo.text = NumberFormat2((rescant + rescant";
+_l_rechazo.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_rescant))+_rescant2),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 672;BA.debugLine="L_MONTOE.Text = NumberFormat2((rescant3 + rescant";
+_l_montoe.setText(BA.ObjectToCharSequence(__c.NumberFormat2((_rescant3+_rescant4+_rescant5+_rescant6+_rescant7),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 675;BA.debugLine="Dim g8 As Cursor = Starter.skmt.ExecQuery(\"SELECT";
+_g8 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_g8 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT FROM HIST_VENTAS")));
+ //BA.debugLineNum = 676;BA.debugLine="g8.Position = 0";
+_g8.setPosition((int) (0));
+ //BA.debugLineNum = 677;BA.debugLine="Dim g11 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
+_g11 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_g11 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion <> 0")));
+ //BA.debugLineNum = 678;BA.debugLine="g11.Position = 0";
+_g11.setPosition((int) (0));
+ //BA.debugLineNum = 679;BA.debugLine="Dim g12 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
+_g12 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_g12 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 2")));
+ //BA.debugLineNum = 680;BA.debugLine="g12.Position = 0";
+_g12.setPosition((int) (0));
+ //BA.debugLineNum = 681;BA.debugLine="Dim g13 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
+_g13 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_g13 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 3")));
+ //BA.debugLineNum = 682;BA.debugLine="g13.Position = 0";
+_g13.setPosition((int) (0));
+ //BA.debugLineNum = 684;BA.debugLine="B4XPages.MainPage.monto_entregadoactual = Number";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._monto_entregadoactual /*String*/ = __c.NumberFormat2((_rescant10+_rescant11+_rescant12),(int) (0),(int) (2),(int) (2),__c.False);
+ //BA.debugLineNum = 686;BA.debugLine="B4XPages.MainPage.clientesVisitados = L_MONTOE.Te";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesvisitados /*String*/ = _l_montoe.getText();
+ //BA.debugLineNum = 687;BA.debugLine="B4XPages.MainPage.clientesVenta = l_cuantosc.Text";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesventa /*String*/ = _l_cuantosc.getText();
+ //BA.debugLineNum = 688;BA.debugLine="B4XPages.MainPage.clientesRechazo = l_cuantosn.Te";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesrechazo /*String*/ = _l_cuantosn.getText();
+ //BA.debugLineNum = 689;BA.debugLine="B4XPages.MainPage.clientestotal = l_porvisitar.Te";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientestotal /*String*/ = _l_porvisitar.getText();
+ //BA.debugLineNum = 690;BA.debugLine="B4XPages.MainPage.montoActual = Round2(g8.GetStr";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montoactual /*String*/ = BA.NumberToString(__c.Round2((double)(Double.parseDouble(_g8.GetString("HVD_COSTO_TOT"))),(int) (2)));
+ //BA.debugLineNum = 691;BA.debugLine="B4XPages.MainPage.porVisitar = l_ctast.text";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._porvisitar /*String*/ = _l_ctast.getText();
+ //BA.debugLineNum = 692;BA.debugLine="B4XPages.MainPage.visitadostotales = g11.GetStrin";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._visitadostotales /*String*/ = _g11.GetString("cuenta");
+ //BA.debugLineNum = 694;BA.debugLine="B4XPages.MainPage.entregas = g12.GetString(\"cuent";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._entregas /*String*/ = _g12.GetString("cuenta");
+ //BA.debugLineNum = 695;BA.debugLine="B4XPages.MainPage.rechazos = g13.GetString(\"cuent";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rechazos /*String*/ = _g13.GetString("cuenta");
+ //BA.debugLineNum = 696;BA.debugLine="B4XPages.MainPage.montoEntregado = L_MONTOE.text";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montoentregado /*String*/ = _l_montoe.getText();
+ //BA.debugLineNum = 697;BA.debugLine="B4XPages.MainPage.montoRechazado = l_rechazo.text";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montorechazado /*String*/ = _l_rechazo.getText();
+ //BA.debugLineNum = 699;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 702;BA.debugLine="If l_ctast.Text = 0 And l_porvisitar.Text <> 0 Th";
+if ((_l_ctast.getText()).equals(BA.NumberToString(0)) && (_l_porvisitar.getText()).equals(BA.NumberToString(0)) == false) {
+ //BA.debugLineNum = 703;BA.debugLine="Label9.Visible = True";
+_label9.setVisible(__c.True);
+ //BA.debugLineNum = 704;BA.debugLine="L_MONTOE.Visible = True";
+_l_montoe.setVisible(__c.True);
+ //BA.debugLineNum = 713;BA.debugLine="b_venta_emp.Visible = False";
+_b_venta_emp.setVisible(__c.False);
+ }else {
+ //BA.debugLineNum = 715;BA.debugLine="Label9.Visible = False";
+_label9.setVisible(__c.False);
+ //BA.debugLineNum = 716;BA.debugLine="L_MONTOE.Visible = False";
+_l_montoe.setVisible(__c.False);
+ //BA.debugLineNum = 717;BA.debugLine="b_venta_emp.Visible = False";
+_b_venta_emp.setVisible(__c.False);
+ };
+ //BA.debugLineNum = 720;BA.debugLine="If l_ruta.Text = 0 Then";
+if ((_l_ruta.getText()).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 721;BA.debugLine="b_imp_inventario.Visible = False";
+_b_imp_inventario.setVisible(__c.False);
+ }else {
+ //BA.debugLineNum = 723;BA.debugLine="b_imp_inventario.Visible = True";
+_b_imp_inventario.setVisible(__c.True);
+ };
+ //BA.debugLineNum = 731;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"})));
+ //BA.debugLineNum = 732;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 733;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 734;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO";
+_starter._mac_impresora /*String*/ = _c.GetString("CAT_VA_VALOR");
+ };
+ //BA.debugLineNum = 736;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
+if ((_starter._mac_impresora /*String*/ ).equals("")) {
+_starter._mac_impresora /*String*/ = "0";};
+ //BA.debugLineNum = 738;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
+_printer1._initialize /*String*/ (ba,this,"Printer1");
+ //BA.debugLineNum = 739;BA.debugLine="If Printer1.IsConnected = False Then";
+if (_printer1._isconnected /*boolean*/ ()==__c.False) {
+ }else {
+ //BA.debugLineNum = 743;BA.debugLine="Printer1.DisConnect";
+_printer1._disconnect /*String*/ ();
+ //BA.debugLineNum = 744;BA.debugLine="Printer1.Connect";
+_printer1._connect /*boolean*/ ();
+ //BA.debugLineNum = 745;BA.debugLine="Log(\"2\")";
+__c.LogImpl("514352933","2",0);
+ };
+ //BA.debugLineNum = 749;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_principal parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_principal parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 2053;BA.debugLine="If Panel1.visible Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 8;
+if (parent._panel1.getVisible()) {
+this.state = 3;
+}else if(parent._p_prod.getVisible()) {
+this.state = 5;
+}else {
+this.state = 7;
+}if (true) break;
+
+case 3:
+//C
+this.state = 8;
+ //BA.debugLineNum = 2054;BA.debugLine="Log(\"PANEL1 VISIBLE\")";
+parent.__c.LogImpl("515007747","PANEL1 VISIBLE",0);
+ //BA.debugLineNum = 2055;BA.debugLine="B_REGRESA_Click";
+parent._b_regresa_click();
+ if (true) break;
+
+case 5:
+//C
+this.state = 8;
+ //BA.debugLineNum = 2057;BA.debugLine="p_prod.Visible = False";
+parent._p_prod.setVisible(parent.__c.False);
+ if (true) break;
+
+case 7:
+//C
+this.state = 8;
+ //BA.debugLineNum = 2059;BA.debugLine="B4XPages.ShowPage(\"Login\")";
+parent._b4xpages._showpage /*String*/ (ba,"Login");
+ if (true) break;
+
+case 8:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 2062;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 2063;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 132;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 133;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 135;BA.debugLine="Root.LoadLayout(\"principal\")";
+_root.LoadLayout("principal",ba);
+ //BA.debugLineNum = 136;BA.debugLine="EJECUTANDO=1";
+_ejecutando = BA.NumberToString(1);
+ //BA.debugLineNum = 137;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 140;BA.debugLine="img2.Visible =False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 141;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+__c.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 142;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
+_fecha = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 144;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente")));
+ //BA.debugLineNum = 145;BA.debugLine="b.Position=0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 146;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
+_cuantos = _b.GetString("CUANTOS");
+ //BA.debugLineNum = 147;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000")));
+ //BA.debugLineNum = 148;BA.debugLine="D.Position=0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 149;BA.debugLine="b.Close";
+_b.Close();
+ //BA.debugLineNum = 150;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
+_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000")));
+ //BA.debugLineNum = 151;BA.debugLine="e.Position=0";
+_e.setPosition((int) (0));
+ //BA.debugLineNum = 152;BA.debugLine="If Cuantos = 0 Then";
+if ((_cuantos).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 153;BA.debugLine="l_aLiquidar.Text = 0";
+_l_aliquidar.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 154;BA.debugLine="l_cuantosc.Text = 0";
+_l_cuantosc.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 155;BA.debugLine="l_cuantosn.Text = 0";
+_l_cuantosn.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 156;BA.debugLine="drop = 0";
+_drop = 0;
+ //BA.debugLineNum = 157;BA.debugLine="l_montoSalida.Text = 0";
+_l_montosalida.setText(BA.ObjectToCharSequence(0));
+ //BA.debugLineNum = 158;BA.debugLine="efectiva = 0";
+_efectiva = 0;
+ //BA.debugLineNum = 160;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
+_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));
+ //BA.debugLineNum = 161;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
+_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));
+ }else {
+ };
+ //BA.debugLineNum = 180;BA.debugLine="b=Starter.skmt.ExecQuery(\"select id_almacen from";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select id_almacen from CAT_ALMACEN")));
+ //BA.debugLineNum = 181;BA.debugLine="If b.RowCount > 0 Then";
+if (_b.getRowCount()>0) {
+ //BA.debugLineNum = 183;BA.debugLine="b.Position = 0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 185;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 186;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 187;BA.debugLine="cmd.Name = \"select_coords_almacen_mards\"";
+_cmd.Name /*String*/ = "select_coords_almacen_mards";
+ //BA.debugLineNum = 188;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"ID";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_b.GetString("ID_ALMACEN"))};
+ //BA.debugLineNum = 189;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("coords_almacen"));
+ };
+ //BA.debugLineNum = 191;BA.debugLine="B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/ = _subs._dameusuariodedb /*String*/ (ba);
+ //BA.debugLineNum = 192;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
+_btadmin.Initialize(ba,"BlueTeeth");
+ //BA.debugLineNum = 193;BA.debugLine="cmp20.Initialize(\"Printer\")";
+_cmp20.Initialize("Printer");
+ //BA.debugLineNum = 194;BA.debugLine="End Sub";
+return "";
+}
+public String _btn_ubicar_ru_click() throws Exception{
+ //BA.debugLineNum = 2413;BA.debugLine="Sub Btn_Ubicar_Ru_Click";
+ //BA.debugLineNum = 2414;BA.debugLine="If b_check.Visible = True Then";
+if (_b_check.getVisible()==__c.True) {
+ //BA.debugLineNum = 2415;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 2418;BA.debugLine="StartActivity(MAPA_RUTAS)";
+__c.StartActivity(ba,(Object)(_mapa_rutas.getObject()));
+ };
+ //BA.debugLineNum = 2420;BA.debugLine="End Sub";
+return "";
+}
+public String _busca_click() throws Exception{
+ //BA.debugLineNum = 2090;BA.debugLine="Sub BUSCA_Click";
+ //BA.debugLineNum = 2091;BA.debugLine="If b_check.Visible = True Then";
+if (_b_check.getVisible()==__c.True) {
+ //BA.debugLineNum = 2092;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 2095;BA.debugLine="B4XPages.ShowPage(\"Buscar\")";
+_b4xpages._showpage /*String*/ (ba,"Buscar");
+ };
+ //BA.debugLineNum = 2097;BA.debugLine="End Sub";
+return "";
+}
+public String _cargar____click() throws Exception{
+boolean _pedidodiaanterior = false;
+String[] _fecha2 = null;
+String[] _fecha3 = null;
+String _dia = "";
+String _dia2 = "";
+ //BA.debugLineNum = 1284;BA.debugLine="Sub cargar____Click";
+ //BA.debugLineNum = 1285;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
+_pedidodiaanterior = __c.False;
+ //BA.debugLineNum = 1286;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select";
+_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from NOVENTA")));
+ //BA.debugLineNum = 1287;BA.debugLine="If cp.RowCount > 0 Then";
+if (_cp.getRowCount()>0) {
+ //BA.debugLineNum = 1288;BA.debugLine="cp.Position = 0";
+_cp.setPosition((int) (0));
+ //BA.debugLineNum = 1289;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
+_fecha = _cp.GetString("NV_FECHA");
+ //BA.debugLineNum = 1290;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
+__c.LogImpl("514876678",_cp.GetString("NV_FECHA"),0);
+ //BA.debugLineNum = 1291;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
+_fecha2 = __c.Regex.Split(" ",_fecha);
+ //BA.debugLineNum = 1292;BA.debugLine="Log(fecha2(0))";
+__c.LogImpl("514876680",_fecha2[(int) (0)],0);
+ //BA.debugLineNum = 1293;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
+_fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]);
+ //BA.debugLineNum = 1294;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
+__c.DateTime.setDateFormat("yyyyMMdd");
+ //BA.debugLineNum = 1295;BA.debugLine="DateTime.TimeFormat = \"\"";
+__c.DateTime.setTimeFormat("");
+ //BA.debugLineNum = 1296;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
+_dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)];
+ //BA.debugLineNum = 1297;BA.debugLine="Log(dia)";
+__c.LogImpl("514876685",_dia,0);
+ //BA.debugLineNum = 1298;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
+_dia2 = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 1299;BA.debugLine="Log(dia & \" , \" & dia2)";
+__c.LogImpl("514876687",_dia+" , "+_dia2,0);
+ //BA.debugLineNum = 1300;BA.debugLine="If dia < dia2 Then";
+if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) {
+ //BA.debugLineNum = 1301;BA.debugLine="pedidodiaanterior = True";
+_pedidodiaanterior = __c.True;
+ };
+ };
+ //BA.debugLineNum = 1304;BA.debugLine="If Not (pedidodiaanterior) Then";
+if (__c.Not(_pedidodiaanterior)) {
+ //BA.debugLineNum = 1305;BA.debugLine="Log(\"CUMPLE\")";
+__c.LogImpl("514876693","CUMPLE",0);
+ //BA.debugLineNum = 1306;BA.debugLine="EJECUTANDO = 1";
+_ejecutando = BA.NumberToString(1);
+ //BA.debugLineNum = 1307;BA.debugLine="reqs.Initialize";
+_reqs.Initialize();
+ //BA.debugLineNum = 1308;BA.debugLine="TOPE = 0";
+_tope = (int) (0);
+ //BA.debugLineNum = 1309;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
+__c.LogImpl("514876697",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
+ //BA.debugLineNum = 1310;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 1312;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 1313;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1314;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
+_cmd.Name /*String*/ = "insert_drop_rep_IZCA2";
+ //BA.debugLineNum = 1315;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(_l_ruta.getText()),(Object)(_almacen),(Object)(_l_ctast.getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())};
+ //BA.debugLineNum = 1316;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_drop"));
+ //BA.debugLineNum = 1319;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
+ //BA.debugLineNum = 1320;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
+ //BA.debugLineNum = 1321;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
+ //BA.debugLineNum = 1322;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
+ //BA.debugLineNum = 1323;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
+ //BA.debugLineNum = 1325;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS");
+ //BA.debugLineNum = 1326;BA.debugLine="If l_ruta.Text = \"0\" Then '";
+if ((_l_ruta.getText()).equals("0")) {
+ //BA.debugLineNum = 1327;BA.debugLine="Log(\"********************* No hay ruta, BORRAM";
+__c.LogImpl("514876715","********************* No hay ruta, BORRAMOS TODO",0);
+ //BA.debugLineNum = 1328;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
+ //BA.debugLineNum = 1329;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
+ //BA.debugLineNum = 1330;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
+ //BA.debugLineNum = 1331;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
+ //BA.debugLineNum = 1332;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2");
+ //BA.debugLineNum = 1333;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA");
+ }else {
+ //BA.debugLineNum = 1335;BA.debugLine="Log(\"********************* Hay ruta, NO BORRAM";
+__c.LogImpl("514876723","********************* Hay ruta, NO BORRAMOS TODO",0);
+ };
+ //BA.debugLineNum = 1339;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 1340;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1341;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 1343;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1344;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_punteo_mards_re_REPG";
+ //BA.debugLineNum = 1345;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen)};
+ //BA.debugLineNum = 1346;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("punteo"));
+ //BA.debugLineNum = 1347;BA.debugLine="Log($\"Pedimos Punteo\"$)";
+__c.LogImpl("514876735",("Pedimos Punteo"),0);
+ //BA.debugLineNum = 1348;BA.debugLine="reqs.Add(\"punteo\")";
+_reqs.Add((Object)("punteo"));
+ //BA.debugLineNum = 1351;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1352;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_almacen_mards_re_REPG";
+ //BA.debugLineNum = 1353;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)};
+ //BA.debugLineNum = 1354;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod"));
+ //BA.debugLineNum = 1355;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
+__c.LogImpl("514876743",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(_almacen))+", "+__c.SmartStringFormatter("",(Object)(_e_ruta.getText()))+""),0);
+ //BA.debugLineNum = 1356;BA.debugLine="reqs.Add(\"gunaprod\")";
+_reqs.Add((Object)("gunaprod"));
+ //BA.debugLineNum = 1360;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1361;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_cliente_mards_re_REPG";
+ //BA.debugLineNum = 1362;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 1363;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos"));
+ //BA.debugLineNum = 1364;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
+__c.LogImpl("514876752",("Pedimos kmt_datos"),0);
+ //BA.debugLineNum = 1365;BA.debugLine="reqs.Add(\"kmt_datos\")";
+_reqs.Add((Object)("kmt_datos"));
+ //BA.debugLineNum = 1367;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1368;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_ventad_mards_re_REPG";
+ //BA.debugLineNum = 1369;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 1370;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos"));
+ //BA.debugLineNum = 1371;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
+__c.LogImpl("514876759",("Pedimos hist_datos"),0);
+ //BA.debugLineNum = 1372;BA.debugLine="reqs.Add(\"hist_datos\")";
+_reqs.Add((Object)("hist_datos"));
+ //BA.debugLineNum = 1389;BA.debugLine="If ALMACEN = \"32\" Then";
+if ((_almacen).equals("32")) {
+ //BA.debugLineNum = 1390;BA.debugLine="ALMACEN = \"33\"";
+_almacen = "33";
+ //BA.debugLineNum = 1391;BA.debugLine="cargo = 2";
+_cargo = BA.NumberToString(2);
+ //BA.debugLineNum = 1392;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1393;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_punteo_mards_re_REPG";
+ //BA.debugLineNum = 1394;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen)};
+ //BA.debugLineNum = 1395;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("punteo"));
+ //BA.debugLineNum = 1396;BA.debugLine="reqs.Add(\"punteo\")";
+_reqs.Add((Object)("punteo"));
+ //BA.debugLineNum = 1398;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1399;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_almacen_mards_re_REPG";
+ //BA.debugLineNum = 1400;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_rut";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 1401;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod"));
+ //BA.debugLineNum = 1402;BA.debugLine="reqs.Add(\"gunaprod\")";
+_reqs.Add((Object)("gunaprod"));
+ //BA.debugLineNum = 1404;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1405;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_cliente_mards_re_REPG";
+ //BA.debugLineNum = 1406;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 1407;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos"));
+ //BA.debugLineNum = 1408;BA.debugLine="reqs.Add(\"kmt_datos\")";
+_reqs.Add((Object)("kmt_datos"));
+ //BA.debugLineNum = 1410;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1411;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
+_cmd.Name /*String*/ = "select_ventad_mards_re_REPG";
+ //BA.debugLineNum = 1412;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 1413;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos"));
+ //BA.debugLineNum = 1414;BA.debugLine="reqs.Add(\"hist_datos\")";
+_reqs.Add((Object)("hist_datos"));
+ };
+ //BA.debugLineNum = 1448;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
+ //BA.debugLineNum = 1449;BA.debugLine="d.Position=0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 1450;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
+_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA");
+ //BA.debugLineNum = 1451;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1452;BA.debugLine="cargar.Visible = False";
+_cargar.setVisible(__c.False);
+ //BA.debugLineNum = 1453;BA.debugLine="Subir.Visible = False";
+_subir.setVisible(__c.False);
+ //BA.debugLineNum = 1454;BA.debugLine="connecta.Visible = True";
+_connecta.setVisible(__c.True);
+ //BA.debugLineNum = 1455;BA.debugLine="inv.Visible = False";
+_inv.setVisible(__c.False);
+ //BA.debugLineNum = 1456;BA.debugLine="ToastMessageShow(\"Se actualizarán los datos, est";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias"),__c.True);
+ //BA.debugLineNum = 1457;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u";
+__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Descargando rutas, espere un momento."),__c.False);
+ //BA.debugLineNum = 1458;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
+if (__c.Not(_isconnectedtointernet())) {
+__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
+ }else {
+ //BA.debugLineNum = 1462;BA.debugLine="Log(\"XXXX\")";
+__c.LogImpl("514876850","XXXX",0);
+ //BA.debugLineNum = 1463;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ //BA.debugLineNum = 1466;BA.debugLine="End Sub";
+return "";
+}
+public String _cargar_click() throws Exception{
+boolean _pedidodiaanterior = false;
+String[] _fecha2 = null;
+String[] _fecha3 = null;
+String _dia = "";
+String _dia2 = "";
+ //BA.debugLineNum = 1119;BA.debugLine="Sub cargar_Click";
+ //BA.debugLineNum = 1120;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
+_pedidodiaanterior = __c.False;
+ //BA.debugLineNum = 1121;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select";
+_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from NOVENTA")));
+ //BA.debugLineNum = 1122;BA.debugLine="If cp.RowCount > 0 Then";
+if (_cp.getRowCount()>0) {
+ //BA.debugLineNum = 1123;BA.debugLine="cp.Position = 0";
+_cp.setPosition((int) (0));
+ //BA.debugLineNum = 1124;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
+_fecha = _cp.GetString("NV_FECHA");
+ //BA.debugLineNum = 1125;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
+__c.LogImpl("514811142",_cp.GetString("NV_FECHA"),0);
+ //BA.debugLineNum = 1126;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
+_fecha2 = __c.Regex.Split(" ",_fecha);
+ //BA.debugLineNum = 1127;BA.debugLine="Log(fecha2(0))";
+__c.LogImpl("514811144",_fecha2[(int) (0)],0);
+ //BA.debugLineNum = 1128;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
+_fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]);
+ //BA.debugLineNum = 1129;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
+__c.DateTime.setDateFormat("yyyyMMdd");
+ //BA.debugLineNum = 1130;BA.debugLine="DateTime.TimeFormat = \"\"";
+__c.DateTime.setTimeFormat("");
+ //BA.debugLineNum = 1131;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
+_dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)];
+ //BA.debugLineNum = 1132;BA.debugLine="Log(dia)";
+__c.LogImpl("514811149",_dia,0);
+ //BA.debugLineNum = 1133;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
+_dia2 = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 1134;BA.debugLine="Log(dia & \" , \" & dia2)";
+__c.LogImpl("514811151",_dia+" , "+_dia2,0);
+ //BA.debugLineNum = 1135;BA.debugLine="If dia < dia2 Then";
+if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) {
+ //BA.debugLineNum = 1136;BA.debugLine="pedidodiaanterior = True";
+_pedidodiaanterior = __c.True;
+ };
+ };
+ //BA.debugLineNum = 1139;BA.debugLine="If Not (pedidodiaanterior) Then";
+if (__c.Not(_pedidodiaanterior)) {
+ //BA.debugLineNum = 1140;BA.debugLine="P_carga.Visible = True";
+_p_carga.setVisible(__c.True);
+ //BA.debugLineNum = 1141;BA.debugLine="P_carga.Width = Root.Width";
+_p_carga.setWidth(_root.getWidth());
+ //BA.debugLineNum = 1142;BA.debugLine="P_carga.Height = Root.Height";
+_p_carga.setHeight(_root.getHeight());
+ //BA.debugLineNum = 1143;BA.debugLine="l_carga2.Text = \"CARGANDO\"";
+_l_carga2.setText(BA.ObjectToCharSequence("CARGANDO"));
+ //BA.debugLineNum = 1144;BA.debugLine="L_carga.Text = \"CARGANDO\"";
+_l_carga.setText(BA.ObjectToCharSequence("CARGANDO"));
+ //BA.debugLineNum = 1145;BA.debugLine="PB_carga.Progress = 0";
+_pb_carga.setProgress((int) (0));
+ //BA.debugLineNum = 1146;BA.debugLine="PB_carga2.Progress = 0";
+_pb_carga2.setProgress((int) (0));
+ //BA.debugLineNum = 1147;BA.debugLine="Log(\"CUMPLE\")";
+__c.LogImpl("514811164","CUMPLE",0);
+ //BA.debugLineNum = 1148;BA.debugLine="EJECUTANDO = 1";
+_ejecutando = BA.NumberToString(1);
+ //BA.debugLineNum = 1149;BA.debugLine="reqs.Initialize";
+_reqs.Initialize();
+ //BA.debugLineNum = 1150;BA.debugLine="TOPE = 0";
+_tope = (int) (0);
+ //BA.debugLineNum = 1151;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
+__c.LogImpl("514811168",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
+ //BA.debugLineNum = 1152;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
+_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
+ //BA.debugLineNum = 1154;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 1155;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1156;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
+_cmd.Name /*String*/ = "insert_drop_rep_IZCA2";
+ //BA.debugLineNum = 1157;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(_l_ruta.getText()),(Object)(_almacen),(Object)(_l_ctast.getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())};
+ //BA.debugLineNum = 1158;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_drop"));
+ //BA.debugLineNum = 1161;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
+ //BA.debugLineNum = 1162;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result");
+ //BA.debugLineNum = 1163;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest");
+ //BA.debugLineNum = 1164;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
+ //BA.debugLineNum = 1165;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos");
+ //BA.debugLineNum = 1166;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
+ //BA.debugLineNum = 1167;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
+ //BA.debugLineNum = 1169;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS");
+ //BA.debugLineNum = 1170;BA.debugLine="If l_ruta.Text = \"0\" Then '";
+if ((_l_ruta.getText()).equals("0")) {
+ //BA.debugLineNum = 1171;BA.debugLine="Log(\"********************* No hay ruta, BORRAM";
+__c.LogImpl("514811188","********************* No hay ruta, BORRAMOS TODO",0);
+ //BA.debugLineNum = 1172;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
+ //BA.debugLineNum = 1173;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
+ //BA.debugLineNum = 1174;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2");
+ //BA.debugLineNum = 1175;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA");
+ //BA.debugLineNum = 1176;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
+ }else {
+ //BA.debugLineNum = 1178;BA.debugLine="Log(\"********************* Hay ruta, NO BORRAM";
+__c.LogImpl("514811195","********************* Hay ruta, NO BORRAMOS TODO",0);
+ };
+ //BA.debugLineNum = 1182;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 1183;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1184;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 1186;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1187;BA.debugLine="cmd.Name = \"select_punteo_re_REPG_IZCA\"";
+_cmd.Name /*String*/ = "select_punteo_re_REPG_IZCA";
+ //BA.debugLineNum = 1188;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen)};
+ //BA.debugLineNum = 1189;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("punteo"));
+ //BA.debugLineNum = 1190;BA.debugLine="Log($\"Pedimos Punteo\"$)";
+__c.LogImpl("514811207",("Pedimos Punteo"),0);
+ //BA.debugLineNum = 1191;BA.debugLine="reqs.Add(\"punteo\")";
+_reqs.Add((Object)("punteo"));
+ //BA.debugLineNum = 1193;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1194;BA.debugLine="cmd.Name = \"select_almacen_IZCA_re_REPG2\"";
+_cmd.Name /*String*/ = "select_almacen_IZCA_re_REPG2";
+ //BA.debugLineNum = 1195;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)};
+ //BA.debugLineNum = 1196;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod"));
+ //BA.debugLineNum = 1197;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
+__c.LogImpl("514811214",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(_almacen))+", "+__c.SmartStringFormatter("",(Object)(_e_ruta.getText()))+""),0);
+ //BA.debugLineNum = 1198;BA.debugLine="reqs.Add(\"gunaprod\")";
+_reqs.Add((Object)("gunaprod"));
+ //BA.debugLineNum = 1205;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1206;BA.debugLine="cmd.Name = \"select_cliente_IZCA_re_REPG\"";
+_cmd.Name /*String*/ = "select_cliente_IZCA_re_REPG";
+ //BA.debugLineNum = 1207;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 1208;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos"));
+ //BA.debugLineNum = 1209;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
+__c.LogImpl("514811226",("Pedimos kmt_datos"),0);
+ //BA.debugLineNum = 1210;BA.debugLine="reqs.Add(\"kmt_datos\")";
+_reqs.Add((Object)("kmt_datos"));
+ //BA.debugLineNum = 1212;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1213;BA.debugLine="cmd.Name = \"select_ventad2_IZCA_re_REPG\"";
+_cmd.Name /*String*/ = "select_ventad2_IZCA_re_REPG";
+ //BA.debugLineNum = 1214;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 1215;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos"));
+ //BA.debugLineNum = 1216;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
+__c.LogImpl("514811233",("Pedimos hist_datos"),0);
+ //BA.debugLineNum = 1217;BA.debugLine="reqs.Add(\"hist_datos\")";
+_reqs.Add((Object)("hist_datos"));
+ //BA.debugLineNum = 1219;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1220;BA.debugLine="cmd.Name = \"select_coords_almacen_IZCA\"";
+_cmd.Name /*String*/ = "select_coords_almacen_IZCA";
+ //BA.debugLineNum = 1221;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)};
+ //BA.debugLineNum = 1222;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("coords_almacen"));
+ //BA.debugLineNum = 1224;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1225;BA.debugLine="cmd.Name = \"select_cat_gunaprod3_IZCA\"";
+_cmd.Name /*String*/ = "select_cat_gunaprod3_IZCA";
+ //BA.debugLineNum = 1226;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)};
+ //BA.debugLineNum = 1227;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod3\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod3"));
+ //BA.debugLineNum = 1264;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
+ //BA.debugLineNum = 1265;BA.debugLine="d.Position=0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 1266;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
+_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA");
+ //BA.debugLineNum = 1267;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1268;BA.debugLine="cargar.Visible = False";
+_cargar.setVisible(__c.False);
+ //BA.debugLineNum = 1269;BA.debugLine="Subir.Visible = False";
+_subir.setVisible(__c.False);
+ //BA.debugLineNum = 1270;BA.debugLine="connecta.Visible = True";
+_connecta.setVisible(__c.True);
+ //BA.debugLineNum = 1271;BA.debugLine="inv.Visible = False";
+_inv.setVisible(__c.False);
+ //BA.debugLineNum = 1272;BA.debugLine="ToastMessageShow(\"Se actualizarán los datos, est";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias"),__c.True);
+ //BA.debugLineNum = 1274;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
+if (__c.Not(_isconnectedtointernet())) {
+__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
+ }else {
+ //BA.debugLineNum = 1278;BA.debugLine="Log(\"XXXX\")";
+__c.LogImpl("514811295","XXXX",0);
+ //BA.debugLineNum = 1279;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
+ };
+ //BA.debugLineNum = 1282;BA.debugLine="End Sub";
+return "";
+}
+public String _checachek() throws Exception{
+ //BA.debugLineNum = 751;BA.debugLine="Sub checachek";
+ //BA.debugLineNum = 752;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT CHECADO FROM";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CHECADO FROM CHECADO_CHECK")));
+ //BA.debugLineNum = 753;BA.debugLine="If b.RowCount > 0 Then";
+if (_b.getRowCount()>0) {
+ //BA.debugLineNum = 754;BA.debugLine="b.Position = 0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 755;BA.debugLine="If b.GetString(\"CHECADO\") = 0 Then";
+if ((_b.GetString("CHECADO")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 756;BA.debugLine="b_check.Visible = True";
+_b_check.setVisible(__c.True);
+ }else if((_b.GetString("CHECADO")).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 758;BA.debugLine="b_check.Visible =False";
+_b_check.setVisible(__c.False);
+ };
+ //BA.debugLineNum = 760;BA.debugLine="b.Close";
+_b.Close();
+ };
+ //BA.debugLineNum = 762;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim reqManager As DBRequestManager";
+_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
+ //BA.debugLineNum = 5;BA.debugLine="Dim conectado As String";
+_conectado = "";
+ //BA.debugLineNum = 6;BA.debugLine="Dim t1 As Timer";
+_t1 = new anywheresoftware.b4a.objects.Timer();
+ //BA.debugLineNum = 7;BA.debugLine="Dim sb As StringBuilder";
+_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="Dim PHONE As Phone";
+_phone = new anywheresoftware.b4a.phone.Phone();
+ //BA.debugLineNum = 9;BA.debugLine="Dim trabajar As Button";
+_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Dim d As Cursor";
+_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim b As Cursor";
+_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Dim e As Cursor";
+_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Dim f As Cursor";
+_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Dim f1 As Cursor";
+_f1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 16;BA.debugLine="Dim f2 As Cursor";
+_f2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 17;BA.debugLine="Dim f3 As Cursor";
+_f3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Dim F4 As Cursor";
+_f4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Dim lv As ListView";
+_lv = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Dim cargar As Button";
+_cargar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 21;BA.debugLine="Dim pendiente As Button";
+_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Dim foto1() As Byte";
+_foto1 = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 23;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 24;BA.debugLine="Dim connecta As Button";
+_connecta = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Dim conn As String";
+_conn = "";
+ //BA.debugLineNum = 26;BA.debugLine="Dim Subir As Button";
+_subir = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 28;BA.debugLine="Dim TOPE As Int";
+_tope = 0;
+ //BA.debugLineNum = 29;BA.debugLine="Dim COUNT_CLIE As Int";
+_count_clie = 0;
+ //BA.debugLineNum = 30;BA.debugLine="Dim fecha As String";
+_fecha = "";
+ //BA.debugLineNum = 31;BA.debugLine="Dim drop As Double";
+_drop = 0;
+ //BA.debugLineNum = 32;BA.debugLine="Dim efectiva As Double";
+_efectiva = 0;
+ //BA.debugLineNum = 33;BA.debugLine="Dim L As Cursor";
+_l = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 34;BA.debugLine="Dim l_aLiquidar As Label";
+_l_aliquidar = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 35;BA.debugLine="Dim l_cuantosc As Label";
+_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 36;BA.debugLine="Dim l_montoSalida As Label";
+_l_montosalida = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 38;BA.debugLine="Dim l_ctast As Label";
+_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Dim BUSCA As Button";
+_busca = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 40;BA.debugLine="Dim Cuantos As String";
+_cuantos = "";
+ //BA.debugLineNum = 41;BA.debugLine="Dim l_cuantosn As Label";
+_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 42;BA.debugLine="Dim e_ruta As EditText";
+_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 43;BA.debugLine="Dim l_porvisitar As Label";
+_l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Dim b_mapa As Button";
+_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 45;BA.debugLine="Dim l_ruta As Label";
+_l_ruta = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 46;BA.debugLine="Dim ALMACEN As String";
+_almacen = "";
+ //BA.debugLineNum = 47;BA.debugLine="Private img2 As ImageView";
+_img2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 48;BA.debugLine="Dim Listo1 As String";
+_listo1 = "";
+ //BA.debugLineNum = 49;BA.debugLine="Dim Listo2 As String";
+_listo2 = "";
+ //BA.debugLineNum = 50;BA.debugLine="Dim Listo3 As String";
+_listo3 = "";
+ //BA.debugLineNum = 51;BA.debugLine="Dim Listo4 As String";
+_listo4 = "";
+ //BA.debugLineNum = 52;BA.debugLine="Dim Listo5 As String";
+_listo5 = "";
+ //BA.debugLineNum = 53;BA.debugLine="Dim EJECUTANDO As String";
+_ejecutando = "";
+ //BA.debugLineNum = 54;BA.debugLine="Dim RES As String";
+_res = "";
+ //BA.debugLineNum = 55;BA.debugLine="Dim inve As String";
+_inve = "";
+ //BA.debugLineNum = 56;BA.debugLine="Dim cuantos_pedidosc As String";
+_cuantos_pedidosc = "";
+ //BA.debugLineNum = 57;BA.debugLine="Dim cuantos_pedido As String";
+_cuantos_pedido = "";
+ //BA.debugLineNum = 58;BA.debugLine="Dim cuantos_noventa As String";
+_cuantos_noventa = "";
+ //BA.debugLineNum = 59;BA.debugLine="Dim datos_iguales As String";
+_datos_iguales = "";
+ //BA.debugLineNum = 60;BA.debugLine="Dim p As PhoneId";
+_p = new anywheresoftware.b4a.phone.Phone.PhoneId();
+ //BA.debugLineNum = 61;BA.debugLine="Dim imei As String";
+_imei = "";
+ //BA.debugLineNum = 63;BA.debugLine="Private inv As Button";
+_inv = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 65;BA.debugLine="Private L_MONTOE As Label";
+_l_montoe = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 66;BA.debugLine="Private B_CLIEPROD As Button";
+_b_clieprod = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 67;BA.debugLine="Private ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 68;BA.debugLine="Private B_REGRESA As Button";
+_b_regresa = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 69;BA.debugLine="Private Panel1 As Panel";
+_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 70;BA.debugLine="Dim ESTATUS As String";
+_estatus = "";
+ //BA.debugLineNum = 71;BA.debugLine="Dim batterystatus(11) As Int";
+_batterystatus = new int[(int) (11)];
+;
+ //BA.debugLineNum = 72;BA.debugLine="Private bu As BatteryUtilities";
+_bu = new reparto_izca.keymon.lat.batteryutilities();
+ //BA.debugLineNum = 73;BA.debugLine="Dim RUTA_T As String";
+_ruta_t = "";
+ //BA.debugLineNum = 74;BA.debugLine="Dim reqs As List";
+_reqs = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 76;BA.debugLine="Private Btn_Ubicar_Ru As Button";
+_btn_ubicar_ru = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 77;BA.debugLine="Dim cargo As String";
+_cargo = "";
+ //BA.debugLineNum = 78;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 79;BA.debugLine="Dim ime As IME";
+_ime = new anywheresoftware.b4a.objects.IME();
+ //BA.debugLineNum = 80;BA.debugLine="Private b_tabulador As Button";
+_b_tabulador = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 82;BA.debugLine="Private l_rutasP As Label";
+_l_rutasp = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 83;BA.debugLine="Private l_rechazo As Label";
+_l_rechazo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 84;BA.debugLine="Private Label9 As Label";
+_label9 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 85;BA.debugLine="Dim cp As Cursor";
+_cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 86;BA.debugLine="Private b_check As Button";
+_b_check = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 87;BA.debugLine="Private b_rechazos As Button";
+_b_rechazos = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 88;BA.debugLine="Private p_prod As Panel";
+_p_prod = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 89;BA.debugLine="Private b_regreso As Button";
+_b_regreso = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 90;BA.debugLine="Private lv_prod_Prin As ListView";
+_lv_prod_prin = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 91;BA.debugLine="Private b_venta_emp As Button";
+_b_venta_emp = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 94;BA.debugLine="Dim t8 As Timer";
+_t8 = new anywheresoftware.b4a.objects.Timer();
+ //BA.debugLineNum = 95;BA.debugLine="Private B_carga As Button";
+_b_carga = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 96;BA.debugLine="Private P_carga As Panel";
+_p_carga = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 97;BA.debugLine="Private L_carga As Label";
+_l_carga = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 98;BA.debugLine="Private PB_carga As ProgressBar";
+_pb_carga = new anywheresoftware.b4a.objects.ProgressBarWrapper();
+ //BA.debugLineNum = 99;BA.debugLine="Private PB_carga2 As ProgressBar";
+_pb_carga2 = new anywheresoftware.b4a.objects.ProgressBarWrapper();
+ //BA.debugLineNum = 100;BA.debugLine="Private l_carga2 As Label";
+_l_carga2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 103;BA.debugLine="Dim btAdmin As BluetoothAdmin";
+_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
+ //BA.debugLineNum = 104;BA.debugLine="Dim cmp20 As Serial";
+_cmp20 = new anywheresoftware.b4a.objects.Serial();
+ //BA.debugLineNum = 105;BA.debugLine="Dim printer As TextWriter";
+_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper();
+ //BA.debugLineNum = 106;BA.debugLine="Dim TAMANO As Int";
+_tamano = 0;
+ //BA.debugLineNum = 107;BA.debugLine="Dim ESPACIO As Int";
+_espacio = 0;
+ //BA.debugLineNum = 108;BA.debugLine="Dim BLANCO As String";
+_blanco = "";
+ //BA.debugLineNum = 109;BA.debugLine="Dim Printer1 As EscPosPrinter";
+_printer1 = new reparto_izca.keymon.lat.escposprinter();
+ //BA.debugLineNum = 110;BA.debugLine="Dim impresoraConectada As Boolean = False";
+_impresoraconectada = __c.False;
+ //BA.debugLineNum = 111;BA.debugLine="Dim errorImpresora As Int = 0";
+_errorimpresora = (int) (0);
+ //BA.debugLineNum = 112;BA.debugLine="Private inventario As ImageView";
+_inventario = new anywheresoftware.b4a.objects.ImageViewWrapper();
+ //BA.debugLineNum = 113;BA.debugLine="Dim PASA_IMP As String";
+_pasa_imp = "";
+ //BA.debugLineNum = 114;BA.debugLine="Private b_imp_inventario As Button";
+_b_imp_inventario = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 116;BA.debugLine="Dim s As Cursor";
+_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 117;BA.debugLine="Private PrinterIsReady As Boolean = False";
+_printerisready = __c.False;
+ //BA.debugLineNum = 118;BA.debugLine="Private LastConnectionAttempt As Long = 0";
+_lastconnectionattempt = (long) (0);
+ //BA.debugLineNum = 119;BA.debugLine="Private b_impresion_rec As Button";
+_b_impresion_rec = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 120;BA.debugLine="Private L_clientes_visit As Label";
+_l_clientes_visit = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 121;BA.debugLine="Private l_clientes_recha As Label";
+_l_clientes_recha = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 122;BA.debugLine="Private l_clientes_visitados As Label";
+_l_clientes_visitados = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 123;BA.debugLine="Private l_numtickets As Label";
+_l_numtickets = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 124;BA.debugLine="End Sub";
+return "";
+}
+public String _connecta_click() throws Exception{
+ //BA.debugLineNum = 2065;BA.debugLine="Sub connecta_Click";
+ //BA.debugLineNum = 2066;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
+__c.LogImpl("515073281",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red);
+ //BA.debugLineNum = 2067;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N";
+if (__c.Not(_isconnectedtointernet())) {
+__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
+ //BA.debugLineNum = 2068;BA.debugLine="If e_ruta.Text <> \"\" Then";
+if ((_e_ruta.getText()).equals("") == false) {
+ //BA.debugLineNum = 2069;BA.debugLine="imei = \"\" 'p.GetDeviceId";
+_imei = "";
+ //BA.debugLineNum = 2070;BA.debugLine="conn = \"1\"";
+_conn = "1";
+ //BA.debugLineNum = 2071;BA.debugLine="ime.HideKeyboard";
+_ime.HideKeyboard(ba);
+ //BA.debugLineNum = 2072;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 2073;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 2074;BA.debugLine="cmd.Name = \"select_version_IZCA\"";
+_cmd.Name /*String*/ = "select_version_IZCA";
+ //BA.debugLineNum = 2075;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("version"));
+ //BA.debugLineNum = 2076;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 2077;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 2078;BA.debugLine="cmd.Name = \"select_ruta_re_REPG_IZCA2\"";
+_cmd.Name /*String*/ = "select_ruta_re_REPG_IZCA2";
+ //BA.debugLineNum = 2079;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_usuario)};
+ //BA.debugLineNum = 2081;BA.debugLine="Log($\"${ALMACEN}, ${e_ruta.text}, ${usuario}\"$)";
+__c.LogImpl("515073296",(""+__c.SmartStringFormatter("",(Object)(_almacen))+", "+__c.SmartStringFormatter("",(Object)(_e_ruta.getText()))+", "+__c.SmartStringFormatter("",(Object)(_usuario))+""),0);
+ //BA.debugLineNum = 2082;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("ruta"));
+ //BA.debugLineNum = 2083;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),__c.True);
+ //BA.debugLineNum = 2084;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
+ //BA.debugLineNum = 2085;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTAA(RU";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_e_ruta.getText())}));
+ //BA.debugLineNum = 2086;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = _e_ruta.getText();
+ };
+ //BA.debugLineNum = 2088;BA.debugLine="End Sub";
+return "";
+}
+public String _e_ruta_enterpressed() throws Exception{
+ //BA.debugLineNum = 2104;BA.debugLine="Sub e_ruta_EnterPressed";
+ //BA.debugLineNum = 2105;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
+if ((_e_ruta.getText()).equals("FIN DIA")) {
+ //BA.debugLineNum = 2106;BA.debugLine="RES = Msgbox2(\"Seguro que desea hacer el cierre";
+_res = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea hacer el cierre todos los datos se borraran?"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
+ //BA.debugLineNum = 2107;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
+if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
+ //BA.debugLineNum = 2109;BA.debugLine="e_ruta.Text = \"\"";
+_e_ruta.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 2110;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO");
+ //BA.debugLineNum = 2111;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente");
+ //BA.debugLineNum = 2112;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES");
+ //BA.debugLineNum = 2113;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK");
+ //BA.debugLineNum = 2114;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2");
+ //BA.debugLineNum = 2115;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido");
+ //BA.debugLineNum = 2116;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa");
+ //BA.debugLineNum = 2117;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act");
+ //BA.debugLineNum = 2118;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info");
+ //BA.debugLineNum = 2119;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod");
+ //BA.debugLineNum = 2120;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3");
+ //BA.debugLineNum = 2121;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ");
+ //BA.debugLineNum = 2122;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS");
+ //BA.debugLineNum = 2123;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO");
+ //BA.debugLineNum = 2124;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
+ //BA.debugLineNum = 2125;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
+ //BA.debugLineNum = 2126;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
+ //BA.debugLineNum = 2127;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP");
+ //BA.debugLineNum = 2128;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS");
+ //BA.debugLineNum = 2129;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO");
+ //BA.debugLineNum = 2130;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ //BA.debugLineNum = 2133;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints");
+ };
+ //BA.debugLineNum = 2135;BA.debugLine="End Sub";
+return "";
+}
+public String _envioinfo() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _r = null;
+int _rx = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _pa = null;
+int _pag = 0;
+String[] _fechaenvio = null;
+String[] _fechaenvio1 = null;
+String _fechaano = "";
+String _fechareal = "";
+String[] _fechacap = null;
+String _fechacapano = "";
+String _fechacapreal = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _ab = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c58 = null;
+String _fechapre = "";
+int _restarechazos = 0;
+double _costorechazos = 0;
+String[] _fechatabulador = null;
+String _fechatabulador3 = "";
+ //BA.debugLineNum = 819;BA.debugLine="Sub envioinfo";
+ //BA.debugLineNum = 824;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NV_CLIENTE,NV_";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO, NV_REPROGRAMAR FROM NOVENTA")));
+ //BA.debugLineNum = 825;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUAN";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA")));
+ //BA.debugLineNum = 826;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 827;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 828;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 829;BA.debugLine="foto1 = c.GetBlob(\"NV_FOTO\")";
+_foto1 = _c.GetBlob("NV_FOTO");
+ //BA.debugLineNum = 830;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 831;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 832;BA.debugLine="cmd.Name = \"insert_reparto_REPG_IZCA\"";
+_cmd.Name /*String*/ = "insert_reparto_REPG_IZCA";
+ //BA.debugLineNum = 833;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"N";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("NV_CLIENTE")),(Object)(_c.GetString("NV_FECHA")),(Object)(_c.GetString("NV_USER")),(Object)(_c.GetString("NV_MOTIVO")),(Object)(_c.GetString("NV_COMM")),(Object)(_c.GetString("NV_LAT")),(Object)(_c.GetString("NV_LON")),(Object)(_almacen),(Object)(_l_ruta.getText()),(Object)(_c.GetString("NV_REPROGRAMAR"))};
+ //BA.debugLineNum = 834;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa_";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_noventa_"));
+ }
+};
+ //BA.debugLineNum = 836;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 838;BA.debugLine="d.Position=0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 839;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
+_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA");
+ //BA.debugLineNum = 840;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 843;BA.debugLine="Dim r As Cursor =Starter.skmt.ExecQuery(\"select *";
+_r = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from noventa where nv_reprogramar = 1")));
+ //BA.debugLineNum = 844;BA.debugLine="If r.RowCount > 0 Then";
+if (_r.getRowCount()>0) {
+ //BA.debugLineNum = 845;BA.debugLine="For rx = 0 To r.RowCount - 1";
+{
+final int step20 = 1;
+final int limit20 = (int) (_r.getRowCount()-1);
+_rx = (int) (0) ;
+for (;_rx <= limit20 ;_rx = _rx + step20 ) {
+ //BA.debugLineNum = 846;BA.debugLine="r.Position = rx";
+_r.setPosition(_rx);
+ //BA.debugLineNum = 847;BA.debugLine="Dim o As Cursor = Starter.skmt.ExecQuery2(\"sele";
+_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HVD_FECHA, CAT_CL_RUTA FROM HIST_VENTAS INNER JOIN kmt_info on HVD_CLIENTE = cat_cl_codigo WHERE HVD_CLIENTE = ?",new String[]{_r.GetString("NV_CLIENTE")})));
+ //BA.debugLineNum = 848;BA.debugLine="If o.RowCount > 0 Then";
+if (_o.getRowCount()>0) {
+ //BA.debugLineNum = 849;BA.debugLine="o.Position = 0";
+_o.setPosition((int) (0));
+ //BA.debugLineNum = 850;BA.debugLine="Log(\"Enviamos reprogramados: \" & r.RowCount)";
+__c.LogImpl("514745631","Enviamos reprogramados: "+BA.NumberToString(_r.getRowCount()),0);
+ //BA.debugLineNum = 852;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 853;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 854;BA.debugLine="cmd.Name = \"insert_reparto_reprogramar3_IZCA\"";
+_cmd.Name /*String*/ = "insert_reparto_reprogramar3_IZCA";
+ //BA.debugLineNum = 855;BA.debugLine="cmd.Parameters = Array As Object(r.GetString(\"";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_r.GetString("NV_CLIENTE")),(Object)(_r.GetString("NV_REPROGRAMAR")),(Object)(_o.GetString("HVD_FECHA")),(Object)(_o.GetString("CAT_CL_RUTA")),(Object)(_almacen)};
+ //BA.debugLineNum = 856;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_reprogram";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_reprogramar"));
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 860;BA.debugLine="r.Close";
+_r.Close();
+ //BA.debugLineNum = 863;BA.debugLine="Dim pa As Cursor =Starter.skmt.ExecQuery(\"select";
+_pa = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_pa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from PAGARES")));
+ //BA.debugLineNum = 864;BA.debugLine="If pa.RowCount > 0 Then";
+if (_pa.getRowCount()>0) {
+ //BA.debugLineNum = 865;BA.debugLine="For pag = 0 To pa.RowCount - 1";
+{
+final int step37 = 1;
+final int limit37 = (int) (_pa.getRowCount()-1);
+_pag = (int) (0) ;
+for (;_pag <= limit37 ;_pag = _pag + step37 ) {
+ //BA.debugLineNum = 866;BA.debugLine="pa.Position = pag";
+_pa.setPosition(_pag);
+ //BA.debugLineNum = 867;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 868;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 869;BA.debugLine="cmd.Name = \"insert_reparto_PAGARES_IZCA2\"";
+_cmd.Name /*String*/ = "insert_reparto_PAGARES_IZCA2";
+ //BA.debugLineNum = 870;BA.debugLine="Dim fechaenvio() As String";
+_fechaenvio = new String[(int) (0)];
+java.util.Arrays.fill(_fechaenvio,"");
+ //BA.debugLineNum = 871;BA.debugLine="fechaenvio = Regex.Split(\" \",pa.GetString(\"PA_F";
+_fechaenvio = __c.Regex.Split(" ",_pa.GetString("PA_FECHA_PREV"));
+ //BA.debugLineNum = 873;BA.debugLine="Dim fechaenvio1() As String";
+_fechaenvio1 = new String[(int) (0)];
+java.util.Arrays.fill(_fechaenvio1,"");
+ //BA.debugLineNum = 874;BA.debugLine="fechaenvio1 = Regex.Split(\"/\",fechaenvio(0))";
+_fechaenvio1 = __c.Regex.Split("/",_fechaenvio[(int) (0)]);
+ //BA.debugLineNum = 875;BA.debugLine="Dim fechaano As String = fechaenvio1(2).SubStri";
+_fechaano = _fechaenvio1[(int) (2)].substring((int) (2));
+ //BA.debugLineNum = 876;BA.debugLine="Dim fechareal As String = fechaenvio1(0)&\"/\"&fe";
+_fechareal = _fechaenvio1[(int) (0)]+"/"+_fechaenvio1[(int) (1)]+"/"+_fechaano;
+ //BA.debugLineNum = 879;BA.debugLine="Dim fechacap() As String";
+_fechacap = new String[(int) (0)];
+java.util.Arrays.fill(_fechacap,"");
+ //BA.debugLineNum = 880;BA.debugLine="fechacap = Regex.Split(\"/\",pa.GetString(\"PA_CAP";
+_fechacap = __c.Regex.Split("/",_pa.GetString("PA_CAPTURA"));
+ //BA.debugLineNum = 881;BA.debugLine="Dim fechacapano As String = fechacap(2).SubStri";
+_fechacapano = _fechacap[(int) (2)].substring((int) (2));
+ //BA.debugLineNum = 882;BA.debugLine="Dim fechacapreal As String = fechacap(0)&\"/\"&fe";
+_fechacapreal = _fechacap[(int) (0)]+"/"+_fechacap[(int) (1)]+"/"+_fechacapano;
+ //BA.debugLineNum = 884;BA.debugLine="cmd.Parameters = Array As Object(pa.GetString(\"";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_pa.GetString("PA_CLIENTE")),(Object)(_pa.GetString("PA_MONTO")),(Object)(_fechacapreal),(Object)(_pa.GetString("PA_ALMACEN")),(Object)(_pa.GetString("PA_RUTAPREV")),(Object)(_pa.GetString("PA_RUTA_REP")),(Object)(_fechareal),(Object)(_pa.GetString("PA_USUARIO"))};
+ //BA.debugLineNum = 885;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pagares\")";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_pagares"));
+ }
+};
+ };
+ //BA.debugLineNum = 888;BA.debugLine="pa.Close";
+_pa.Close();
+ //BA.debugLineNum = 891;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC";
+_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null"))));
+ //BA.debugLineNum = 892;BA.debugLine="Log(ab.RowCount)";
+__c.LogImpl("514745673",BA.NumberToString(_ab.getRowCount()),0);
+ //BA.debugLineNum = 893;BA.debugLine="If ab.RowCount > 0 Then";
+if (_ab.getRowCount()>0) {
+ //BA.debugLineNum = 894;BA.debugLine="For i=0 To ab.RowCount -1";
+{
+final int step60 = 1;
+final int limit60 = (int) (_ab.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit60 ;_i = _i + step60 ) {
+ //BA.debugLineNum = 895;BA.debugLine="ab.Position = i";
+_ab.setPosition(_i);
+ //BA.debugLineNum = 897;BA.debugLine="Dim c58 As Cursor = Starter.skmt.ExecQuery($\"SE";
+_c58 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c58 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from HIST_VENTAS"))));
+ //BA.debugLineNum = 898;BA.debugLine="If c58.RowCount > 0 Then";
+if (_c58.getRowCount()>0) {
+ //BA.debugLineNum = 899;BA.debugLine="c58.Position = 0";
+_c58.setPosition((int) (0));
+ //BA.debugLineNum = 901;BA.debugLine="Private fechapre As String = c58.GetString(\"HV";
+_fechapre = _c58.GetString("HVD_FECHA");
+ };
+ //BA.debugLineNum = 905;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 906;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 907;BA.debugLine="cmd.Name = \"insert_abono_IZCAREP2\"";
+_cmd.Name /*String*/ = "insert_abono_IZCAREP2";
+ //BA.debugLineNum = 908;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString(";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(_almacen),(Object)("REPARTO"),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("CONSECUTIVO")),(Object)(_ab.GetString("NUM_TICKET")),(Object)(_ab.GetString("RUTA_REP")),(Object)(_fechapre)};
+ //BA.debugLineNum = 909;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"")));
+ //BA.debugLineNum = 910;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl";
+__c.LogImpl("514745691",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0);
+ }
+};
+ };
+ //BA.debugLineNum = 913;BA.debugLine="ab.Close";
+_ab.Close();
+ //BA.debugLineNum = 916;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT * FROM hist_vent";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM hist_ventas WHERE HVD_RECHAZO = 1 ")));
+ //BA.debugLineNum = 917;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 918;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step78 = 1;
+final int limit78 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit78 ;_i = _i + step78 ) {
+ //BA.debugLineNum = 919;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 920;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 921;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 922;BA.debugLine="cmd.Name = \"insert_rep_hist_ventas_REPG2_IZCA\"";
+_cmd.Name /*String*/ = "insert_rep_hist_ventas_REPG2_IZCA";
+ //BA.debugLineNum = 923;BA.debugLine="Dim restarechazos As Int = c.GetString(\"HVD_CAN";
+_restarechazos = (int) ((double)(Double.parseDouble(_c.GetString("HVD_CANT")))-(double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT"))));
+ //BA.debugLineNum = 924;BA.debugLine="Dim costorechazos As Double= NumberFormat2((C.G";
+_costorechazos = (double)(Double.parseDouble(__c.NumberFormat2(((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),__c.False)));
+ //BA.debugLineNum = 925;BA.debugLine="If restarechazos = 0 Then";
+if (_restarechazos==0) {
+ //BA.debugLineNum = 926;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("HVD_CLIENTE")),(Object)(_c.GetString("HVD_PRONOMBRE")),(Object)(_c.GetString("HVD_RECHAZOCANT")),(Object)((_costorechazos*(double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT"))))),(Object)(_c.GetString("HVD_CODPROMO")),(Object)(_c.GetString("HVD_PROID")),(Object)(_c.GetString("HVD_NUM_TICKET")),(Object)(_c.GetString("HVD_NUM_REGISTRO")),(Object)(1),(Object)(""),(Object)(_almacen),(Object)(_costorechazos)};
+ }else {
+ //BA.debugLineNum = 929;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("HVD_CLIENTE")),(Object)(_c.GetString("HVD_PRONOMBRE")),(Object)(_c.GetString("HVD_RECHAZOCANT")),(Object)((_costorechazos*(double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT"))))),(Object)(_c.GetString("HVD_CODPROMO")),(Object)(_c.GetString("HVD_PROID")),(Object)(_c.GetString("HVD_NUM_TICKET")),(Object)(_c.GetString("HVD_NUM_REGISTRO")),(Object)(""),(Object)(1),(Object)(_almacen),(Object)(_costorechazos)};
+ };
+ //BA.debugLineNum = 931;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa\")";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_noventa"));
+ }
+};
+ //BA.debugLineNum = 933;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 937;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT PE_TIPO, PE_RUTA";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PE_TIPO, PE_RUTA, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_CLIENTEOR, PE_CAJAS, PE_BCAJAS, CONSECUTIVO, FECHA_PREV, RUTA_REP, PE_REGALO FROM PEDIDO")));
+ //BA.debugLineNum = 938;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 939;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step96 = 1;
+final int limit96 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit96 ;_i = _i + step96 ) {
+ //BA.debugLineNum = 940;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 941;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 942;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 943;BA.debugLine="cmd.Name = \"insert_pedido_REP_IZCA\"";
+_cmd.Name /*String*/ = "insert_pedido_REP_IZCA";
+ //BA.debugLineNum = 944;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_TIPO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_CEDIS")),(Object)(_c.GetString("PE_COSTO_TOT")),(Object)(_c.GetString("PE_COSTOU")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_CLIENTEOR")),(Object)(_c.GetString("PE_CAJAS")),(Object)(_c.GetString("PE_BCAJAS")),(Object)(_c.GetString("CONSECUTIVO")),(Object)(_c.GetString("FECHA_PREV")),(Object)(_c.GetString("RUTA_REP")),(Object)(_c.GetString("PE_REGALO"))};
+ //BA.debugLineNum = 945;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedido_Inm";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_pedido_Inmtex"));
+ }
+};
+ //BA.debugLineNum = 947;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 994;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CLIENTE, USUARI";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO")));
+ //BA.debugLineNum = 995;BA.debugLine="Log($\"REPARTO_Cliente PENDIENTE: ${c.RowCount}\"$)";
+__c.LogImpl("514745776",("REPARTO_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
+ //BA.debugLineNum = 996;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 997;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step109 = 1;
+final int limit109 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit109 ;_i = _i + step109 ) {
+ //BA.debugLineNum = 998;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 1000;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 1001;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1002;BA.debugLine="cmd.Name = \"insert_REPARTO_IZCA\"";
+_cmd.Name /*String*/ = "insert_REPARTO_IZCA";
+ //BA.debugLineNum = 1003;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CLIENTE")),(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("FECHA_PUNTEO")),(Object)(_c.GetString("LATITUD")),(Object)(_c.GetString("LONGITUD")),(Object)(_c.GetString("ALMACEN")),(Object)(_c.GetString("RUTA_REPARTO")),(Object)(_c.GetString("RUTA_PREV")),(Object)(_c.GetString("FECHA_PREVENTA")),(Object)(_c.GetString("MOTIVO")),(Object)(_c.GetString("COMENTARIO")),(Object)(_c.GetString("TIPO"))};
+ //BA.debugLineNum = 1004;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_REPARTOPe";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_REPARTOPendientes_head_"+__c.SmartStringFormatter("",(Object)(_c.GetString("CLIENTE")))+"")));
+ }
+};
+ };
+ //BA.debugLineNum = 1008;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1011;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS")));
+ //BA.debugLineNum = 1012;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
+ //BA.debugLineNum = 1013;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
+ //BA.debugLineNum = 1014;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
+ //BA.debugLineNum = 1015;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 1016;BA.debugLine="b.Position = 0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 1017;BA.debugLine="f.Position = 0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 1018;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 1019;BA.debugLine="For i = 0 To c.RowCount - 1";
+{
+final int step127 = 1;
+final int limit127 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit127 ;_i = _i + step127 ) {
+ //BA.debugLineNum = 1020;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 1021;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 1022;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
+_fechatabulador = __c.Regex.Split(" ",_f.GetString("HVD_FECHA"));
+ //BA.debugLineNum = 1024;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
+_fechatabulador3 = _fechatabulador[(int) (0)];
+ //BA.debugLineNum = 1025;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1026;BA.debugLine="cmd.Name = \"insert_tabulador_monedas_IZCA\"";
+_cmd.Name /*String*/ = "insert_tabulador_monedas_IZCA";
+ //BA.debugLineNum = 1027;BA.debugLine="cmd.Parameters = Array As Object(d.GetString(\"R";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_d.GetString("RUTAA")),(Object)(_b.GetString("ID_ALMACEN")),(Object)(_c.GetString("VEINTE")),(Object)(_c.GetString("DIEZ")),(Object)(_c.GetString("CINCO")),(Object)(_c.GetString("DOS")),(Object)(_c.GetString("PESO")),(Object)(_c.GetString("CENTAVO")),(Object)(_fechatabulador3)};
+ //BA.debugLineNum = 1028;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_tabulador_mon"));
+ }
+};
+ //BA.debugLineNum = 1030;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1031;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1032;BA.debugLine="b.Close";
+_b.Close();
+ //BA.debugLineNum = 1033;BA.debugLine="f.Close";
+_f.Close();
+ };
+ //BA.debugLineNum = 1080;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES")));
+ //BA.debugLineNum = 1081;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
+ //BA.debugLineNum = 1082;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
+_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN")));
+ //BA.debugLineNum = 1083;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
+_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS")));
+ //BA.debugLineNum = 1084;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 1085;BA.debugLine="b.Position = 0";
+_b.setPosition((int) (0));
+ //BA.debugLineNum = 1086;BA.debugLine="f.Position = 0";
+_f.setPosition((int) (0));
+ //BA.debugLineNum = 1087;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 1088;BA.debugLine="For i = 0 To c.RowCount - 1";
+{
+final int step150 = 1;
+final int limit150 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit150 ;_i = _i + step150 ) {
+ //BA.debugLineNum = 1089;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 1090;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 1095;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
+_fechatabulador = __c.Regex.Split(" ",_f.GetString("HVD_FECHA"));
+ //BA.debugLineNum = 1097;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
+_fechatabulador3 = _fechatabulador[(int) (0)];
+ //BA.debugLineNum = 1099;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1100;BA.debugLine="cmd.Name = \"insert_tabulador_billetes_IZCA\"";
+_cmd.Name /*String*/ = "insert_tabulador_billetes_IZCA";
+ //BA.debugLineNum = 1101;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"I";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_b.GetString("ID_ALMACEN")),(Object)(_d.GetString("RUTAA")),(Object)(_c.GetString("MIL")),(Object)(_c.GetString("QUINIENTOS")),(Object)(_c.GetString("DOCIENTOS")),(Object)(_c.GetString("CIEN")),(Object)(_c.GetString("CINCUENTA")),(Object)(_c.GetString("VEINTE")),(Object)(_fechatabulador3)};
+ //BA.debugLineNum = 1102;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_tabulador_bill"));
+ }
+};
+ //BA.debugLineNum = 1104;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1105;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 1106;BA.debugLine="b.Close";
+_b.Close();
+ //BA.debugLineNum = 1107;BA.debugLine="f.Close";
+_f.Close();
+ };
+ //BA.debugLineNum = 1111;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 1112;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 1113;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
+_cmd.Name /*String*/ = "insert_drop_rep_IZCA2";
+ //BA.debugLineNum = 1114;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuario";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(_l_ruta.getText()),(Object)(_almacen),(Object)(_l_ctast.getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("ENVIO"),(Object)(__c.Application.getVersionName())};
+ //BA.debugLineNum = 1115;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_drop"));
+ //BA.debugLineNum = 1116;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "+_l_ruta.getText()),__c.True);
+ //BA.debugLineNum = 1117;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 127;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 128;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 129;BA.debugLine="End Sub";
+return null;
+}
+public String _inv_click() throws Exception{
+ //BA.debugLineNum = 2137;BA.debugLine="Sub inv_Click";
+ //BA.debugLineNum = 2138;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias"),__c.True);
+ //BA.debugLineNum = 2139;BA.debugLine="End Sub";
+return "";
+}
+public boolean _isconnectedtointernet() throws Exception{
+anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
+ //BA.debugLineNum = 764;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore";
+ //BA.debugLineNum = 765;BA.debugLine="Dim r As Reflector";
+_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
+ //BA.debugLineNum = 766;BA.debugLine="r.Target = r.GetContext";
+_r.Target = (Object)(_r.GetContext(ba));
+ //BA.debugLineNum = 767;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn";
+_r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String");
+ //BA.debugLineNum = 768;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")";
+_r.Target = _r.RunMethod("getActiveNetworkInfo");
+ //BA.debugLineNum = 769;BA.debugLine="If r.Target <> Null Then";
+if (_r.Target!= null) {
+ //BA.debugLineNum = 770;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")";
+if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting"));
+ };
+ //BA.debugLineNum = 772;BA.debugLine="Return False";
+if (true) return __c.False;
+ //BA.debugLineNum = 773;BA.debugLine="End Sub";
+return false;
+}
+public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+reparto_izca.keymon.lat.dbrequestmanager._dbresult _result = null;
+Object[] _records = null;
+String _cat_cl_codigo = "";
+String _cat_cl_ruta = "";
+String _cat_cl_nombre = "";
+String _cat_cl_atiende1 = "";
+String _cat_cl_atiente2 = "";
+String _cat_cl_telefono = "";
+String _cat_cl_email = "";
+String _cat_cl_calle = "";
+String _cat_cl_noext = "";
+String _cat_cl_noint = "";
+String _cat_cl_calle1 = "";
+String _cat_cl_calle2 = "";
+String _cat_cl_colonia = "";
+String _cat_cl_muni = "";
+String _cat_cl_edo = "";
+String _cat_cl_cp = "";
+String _cat_cl_long = "";
+String _cat_cl_lat = "";
+String _cat_cl_bcredito = "";
+String _nota = "";
+String _cliente = "";
+String _saldo_pendiente = "";
+String _detalle = "";
+String _conteo_cat = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _clientes = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _detalleventa = null;
+String _cat_gp_id = "";
+String _cat_gp_nombre = "";
+String _cat_gp_imp1 = "";
+String _cat_gp_imp2 = "";
+String _cat_gp_precio = "";
+String _cat_gp_clasif = "";
+String _cat_gp_sts = "";
+String _cat_gp_tipo = "";
+String _cat_gp_subtipo = "";
+byte[] _cat_gp_img = null;
+int _cat_gp_almacen = 0;
+int _cat_gp_tipoprod = 0;
+int _cat_gp_iniciativa = 0;
+float _cat_dp_precio4 = 0f;
+int _cat_dp_conversion1 = 0;
+String _conversion = "";
+String _precioconver = "";
+String _cat_dp_almacen = "";
+String _cat_dp_id = "";
+String _cat_dp_idprod = "";
+String _cat_dp_tipo = "";
+String _cat_dp_pzas = "";
+String _cat_dp_usuario = "";
+String _cat_dp_fecha = "";
+String _cat_dp_regalo = "";
+String _cat_dp_clasif = "";
+String _cat_dp_precio = "";
+String _cat_dp_precio_simptos = "";
+String _hvd_estatus = "";
+String _hv_cliente = "";
+String _hv_long = "";
+String _hv_lat = "";
+int _consecutivo = 0;
+String _hvd_cliente = "";
+String _hvd_pronombre = "";
+String _hvd_cant = "";
+String _hvd_costo_tot = "";
+String _hvd_fecha = "";
+String _hvd_codpromo = "";
+String _hvd_proid = "";
+String _hvd_num_ticket = "";
+String _hvd_num_registro = "";
+String _hvd_rechazo = "";
+String _bcajas = "";
+String _cantc = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _tc = null;
+String _cat_va_descripcion = "";
+String _cat_va_valor = "";
+String _tmp_monto_pagare = "";
+String _tmp_cliente = "";
+int _cuantosp = 0;
+int _cuantosc = 0;
+int _cuantosn = 0;
+String _cat_ve_version = "";
+String _valido = "";
+double _lat = 0;
+double _lon = 0;
+String _k = "";
+ //BA.debugLineNum = 1468;BA.debugLine="Sub JobDone(Job As HttpJob)";
+ //BA.debugLineNum = 1470;BA.debugLine="If Job.Success = False Then";
+if (_job._success /*boolean*/ ==__c.False) {
+ //BA.debugLineNum = 1471;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro";
+__c.LogImpl("514942211","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
+ }else {
+ //BA.debugLineNum = 1474;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
+__c.LogImpl("514942214","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
+ //BA.debugLineNum = 1475;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1476;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1477;BA.debugLine="If result.Tag = \"kmt_datos\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) {
+ //BA.debugLineNum = 1478;BA.debugLine="If reqs.IndexOf(\"kmt_datos\") > -1 Then";
+if (_reqs.IndexOf((Object)("kmt_datos"))>-1) {
+ //BA.debugLineNum = 1479;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"kmt_datos\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("kmt_datos")));
+ };
+ //BA.debugLineNum = 1482;BA.debugLine="Starter.skmt.BeginTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
+ //BA.debugLineNum = 1484;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group12 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen12 = group12.getSize()
+;int index12 = 0;
+;
+for (; index12 < groupLen12;index12++){
+_records = (Object[])(group12.Get(index12));
+ //BA.debugLineNum = 1485;BA.debugLine="Dim CAT_CL_CODIGO As String = records(result.";
+_cat_cl_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]);
+ //BA.debugLineNum = 1486;BA.debugLine="Dim CAT_CL_RUTA As String = records(result.Co";
+_cat_cl_ruta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_RUTA"))))]);
+ //BA.debugLineNum = 1487;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(result.";
+_cat_cl_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOMBRE"))))]);
+ //BA.debugLineNum = 1488;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(resul";
+_cat_cl_atiende1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENDE1"))))]);
+ //BA.debugLineNum = 1489;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(resul";
+_cat_cl_atiente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_ATIENTE2"))))]);
+ //BA.debugLineNum = 1490;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(resul";
+_cat_cl_telefono = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TELEFONO"))))]);
+ //BA.debugLineNum = 1491;BA.debugLine="Dim CAT_CL_EMAIL As String = records(result.C";
+_cat_cl_email = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EMAIL"))))]);
+ //BA.debugLineNum = 1492;BA.debugLine="Dim CAT_CL_CALLE As String = records(result.C";
+_cat_cl_calle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE"))))]);
+ //BA.debugLineNum = 1493;BA.debugLine="Dim CAT_CL_NOEXT As String = records(result.C";
+_cat_cl_noext = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOEXT"))))]);
+ //BA.debugLineNum = 1494;BA.debugLine="Dim CAT_CL_NOINT As String = records(result.C";
+_cat_cl_noint = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NOINT"))))]);
+ //BA.debugLineNum = 1495;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(result.";
+_cat_cl_calle1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE1"))))]);
+ //BA.debugLineNum = 1496;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(result.";
+_cat_cl_calle2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CALLE2"))))]);
+ //BA.debugLineNum = 1497;BA.debugLine="Dim CAT_CL_COLONIA As String = records(result";
+_cat_cl_colonia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_COLONIA"))))]);
+ //BA.debugLineNum = 1498;BA.debugLine="Dim CAT_CL_MUNI As String = records(result.Co";
+_cat_cl_muni = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MUNI"))))]);
+ //BA.debugLineNum = 1499;BA.debugLine="Dim CAT_CL_EDO As String = records(result.Col";
+_cat_cl_edo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_EDO"))))]);
+ //BA.debugLineNum = 1500;BA.debugLine="Dim CAT_CL_CP As String = records(result.Colu";
+_cat_cl_cp = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CP"))))]);
+ //BA.debugLineNum = 1501;BA.debugLine="Dim CAT_CL_LONG As String = records(result.Co";
+_cat_cl_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LONG"))))]);
+ //BA.debugLineNum = 1502;BA.debugLine="Dim CAT_CL_LAT As String = records(result.Col";
+_cat_cl_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LAT"))))]);
+ //BA.debugLineNum = 1503;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(resul";
+_cat_cl_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BCREDITO"))))]);
+ //BA.debugLineNum = 1506;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_i";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo),(Object)(_cat_cl_ruta),(Object)(_cat_cl_nombre),(Object)(_cat_cl_atiende1),(Object)(_cat_cl_atiente2),(Object)(_cat_cl_telefono),(Object)(_cat_cl_email),(Object)(_cat_cl_calle),(Object)(_cat_cl_noext),(Object)(_cat_cl_noint),(Object)(_cat_cl_calle1),(Object)(_cat_cl_calle2),(Object)(_cat_cl_colonia),(Object)(_cat_cl_muni),(Object)(_cat_cl_edo),(Object)(_cat_cl_cp),(Object)(_cat_cl_long),(Object)(_cat_cl_lat),(Object)(_cat_cl_bcredito)}));
+ }
+};
+ //BA.debugLineNum = 1510;BA.debugLine="Starter.skmt.TransactionSuccessful";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
+ //BA.debugLineNum = 1511;BA.debugLine="Starter.skmt.EndTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
+ //BA.debugLineNum = 1512;BA.debugLine="Listo1 = 1";
+_listo1 = BA.NumberToString(1);
+ //BA.debugLineNum = 1513;BA.debugLine="If Listo1 = 1 And Listo3 = 1 Then";
+if ((_listo1).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1514;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1515;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1516;BA.debugLine="img2.Visible = False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1517;BA.debugLine="EJECUTANDO=0";
+_ejecutando = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 1521;BA.debugLine="t8.Initialize(\"t8\", 20000) ' 1000 = 1 second";
+_t8.Initialize(ba,"t8",(long) (20000));
+ //BA.debugLineNum = 1522;BA.debugLine="t8.Enabled = True";
+_t8.setEnabled(__c.True);
+ };
+ };
+ //BA.debugLineNum = 1527;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1528;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1529;BA.debugLine="If result.Tag = \"select_abonosp\" Then 'query ta";
+if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp"))) {
+ //BA.debugLineNum = 1530;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group50 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen50 = group50.getSize()
+;int index50 = 0;
+;
+for (; index50 < groupLen50;index50++){
+_records = (Object[])(group50.Get(index50));
+ //BA.debugLineNum = 1531;BA.debugLine="Dim NOTA As String = records(result.Columns.G";
+_nota = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("NOTA"))))]);
+ //BA.debugLineNum = 1532;BA.debugLine="Dim CLIENTE As String = records(result.Column";
+_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTE"))))]);
+ //BA.debugLineNum = 1533;BA.debugLine="Dim SALDO_PENDIENTE As String = records(resul";
+_saldo_pendiente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("SALDO_PENDIENTE"))))]);
+ //BA.debugLineNum = 1535;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nota),(Object)(_cliente),(Object)(_saldo_pendiente)}));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1540;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1541;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1542;BA.debugLine="If result.Tag = \"CONTEO_DATOS\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("CONTEO_DATOS"))) {
+ //BA.debugLineNum = 1543;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group61 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen61 = group61.getSize()
+;int index61 = 0;
+;
+for (; index61 < groupLen61;index61++){
+_records = (Object[])(group61.Get(index61));
+ //BA.debugLineNum = 1544;BA.debugLine="Dim DETALLE As String = records(result.Column";
+_detalle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("DETALE"))))]);
+ //BA.debugLineNum = 1545;BA.debugLine="Dim CONTEO_CAT As String = records(result.Col";
+_conteo_cat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CONTEO_CAT"))))]);
+ }
+};
+ //BA.debugLineNum = 1550;BA.debugLine="Dim clientes As Cursor = Starter.skmt.ExecQuer";
+_clientes = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_clientes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as clientes from kmt_info")));
+ //BA.debugLineNum = 1551;BA.debugLine="clientes.Position = 0";
+_clientes.setPosition((int) (0));
+ //BA.debugLineNum = 1553;BA.debugLine="Dim detalleventa As Cursor = Starter.skmt.Exec";
+_detalleventa = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_detalleventa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as detalle from hist_ventas")));
+ //BA.debugLineNum = 1554;BA.debugLine="detalleventa.Position = 0";
+_detalleventa.setPosition((int) (0));
+ //BA.debugLineNum = 1556;BA.debugLine="Log(CONTEO_CAT)";
+__c.LogImpl("514942296",_conteo_cat,0);
+ //BA.debugLineNum = 1557;BA.debugLine="Log(clientes.GetString(\"clientes\"))";
+__c.LogImpl("514942297",_clientes.GetString("clientes"),0);
+ //BA.debugLineNum = 1558;BA.debugLine="If clientes.GetString(\"clientes\") = CONTEO_CAT";
+if ((_clientes.GetString("clientes")).equals(_conteo_cat)) {
+ //BA.debugLineNum = 1559;BA.debugLine="PB_carga2.Progress = 100";
+_pb_carga2.setProgress((int) (100));
+ //BA.debugLineNum = 1560;BA.debugLine="l_carga2.Text = \"LISTO\"";
+_l_carga2.setText(BA.ObjectToCharSequence("LISTO"));
+ }else {
+ };
+ //BA.debugLineNum = 1565;BA.debugLine="Log(DETALLE)";
+__c.LogImpl("514942305",_detalle,0);
+ //BA.debugLineNum = 1566;BA.debugLine="Log(detalleventa.GetString(\"detalle\"))";
+__c.LogImpl("514942306",_detalleventa.GetString("detalle"),0);
+ //BA.debugLineNum = 1567;BA.debugLine="If detalleventa.GetString(\"detalle\") = DETALLE";
+if ((_detalleventa.GetString("detalle")).equals(_detalle)) {
+ //BA.debugLineNum = 1568;BA.debugLine="PB_carga.Progress = 100";
+_pb_carga.setProgress((int) (100));
+ //BA.debugLineNum = 1569;BA.debugLine="L_carga.Text = \"LISTO\"";
+_l_carga.setText(BA.ObjectToCharSequence("LISTO"));
+ }else {
+ };
+ //BA.debugLineNum = 1574;BA.debugLine="clientes.Close";
+_clientes.Close();
+ //BA.debugLineNum = 1575;BA.debugLine="detalleventa.Close";
+_detalleventa.Close();
+ };
+ };
+ //BA.debugLineNum = 1581;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1582;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1583;BA.debugLine="If result.Tag = \"gunaprod3\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod3"))) {
+ //BA.debugLineNum = 1584;BA.debugLine="If reqs.IndexOf(\"gunaprod3\") > -1 Then";
+if (_reqs.IndexOf((Object)("gunaprod3"))>-1) {
+ //BA.debugLineNum = 1585;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod3\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("gunaprod3")));
+ //BA.debugLineNum = 1586;BA.debugLine="Log(reqs.Size)";
+__c.LogImpl("514942326",BA.NumberToString(_reqs.getSize()),0);
+ };
+ //BA.debugLineNum = 1588;BA.debugLine="Starter.skmt.BeginTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
+ //BA.debugLineNum = 1589;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group95 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen95 = group95.getSize()
+;int index95 = 0;
+;
+for (; index95 < groupLen95;index95++){
+_records = (Object[])(group95.Get(index95));
+ //BA.debugLineNum = 1590;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu";
+_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
+ //BA.debugLineNum = 1591;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result.";
+_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
+ //BA.debugLineNum = 1592;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co";
+_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
+ //BA.debugLineNum = 1593;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co";
+_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
+ //BA.debugLineNum = 1594;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result.";
+_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
+ //BA.debugLineNum = 1595;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result.";
+_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
+ //BA.debugLineNum = 1596;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col";
+_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
+ //BA.debugLineNum = 1597;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co";
+_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
+ //BA.debugLineNum = 1598;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result";
+_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
+ //BA.debugLineNum = 1599;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col";
+_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
+ //BA.debugLineNum = 1600;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(result.Co";
+_cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ALMACEN"))))]));
+ //BA.debugLineNum = 1602;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(result.C";
+_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
+ //BA.debugLineNum = 1603;BA.debugLine="Dim CAT_GP_INICIATIVA As Int = records(result";
+_cat_gp_iniciativa = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_INICIATIVA"))))]));
+ //BA.debugLineNum = 1604;BA.debugLine="Dim CAT_DP_PRECIO4 As Float = records(result.";
+_cat_dp_precio4 = (float)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO4"))))]));
+ //BA.debugLineNum = 1605;BA.debugLine="Dim CAT_DP_CONVERSION1 As Int = records(resul";
+_cat_dp_conversion1 = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CONVERSION1"))))]));
+ //BA.debugLineNum = 1609;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD3(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_DP_PRECIO4,CAT_DP_CONVERSION1) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_dp_precio4),(Object)(_cat_dp_conversion1)}));
+ }
+};
+ //BA.debugLineNum = 1611;BA.debugLine="Starter.skmt.TransactionSuccessful";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
+ //BA.debugLineNum = 1612;BA.debugLine="Starter.skmt.EndTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
+ //BA.debugLineNum = 1613;BA.debugLine="Listo2=1";
+_listo2 = BA.NumberToString(1);
+ //BA.debugLineNum = 1614;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And";
+if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1615;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1616;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1617;BA.debugLine="img2.Visible = False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1618;BA.debugLine="EJECUTANDO=0";
+_ejecutando = BA.NumberToString(0);
+ };
+ };
+ };
+ //BA.debugLineNum = 1623;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1624;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1625;BA.debugLine="If result.Tag = \"gunaprod\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) {
+ //BA.debugLineNum = 1626;BA.debugLine="Log(\"Entramos a GUNA_PROD<--------------------";
+__c.LogImpl("514942366","Entramos a GUNA_PROD<---------------------------------",0);
+ //BA.debugLineNum = 1627;BA.debugLine="If reqs.IndexOf(\"gunaprod\") > -1 Then";
+if (_reqs.IndexOf((Object)("gunaprod"))>-1) {
+ //BA.debugLineNum = 1628;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("gunaprod")));
+ //BA.debugLineNum = 1629;BA.debugLine="Log(reqs.Size)";
+__c.LogImpl("514942369",BA.NumberToString(_reqs.getSize()),0);
+ };
+ //BA.debugLineNum = 1631;BA.debugLine="Starter.skmt.BeginTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
+ //BA.debugLineNum = 1632;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group133 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen133 = group133.getSize()
+;int index133 = 0;
+;
+for (; index133 < groupLen133;index133++){
+_records = (Object[])(group133.Get(index133));
+ //BA.debugLineNum = 1633;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu";
+_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ID"))))]);
+ //BA.debugLineNum = 1634;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result.";
+_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_NOMBRE"))))]);
+ //BA.debugLineNum = 1635;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co";
+_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMP1"))))]);
+ //BA.debugLineNum = 1636;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co";
+_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMP2"))))]);
+ //BA.debugLineNum = 1637;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result.";
+_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO"))))]);
+ //BA.debugLineNum = 1638;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result.";
+_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CLASIF"))))]);
+ //BA.debugLineNum = 1639;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col";
+_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_STS"))))]);
+ //BA.debugLineNum = 1640;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co";
+_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_TIPO"))))]);
+ //BA.debugLineNum = 1641;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result";
+_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_SUBTIPO"))))]);
+ //BA.debugLineNum = 1642;BA.debugLine="Dim CONVERSION As String = 0'records(result.C";
+_conversion = BA.NumberToString(0);
+ //BA.debugLineNum = 1643;BA.debugLine="Dim PRECIOCONVER As String = 0' records(resul";
+_precioconver = BA.NumberToString(0);
+ //BA.debugLineNum = 1644;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col";
+_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMG"))))]);
+ //BA.debugLineNum = 1649;BA.debugLine="Log(CAT_GP_NOMBRE & \"<-----------------------";
+__c.LogImpl("514942389",_cat_gp_nombre+"<-------------------------------------",0);
+ //BA.debugLineNum = 1650;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CONVERSION,PRECIOCONVER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(0),(Object)(_conversion),(Object)(_precioconver)}));
+ }
+};
+ //BA.debugLineNum = 1652;BA.debugLine="Starter.skmt.TransactionSuccessful";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
+ //BA.debugLineNum = 1653;BA.debugLine="Starter.skmt.EndTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
+ //BA.debugLineNum = 1654;BA.debugLine="Listo2=1";
+_listo2 = BA.NumberToString(1);
+ //BA.debugLineNum = 1655;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And";
+if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1656;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1657;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1658;BA.debugLine="img2.Visible = False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1659;BA.debugLine="EJECUTANDO=0";
+_ejecutando = BA.NumberToString(0);
+ };
+ };
+ };
+ //BA.debugLineNum = 1664;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1665;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1666;BA.debugLine="If result.Tag = \"gunaprodp\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) {
+ //BA.debugLineNum = 1667;BA.debugLine="If reqs.IndexOf(\"gunaprodp\") > -1 Then";
+if (_reqs.IndexOf((Object)("gunaprodp"))>-1) {
+ //BA.debugLineNum = 1668;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprodp\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("gunaprodp")));
+ //BA.debugLineNum = 1669;BA.debugLine="Log(reqs.Size)";
+__c.LogImpl("514942409",BA.NumberToString(_reqs.getSize()),0);
+ };
+ //BA.debugLineNum = 1671;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group167 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen167 = group167.getSize()
+;int index167 = 0;
+;
+for (; index167 < groupLen167;index167++){
+_records = (Object[])(group167.Get(index167));
+ //BA.debugLineNum = 1672;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu";
+_cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))]);
+ //BA.debugLineNum = 1673;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result.";
+_cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_NOMBRE"))))]);
+ //BA.debugLineNum = 1674;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co";
+_cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]);
+ //BA.debugLineNum = 1675;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co";
+_cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP2"))))]);
+ //BA.debugLineNum = 1676;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result.";
+_cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_PRECIO"))))]);
+ //BA.debugLineNum = 1677;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result.";
+_cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CLASIF"))))]);
+ //BA.debugLineNum = 1678;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col";
+_cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_STS"))))]);
+ //BA.debugLineNum = 1679;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co";
+_cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPO"))))]);
+ //BA.debugLineNum = 1680;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result";
+_cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_SUBTIPO"))))]);
+ //BA.debugLineNum = 1681;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col";
+_cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMG"))))]);
+ //BA.debugLineNum = 1684;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(0)}));
+ }
+};
+ //BA.debugLineNum = 1686;BA.debugLine="Listo4=1";
+_listo4 = BA.NumberToString(1);
+ //BA.debugLineNum = 1687;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And";
+if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1688;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1689;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1690;BA.debugLine="img2.Visible = False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1691;BA.debugLine="EJECUTANDO=0";
+_ejecutando = BA.NumberToString(0);
+ }else if((_listo4).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_inve).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1693;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1694;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1695;BA.debugLine="img2.Visible = False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1696;BA.debugLine="EJECUTANDO=0";
+_ejecutando = BA.NumberToString(0);
+ };
+ };
+ };
+ //BA.debugLineNum = 1701;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1702;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1703;BA.debugLine="If result.Tag = \"detallepaq\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) {
+ //BA.debugLineNum = 1704;BA.debugLine="If reqs.IndexOf(\"detallepaq\") > -1 Then";
+if (_reqs.IndexOf((Object)("detallepaq"))>-1) {
+ //BA.debugLineNum = 1705;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"detallepaq\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("detallepaq")));
+ //BA.debugLineNum = 1706;BA.debugLine="Log(reqs.Size)";
+__c.LogImpl("514942446",BA.NumberToString(_reqs.getSize()),0);
+ };
+ //BA.debugLineNum = 1708;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group201 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen201 = group201.getSize()
+;int index201 = 0;
+;
+for (; index201 < groupLen201;index201++){
+_records = (Object[])(group201.Get(index201));
+ //BA.debugLineNum = 1709;BA.debugLine="Dim CAT_DP_ALMACEN As String = records(resul";
+_cat_dp_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ALMACEN"))))]);
+ //BA.debugLineNum = 1710;BA.debugLine="Dim CAT_DP_ID As String = records(result.Colu";
+_cat_dp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ID"))))]);
+ //BA.debugLineNum = 1711;BA.debugLine="Dim CAT_DP_IDPROD As String = records(result.";
+_cat_dp_idprod = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IDPROD"))))]);
+ //BA.debugLineNum = 1712;BA.debugLine="Dim CAT_DP_TIPO As String = records(result.Co";
+_cat_dp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_TIPO"))))]);
+ //BA.debugLineNum = 1713;BA.debugLine="Dim CAT_DP_PZAS As String = records(result.Co";
+_cat_dp_pzas = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PZAS"))))]);
+ //BA.debugLineNum = 1714;BA.debugLine="Dim CAT_DP_USUARIO As String = records(resul";
+_cat_dp_usuario = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_USUARIO"))))]);
+ //BA.debugLineNum = 1715;BA.debugLine="Dim CAT_DP_FECHA As String = records(result.C";
+_cat_dp_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_FECHA"))))]);
+ //BA.debugLineNum = 1716;BA.debugLine="Dim CAT_DP_REGALO As String = records(result";
+_cat_dp_regalo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_REGALO"))))]);
+ //BA.debugLineNum = 1717;BA.debugLine="Dim CAT_DP_CLASIF As String = records(result";
+_cat_dp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CLASIF"))))]);
+ //BA.debugLineNum = 1718;BA.debugLine="Dim CAT_DP_PRECIO As String = records(result.";
+_cat_dp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO"))))]);
+ //BA.debugLineNum = 1719;BA.debugLine="Dim CAT_DP_PRECIO_SIMPTOS As String = records";
+_cat_dp_precio_simptos = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO_SIMPTOS"))))]);
+ //BA.debugLineNum = 1721;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_D";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_DETALLES_PAQ(CAT_DP_ALMACEN,CAT_DP_ID,CAT_DP_IDPROD,CAT_DP_TIPO,CAT_DP_PZAS,CAT_DP_USUARIO,CAT_DP_FECHA,CAT_DP_REGALO,CAT_DP_CLASIF,CAT_DP_PRECIO,CAT_DP_PRECIO_SIMPTOS) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_dp_almacen),(Object)(_cat_dp_id),(Object)(_cat_dp_idprod),(Object)(_cat_dp_tipo),(Object)(_cat_dp_pzas),(Object)(_cat_dp_usuario),(Object)(_cat_dp_fecha),(Object)(_cat_dp_regalo),(Object)(_cat_dp_clasif),(Object)(_cat_dp_precio),(Object)(_cat_dp_precio_simptos)}));
+ }
+};
+ //BA.debugLineNum = 1723;BA.debugLine="Listo3 =1";
+_listo3 = BA.NumberToString(1);
+ //BA.debugLineNum = 1724;BA.debugLine="If Listo1 = 1 And Listo2 = 1 And Listo3 = 1 An";
+if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1725;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1726;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1727;BA.debugLine="img2.Visible=False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1728;BA.debugLine="EJECUTANDO = 0";
+_ejecutando = BA.NumberToString(0);
+ }else if((_listo4).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_inve).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1730;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1731;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1732;BA.debugLine="img2.Visible = False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1733;BA.debugLine="EJECUTANDO = 0";
+_ejecutando = BA.NumberToString(0);
+ };
+ };
+ };
+ //BA.debugLineNum = 1738;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1739;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1740;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) {
+ //BA.debugLineNum = 1741;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group232 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen232 = group232.getSize()
+;int index232 = 0;
+;
+for (; index232 < groupLen232;index232++){
+_records = (Object[])(group232.Get(index232));
+ //BA.debugLineNum = 1742;BA.debugLine="Dim hvd_estatus As String = records(result.Co";
+_hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]);
+ //BA.debugLineNum = 1743;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
+if ((_hvd_estatus).equals("Liquidado")) {
+ //BA.debugLineNum = 1745;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
+__c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 1747;BA.debugLine="envioinfo";
+_envioinfo();
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1753;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1754;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1755;BA.debugLine="If result.Tag = \"punteo\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("punteo"))) {
+ //BA.debugLineNum = 1756;BA.debugLine="If reqs.IndexOf(\"punteo\") > -1 Then";
+if (_reqs.IndexOf((Object)("punteo"))>-1) {
+ //BA.debugLineNum = 1757;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("punteo")));
+ };
+ //BA.debugLineNum = 1760;BA.debugLine="If reqs.IndexOf(\"punteo\") > 0 Then";
+if (_reqs.IndexOf((Object)("punteo"))>0) {
+ //BA.debugLineNum = 1761;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("punteo")));
+ //BA.debugLineNum = 1762;BA.debugLine="Log(reqs.Size)";
+__c.LogImpl("514942502",BA.NumberToString(_reqs.getSize()),0);
+ };
+ //BA.debugLineNum = 1764;BA.debugLine="Starter.skmt.BeginTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
+ //BA.debugLineNum = 1765;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group253 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen253 = group253.getSize()
+;int index253 = 0;
+;
+for (; index253 < groupLen253;index253++){
+_records = (Object[])(group253.Get(index253));
+ //BA.debugLineNum = 1766;BA.debugLine="Dim HV_CLIENTE As String = records(result.Col";
+_hv_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_CLIENTE"))))]);
+ //BA.debugLineNum = 1767;BA.debugLine="Dim HV_LONG As String = records(result.Column";
+_hv_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_LONG"))))]);
+ //BA.debugLineNum = 1768;BA.debugLine="Dim HV_LAT As String = records(result.Columns";
+_hv_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_LAT"))))]);
+ //BA.debugLineNum = 1770;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PUNTE";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PUNTEO_GPS(HV_CLIENTE, HV_LONG, HV_LAT) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hv_cliente),(Object)(_hv_long),(Object)(_hv_lat)}));
+ }
+};
+ //BA.debugLineNum = 1772;BA.debugLine="Starter.skmt.TransactionSuccessful";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
+ //BA.debugLineNum = 1773;BA.debugLine="Starter.skmt.EndTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
+ };
+ };
+ //BA.debugLineNum = 1777;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1778;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1779;BA.debugLine="If result.Tag = \"hist_datos\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) {
+ //BA.debugLineNum = 1780;BA.debugLine="If reqs.IndexOf(\"hist_datos\") > -1 Then";
+if (_reqs.IndexOf((Object)("hist_datos"))>-1) {
+ //BA.debugLineNum = 1781;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"hist_datos\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("hist_datos")));
+ };
+ //BA.debugLineNum = 1784;BA.debugLine="Log(l_ruta.text)";
+__c.LogImpl("514942524",_l_ruta.getText(),0);
+ //BA.debugLineNum = 1785;BA.debugLine="Log($\"******** Insertamos HV - ${result.Rows.";
+__c.LogImpl("514942525",("******** Insertamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0);
+ //BA.debugLineNum = 1786;BA.debugLine="Starter.skmt.BeginTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction();
+ //BA.debugLineNum = 1787;BA.debugLine="Dim consecutivo As Int= 0";
+_consecutivo = (int) (0);
+ //BA.debugLineNum = 1788;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group273 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen273 = group273.getSize()
+;int index273 = 0;
+;
+for (; index273 < groupLen273;index273++){
+_records = (Object[])(group273.Get(index273));
+ //BA.debugLineNum = 1789;BA.debugLine="Dim HVD_CLIENTE As String = records(result.Co";
+_hvd_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]);
+ //BA.debugLineNum = 1790;BA.debugLine="Dim HVD_PRONOMBRE As String = records(result.";
+_hvd_pronombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PRONOMBRE"))))]);
+ //BA.debugLineNum = 1791;BA.debugLine="Dim HVD_CANT As String = records(result.Colum";
+_hvd_cant = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CANT"))))]);
+ //BA.debugLineNum = 1792;BA.debugLine="Dim HVD_COSTO_TOT As String = records(result.";
+_hvd_costo_tot = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_COSTO_TOT"))))]);
+ //BA.debugLineNum = 1793;BA.debugLine="Dim HVD_FECHA As String = records(result.Colu";
+_hvd_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_FECHA"))))]);
+ //BA.debugLineNum = 1794;BA.debugLine="Dim HVD_CODPROMO As String = records(result.C";
+_hvd_codpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CODPROMO"))))]);
+ //BA.debugLineNum = 1795;BA.debugLine="Dim HVD_PROID As String = records(result.Colu";
+_hvd_proid = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PROID"))))]);
+ //BA.debugLineNum = 1796;BA.debugLine="Dim HVD_NUM_TICKET As String = records(result";
+_hvd_num_ticket = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_NUM_TICKET"))))]);
+ //BA.debugLineNum = 1797;BA.debugLine="Dim HVD_NUM_REGISTRO As String = records(resu";
+_hvd_num_registro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_NUM_REGISTRO"))))]);
+ //BA.debugLineNum = 1798;BA.debugLine="Dim HVD_RECHAZO As String = records(result.Co";
+_hvd_rechazo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_RECHAZO"))))]);
+ //BA.debugLineNum = 1800;BA.debugLine="Dim bcajas As String = 0 ' records(result.Col";
+_bcajas = BA.NumberToString(0);
+ //BA.debugLineNum = 1801;BA.debugLine="Dim cantc As String = 0 'records(result.Colum";
+_cantc = BA.NumberToString(0);
+ //BA.debugLineNum = 1803;BA.debugLine="consecutivo = consecutivo +1";
+_consecutivo = (int) (_consecutivo+1);
+ //BA.debugLineNum = 1804;BA.debugLine="Log(HVD_PRONOMBRE & \", \" & HVD_CANT & \", \" &H";
+__c.LogImpl("514942544",_hvd_pronombre+", "+_hvd_cant+", "+_hvd_cliente,0);
+ //BA.debugLineNum = 1805;BA.debugLine="If l_ruta.Text = \"0\" Then 'Si no hay ruta car";
+if ((_l_ruta.getText()).equals("0")) {
+ //BA.debugLineNum = 1806;BA.debugLine="Log(\"No hay ruta, guardamos todos\")";
+__c.LogImpl("514942546","No hay ruta, guardamos todos",0);
+ //BA.debugLineNum = 1807;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc)}));
+ //BA.debugLineNum = 1808;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo)}));
+ }else {
+ //BA.debugLineNum = 1811;BA.debugLine="Private tc As Cursor = Starter.skmt.ExecQuer";
+_tc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_tc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+"' and HVD_PROID = '"+__c.SmartStringFormatter("",(Object)(_hvd_proid))+"' AND HVD_CANT = '"+__c.SmartStringFormatter("",(Object)(_hvd_cant))+"' AND HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_hvd_codpromo))+"' "))));
+ //BA.debugLineNum = 1812;BA.debugLine="If tc.RowCount = 0 Then";
+if (_tc.getRowCount()==0) {
+ //BA.debugLineNum = 1813;BA.debugLine="Log($\"Guardamos ${HVD_CLIENTE}\"$)";
+__c.LogImpl("514942553",("Guardamos "+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+""),0);
+ //BA.debugLineNum = 1814;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc)}));
+ //BA.debugLineNum = 1815;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo)}));
+ };
+ };
+ }
+};
+ //BA.debugLineNum = 1819;BA.debugLine="Starter.skmt.TransactionSuccessful";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful();
+ //BA.debugLineNum = 1820;BA.debugLine="Starter.skmt.EndTransaction";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction();
+ //BA.debugLineNum = 1821;BA.debugLine="Log($\"******** Terminamos HV - ${result.Rows.";
+__c.LogImpl("514942561",("******** Terminamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0);
+ //BA.debugLineNum = 1835;BA.debugLine="Listo3 =1";
+_listo3 = BA.NumberToString(1);
+ //BA.debugLineNum = 1836;BA.debugLine="If Listo1 = 1 And Listo3 = 1 Then";
+if ((_listo1).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 1837;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ //BA.debugLineNum = 1838;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 1839;BA.debugLine="img2.Visible = False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 1840;BA.debugLine="EJECUTANDO = 0";
+_ejecutando = BA.NumberToString(0);
+ };
+ };
+ };
+ //BA.debugLineNum = 1846;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1847;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1848;BA.debugLine="If result.Tag = \"variables\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) {
+ //BA.debugLineNum = 1849;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group316 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen316 = group316.getSize()
+;int index316 = 0;
+;
+for (; index316 < groupLen316;index316++){
+_records = (Object[])(group316.Get(index316));
+ //BA.debugLineNum = 1850;BA.debugLine="Dim Cat_Va_Descripcion As String = records(re";
+_cat_va_descripcion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_DESCRIPCION"))))]);
+ //BA.debugLineNum = 1851;BA.debugLine="Dim Cat_Va_Valor As String = records(result.C";
+_cat_va_valor = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_VALOR"))))]);
+ //BA.debugLineNum = 1853;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_va_descripcion),(Object)(_cat_va_valor)}));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1859;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1860;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1861;BA.debugLine="If result.Tag = \"PAGARES\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("PAGARES"))) {
+ //BA.debugLineNum = 1862;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group326 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen326 = group326.getSize()
+;int index326 = 0;
+;
+for (; index326 < groupLen326;index326++){
+_records = (Object[])(group326.Get(index326));
+ //BA.debugLineNum = 1864;BA.debugLine="Dim TMP_MONTO_PAGARE As String = records(resu";
+_tmp_monto_pagare = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_MONTO_PAGARE"))))]);
+ //BA.debugLineNum = 1865;BA.debugLine="Dim TMP_CLIENTE As String = records(result.Co";
+_tmp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_CLIENTE"))))]);
+ //BA.debugLineNum = 1867;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGAR";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES(TMP_MONTO_PAGARE, TMP_CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_tmp_monto_pagare),(Object)(_tmp_cliente)}));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1872;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1873;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1874;BA.debugLine="If result.Tag = \"valida_pedido\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) {
+ //BA.debugLineNum = 1875;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group336 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen336 = group336.getSize()
+;int index336 = 0;
+;
+for (; index336 < groupLen336;index336++){
+_records = (Object[])(group336.Get(index336));
+ //BA.debugLineNum = 1876;BA.debugLine="Dim CUANTOSP As Int = records(result.Columns.";
+_cuantosp = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSP"))))]));
+ //BA.debugLineNum = 1877;BA.debugLine="If cuantos_pedido = CUANTOSP Then";
+if ((_cuantos_pedido).equals(BA.NumberToString(_cuantosp))) {
+ //BA.debugLineNum = 1879;BA.debugLine="datos_iguales = \"ok\"";
+_datos_iguales = "ok";
+ }else {
+ //BA.debugLineNum = 1881;BA.debugLine="ToastMessageShow(\"No se cargo bien la info P";
+__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+_cuantos_pedido),__c.True);
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1889;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1890;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1891;BA.debugLine="If result.Tag = \"valida_pedidoc\" Then 'query ta";
+if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) {
+ //BA.debugLineNum = 1892;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group349 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen349 = group349.getSize()
+;int index349 = 0;
+;
+for (; index349 < groupLen349;index349++){
+_records = (Object[])(group349.Get(index349));
+ //BA.debugLineNum = 1893;BA.debugLine="Dim CUANTOSC As Int = records(result.Columns.";
+_cuantosc = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSC"))))]));
+ //BA.debugLineNum = 1894;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
+if ((_cuantos_pedidosc).equals(BA.NumberToString(_cuantosc))) {
+ //BA.debugLineNum = 1896;BA.debugLine="datos_iguales = \"ok\"";
+_datos_iguales = "ok";
+ }else {
+ //BA.debugLineNum = 1898;BA.debugLine="ToastMessageShow(\"No se cargo bien la info C";
+__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info C. Sync Nuevamente"+BA.NumberToString(_cuantosc)+" "+_cuantos_pedidosc),__c.True);
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1904;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1905;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1906;BA.debugLine="If result.Tag = \"valida_noventa\" Then 'query ta";
+if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) {
+ //BA.debugLineNum = 1907;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group362 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen362 = group362.getSize()
+;int index362 = 0;
+;
+for (; index362 < groupLen362;index362++){
+_records = (Object[])(group362.Get(index362));
+ //BA.debugLineNum = 1908;BA.debugLine="Dim CUANTOSN As Int = records(result.Columns.";
+_cuantosn = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOSN"))))]));
+ //BA.debugLineNum = 1909;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
+if ((_cuantos_noventa).equals(BA.NumberToString(_cuantosn))) {
+ //BA.debugLineNum = 1911;BA.debugLine="datos_iguales = \"ok\"";
+_datos_iguales = "ok";
+ }else {
+ //BA.debugLineNum = 1913;BA.debugLine="ToastMessageShow(\"No se cargo bien la info N";
+__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info N. Sync Nuevamente"+BA.NumberToString(_cuantosn)+" "+_cuantos_noventa),__c.True);
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1919;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1920;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1921;BA.debugLine="If result.Tag = \"insert_pedido\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("insert_pedido"))) {
+ //BA.debugLineNum = 1922;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True);
+ };
+ };
+ //BA.debugLineNum = 1926;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1927;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1928;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("version"))) {
+ //BA.debugLineNum = 1929;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group381 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen381 = group381.getSize()
+;int index381 = 0;
+;
+for (; index381 < groupLen381;index381++){
+_records = (Object[])(group381.Get(index381));
+ //BA.debugLineNum = 1930;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION");
+ //BA.debugLineNum = 1931;BA.debugLine="Dim CAT_VE_VERSION As String = records(result";
+_cat_ve_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VE_VERSION"))))]);
+ //BA.debugLineNum = 1933;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)}));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1938;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1939;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1940;BA.debugLine="If result.Tag = \"count_cli\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) {
+ //BA.debugLineNum = 1941;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group391 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen391 = group391.getSize()
+;int index391 = 0;
+;
+for (; index391 < groupLen391;index391++){
+_records = (Object[])(group391.Get(index391));
+ //BA.debugLineNum = 1942;BA.debugLine="COUNT_CLIE = records(result.Columns.Get(\"COUN";
+_count_clie = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT_CLIE"))))]));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1947;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1948;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1949;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) {
+ //BA.debugLineNum = 1950;BA.debugLine="If reqs.IndexOf(\"ruta\") > -1 Then";
+if (_reqs.IndexOf((Object)("ruta"))>-1) {
+ //BA.debugLineNum = 1951;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"ruta\"))";
+_reqs.RemoveAt(_reqs.IndexOf((Object)("ruta")));
+ //BA.debugLineNum = 1952;BA.debugLine="Log(reqs.Size)";
+__c.LogImpl("514942692",BA.NumberToString(_reqs.getSize()),0);
+ };
+ //BA.debugLineNum = 1954;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group403 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen403 = group403.getSize()
+;int index403 = 0;
+;
+for (; index403 < groupLen403;index403++){
+_records = (Object[])(group403.Get(index403));
+ //BA.debugLineNum = 1955;BA.debugLine="Dim VALIDO As String = records(result.Columns";
+_valido = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("VALIDO"))))]);
+ //BA.debugLineNum = 1957;BA.debugLine="If VALIDO = \"OK\" Then";
+if ((_valido).equals("OK")) {
+ //BA.debugLineNum = 1958;BA.debugLine="If l_ctast.Text = \"0\" Then";
+if ((_l_ctast.getText()).equals("0")) {
+ //BA.debugLineNum = 1959;BA.debugLine="Subir.Visible = True";
+_subir.setVisible(__c.True);
+ }else if((_l_ctast.getText()).equals("0") == false) {
+ //BA.debugLineNum = 1961;BA.debugLine="Subir.Visible = False";
+_subir.setVisible(__c.False);
+ };
+ //BA.debugLineNum = 1963;BA.debugLine="cargar.Visible = True";
+_cargar.setVisible(__c.True);
+ //BA.debugLineNum = 1964;BA.debugLine="If Subs.dameUsuarioDeDB = \"ROOT\" Then Subir.";
+if ((_subs._dameusuariodedb /*String*/ (ba)).equals("ROOT")) {
+_subir.setVisible(__c.True);};
+ //BA.debugLineNum = 1965;BA.debugLine="connecta.Visible = False";
+_connecta.setVisible(__c.False);
+ //BA.debugLineNum = 1966;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA");
+ //BA.debugLineNum = 1968;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTA";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_e_ruta.getText())}));
+ //BA.debugLineNum = 1969;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = _e_ruta.getText();
+ //BA.debugLineNum = 1970;BA.debugLine="If conn = \"1\" Then";
+if ((_conn).equals("1")) {
+ //BA.debugLineNum = 1971;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True);
+ };
+ }else {
+ //BA.debugLineNum = 1974;BA.debugLine="MsgboxAsync(\"La ruta no esta asignada a este";
+__c.MsgboxAsync(BA.ObjectToCharSequence("La ruta no esta asignada a este usuario"),BA.ObjectToCharSequence("Atención"),ba);
+ //BA.debugLineNum = 1975;BA.debugLine="cargar.Visible = False";
+_cargar.setVisible(__c.False);
+ //BA.debugLineNum = 1976;BA.debugLine="Subir.Visible = False";
+_subir.setVisible(__c.False);
+ //BA.debugLineNum = 1977;BA.debugLine="inv.Visible = False";
+_inv.setVisible(__c.False);
+ //BA.debugLineNum = 1978;BA.debugLine="connecta.Visible = False";
+_connecta.setVisible(__c.False);
+ };
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 1984;BA.debugLine="If Job.JobName = \"DBRequest\" Then 'Traemos las c";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 1985;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 1986;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
+if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) {
+ //BA.debugLineNum = 1987;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group433 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen433 = group433.getSize()
+;int index433 = 0;
+;
+for (; index433 < groupLen433;index433++){
+_records = (Object[])(group433.Get(index433));
+ //BA.debugLineNum = 1988;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res";
+__c.LogImpl("514942728","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0);
+ //BA.debugLineNum = 1989;BA.debugLine="Private lat, lon As Double";
+_lat = 0;
+_lon = 0;
+ //BA.debugLineNum = 1990;BA.debugLine="lat = 0.0";
+_lat = 0.0;
+ //BA.debugLineNum = 1991;BA.debugLine="lon = 0.0";
+_lon = 0.0;
+ //BA.debugLineNum = 1992;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A";
+if (__c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])) && __c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]))) {
+ //BA.debugLineNum = 1993;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT";
+_lat = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))]));
+ //BA.debugLineNum = 1994;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON";
+_lon = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]));
+ };
+ //BA.debugLineNum = 1996;BA.debugLine="Starter.cedisLocation.Latitude = lat";
+_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat);
+ //BA.debugLineNum = 1997;BA.debugLine="Starter.cedisLocation.Longitude = lon";
+_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon);
+ //BA.debugLineNum = 1998;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN")}));
+ //BA.debugLineNum = 1999;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN"),(Object)(BA.NumberToString(_lon)+","+BA.NumberToString(_lat))}));
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 2005;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 2006;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 2007;BA.debugLine="If result.Tag = \"ins_reparto\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("ins_reparto"))) {
+ //BA.debugLineNum = 2008;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group452 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen452 = group452.getSize()
+;int index452 = 0;
+;
+for (; index452 < groupLen452;index452++){
+_records = (Object[])(group452.Get(index452));
+ //BA.debugLineNum = 2009;BA.debugLine="For Each k As String In result.Columns.Keys";
+{
+final anywheresoftware.b4a.BA.IterableList group453 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
+final int groupLen453 = group453.getSize()
+;int index453 = 0;
+;
+for (; index453 < groupLen453;index453++){
+_k = BA.ObjectToString(group453.Get(index453));
+ //BA.debugLineNum = 2010;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
+__c.LogImpl("514942750",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
+ }
+};
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 2016;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
+if ((_job._jobname /*String*/ ).equals("DBRequest")) {
+ //BA.debugLineNum = 2017;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
+_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
+ //BA.debugLineNum = 2018;BA.debugLine="If result.Tag = \"ins_rechazos\" Then 'query tag";
+if ((_result.Tag /*Object*/ ).equals((Object)("ins_rechazos"))) {
+ //BA.debugLineNum = 2019;BA.debugLine="For Each records() As Object In result.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group462 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen462 = group462.getSize()
+;int index462 = 0;
+;
+for (; index462 < groupLen462;index462++){
+_records = (Object[])(group462.Get(index462));
+ //BA.debugLineNum = 2020;BA.debugLine="For Each k As String In result.Columns.Keys";
+{
+final anywheresoftware.b4a.BA.IterableList group463 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
+final int groupLen463 = group463.getSize()
+;int index463 = 0;
+;
+for (; index463 < groupLen463;index463++){
+_k = BA.ObjectToString(group463.Get(index463));
+ //BA.debugLineNum = 2021;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
+__c.LogImpl("514942761",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
+ }
+};
+ }
+};
+ };
+ };
+ //BA.debugLineNum = 2026;BA.debugLine="Job.Release";
+_job._release /*String*/ ();
+ };
+ //BA.debugLineNum = 2029;BA.debugLine="If reqs.Size = 0 Then";
+if (_reqs.getSize()==0) {
+ //BA.debugLineNum = 2035;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS C";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS FROM CHECADO_CHECK")));
+ //BA.debugLineNum = 2036;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 2037;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
+if ((_c.GetString("CUANTOS")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 2038;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into CHECADO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into CHECADO_CHECK (CHECADO) VALUES(?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"0"}));
+ }else if((_c.GetString("CUANTOS")).equals(BA.NumberToString(1))) {
+ };
+ //BA.debugLineNum = 2043;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 2049;BA.debugLine="End Sub";
+return "";
+}
+public String _listview1_itemclick(int _position,Object _value) throws Exception{
+String[] _clieasing = null;
+ //BA.debugLineNum = 2437;BA.debugLine="Private Sub ListView1_ItemClick (Position As Int,";
+ //BA.debugLineNum = 2438;BA.debugLine="Log(Value)";
+__c.LogImpl("515794177",BA.ObjectToString(_value),0);
+ //BA.debugLineNum = 2440;BA.debugLine="Dim clieasing() As String = Regex.Split(\" \", Valu";
+_clieasing = __c.Regex.Split(" ",BA.ObjectToString(_value));
+ //BA.debugLineNum = 2441;BA.debugLine="Log(clieasing(0))";
+__c.LogImpl("515794180",_clieasing[(int) (0)],0);
+ //BA.debugLineNum = 2443;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
+ //BA.debugLineNum = 2444;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clieasing[(int) (0)])}));
+ //BA.debugLineNum = 2445;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 2446;BA.debugLine="Panel1.Visible = False";
+_panel1.setVisible(__c.False);
+ //BA.debugLineNum = 2447;BA.debugLine="End Sub";
+return "";
+}
+public String _p_carga_click() throws Exception{
+ //BA.debugLineNum = 2559;BA.debugLine="Private Sub P_carga_Click";
+ //BA.debugLineNum = 2561;BA.debugLine="End Sub";
+return "";
+}
+public String _p_prod_click() throws Exception{
+ //BA.debugLineNum = 2509;BA.debugLine="Private Sub p_prod_Click";
+ //BA.debugLineNum = 2511;BA.debugLine="End Sub";
+return "";
+}
+public String _printer_connected(boolean _success) throws Exception{
+ //BA.debugLineNum = 2700;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
+ //BA.debugLineNum = 2701;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 2703;BA.debugLine="PASA_IMP = \"1\"";
+_pasa_imp = "1";
+ }else {
+ //BA.debugLineNum = 2706;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel";
+if (__c.Msgbox2(BA.ObjectToCharSequence(""),BA.ObjectToCharSequence("Printer Error"),"Reprint","Cancel","",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) {
+ //BA.debugLineNum = 2707;BA.debugLine="StartPrinter";
+_startprinter();
+ };
+ };
+ //BA.debugLineNum = 2710;BA.debugLine="End Sub";
+return "";
+}
+public String _printer1_connected(boolean _success) throws Exception{
+ //BA.debugLineNum = 2675;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
+ //BA.debugLineNum = 2677;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 2678;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False);
+ //BA.debugLineNum = 2679;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP")}));
+ //BA.debugLineNum = 2680;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP"),(Object)(_starter._mac_impresora /*String*/ )}));
+ //BA.debugLineNum = 2683;BA.debugLine="impresoraConectada = True";
+_impresoraconectada = __c.True;
+ }else {
+ //BA.debugLineNum = 2687;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
+__c.LogImpl("516318476","Error conectando la impresora",__c.Colors.Red);
+ //BA.debugLineNum = 2688;BA.debugLine="errorImpresora = errorImpresora + 1";
+_errorimpresora = (int) (_errorimpresora+1);
+ //BA.debugLineNum = 2689;BA.debugLine="If errorImpresora > 1 Then";
+if (_errorimpresora>1) {
+ //BA.debugLineNum = 2690;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
+_starter._mac_impresora /*String*/ = "0";
+ //BA.debugLineNum = 2691;BA.debugLine="errorImpresora = 0";
+_errorimpresora = (int) (0);
+ };
+ };
+ //BA.debugLineNum = 2694;BA.debugLine="End Sub";
+return "";
+}
+public String _printer1_error() throws Exception{
+ //BA.debugLineNum = 2696;BA.debugLine="Sub Printer1_Error";
+ //BA.debugLineNum = 2697;BA.debugLine="Log(\"error printer\")";
+__c.LogImpl("516384001","error printer",0);
+ //BA.debugLineNum = 2698;BA.debugLine="End Sub";
+return "";
+}
+public String _startprinter() throws Exception{
+anywheresoftware.b4a.objects.collections.Map _paireddevices = null;
+anywheresoftware.b4a.objects.collections.List _l1 = null;
+int _resimp = 0;
+int _i = 0;
+ //BA.debugLineNum = 2712;BA.debugLine="Sub StartPrinter";
+ //BA.debugLineNum = 2713;BA.debugLine="Dim PairedDevices As Map";
+_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 2714;BA.debugLine="Dim L1 As List";
+_l1 = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 2715;BA.debugLine="Dim resimp As Int";
+_resimp = 0;
+ //BA.debugLineNum = 2716;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True);
+ //BA.debugLineNum = 2717;BA.debugLine="PairedDevices.Initialize";
+_paireddevices.Initialize();
+ //BA.debugLineNum = 2718;BA.debugLine="Try";
+try { //BA.debugLineNum = 2719;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
+_paireddevices = _cmp20.GetPairedDevices();
+ }
+ catch (Exception e9) {
+ ba.setLastException(e9); //BA.debugLineNum = 2721;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
+__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba);
+ //BA.debugLineNum = 2722;BA.debugLine="printer.Close";
+_printer.Close();
+ //BA.debugLineNum = 2723;BA.debugLine="cmp20.Disconnect";
+_cmp20.Disconnect();
+ };
+ //BA.debugLineNum = 2726;BA.debugLine="If PairedDevices.Size = 0 Then";
+if (_paireddevices.getSize()==0) {
+ //BA.debugLineNum = 2727;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
+__c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba);
+ //BA.debugLineNum = 2728;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 2731;BA.debugLine="If PairedDevices.Size = 1 Then";
+if (_paireddevices.getSize()==1) {
+ //BA.debugLineNum = 2732;BA.debugLine="Try";
+try { //BA.debugLineNum = 2733;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
+_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0)))));
+ }
+ catch (Exception e21) {
+ ba.setLastException(e21); //BA.debugLineNum = 2735;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
+__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba);
+ //BA.debugLineNum = 2736;BA.debugLine="printer.Close";
+_printer.Close();
+ //BA.debugLineNum = 2737;BA.debugLine="cmp20.Disconnect";
+_cmp20.Disconnect();
+ };
+ }else {
+ //BA.debugLineNum = 2740;BA.debugLine="L1.Initialize";
+_l1.Initialize();
+ //BA.debugLineNum = 2741;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
+{
+final int step27 = 1;
+final int limit27 = (int) (_paireddevices.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit27 ;_i = _i + step27 ) {
+ //BA.debugLineNum = 2742;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
+_l1.Add(_paireddevices.GetKeyAt(_i));
+ }
+};
+ //BA.debugLineNum = 2744;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
+_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba);
+ //BA.debugLineNum = 2745;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
+if (_resimp!=__c.DialogResponse.CANCEL) {
+ //BA.debugLineNum = 2746;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
+_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp))));
+ };
+ };
+ //BA.debugLineNum = 2749;BA.debugLine="End Sub";
+return "";
+}
+public String _subir_click() throws Exception{
+ //BA.debugLineNum = 797;BA.debugLine="Sub Subir_Click";
+ //BA.debugLineNum = 798;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N";
+if (__c.Not(_isconnectedtointernet())) {
+__c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);};
+ //BA.debugLineNum = 799;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
+ //BA.debugLineNum = 800;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 801;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
+_usuario = _c.GetString("USUARIO");
+ //BA.debugLineNum = 802;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 804;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCKEN";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO")));
+ //BA.debugLineNum = 805;BA.debugLine="If c.RowCount = 0 Then";
+if (_c.getRowCount()==0) {
+ //BA.debugLineNum = 806;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKENV";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)}));
+ //BA.debugLineNum = 807;BA.debugLine="envioinfo";
+_envioinfo();
+ }else {
+ //BA.debugLineNum = 809;BA.debugLine="envioinfo";
+_envioinfo();
+ };
+ //BA.debugLineNum = 811;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 817;BA.debugLine="End Sub";
+return "";
+}
+public String _t1_tick() throws Exception{
+ //BA.debugLineNum = 2141;BA.debugLine="Sub t1_tick";
+ //BA.debugLineNum = 2142;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 2143;BA.debugLine="cmd.Name = \"select_cuantos_pedido\"";
+_cmd.Name /*String*/ = "select_cuantos_pedido";
+ //BA.debugLineNum = 2144;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())};
+ //BA.debugLineNum = 2145;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedido"));
+ //BA.debugLineNum = 2147;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 2148;BA.debugLine="cmd.Name = \"select_cuantos_noventa_mards\"";
+_cmd.Name /*String*/ = "select_cuantos_noventa_mards";
+ //BA.debugLineNum = 2149;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())};
+ //BA.debugLineNum = 2150;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\"";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_noventa"));
+ //BA.debugLineNum = 2152;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 2153;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc\"";
+_cmd.Name /*String*/ = "select_cuantos_pedidoc";
+ //BA.debugLineNum = 2154;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())};
+ //BA.debugLineNum = 2155;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\"";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedidoc"));
+ //BA.debugLineNum = 2156;BA.debugLine="img2.Visible=False";
+_img2.setVisible(__c.False);
+ //BA.debugLineNum = 2157;BA.debugLine="t1.Enabled = False";
+_t1.setEnabled(__c.False);
+ //BA.debugLineNum = 2158;BA.debugLine="End Sub";
+return "";
+}
+public String _t8_tick() throws Exception{
+ //BA.debugLineNum = 2547;BA.debugLine="Sub t8_tick";
+ //BA.debugLineNum = 2548;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 2549;BA.debugLine="cmd.Name = \"select_conteo_izca\"";
+_cmd.Name /*String*/ = "select_conteo_izca";
+ //BA.debugLineNum = 2550;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)};
+ //BA.debugLineNum = 2551;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"CONTEO_DATOS\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("CONTEO_DATOS"));
+ //BA.debugLineNum = 2552;BA.debugLine="l_carga2.Text = \"VALIDANDO\"";
+_l_carga2.setText(BA.ObjectToCharSequence("VALIDANDO"));
+ //BA.debugLineNum = 2553;BA.debugLine="L_carga.Text = \"VALIDANDO\"";
+_l_carga.setText(BA.ObjectToCharSequence("VALIDANDO"));
+ //BA.debugLineNum = 2554;BA.debugLine="PB_carga.Progress = 50";
+_pb_carga.setProgress((int) (50));
+ //BA.debugLineNum = 2555;BA.debugLine="PB_carga2.Progress = 50";
+_pb_carga2.setProgress((int) (50));
+ //BA.debugLineNum = 2556;BA.debugLine="t8.Enabled = False";
+_t8.setEnabled(__c.False);
+ //BA.debugLineNum = 2557;BA.debugLine="End Sub";
+return "";
+}
+public String _to_number_vb(Object _valor) throws Exception{
+int _valstring = 0;
+String _valstring2 = "";
+ //BA.debugLineNum = 775;BA.debugLine="Sub to_number_vb (valor As Object) As String";
+ //BA.debugLineNum = 776;BA.debugLine="Dim valstring As Int";
+_valstring = 0;
+ //BA.debugLineNum = 777;BA.debugLine="Dim valstring2 As String = valor";
+_valstring2 = BA.ObjectToString(_valor);
+ //BA.debugLineNum = 778;BA.debugLine="valstring2.Replace(\":\",\"\")";
+_valstring2.replace(":","");
+ //BA.debugLineNum = 779;BA.debugLine="Try";
+try { //BA.debugLineNum = 780;BA.debugLine="valstring =valstring2.Replace(\":\",\"\")";
+_valstring = (int)(Double.parseDouble(_valstring2.replace(":","")));
+ //BA.debugLineNum = 781;BA.debugLine="Return valstring";
+if (true) return BA.NumberToString(_valstring);
+ }
+ catch (Exception e8) {
+ ba.setLastException(e8); //BA.debugLineNum = 783;BA.debugLine="Return 0";
+if (true) return BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 785;BA.debugLine="End Sub";
+return "";
+}
+public String _trabajar_click() throws Exception{
+ //BA.debugLineNum = 787;BA.debugLine="Sub trabajar_Click";
+ //BA.debugLineNum = 788;BA.debugLine="If b_check.Visible = True Then";
+if (_b_check.getVisible()==__c.True) {
+ //BA.debugLineNum = 789;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Atenc";
+__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba);
+ }else {
+ //BA.debugLineNum = 792;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
+_b4xpages._showpage /*String*/ (ba,"Clientes");
+ };
+ //BA.debugLineNum = 795;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "JOBDONE"))
+ return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_productos.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_productos.java
new file mode 100644
index 0000000..480b5d5
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_productos.java
@@ -0,0 +1,1240 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_productos extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_productos");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_productos.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.gps.GPS _g = null;
+public String _clie_id = "";
+public String _sdate = "";
+public String _stime = "";
+public String _usuario = "";
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_regresar = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_borra = null;
+public String _existe = "";
+public String _result = "";
+public String _cuantos = "";
+public String _nombre_prod = "";
+public String _cuantos_pedido = "";
+public anywheresoftware.b4a.objects.LabelWrapper _titulo = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p1 = null;
+public anywheresoftware.b4a.objects.ListViewWrapper _lv2 = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public b4a.example3.customlistview _clv_pedido = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null;
+public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
+public boolean _etcanthasfocus = false;
+public int _totalprods = 0;
+public int _totalcompra = 0;
+public anywheresoftware.b4a.objects.collections.Map _prodsmap = null;
+public boolean _reconstruirpedido = false;
+public String _promoaborrar = "";
+public anywheresoftware.b4a.objects.ButtonWrapper _b_guardar = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenosc = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_pcantc = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_pcantc = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmasc = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmenc = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmen = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_revversar = null;
+public anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _label3 = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_piezas = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_cajas = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_guardar_click() throws Exception{
+ //BA.debugLineNum = 1091;BA.debugLine="Private Sub b_guardar_Click";
+ //BA.debugLineNum = 1093;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmas_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _maxprods = "";
+String _minimoadesc = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null;
+String _preciofull = "";
+String _pup = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _precioreg = null;
+String _precioregalo = "";
+String _esregalo = "";
+ //BA.debugLineNum = 664;BA.debugLine="Sub b_prodMas_Click";
+ //BA.debugLineNum = 665;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 666;BA.debugLine="Dim sDate, sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 667;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
+__c.DateTime.setDateFormat("dd/MM/yyyy");
+ //BA.debugLineNum = 668;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
+__c.DateTime.setTimeFormat("HH:mm:ss");
+ //BA.debugLineNum = 669;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
+_sdate = __c.DateTime.Date(__c.DateTime.getNow());
+ //BA.debugLineNum = 670;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
+_stime = __c.DateTime.Time(__c.DateTime.getNow());
+ //BA.debugLineNum = 672;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
+__c.LogImpl("520185096","b_prodMas_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 673;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 674;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 675;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 676;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
+_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 680;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
+ //BA.debugLineNum = 681;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
+__c.LogImpl("520185105","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 682;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 684;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4";
+_maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))));
+ //BA.debugLineNum = 686;BA.debugLine="Private minimoadesc As String";
+_minimoadesc = "";
+ //BA.debugLineNum = 687;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
+_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 688;BA.debugLine="If minimos.RowCount > 0 Then";
+if (_minimos.getRowCount()>0) {
+ //BA.debugLineNum = 689;BA.debugLine="minimos.Position = 0";
+_minimos.setPosition((int) (0));
+ //BA.debugLineNum = 690;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
+_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA");
+ }else {
+ //BA.debugLineNum = 692;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ };
+ //BA.debugLineNum = 694;BA.debugLine="minimos.Close";
+_minimos.Close();
+ //BA.debugLineNum = 695;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ //BA.debugLineNum = 698;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
+__c.LogImpl("520185122",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
+ //BA.debugLineNum = 699;BA.debugLine="Log(esteTag.get(4))";
+__c.LogImpl("520185123",BA.ObjectToString(_estetag.Get((int) (4))),0);
+ //BA.debugLineNum = 700;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
+if ((_estetag.Get((int) (4))).equals((Object)("0"))) {
+ }else {
+ //BA.debugLineNum = 703;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
+if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
+ //BA.debugLineNum = 704;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
+__c.LogImpl("520185128",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
+ //BA.debugLineNum = 705;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
+ //BA.debugLineNum = 706;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}));
+ //BA.debugLineNum = 707;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 708;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 709;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 710;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 711;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 713;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
+_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 714;BA.debugLine="If preciocat.RowCount > 0 Then";
+if (_preciocat.getRowCount()>0) {
+ //BA.debugLineNum = 715;BA.debugLine="preciocat.Position = 0";
+_preciocat.setPosition((int) (0));
+ //BA.debugLineNum = 716;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
+_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
+ };
+ //BA.debugLineNum = 718;BA.debugLine="preciocat.Close";
+_preciocat.Close();
+ //BA.debugLineNum = 720;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
+if ((_c2.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) {
+ //BA.debugLineNum = 721;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO";
+_pup = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("HVD_CANT"))));
+ //BA.debugLineNum = 723;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_pup))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
+ }else {
+ //BA.debugLineNum = 725;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
+ };
+ };
+ }else {
+ //BA.debugLineNum = 730;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 731;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 732;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 734;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
+_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 735;BA.debugLine="If preciocat.RowCount > 0 Then";
+if (_preciocat.getRowCount()>0) {
+ //BA.debugLineNum = 736;BA.debugLine="preciocat.Position = 0";
+_preciocat.setPosition((int) (0));
+ //BA.debugLineNum = 737;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
+_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
+ };
+ //BA.debugLineNum = 739;BA.debugLine="preciocat.Close";
+_preciocat.Close();
+ //BA.debugLineNum = 741;BA.debugLine="Dim precioreg As Cursor = Starter.skmt.ExecQu";
+_precioreg = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_precioreg = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS WHERE HVD_PROID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"))));
+ //BA.debugLineNum = 742;BA.debugLine="If precioreg.RowCount > 0 Then";
+if (_precioreg.getRowCount()>0) {
+ //BA.debugLineNum = 743;BA.debugLine="precioreg.Position = 0";
+_precioreg.setPosition((int) (0));
+ //BA.debugLineNum = 744;BA.debugLine="Dim precioregalo As String = precioreg.GetSt";
+_precioregalo = BA.NumberToString((double)(Double.parseDouble(_precioreg.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_precioreg.GetString("HVD_CANT"))));
+ //BA.debugLineNum = 745;BA.debugLine="If precioregalo < 1 Then";
+if ((double)(Double.parseDouble(_precioregalo))<1) {
+ //BA.debugLineNum = 746;BA.debugLine="Dim esregalo As String = 1";
+_esregalo = BA.NumberToString(1);
+ }else {
+ //BA.debugLineNum = 748;BA.debugLine="Dim esregalo As String = 0";
+_esregalo = BA.NumberToString(0);
+ };
+ };
+ //BA.debugLineNum = 751;BA.debugLine="precioreg.Close";
+_precioreg.Close();
+ //BA.debugLineNum = 753;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
+if ((_c2.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) {
+ //BA.debugLineNum = 754;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO";
+_pup = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("HVD_CANT"))));
+ //BA.debugLineNum = 757;BA.debugLine="Log(\"algo1\")";
+__c.LogImpl("520185181","algo1",0);
+ //BA.debugLineNum = 758;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo}));
+ }else {
+ //BA.debugLineNum = 760;BA.debugLine="Log(\"|\" & preciofull& \"|\")";
+__c.LogImpl("520185184","|"+_preciofull+"|",0);
+ //BA.debugLineNum = 761;BA.debugLine="Log(\"|\" & minimoadesc& \"|\")";
+__c.LogImpl("520185185","|"+_minimoadesc+"|",0);
+ //BA.debugLineNum = 765;BA.debugLine="Log(esteTag.Get(2))";
+__c.LogImpl("520185189",BA.ObjectToString(_estetag.Get((int) (2))),0);
+ //BA.debugLineNum = 766;BA.debugLine="Log(c2.GetString(\"HVD_PRONOMBRE\"))";
+__c.LogImpl("520185190",_c2.GetString("HVD_PRONOMBRE"),0);
+ //BA.debugLineNum = 767;BA.debugLine="Log((1*minimoadesc))";
+__c.LogImpl("520185191",BA.NumberToString((1*(double)(Double.parseDouble(_minimoadesc)))),0);
+ //BA.debugLineNum = 768;BA.debugLine="Log(esteTag.Get(5))";
+__c.LogImpl("520185192",BA.ObjectToString(_estetag.Get((int) (5))),0);
+ //BA.debugLineNum = 769;BA.debugLine="Log(Subs.traeCliente)";
+__c.LogImpl("520185193",_subs._traecliente /*String*/ (ba),0);
+ //BA.debugLineNum = 770;BA.debugLine="Log((preciofull*minimoadesc))";
+__c.LogImpl("520185194",BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),0);
+ //BA.debugLineNum = 771;BA.debugLine="Log(esteTag.Get(6))";
+__c.LogImpl("520185195",BA.ObjectToString(_estetag.Get((int) (6))),0);
+ //BA.debugLineNum = 772;BA.debugLine="Log(Subs.traerUTAPREV)";
+__c.LogImpl("520185196",_subs._traerutaprev /*String*/ (ba),0);
+ //BA.debugLineNum = 773;BA.debugLine="Log(Subs.traeAlmacen)";
+__c.LogImpl("520185197",_subs._traealmacen /*String*/ (ba),0);
+ //BA.debugLineNum = 774;BA.debugLine="Log(sDate & \" \" & sTime)";
+__c.LogImpl("520185198",_sdate+" "+_stime,0);
+ //BA.debugLineNum = 775;BA.debugLine="Log(Subs.traeUsuario)";
+__c.LogImpl("520185199",_subs._traeusuario /*String*/ (ba),0);
+ //BA.debugLineNum = 776;BA.debugLine="Log(Subs.traefECHAPREV)";
+__c.LogImpl("520185200",_subs._traefechaprev /*String*/ (ba),0);
+ //BA.debugLineNum = 777;BA.debugLine="Log(Subs.traeRutaReparto)";
+__c.LogImpl("520185201",_subs._traerutareparto /*String*/ (ba),0);
+ //BA.debugLineNum = 778;BA.debugLine="Log(esregalo)";
+__c.LogImpl("520185202",_esregalo,0);
+ //BA.debugLineNum = 781;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo}));
+ };
+ };
+ };
+ //BA.debugLineNum = 788;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
+_subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))));
+ //BA.debugLineNum = 793;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ };
+ //BA.debugLineNum = 810;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmasc_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _maxprods = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+String _puc = "";
+ //BA.debugLineNum = 813;BA.debugLine="Private Sub b_prodMasC_Click";
+ //BA.debugLineNum = 814;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 816;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
+__c.LogImpl("520250627","b_prodMas_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 817;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 818;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 819;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 820;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
+_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
+ //BA.debugLineNum = 821;BA.debugLine="LogColor(laCantc.Text&\"--------------------------";
+__c.LogImpl("520250632",_lacantc.getText()+"-----------------------------",__c.Colors.Blue);
+ //BA.debugLineNum = 825;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
+ //BA.debugLineNum = 826;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta";
+__c.LogImpl("520250637","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 827;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
+if ((_lacantc.getText()).equals("")) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 829;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es";
+_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))));
+ //BA.debugLineNum = 830;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)";
+__c.LogImpl("520250641",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red);
+ //BA.debugLineNum = 831;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)";
+__c.LogImpl("520250642",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red);
+ //BA.debugLineNum = 832;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
+__c.LogImpl("520250643",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
+ //BA.debugLineNum = 834;BA.debugLine="Log(maxProds)";
+__c.LogImpl("520250645",_maxprods,0);
+ //BA.debugLineNum = 837;BA.debugLine="Log(esteTag.Get(4))";
+__c.LogImpl("520250648",BA.ObjectToString(_estetag.Get((int) (4))),0);
+ //BA.debugLineNum = 838;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
+if ((_estetag.Get((int) (4))).equals((Object)("0"))) {
+ }else {
+ //BA.debugLineNum = 841;BA.debugLine="If laCantc.Text + 1 <= maxProds Then";
+if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
+ //BA.debugLineNum = 842;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)";
+__c.LogImpl("520250653",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0);
+ //BA.debugLineNum = 844;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$";
+_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+"")));
+ //BA.debugLineNum = 845;BA.debugLine="LogColor(esteTag,Colors.Magenta)";
+__c.LogImpl("520250656",BA.ObjectToString(_estetag),__c.Colors.Magenta);
+ //BA.debugLineNum = 847;BA.debugLine="LogColor(laCantc.Text,Colors.Red)";
+__c.LogImpl("520250658",_lacantc.getText(),__c.Colors.Red);
+ //BA.debugLineNum = 850;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 851;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 852;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 853;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 854;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 855;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS";
+_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC"))));
+ //BA.debugLineNum = 857;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)+(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= (IFNULL(PE_CAJAS,0)+1)*'"+__c.SmartStringFormatter("",(Object)(_puc))+"', PE_CAJAS= IFNULL(PE_CAJAS,0) + 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
+ //BA.debugLineNum = 858;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 859;BA.debugLine="Log(\"aqui2\")";
+__c.LogImpl("520250670","aqui2",0);
+ };
+ }else {
+ //BA.debugLineNum = 862;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 863;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 864;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 865;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS";
+_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC"))));
+ //BA.debugLineNum = 866;BA.debugLine="Log(puc)";
+__c.LogImpl("520250677",_puc,0);
+ //BA.debugLineNum = 869;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDID";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,1,1,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),_puc,_puc,BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
+ //BA.debugLineNum = 870;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ };
+ };
+ };
+ //BA.debugLineNum = 876;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmenos_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+String _minimoadesc = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+float _preciou = 0f;
+ //BA.debugLineNum = 558;BA.debugLine="Sub b_prodMenos_Click";
+ //BA.debugLineNum = 559;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 560;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
+__c.LogImpl("520119554","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
+ //BA.debugLineNum = 561;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
+__c.LogImpl("520119555","b_prodMenos_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 562;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 563;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 564;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 565;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
+_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 567;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
+ //BA.debugLineNum = 568;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
+__c.LogImpl("520119562","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 570;BA.debugLine="Private minimoadesc As String";
+_minimoadesc = "";
+ //BA.debugLineNum = 571;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
+_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 572;BA.debugLine="If minimos.RowCount > 0 Then";
+if (_minimos.getRowCount()>0) {
+ //BA.debugLineNum = 573;BA.debugLine="minimos.Position = 0";
+_minimos.setPosition((int) (0));
+ //BA.debugLineNum = 574;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
+_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA");
+ }else {
+ //BA.debugLineNum = 576;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ };
+ //BA.debugLineNum = 578;BA.debugLine="minimos.Close";
+_minimos.Close();
+ //BA.debugLineNum = 580;BA.debugLine="minimoadesc = \"1\"";
+_minimoadesc = "1";
+ //BA.debugLineNum = 581;BA.debugLine="If laCant.Text > 0 Then";
+if ((double)(Double.parseDouble(_lacant.getText()))>0) {
+ //BA.debugLineNum = 616;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
+if ((_lacant.getText()).equals("")) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 617;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-(1*minimoadesc)";
+_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-(1*(double)(Double.parseDouble(_minimoadesc)))))+"")));
+ //BA.debugLineNum = 618;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
+if ((double)(Double.parseDouble(_lacant.getText()))<0) {
+_lacant.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 619;BA.debugLine="Log(\"NO ES promo\")";
+__c.LogImpl("520119613","NO ES promo",0);
+ //BA.debugLineNum = 624;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 625;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 626;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 627;BA.debugLine="If c3.GetString(\"PE_CANT\")> minimoadesc Then";
+if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>(double)(Double.parseDouble(_minimoadesc))) {
+ //BA.debugLineNum = 628;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 629;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 630;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 632;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
+ };
+ }else if((_c3.GetString("PE_CANT")).equals(_minimoadesc)) {
+ //BA.debugLineNum = 635;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
+ //BA.debugLineNum = 636;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 637;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 640;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
+ };
+ };
+ };
+ //BA.debugLineNum = 647;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ };
+ //BA.debugLineNum = 650;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
+_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
+ //BA.debugLineNum = 651;BA.debugLine="Log(\"PU: \" & preciou)";
+__c.LogImpl("520119645","PU: "+BA.NumberToString(_preciou),0);
+ //BA.debugLineNum = 662;BA.debugLine="End Sub";
+return "";
+}
+public String _b_prodmenosc_click() throws Exception{
+int _index = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+float _preciou = 0f;
+ //BA.debugLineNum = 878;BA.debugLine="Private Sub b_prodMenosC_Click";
+ //BA.debugLineNum = 879;BA.debugLine="etCantHasFocus = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 880;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
+__c.LogImpl("520316162","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
+ //BA.debugLineNum = 881;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
+__c.LogImpl("520316163","b_prodMenos_Click",__c.Colors.Magenta);
+ //BA.debugLineNum = 882;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
+_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
+ //BA.debugLineNum = 883;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
+_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl0 = _clv_pedido._getpanel(_index);
+ //BA.debugLineNum = 884;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_pnl = _pnl0.GetView((int) (0));
+ //BA.debugLineNum = 885;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
+_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
+ //BA.debugLineNum = 887;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
+ //BA.debugLineNum = 888;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get";
+__c.LogImpl("520316170","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
+ //BA.debugLineNum = 892;BA.debugLine="If laCantc.Text > 0 Then";
+if ((double)(Double.parseDouble(_lacantc.getText()))>0) {
+ //BA.debugLineNum = 895;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
+ //BA.debugLineNum = 896;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 897;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 898;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
+if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) {
+ //BA.debugLineNum = 899;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
+ }else if((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) {
+ //BA.debugLineNum = 901;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
+ };
+ };
+ //BA.debugLineNum = 904;BA.debugLine="Log(\"entre al if o algo asi \")";
+__c.LogImpl("520316186","entre al if o algo asi ",0);
+ //BA.debugLineNum = 905;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
+if ((_lacantc.getText()).equals("")) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 906;BA.debugLine="laCantc.Text = laCantc.Text - 1";
+_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1));
+ //BA.debugLineNum = 907;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
+if ((double)(Double.parseDouble(_lacantc.getText()))<0) {
+_lacantc.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 908;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ }else if((_lacantc.getText()).equals(BA.NumberToString(0))) {
+ };
+ //BA.debugLineNum = 914;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
+_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
+ //BA.debugLineNum = 915;BA.debugLine="Log(\"PU: \" & preciou)";
+__c.LogImpl("520316197","PU: "+BA.NumberToString(_preciou),0);
+ //BA.debugLineNum = 916;BA.debugLine="End Sub";
+return "";
+}
+public String _b_regresar_click() throws Exception{
+ //BA.debugLineNum = 367;BA.debugLine="Sub b_regresar_Click";
+ //BA.debugLineNum = 368;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+_b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 369;BA.debugLine="End Sub";
+return "";
+}
+public String _b_revversar_click() throws Exception{
+ //BA.debugLineNum = 922;BA.debugLine="Private Sub b_revversar_Click";
+ //BA.debugLineNum = 923;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS se";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0 WHERE HVD_cliente in (Select CUENTA from cuentaa)"));
+ //BA.debugLineNum = 924;BA.debugLine="B4XPage_Appear";
+_b4xpage_appear();
+ //BA.debugLineNum = 925;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+int _i = 0;
+anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
+int _bgcolor = 0;
+int _textcolor = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null;
+String _restacant = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+String _resta = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null;
+String _preciofull = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _oc = null;
+int _cant2 = 0;
+String _puc = "";
+ //BA.debugLineNum = 74;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 75;BA.debugLine="Label2.Visible = False";
+_label2.setVisible(__c.False);
+ //BA.debugLineNum = 76;BA.debugLine="Label3.Visible = False";
+_label3.setVisible(__c.False);
+ //BA.debugLineNum = 77;BA.debugLine="L_TOTAL.Visible = False";
+_l_total.setVisible(__c.False);
+ //BA.debugLineNum = 78;BA.debugLine="L_CANT.Visible = False";
+_l_cant.setVisible(__c.False);
+ //BA.debugLineNum = 79;BA.debugLine="b_revversar.Visible = False";
+_b_revversar.setVisible(__c.False);
+ //BA.debugLineNum = 80;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
+_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth());
+ //BA.debugLineNum = 84;BA.debugLine="L_CANT.Text =\"\"";
+_l_cant.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 85;BA.debugLine="L_TOTAL.Text=\"\"";
+_l_total.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 86;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")));
+ //BA.debugLineNum = 87;BA.debugLine="C.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 88;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
+_existe = _c.GetString("EXISTE");
+ //BA.debugLineNum = 89;BA.debugLine="C.Close";
+_c.Close();
+ //BA.debugLineNum = 93;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from HIST_VENT";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 96;BA.debugLine="ListView1.Clear";
+_listview1.Clear();
+ //BA.debugLineNum = 97;BA.debugLine="clv_pedido.Clear";
+_clv_pedido._clear();
+ //BA.debugLineNum = 98;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
+_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2));
+ //BA.debugLineNum = 99;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6";
+_clv_pedido._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (_root.getWidth()-50),(int) (_root.getHeight()*0.62));
+ //BA.debugLineNum = 100;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,";
+_clv_pedido._base_resize(_clv_pedido._getbase().getWidth(),_clv_pedido._getbase().getHeight());
+ //BA.debugLineNum = 102;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 105;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step20 = 1;
+final int limit20 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit20 ;_i = _i + step20 ) {
+ //BA.debugLineNum = 106;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 108;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then";
+if ((_c.GetString("BCAJAS")).equals("0")) {
+ //BA.debugLineNum = 119;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 120;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 121;BA.debugLine="label1.TextSize = 12";
+_label1.setTextSize((float) (12));
+ //BA.debugLineNum = 122;BA.debugLine="label1.TextColor = Colors.black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 123;BA.debugLine="Dim Label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 124;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 125;BA.debugLine="Label2.TextSize = 12";
+_label2.setTextSize((float) (12));
+ //BA.debugLineNum = 126;BA.debugLine="Label2.TextColor = Colors.black";
+_label2.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 127;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 128;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
+_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
+ //BA.debugLineNum = 129;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 130;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
+if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) {
+ //BA.debugLineNum = 132;BA.debugLine="bgColor = Colors.White";
+_bgcolor = __c.Colors.White;
+ };
+ //BA.debugLineNum = 138;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\"";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(PE_CANT,0) AS PE_CANT, CONSECUTIVO, PE_BCAJAS from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 141;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery";
+_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 142;BA.debugLine="d5.Position = 0";
+_d5.setPosition((int) (0));
+ //BA.debugLineNum = 143;BA.debugLine="Private restacant As String = d5.GetString(\"PE";
+_restacant = _d5.GetString("PE_CANT");
+ //BA.debugLineNum = 144;BA.debugLine="d5.Close";
+_d5.Close();
+ //BA.debugLineNum = 146;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
+if (((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) {
+ //BA.debugLineNum = 147;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 148;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 150;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 151;BA.debugLine="Private resta As String = 0";
+_resta = BA.NumberToString(0);
+ //BA.debugLineNum = 153;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 155;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 156;BA.debugLine="resta = c3.GetString(\"PE_CANT\")";
+_resta = _c3.GetString("PE_CANT");
+ }else {
+ //BA.debugLineNum = 159;BA.debugLine="resta = 0";
+_resta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 162;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
+_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 163;BA.debugLine="If preciocat.RowCount > 0 Then";
+if (_preciocat.getRowCount()>0) {
+ //BA.debugLineNum = 164;BA.debugLine="preciocat.Position = 0";
+_preciocat.setPosition((int) (0));
+ //BA.debugLineNum = 165;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
+_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
+ };
+ //BA.debugLineNum = 167;BA.debugLine="preciocat.Close";
+_preciocat.Close();
+ //BA.debugLineNum = 168;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
+__c.LogImpl("519595358",_c.GetString("HVD_CODPROMO"),0);
+ //BA.debugLineNum = 169;BA.debugLine="Log(Subs.traeAlmacen)";
+__c.LogImpl("519595359",_subs._traealmacen /*String*/ (ba),0);
+ //BA.debugLineNum = 172;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
+if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) {
+ //BA.debugLineNum = 173;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ }else {
+ //BA.debugLineNum = 175;BA.debugLine="Log(\"aqui arriba\")";
+__c.LogImpl("519595365","aqui arriba",0);
+ //BA.debugLineNum = 176;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_preciofull,(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ };
+ }else if(_c2.getRowCount()==0) {
+ //BA.debugLineNum = 181;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 182;BA.debugLine="Private resta As String = 0";
+_resta = BA.NumberToString(0);
+ //BA.debugLineNum = 184;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 186;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 187;BA.debugLine="resta = c3.GetString(\"PE_CANT\")";
+_resta = _c3.GetString("PE_CANT");
+ }else {
+ //BA.debugLineNum = 190;BA.debugLine="resta = 0";
+_resta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 194;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
+_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"'"))));
+ //BA.debugLineNum = 195;BA.debugLine="If preciocat.RowCount > 0 Then";
+if (_preciocat.getRowCount()>0) {
+ //BA.debugLineNum = 196;BA.debugLine="preciocat.Position = 0";
+_preciocat.setPosition((int) (0));
+ //BA.debugLineNum = 197;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
+_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
+ };
+ //BA.debugLineNum = 199;BA.debugLine="preciocat.Close";
+_preciocat.Close();
+ //BA.debugLineNum = 200;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
+__c.LogImpl("519595390",_c.GetString("HVD_CODPROMO"),0);
+ //BA.debugLineNum = 201;BA.debugLine="Log(Subs.traeAlmacen)";
+__c.LogImpl("519595391",_subs._traealmacen /*String*/ (ba),0);
+ //BA.debugLineNum = 203;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
+if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) {
+ //BA.debugLineNum = 204;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int) (0),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ }else {
+ //BA.debugLineNum = 206;BA.debugLine="Log(\"aqui abajo\")";
+__c.LogImpl("519595396","aqui abajo",0);
+ //BA.debugLineNum = 207;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_preciofull,(int) (0),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ };
+ };
+ };
+ //BA.debugLineNum = 214;BA.debugLine="c2.Close";
+_c2.Close();
+ }else if((_c.GetString("BCAJAS")).equals("1")) {
+ //BA.debugLineNum = 218;BA.debugLine="Log(\"AQUI1\")";
+__c.LogImpl("519595408","AQUI1",0);
+ //BA.debugLineNum = 221;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery(";
+_oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'"))));
+ //BA.debugLineNum = 222;BA.debugLine="Private cant2 As Int = 0";
+_cant2 = (int) (0);
+ //BA.debugLineNum = 223;BA.debugLine="If oc.RowCount > 0 Then";
+if (_oc.getRowCount()>0) {
+ //BA.debugLineNum = 224;BA.debugLine="oc.Position = 0";
+_oc.setPosition((int) (0));
+ //BA.debugLineNum = 225;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
+_cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT")));
+ };
+ //BA.debugLineNum = 227;BA.debugLine="oc.Close";
+_oc.Close();
+ //BA.debugLineNum = 228;BA.debugLine="Dim label1 As Label";
+_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 229;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
+_label1 = _listview1.getTwoLinesLayout().Label;
+ //BA.debugLineNum = 230;BA.debugLine="label1.TextSize = 12";
+_label1.setTextSize((float) (12));
+ //BA.debugLineNum = 231;BA.debugLine="label1.TextColor = Colors.black";
+_label1.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 232;BA.debugLine="Dim Label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 233;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel";
+_label2 = _listview1.getTwoLinesLayout().SecondLabel;
+ //BA.debugLineNum = 234;BA.debugLine="Label2.TextSize = 12";
+_label2.setTextSize((float) (12));
+ //BA.debugLineNum = 235;BA.debugLine="Label2.TextColor = Colors.black";
+_label2.setTextColor(__c.Colors.Black);
+ //BA.debugLineNum = 236;BA.debugLine="Private bgColor, textColor As Int";
+_bgcolor = 0;
+_textcolor = 0;
+ //BA.debugLineNum = 237;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
+_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
+ //BA.debugLineNum = 238;BA.debugLine="textColor = Colors.black";
+_textcolor = __c.Colors.Black;
+ //BA.debugLineNum = 239;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
+if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) {
+ //BA.debugLineNum = 241;BA.debugLine="bgColor = Colors.White";
+_bgcolor = __c.Colors.White;
+ };
+ //BA.debugLineNum = 246;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\"";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
+ //BA.debugLineNum = 248;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery";
+_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 249;BA.debugLine="d5.Position = 0";
+_d5.setPosition((int) (0));
+ //BA.debugLineNum = 250;BA.debugLine="Private restacant As String = d5.GetString(\"PE";
+_restacant = _d5.GetString("PE_CANT");
+ //BA.debugLineNum = 251;BA.debugLine="d5.Close";
+_d5.Close();
+ //BA.debugLineNum = 253;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
+if (((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) {
+ //BA.debugLineNum = 254;BA.debugLine="If c2.RowCount > 0 Then";
+if (_c2.getRowCount()>0) {
+ //BA.debugLineNum = 255;BA.debugLine="c2.Position = 0";
+_c2.setPosition((int) (0));
+ //BA.debugLineNum = 256;BA.debugLine="Log(\"SI ENTRO A PONER CAJAS BIEN \")";
+__c.LogImpl("519595446","SI ENTRO A PONER CAJAS BIEN ",0);
+ //BA.debugLineNum = 257;BA.debugLine="Log(c2.GetString(\"PE_CAJAS\"))";
+__c.LogImpl("519595447",_c2.GetString("PE_CAJAS"),0);
+ //BA.debugLineNum = 258;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 259;BA.debugLine="Private resta As String = 0";
+_resta = BA.NumberToString(0);
+ //BA.debugLineNum = 261;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 263;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 264;BA.debugLine="resta = c3.GetString(\"PE_CANT\")";
+_resta = _c3.GetString("PE_CANT");
+ }else {
+ //BA.debugLineNum = 267;BA.debugLine="resta = 0";
+_resta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 269;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
+_puc = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC"))));
+ //BA.debugLineNum = 270;BA.debugLine="LogColor((restacant/Subs.traeConversion(c.Ge";
+__c.LogImpl("519595460",BA.NumberToString(((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),__c.Colors.Green);
+ //BA.debugLineNum = 271;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c.GetString("HVD_PRONOMBRE"),_puc,(int) (((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),(int) ((((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ }else {
+ //BA.debugLineNum = 273;BA.debugLine="Log(\"NO ENTRO A PONER CAJAS BIEN \")";
+__c.LogImpl("519595463","NO ENTRO A PONER CAJAS BIEN ",0);
+ //BA.debugLineNum = 274;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
+ //BA.debugLineNum = 275;BA.debugLine="Private resta As String = 0";
+_resta = BA.NumberToString(0);
+ //BA.debugLineNum = 277;BA.debugLine="If c3.RowCount > 0 Then";
+if (_c3.getRowCount()>0) {
+ //BA.debugLineNum = 279;BA.debugLine="c3.Position = 0";
+_c3.setPosition((int) (0));
+ //BA.debugLineNum = 280;BA.debugLine="resta = c3.GetString(\"PE_CANT\")";
+_resta = _c3.GetString("PE_CANT");
+ }else {
+ //BA.debugLineNum = 283;BA.debugLine="resta = 0";
+_resta = BA.NumberToString(0);
+ };
+ //BA.debugLineNum = 285;BA.debugLine="LogColor(resta,Colors.Green)";
+__c.LogImpl("519595475",_resta,__c.Colors.Green);
+ //BA.debugLineNum = 286;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
+_puc = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC"))));
+ //BA.debugLineNum = 288;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
+_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c.GetString("HVD_PRONOMBRE"),_puc,(int) (0),(int) ((((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
+ };
+ };
+ //BA.debugLineNum = 291;BA.debugLine="c2.Close";
+_c2.Close();
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 360;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{
+ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
+public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_productos parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_productos parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 374;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+parent._b4xpages._showpage /*String*/ (ba,"Cliente");
+ //BA.debugLineNum = 376;BA.debugLine="Return False";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
+ //BA.debugLineNum = 377;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 62;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 63;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 64;BA.debugLine="B4XPages.SetTitle(Me, \"Productos\")";
+_b4xpages._settitle /*String*/ (ba,this,(Object)("Productos"));
+ //BA.debugLineNum = 66;BA.debugLine="g.Initialize(\"GPS\")";
+_g.Initialize("GPS");
+ //BA.debugLineNum = 67;BA.debugLine="Root.LoadLayout(\"detalleVenta\")";
+_root.LoadLayout("detalleVenta",ba);
+ //BA.debugLineNum = 68;BA.debugLine="b_borra.Visible = False";
+_b_borra.setVisible(__c.False);
+ //BA.debugLineNum = 69;BA.debugLine="Titulo.Text = \"Pedido\"";
+_titulo.setText(BA.ObjectToCharSequence("Pedido"));
+ //BA.debugLineNum = 70;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS";
+_g = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String";
+_clie_id = "";
+ //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String";
+_usuario = "";
+ //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Dim b_regresar As Button";
+_b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView";
+_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label";
+_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label";
+_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button";
+_b_borra = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String";
+_existe = "";
+ //BA.debugLineNum = 16;BA.debugLine="Dim result As String";
+_result = "";
+ //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String";
+_cuantos = "";
+ //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String";
+_nombre_prod = "";
+ //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String";
+_cuantos_pedido = "";
+ //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label";
+_titulo = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel";
+_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView";
+_lv2 = new anywheresoftware.b4a.objects.ListViewWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel";
+_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView";
+_clv_pedido = new b4a.example3.customlistview();
+ //BA.debugLineNum = 26;BA.debugLine="Private p_prods As Panel";
+_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Private l_prodX As Label";
+_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 28;BA.debugLine="Private l_pCant As Label";
+_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Private et_pCant As EditText";
+_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 30;BA.debugLine="Dim bmp As Bitmap";
+_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False";
+_etcanthasfocus = __c.False;
+ //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0";
+_totalprods = (int) (0);
+ //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0";
+_totalcompra = (int) (0);
+ //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map";
+_prodsmap = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False";
+_reconstruirpedido = __c.False;
+ //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String";
+_promoaborrar = "";
+ //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button";
+_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 38;BA.debugLine="Private b_prodMas As Button";
+_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Private b_prodMenos As Button";
+_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 40;BA.debugLine="Private b_prodMenosC As Button";
+_b_prodmenosc = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 41;BA.debugLine="Private l_pCantC As Label";
+_l_pcantc = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 42;BA.debugLine="Private et_pCantC As EditText";
+_et_pcantc = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 43;BA.debugLine="Private b_prodMasC As Button";
+_b_prodmasc = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Private p_botMasMenC As Panel";
+_p_botmasmenc = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 45;BA.debugLine="Private p_botMasMen As Panel";
+_p_botmasmen = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 46;BA.debugLine="Private b_revversar As Button";
+_b_revversar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 47;BA.debugLine="Private Label2 As Label";
+_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 48;BA.debugLine="Private Label3 As Label";
+_label3 = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 49;BA.debugLine="Private l_piezas As Label";
+_l_piezas = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 50;BA.debugLine="Private l_cajas As Label";
+_l_cajas = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 52;BA.debugLine="Private l_cajas As Label";
+_l_cajas = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 53;BA.debugLine="Private l_piezas As Label";
+_l_piezas = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 54;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+ //BA.debugLineNum = 492;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
+ //BA.debugLineNum = 493;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 494;BA.debugLine="Private cs As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 495;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 496;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 497;BA.debugLine="p.LoadLayout(\"prodItem2\")";
+_p.LoadLayout("prodItem2",ba);
+ //BA.debugLineNum = 498;BA.debugLine="p_prods.Color = bc";
+_p_prods.setColor(_bc);
+ //BA.debugLineNum = 499;BA.debugLine="l_prodX.TextColor = tc";
+_l_prodx.setTextColor(_tc);
+ //BA.debugLineNum = 500;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
+_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+"");
+ //BA.debugLineNum = 501;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\"";
+_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou));
+ //BA.debugLineNum = 502;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
+if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 503;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
+_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject()));
+ };
+ //BA.debugLineNum = 505;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
+_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
+ //BA.debugLineNum = 508;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\"";
+_l_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 509;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
+_et_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 510;BA.debugLine="p_prods.Tag = l_pCant.tag";
+_p_prods.setTag(_l_pcant.getTag());
+ //BA.debugLineNum = 512;BA.debugLine="l_pCant.Text = inv";
+_l_pcant.setText(BA.ObjectToCharSequence(_inv));
+ //BA.debugLineNum = 516;BA.debugLine="l_pCant.BringToFront";
+_l_pcant.BringToFront();
+ //BA.debugLineNum = 517;BA.debugLine="et_pCant.SendToBack";
+_et_pcant.SendToBack();
+ //BA.debugLineNum = 518;BA.debugLine="p_botMasMenC.Visible = False";
+_p_botmasmenc.setVisible(__c.False);
+ //BA.debugLineNum = 519;BA.debugLine="l_cajas.Visible = False";
+_l_cajas.setVisible(__c.False);
+ //BA.debugLineNum = 521;BA.debugLine="Return p";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
+ //BA.debugLineNum = 522;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+ //BA.debugLineNum = 524;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
+ //BA.debugLineNum = 525;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 526;BA.debugLine="Private cs As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 527;BA.debugLine="cs.Initialize";
+_cs.Initialize();
+ //BA.debugLineNum = 528;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
+ //BA.debugLineNum = 529;BA.debugLine="p.LoadLayout(\"prodItem2\")";
+_p.LoadLayout("prodItem2",ba);
+ //BA.debugLineNum = 530;BA.debugLine="p_prods.Color = bc";
+_p_prods.setColor(_bc);
+ //BA.debugLineNum = 531;BA.debugLine="l_prodX.TextColor = tc";
+_l_prodx.setTextColor(_tc);
+ //BA.debugLineNum = 532;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
+_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+"");
+ //BA.debugLineNum = 533;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\"";
+_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou));
+ //BA.debugLineNum = 534;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
+if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 535;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
+_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject()));
+ };
+ //BA.debugLineNum = 538;BA.debugLine="Log(inv&\" inventario 1\")";
+__c.LogImpl("520054030",BA.NumberToString(_inv)+" inventario 1",0);
+ //BA.debugLineNum = 539;BA.debugLine="Log(inv2&\" inventario 2\")";
+__c.LogImpl("520054031",BA.NumberToString(_inv2)+" inventario 2",0);
+ //BA.debugLineNum = 540;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
+_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
+ //BA.debugLineNum = 542;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
+_l_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 543;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)";
+_et_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
+ //BA.debugLineNum = 544;BA.debugLine="p_prods.Tag = l_pCantC.tag";
+_p_prods.setTag(_l_pcantc.getTag());
+ //BA.debugLineNum = 546;BA.debugLine="l_pCantC.Text = NumberFormat2(inv,0,0,0,False)";
+_l_pcantc.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_inv,(int) (0),(int) (0),(int) (0),__c.False)));
+ //BA.debugLineNum = 550;BA.debugLine="l_pCantC.BringToFront";
+_l_pcantc.BringToFront();
+ //BA.debugLineNum = 551;BA.debugLine="et_pCantC.SendToBack";
+_et_pcantc.SendToBack();
+ //BA.debugLineNum = 552;BA.debugLine="p_botMasMen.Visible = False";
+_p_botmasmen.setVisible(__c.False);
+ //BA.debugLineNum = 553;BA.debugLine="l_piezas.Visible = False";
+_l_piezas.setVisible(__c.False);
+ //BA.debugLineNum = 555;BA.debugLine="Return p";
+if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
+ //BA.debugLineNum = 556;BA.debugLine="End Sub";
+return null;
+}
+public String _cuentaprods(String _accion) throws Exception{
+ //BA.debugLineNum = 927;BA.debugLine="Sub cuentaProds(accion As String)";
+ //BA.debugLineNum = 1089;BA.debugLine="End Sub";
+return "";
+}
+public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+ //BA.debugLineNum = 362;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 365;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 57;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 58;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 59;BA.debugLine="End Sub";
+return null;
+}
+public String _l_pcant_click() throws Exception{
+ //BA.debugLineNum = 1096;BA.debugLine="Private Sub l_pCant_Click";
+ //BA.debugLineNum = 1098;BA.debugLine="End Sub";
+return "";
+}
+public String _l_pcantc_click() throws Exception{
+ //BA.debugLineNum = 918;BA.debugLine="Private Sub l_pCantC_Click";
+ //BA.debugLineNum = 920;BA.debugLine="End Sub";
+return "";
+}
+public String _listview1_itemlongclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 379;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
+ //BA.debugLineNum = 423;BA.debugLine="End Sub";
+return "";
+}
+public String _lv2_itemclick(int _position,Object _value) throws Exception{
+ //BA.debugLineNum = 425;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec";
+ //BA.debugLineNum = 486;BA.debugLine="End Sub";
+return "";
+}
+public String _p_prods_click() throws Exception{
+ //BA.debugLineNum = 1100;BA.debugLine="Sub p_prods_Click";
+ //BA.debugLineNum = 1101;BA.debugLine="Log(Sender.As(Panel).tag)";
+__c.LogImpl("520709377",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
+ //BA.debugLineNum = 1102;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED"))
+ return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_tabulador.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_tabulador.java
new file mode 100644
index 0000000..a624cc8
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_tabulador.java
@@ -0,0 +1,302 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_tabulador extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_tabulador");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_tabulador.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_mil = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_quinientos = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_docientos = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_cien = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_cincuenta = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_veinte = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_m_veinte = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_m_diez = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_m_cinco = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_m_dos = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_m_peso = null;
+public anywheresoftware.b4a.objects.EditTextWrapper _et_m_centavo = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_calcular = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_guardar = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
+public int _sum_billetes = 0;
+public float _sum_monedas = 0f;
+public float _total = 0f;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b_calcular_click() throws Exception{
+ //BA.debugLineNum = 87;BA.debugLine="Private Sub b_calcular_Click";
+ //BA.debugLineNum = 88;BA.debugLine="If et_mil.Text = \"\" Then";
+if ((_et_mil.getText()).equals("")) {
+ //BA.debugLineNum = 89;BA.debugLine="et_mil.Text = 0";
+_et_mil.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 91;BA.debugLine="If et_quinientos.Text = \"\" Then";
+if ((_et_quinientos.getText()).equals("")) {
+ //BA.debugLineNum = 92;BA.debugLine="et_quinientos.Text = 0";
+_et_quinientos.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 94;BA.debugLine="If et_docientos.Text = \"\" Then";
+if ((_et_docientos.getText()).equals("")) {
+ //BA.debugLineNum = 95;BA.debugLine="et_docientos.Text = 0";
+_et_docientos.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 97;BA.debugLine="If et_cien.Text = \"\" Then";
+if ((_et_cien.getText()).equals("")) {
+ //BA.debugLineNum = 98;BA.debugLine="et_cien.Text = 0";
+_et_cien.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 100;BA.debugLine="If et_cincuenta.Text = \"\" Then";
+if ((_et_cincuenta.getText()).equals("")) {
+ //BA.debugLineNum = 101;BA.debugLine="et_cincuenta.Text = 0";
+_et_cincuenta.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 103;BA.debugLine="If et_veinte.Text = \"\" Then";
+if ((_et_veinte.getText()).equals("")) {
+ //BA.debugLineNum = 104;BA.debugLine="et_veinte.Text = 0";
+_et_veinte.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 106;BA.debugLine="If et_m_veinte.Text = \"\" Then";
+if ((_et_m_veinte.getText()).equals("")) {
+ //BA.debugLineNum = 107;BA.debugLine="et_m_veinte.Text = 0";
+_et_m_veinte.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 109;BA.debugLine="If et_m_diez.Text = \"\" Then";
+if ((_et_m_diez.getText()).equals("")) {
+ //BA.debugLineNum = 110;BA.debugLine="et_m_diez.Text = 0";
+_et_m_diez.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 112;BA.debugLine="If et_m_cinco.Text = \"\" Then";
+if ((_et_m_cinco.getText()).equals("")) {
+ //BA.debugLineNum = 113;BA.debugLine="et_m_cinco.Text = 0";
+_et_m_cinco.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 115;BA.debugLine="If et_m_dos.Text = \"\" Then";
+if ((_et_m_dos.getText()).equals("")) {
+ //BA.debugLineNum = 116;BA.debugLine="et_m_dos.Text = 0";
+_et_m_dos.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 118;BA.debugLine="If et_m_peso.Text = \"\" Then";
+if ((_et_m_peso.getText()).equals("")) {
+ //BA.debugLineNum = 119;BA.debugLine="et_m_peso.Text = 0";
+_et_m_peso.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 121;BA.debugLine="If et_m_centavo.Text = \"\" Then";
+if ((_et_m_centavo.getText()).equals("")) {
+ //BA.debugLineNum = 122;BA.debugLine="et_m_centavo.Text = 0";
+_et_m_centavo.setText(BA.ObjectToCharSequence(0));
+ };
+ //BA.debugLineNum = 124;BA.debugLine="sum_billetes = (et_mil.Text * 1000) + (et_quinien";
+_sum_billetes = (int) (((double)(Double.parseDouble(_et_mil.getText()))*1000)+((double)(Double.parseDouble(_et_quinientos.getText()))*500)+((double)(Double.parseDouble(_et_docientos.getText()))*200)+((double)(Double.parseDouble(_et_cien.getText()))*100)+((double)(Double.parseDouble(_et_cincuenta.getText()))*50)+((double)(Double.parseDouble(_et_veinte.getText()))*20));
+ //BA.debugLineNum = 125;BA.debugLine="sum_monedas = (et_m_veinte.Text * 20) + ( et_m_di";
+_sum_monedas = (float) (((double)(Double.parseDouble(_et_m_veinte.getText()))*20)+((double)(Double.parseDouble(_et_m_diez.getText()))*10)+((double)(Double.parseDouble(_et_m_cinco.getText()))*5)+((double)(Double.parseDouble(_et_m_dos.getText()))*2)+((double)(Double.parseDouble(_et_m_peso.getText()))*1)+((double)(Double.parseDouble(_et_m_centavo.getText()))*0.50));
+ //BA.debugLineNum = 126;BA.debugLine="total = sum_billetes + sum_monedas";
+_total = (float) (_sum_billetes+_sum_monedas);
+ //BA.debugLineNum = 127;BA.debugLine="l_total.Text = Round2(total, 2)";
+_l_total.setText(BA.ObjectToCharSequence(__c.Round2(_total,(int) (2))));
+ //BA.debugLineNum = 128;BA.debugLine="End Sub";
+return "";
+}
+public String _b_guardar_click() throws Exception{
+ //BA.debugLineNum = 78;BA.debugLine="Private Sub b_guardar_Click";
+ //BA.debugLineNum = 79;BA.debugLine="b_calcular_Click";
+_b_calcular_click();
+ //BA.debugLineNum = 80;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADOR_";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS");
+ //BA.debugLineNum = 81;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADOR_";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES");
+ //BA.debugLineNum = 82;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO TABULADOR";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO TABULADOR_BILLETES (MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_et_mil.getText()),(Object)(_et_quinientos.getText()),(Object)(_et_docientos.getText()),(Object)(_et_cien.getText()),(Object)(_et_cincuenta.getText()),(Object)(_et_veinte.getText())}));
+ //BA.debugLineNum = 83;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO TABULADOR";
+_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO TABULADOR_MONEDAS (VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_et_m_veinte.getText()),(Object)(_et_m_diez.getText()),(Object)(_et_m_cinco.getText()),(Object)(_et_m_dos.getText()),(Object)(_et_m_peso.getText()),(Object)(_et_m_centavo.getText()),(Object)(_l_total.getText())}));
+ //BA.debugLineNum = 84;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+_b4xpages._showpage /*String*/ (ba,"Principal");
+ //BA.debugLineNum = 85;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_appear() throws Exception{
+ //BA.debugLineNum = 38;BA.debugLine="Sub B4XPage_Appear";
+ //BA.debugLineNum = 39;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,";
+_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS")));
+ //BA.debugLineNum = 40;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES")));
+ //BA.debugLineNum = 41;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 42;BA.debugLine="d.Position = 0";
+_d.setPosition((int) (0));
+ //BA.debugLineNum = 43;BA.debugLine="If c.RowCount > 0 And d.RowCount > 0 Then";
+if (_c.getRowCount()>0 && _d.getRowCount()>0) {
+ //BA.debugLineNum = 44;BA.debugLine="Log(\"TABULADR CON RESUKTADO\")";
+__c.LogImpl("520971526","TABULADR CON RESUKTADO",0);
+ //BA.debugLineNum = 45;BA.debugLine="et_mil.Text = c.GetString(\"MIL\")";
+_et_mil.setText(BA.ObjectToCharSequence(_c.GetString("MIL")));
+ //BA.debugLineNum = 46;BA.debugLine="et_quinientos.Text = c.GetString(\"QUINIENTOS\")";
+_et_quinientos.setText(BA.ObjectToCharSequence(_c.GetString("QUINIENTOS")));
+ //BA.debugLineNum = 47;BA.debugLine="et_docientos.Text = c.GetString(\"DOCIENTOS\")";
+_et_docientos.setText(BA.ObjectToCharSequence(_c.GetString("DOCIENTOS")));
+ //BA.debugLineNum = 48;BA.debugLine="et_cien.Text = c.GetString(\"CIEN\")";
+_et_cien.setText(BA.ObjectToCharSequence(_c.GetString("CIEN")));
+ //BA.debugLineNum = 49;BA.debugLine="et_cincuenta.Text = c.GetString(\"CINCUENTA\")";
+_et_cincuenta.setText(BA.ObjectToCharSequence(_c.GetString("CINCUENTA")));
+ //BA.debugLineNum = 50;BA.debugLine="et_veinte.Text = c.GetString(\"VEINTE\")";
+_et_veinte.setText(BA.ObjectToCharSequence(_c.GetString("VEINTE")));
+ //BA.debugLineNum = 51;BA.debugLine="et_m_veinte.Text = d.GetString(\"VEINTE\")";
+_et_m_veinte.setText(BA.ObjectToCharSequence(_d.GetString("VEINTE")));
+ //BA.debugLineNum = 52;BA.debugLine="et_m_diez.Text = d.GetString(\"DIEZ\")";
+_et_m_diez.setText(BA.ObjectToCharSequence(_d.GetString("DIEZ")));
+ //BA.debugLineNum = 53;BA.debugLine="et_m_cinco.Text = d.GetString(\"CINCO\")";
+_et_m_cinco.setText(BA.ObjectToCharSequence(_d.GetString("CINCO")));
+ //BA.debugLineNum = 54;BA.debugLine="et_m_dos.Text = d.GetString(\"DOS\")";
+_et_m_dos.setText(BA.ObjectToCharSequence(_d.GetString("DOS")));
+ //BA.debugLineNum = 55;BA.debugLine="et_m_peso.Text = d.GetString(\"PESO\")";
+_et_m_peso.setText(BA.ObjectToCharSequence(_d.GetString("PESO")));
+ //BA.debugLineNum = 56;BA.debugLine="et_m_centavo.Text = d.GetString(\"CENTAVO\")";
+_et_m_centavo.setText(BA.ObjectToCharSequence(_d.GetString("CENTAVO")));
+ //BA.debugLineNum = 57;BA.debugLine="l_total.Text = d.GetString(\"TOTAL\")";
+_l_total.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL")));
+ }else if(_c.getRowCount()==0 && _d.getRowCount()==0) {
+ //BA.debugLineNum = 59;BA.debugLine="Log(\"TABULADR SIN RESUKTADO\")";
+__c.LogImpl("520971541","TABULADR SIN RESUKTADO",0);
+ //BA.debugLineNum = 60;BA.debugLine="et_mil.Text = \"\"";
+_et_mil.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 61;BA.debugLine="et_quinientos.Text = \"\"";
+_et_quinientos.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 62;BA.debugLine="et_docientos.Text = \"\"";
+_et_docientos.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 63;BA.debugLine="et_cien.Text = \"\"";
+_et_cien.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 64;BA.debugLine="et_cincuenta.Text = \"\"";
+_et_cincuenta.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 65;BA.debugLine="et_veinte.Text = \"\"";
+_et_veinte.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 66;BA.debugLine="et_m_veinte.Text = \"\"";
+_et_m_veinte.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 67;BA.debugLine="et_m_diez.Text = \"\"";
+_et_m_diez.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 68;BA.debugLine="et_m_cinco.Text = \"\"";
+_et_m_cinco.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 69;BA.debugLine="et_m_dos.Text = \"\"";
+_et_m_dos.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 70;BA.debugLine="et_m_peso.Text = \"\"";
+_et_m_peso.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 71;BA.debugLine="et_m_centavo.Text = \"\"";
+_et_m_centavo.setText(BA.ObjectToCharSequence(""));
+ //BA.debugLineNum = 72;BA.debugLine="l_total.Text = \"\"";
+_l_total.setText(BA.ObjectToCharSequence(""));
+ };
+ //BA.debugLineNum = 74;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 75;BA.debugLine="d.Close";
+_d.Close();
+ //BA.debugLineNum = 76;BA.debugLine="End Sub";
+return "";
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 32;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 33;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 35;BA.debugLine="Root.LoadLayout(\"tabulador\")";
+_root.LoadLayout("tabulador",ba);
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="Private et_mil As EditText";
+_et_mil = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 5;BA.debugLine="Private et_quinientos As EditText";
+_et_quinientos = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 6;BA.debugLine="Private et_docientos As EditText";
+_et_docientos = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 7;BA.debugLine="Private et_cien As EditText";
+_et_cien = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 8;BA.debugLine="Private et_cincuenta As EditText";
+_et_cincuenta = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Private et_veinte As EditText";
+_et_veinte = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Private et_m_veinte As EditText";
+_et_m_veinte = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Private et_m_diez As EditText";
+_et_m_diez = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Private et_m_cinco As EditText";
+_et_m_cinco = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Private et_m_dos As EditText";
+_et_m_dos = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Private et_m_peso As EditText";
+_et_m_peso = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Private et_m_centavo As EditText";
+_et_m_centavo = new anywheresoftware.b4a.objects.EditTextWrapper();
+ //BA.debugLineNum = 16;BA.debugLine="Private b_calcular As Button";
+_b_calcular = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 17;BA.debugLine="Private b_guardar As Button";
+_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 18;BA.debugLine="Private l_total As Label";
+_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Dim sum_billetes As Int";
+_sum_billetes = 0;
+ //BA.debugLineNum = 20;BA.debugLine="Dim sum_monedas As Float";
+_sum_monedas = 0f;
+ //BA.debugLineNum = 21;BA.debugLine="Dim total As Float";
+_total = 0f;
+ //BA.debugLineNum = 22;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 23;BA.debugLine="Dim d As Cursor";
+_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 27;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 28;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_ticketsdia.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_ticketsdia.java
new file mode 100644
index 0000000..49c1be0
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_ticketsdia.java
@@ -0,0 +1,73 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_ticketsdia extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_ticketsdia");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_ticketsdia.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 13;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 16;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 8;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return null;
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_updateavailable.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_updateavailable.java
new file mode 100644
index 0000000..5736afa
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_updateavailable.java
@@ -0,0 +1,252 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class c_updateavailable extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_updateavailable");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_updateavailable.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public void _b4xpage_appear() throws Exception{
+ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
+public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.c_updateavailable parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.c_updateavailable parent;
+int _result = 0;
+anywheresoftware.b4a.objects.IntentWrapper _in = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+try {
+
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 19;BA.debugLine="Try";
+if (true) break;
+
+case 1:
+//try
+this.state = 10;
+this.catchState = 9;
+this.state = 3;
+if (true) break;
+
+case 3:
+//C
+this.state = 4;
+this.catchState = 9;
+ //BA.debugLineNum = 20;BA.debugLine="Do While Not(CanRequestPackageInstalls)";
+if (true) break;
+
+case 4:
+//do while
+this.state = 7;
+while (parent.__c.Not(parent._canrequestpackageinstalls())) {
+this.state = 6;
+if (true) break;
+}
+if (true) break;
+
+case 6:
+//C
+this.state = 4;
+ //BA.debugLineNum = 21;BA.debugLine="MsgboxAsync($\"Por favor permita que ${Applicati";
+parent.__c.MsgboxAsync(BA.ObjectToCharSequence(("Por favor permita que "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.Application.getPackageName()))+" instale actualizaciones")),BA.ObjectToCharSequence("Instalar actualización"),ba);
+ //BA.debugLineNum = 22;BA.debugLine="Wait For Msgbox_Result(Result As Int)";
+parent.__c.WaitFor("msgbox_result", ba, this, null);
+this.state = 16;
+return;
+case 16:
+//C
+this.state = 4;
+_result = (Integer) result[0];
+;
+ //BA.debugLineNum = 23;BA.debugLine="Dim in As Intent";
+_in = new anywheresoftware.b4a.objects.IntentWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="in.Initialize(\"android.settings.MANAGE_UNKNOWN_";
+_in.Initialize("android.settings.MANAGE_UNKNOWN_APP_SOURCES","package:"+parent.__c.Application.getPackageName());
+ //BA.debugLineNum = 25;BA.debugLine="StartActivity(in)";
+parent.__c.StartActivity(ba,(Object)(_in.getObject()));
+ if (true) break;
+
+case 7:
+//C
+this.state = 10;
+;
+ if (true) break;
+
+case 9:
+//C
+this.state = 10;
+this.catchState = 0;
+ //BA.debugLineNum = 28;BA.debugLine="Log(\"updateAvailable() Error - \" & LastException";
+parent.__c.LogImpl("521561354","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0);
+ if (true) break;
+if (true) break;
+;
+ //BA.debugLineNum = 30;BA.debugLine="If appUpdater.newApp.update Then";
+
+case 10:
+//if
+this.state = 15;
+this.catchState = 0;
+if (parent._appupdater._newapp /*reparto_izca.keymon.lat.appupdater._mnewversion*/ .update /*boolean*/ ) {
+this.state = 12;
+}else {
+this.state = 14;
+}if (true) break;
+
+case 12:
+//C
+this.state = 15;
+ //BA.debugLineNum = 31;BA.debugLine="ofreceActualizacion";
+parent._ofreceactualizacion();
+ if (true) break;
+
+case 14:
+//C
+this.state = 15;
+ //BA.debugLineNum = 33;BA.debugLine="sinActualizacion";
+parent._sinactualizacion();
+ if (true) break;
+
+case 15:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+if (true) break;
+}}
+ catch (Exception e0) {
+
+if (catchState == 0)
+ throw e0;
+else {
+ state = catchState;
+ba.setLastException(e0);}
+ }
+ }
+ }
+}
+public void _msgbox_result(int _result) throws Exception{
+}
+public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
+ //BA.debugLineNum = 13;BA.debugLine="Root = Root1";
+_root = _root1;
+ //BA.debugLineNum = 15;BA.debugLine="Root.Color = Colors.Transparent";
+_root.setColor(__c.Colors.Transparent);
+ //BA.debugLineNum = 16;BA.debugLine="End Sub";
+return "";
+}
+public boolean _canrequestpackageinstalls() throws Exception{
+anywheresoftware.b4j.object.JavaObject _ctxt = null;
+anywheresoftware.b4j.object.JavaObject _packagemanager = null;
+ //BA.debugLineNum = 43;BA.debugLine="public Sub CanRequestPackageInstalls As Boolean";
+ //BA.debugLineNum = 45;BA.debugLine="Dim ctxt As JavaObject";
+_ctxt = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 46;BA.debugLine="ctxt.InitializeContext";
+_ctxt.InitializeContext(ba);
+ //BA.debugLineNum = 47;BA.debugLine="Dim PackageManager As JavaObject = ctxt.RunMethod";
+_packagemanager = new anywheresoftware.b4j.object.JavaObject();
+_packagemanager = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_ctxt.RunMethod("getPackageManager",(Object[])(__c.Null))));
+ //BA.debugLineNum = 48;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag";
+if (true) return BA.ObjectToBoolean(_packagemanager.RunMethod("canRequestPackageInstalls",(Object[])(__c.Null)));
+ //BA.debugLineNum = 49;BA.debugLine="End Sub";
+return false;
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
+_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 4;BA.debugLine="End Sub";
+return "";
+}
+public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object";
+ //BA.debugLineNum = 8;BA.debugLine="Return Me";
+if (true) return this;
+ //BA.debugLineNum = 9;BA.debugLine="End Sub";
+return null;
+}
+public String _ofreceactualizacion() throws Exception{
+ //BA.debugLineNum = 51;BA.debugLine="Sub ofreceActualizacion";
+ //BA.debugLineNum = 52;BA.debugLine="If Msgbox2(appUpdater.newApp.newMsg,\"Actualizació";
+if (__c.Msgbox2(BA.ObjectToCharSequence(_appupdater._newapp /*reparto_izca.keymon.lat.appupdater._mnewversion*/ .newMsg /*String*/ ),BA.ObjectToCharSequence("Actualización disponible"),"Si","","No",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) {
+ //BA.debugLineNum = 54;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
+__c.CallSubDelayed(ba,(Object)(_appupdater.getObject()),"download_newApk");
+ };
+ //BA.debugLineNum = 57;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ ();
+ //BA.debugLineNum = 58;BA.debugLine="StartActivity(Main)";
+__c.StartActivity(ba,(Object)(_main.getObject()));
+ //BA.debugLineNum = 60;BA.debugLine="B4XPages.ShowPage(\"Login\")";
+_b4xpages._showpage /*String*/ (ba,"Login");
+ //BA.debugLineNum = 61;BA.debugLine="End Sub";
+return "";
+}
+public String _sinactualizacion() throws Exception{
+ //BA.debugLineNum = 63;BA.debugLine="Sub sinActualizacion";
+ //BA.debugLineNum = 64;BA.debugLine="Msgbox(appUpdater.newApp.okMsg, \"Aplicación al co";
+__c.Msgbox(BA.ObjectToCharSequence(_appupdater._newapp /*reparto_izca.keymon.lat.appupdater._mnewversion*/ .okMsg /*String*/ ),BA.ObjectToCharSequence("Aplicación al corriente"),ba);
+ //BA.debugLineNum = 66;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ ();
+ //BA.debugLineNum = 67;BA.debugLine="B4XPages.ShowPage(\"Login\")";
+_b4xpages._showpage /*String*/ (ba,"Login");
+ //BA.debugLineNum = 68;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
+ return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/cameraexclass.java b/B4A/Objects/src/reparto_izca/keymon/lat/cameraexclass.java
new file mode 100644
index 0000000..79b1400
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/cameraexclass.java
@@ -0,0 +1,622 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class cameraexclass extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.cameraexclass");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.cameraexclass.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public Object _nativecam = null;
+public anywheresoftware.b4a.objects.CameraW _cam = null;
+public anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
+public Object _target = null;
+public String _event = "";
+public boolean _front = false;
+public Object _parameters = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _camerainfoandid{
+public boolean IsInitialized;
+public Object CameraInfo;
+public int Id;
+public void Initialize() {
+IsInitialized = true;
+CameraInfo = new Object();
+Id = 0;
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public static class _camerasize{
+public boolean IsInitialized;
+public int Width;
+public int Height;
+public void Initialize() {
+IsInitialized = true;
+Width = 0;
+Height = 0;
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public String _camera_focusdone(boolean _success) throws Exception{
+ //BA.debugLineNum = 275;BA.debugLine="Private Sub Camera_FocusDone (Success As Boolean)";
+ //BA.debugLineNum = 276;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 277;BA.debugLine="TakePicture";
+_takepicture();
+ }else {
+ //BA.debugLineNum = 279;BA.debugLine="Log(\"AutoFocus error.\")";
+__c.LogImpl("523986180","AutoFocus error.",0);
+ };
+ //BA.debugLineNum = 281;BA.debugLine="End Sub";
+return "";
+}
+public String _camera_picturetaken(byte[] _data) throws Exception{
+ //BA.debugLineNum = 104;BA.debugLine="Private Sub Camera_PictureTaken (Data() As Byte)";
+ //BA.debugLineNum = 105;BA.debugLine="CallSub2(target, event & \"_PictureTaken\", Data)";
+__c.CallSubNew2(ba,_target,_event+"_PictureTaken",(Object)(_data));
+ //BA.debugLineNum = 106;BA.debugLine="End Sub";
+return "";
+}
+public String _camera_preview(byte[] _data) throws Exception{
+ //BA.debugLineNum = 95;BA.debugLine="Sub Camera_Preview (Data() As Byte)";
+ //BA.debugLineNum = 96;BA.debugLine="If SubExists(target, event & \"_preview\") Then";
+if (__c.SubExists(ba,_target,_event+"_preview")) {
+ //BA.debugLineNum = 97;BA.debugLine="CallSub2(target, event & \"_preview\", Data)";
+__c.CallSubNew2(ba,_target,_event+"_preview",(Object)(_data));
+ };
+ //BA.debugLineNum = 99;BA.debugLine="End Sub";
+return "";
+}
+public String _camera_ready(boolean _success) throws Exception{
+ //BA.debugLineNum = 82;BA.debugLine="Private Sub Camera_Ready (Success As Boolean)";
+ //BA.debugLineNum = 83;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 84;BA.debugLine="r.target = cam";
+_r.Target = (Object)(_cam);
+ //BA.debugLineNum = 85;BA.debugLine="nativeCam = r.GetField(\"camera\")";
+_nativecam = _r.GetField("camera");
+ //BA.debugLineNum = 86;BA.debugLine="r.target = nativeCam";
+_r.Target = _nativecam;
+ //BA.debugLineNum = 87;BA.debugLine="parameters = r.RunMethod(\"getParameters\")";
+_parameters = _r.RunMethod("getParameters");
+ //BA.debugLineNum = 88;BA.debugLine="SetDisplayOrientation";
+_setdisplayorientation();
+ }else {
+ //BA.debugLineNum = 90;BA.debugLine="Log(\"success = false, \" & LastException)";
+__c.LogImpl("522085640","success = false, "+BA.ObjectToString(__c.LastException(ba)),0);
+ };
+ //BA.debugLineNum = 92;BA.debugLine="CallSub2(target, event & \"_ready\", Success)";
+__c.CallSubNew2(ba,_target,_event+"_ready",(Object)(_success));
+ //BA.debugLineNum = 93;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 7;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Private nativeCam As Object";
+_nativecam = new Object();
+ //BA.debugLineNum = 9;BA.debugLine="Private cam As Camera";
+_cam = new anywheresoftware.b4a.objects.CameraW();
+ //BA.debugLineNum = 10;BA.debugLine="Private r As Reflector";
+_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
+ //BA.debugLineNum = 11;BA.debugLine="Private target As Object";
+_target = new Object();
+ //BA.debugLineNum = 12;BA.debugLine="Private event As String";
+_event = "";
+ //BA.debugLineNum = 13;BA.debugLine="Public Front As Boolean";
+_front = false;
+ //BA.debugLineNum = 14;BA.debugLine="Type CameraInfoAndId (CameraInfo As Object, Id As";
+;
+ //BA.debugLineNum = 15;BA.debugLine="Type CameraSize (Width As Int, Height As Int)";
+;
+ //BA.debugLineNum = 16;BA.debugLine="Private parameters As Object";
+_parameters = new Object();
+ //BA.debugLineNum = 17;BA.debugLine="End Sub";
+return "";
+}
+public String _closenow() throws Exception{
+ //BA.debugLineNum = 266;BA.debugLine="Public Sub CloseNow";
+ //BA.debugLineNum = 267;BA.debugLine="cam.Release";
+_cam.Release();
+ //BA.debugLineNum = 268;BA.debugLine="r.target = cam";
+_r.Target = (Object)(_cam);
+ //BA.debugLineNum = 269;BA.debugLine="r.RunMethod2(\"releaseCameras\", True, \"java.lang.b";
+_r.RunMethod2("releaseCameras",BA.ObjectToString(__c.True),"java.lang.boolean");
+ //BA.debugLineNum = 270;BA.debugLine="End Sub";
+return "";
+}
+public String _commitparameters() throws Exception{
+ //BA.debugLineNum = 137;BA.debugLine="Public Sub CommitParameters";
+ //BA.debugLineNum = 138;BA.debugLine="Try";
+try { //BA.debugLineNum = 139;BA.debugLine="r.target = nativeCam";
+_r.Target = _nativecam;
+ //BA.debugLineNum = 140;BA.debugLine="r.RunMethod4(\"setParameters\", Array As Object(pa";
+_r.RunMethod4("setParameters",new Object[]{_parameters},new String[]{"android.hardware.Camera$Parameters"});
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 142;BA.debugLine="ToastMessageShow(\"Error setting parameters.\", Tr";
+__c.ToastMessageShow(BA.ObjectToCharSequence("Error setting parameters."),__c.True);
+ //BA.debugLineNum = 143;BA.debugLine="Log(LastException)";
+__c.LogImpl("522740998",BA.ObjectToString(__c.LastException(ba)),0);
+ };
+ //BA.debugLineNum = 145;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.cameraexclass._camerainfoandid _findcamera(boolean _frontcamera) throws Exception{
+reparto_izca.keymon.lat.cameraexclass._camerainfoandid _ci = null;
+Object _camerainfo = null;
+int _cameravalue = 0;
+int _numberofcameras = 0;
+int _i = 0;
+ //BA.debugLineNum = 36;BA.debugLine="Private Sub FindCamera (frontCamera As Boolean) As";
+ //BA.debugLineNum = 37;BA.debugLine="Dim ci As CameraInfoAndId";
+_ci = new reparto_izca.keymon.lat.cameraexclass._camerainfoandid();
+ //BA.debugLineNum = 38;BA.debugLine="Dim cameraInfo As Object";
+_camerainfo = new Object();
+ //BA.debugLineNum = 39;BA.debugLine="Dim cameraValue As Int";
+_cameravalue = 0;
+ //BA.debugLineNum = 40;BA.debugLine="If frontCamera Then cameraValue = 1 Else cameraVa";
+if (_frontcamera) {
+_cameravalue = (int) (1);}
+else {
+_cameravalue = (int) (0);};
+ //BA.debugLineNum = 41;BA.debugLine="cameraInfo = r.CreateObject(\"android.hardware.Cam";
+_camerainfo = _r.CreateObject("android.hardware.Camera$CameraInfo");
+ //BA.debugLineNum = 42;BA.debugLine="Dim numberOfCameras As Int = r.RunStaticMethod(\"a";
+_numberofcameras = (int)(BA.ObjectToNumber(_r.RunStaticMethod("android.hardware.Camera","getNumberOfCameras",(Object[])(__c.Null),(String[])(__c.Null))));
+ //BA.debugLineNum = 43;BA.debugLine="For i = 0 To numberOfCameras - 1";
+{
+final int step7 = 1;
+final int limit7 = (int) (_numberofcameras-1);
+_i = (int) (0) ;
+for (;_i <= limit7 ;_i = _i + step7 ) {
+ //BA.debugLineNum = 44;BA.debugLine="r.RunStaticMethod(\"android.hardware.Camera\", \"ge";
+_r.RunStaticMethod("android.hardware.Camera","getCameraInfo",new Object[]{(Object)(_i),_camerainfo},new String[]{"java.lang.int","android.hardware.Camera$CameraInfo"});
+ //BA.debugLineNum = 46;BA.debugLine="r.target = cameraInfo";
+_r.Target = _camerainfo;
+ //BA.debugLineNum = 47;BA.debugLine="If r.GetField(\"facing\") = cameraValue Then";
+if ((_r.GetField("facing")).equals((Object)(_cameravalue))) {
+ //BA.debugLineNum = 48;BA.debugLine="ci.cameraInfo = r.target";
+_ci.CameraInfo /*Object*/ = _r.Target;
+ //BA.debugLineNum = 49;BA.debugLine="ci.Id = i";
+_ci.Id /*int*/ = _i;
+ //BA.debugLineNum = 50;BA.debugLine="Return ci";
+if (true) return _ci;
+ };
+ }
+};
+ //BA.debugLineNum = 53;BA.debugLine="ci.id = -1";
+_ci.Id /*int*/ = (int) (-1);
+ //BA.debugLineNum = 54;BA.debugLine="Return ci";
+if (true) return _ci;
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return null;
+}
+public String _focusandtakepicture() throws Exception{
+ //BA.debugLineNum = 272;BA.debugLine="Public Sub FocusAndTakePicture";
+ //BA.debugLineNum = 273;BA.debugLine="cam.AutoFocus";
+_cam.AutoFocus();
+ //BA.debugLineNum = 274;BA.debugLine="End Sub";
+return "";
+}
+public String _getcoloreffect() throws Exception{
+ //BA.debugLineNum = 147;BA.debugLine="Public Sub GetColorEffect As String";
+ //BA.debugLineNum = 148;BA.debugLine="Return GetParameter(\"effect\")";
+if (true) return _getparameter("effect");
+ //BA.debugLineNum = 149;BA.debugLine="End Sub";
+return "";
+}
+public String _getflashmode() throws Exception{
+ //BA.debugLineNum = 182;BA.debugLine="Public Sub GetFlashMode As String";
+ //BA.debugLineNum = 183;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 184;BA.debugLine="Return r.RunMethod(\"getFlashMode\")";
+if (true) return BA.ObjectToString(_r.RunMethod("getFlashMode"));
+ //BA.debugLineNum = 185;BA.debugLine="End Sub";
+return "";
+}
+public float[] _getfocusdistances() throws Exception{
+float[] _f = null;
+ //BA.debugLineNum = 258;BA.debugLine="Public Sub GetFocusDistances As Float()";
+ //BA.debugLineNum = 259;BA.debugLine="Dim F(3) As Float";
+_f = new float[(int) (3)];
+;
+ //BA.debugLineNum = 260;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 261;BA.debugLine="r.RunMethod4(\"getFocusDistances\", Array As Object";
+_r.RunMethod4("getFocusDistances",new Object[]{(Object)(_f)},new String[]{"[F"});
+ //BA.debugLineNum = 262;BA.debugLine="Return F";
+if (true) return _f;
+ //BA.debugLineNum = 263;BA.debugLine="End Sub";
+return null;
+}
+public String _getparameter(String _key) throws Exception{
+ //BA.debugLineNum = 132;BA.debugLine="Public Sub GetParameter(Key As String) As String";
+ //BA.debugLineNum = 133;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 134;BA.debugLine="Return r.RunMethod2(\"get\", Key, \"java.lang.String";
+if (true) return BA.ObjectToString(_r.RunMethod2("get",_key,"java.lang.String"));
+ //BA.debugLineNum = 135;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.cameraexclass._camerasize _getpicturesize() throws Exception{
+reparto_izca.keymon.lat.cameraexclass._camerasize _cs = null;
+ //BA.debugLineNum = 206;BA.debugLine="Public Sub GetPictureSize As CameraSize";
+ //BA.debugLineNum = 207;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 208;BA.debugLine="r.target = r.RunMethod(\"getPictureSize\")";
+_r.Target = _r.RunMethod("getPictureSize");
+ //BA.debugLineNum = 209;BA.debugLine="Dim cs As CameraSize";
+_cs = new reparto_izca.keymon.lat.cameraexclass._camerasize();
+ //BA.debugLineNum = 210;BA.debugLine="cs.Width = r.GetField(\"width\")";
+_cs.Width /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("width")));
+ //BA.debugLineNum = 211;BA.debugLine="cs.Height = r.GetField(\"height\")";
+_cs.Height /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("height")));
+ //BA.debugLineNum = 212;BA.debugLine="Return cs";
+if (true) return _cs;
+ //BA.debugLineNum = 213;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.cameraexclass._camerasize _getpreviewsize() throws Exception{
+reparto_izca.keymon.lat.cameraexclass._camerasize _cs = null;
+ //BA.debugLineNum = 197;BA.debugLine="Public Sub GetPreviewSize As CameraSize";
+ //BA.debugLineNum = 198;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 199;BA.debugLine="r.target = r.RunMethod(\"getPreviewSize\")";
+_r.Target = _r.RunMethod("getPreviewSize");
+ //BA.debugLineNum = 200;BA.debugLine="Dim cs As CameraSize";
+_cs = new reparto_izca.keymon.lat.cameraexclass._camerasize();
+ //BA.debugLineNum = 201;BA.debugLine="cs.Width = r.GetField(\"width\")";
+_cs.Width /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("width")));
+ //BA.debugLineNum = 202;BA.debugLine="cs.Height = r.GetField(\"height\")";
+_cs.Height /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("height")));
+ //BA.debugLineNum = 203;BA.debugLine="Return cs";
+if (true) return _cs;
+ //BA.debugLineNum = 204;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.collections.List _getsupportedcoloreffects() throws Exception{
+ //BA.debugLineNum = 192;BA.debugLine="Public Sub GetSupportedColorEffects As List";
+ //BA.debugLineNum = 193;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 194;BA.debugLine="Return r.RunMethod(\"getSupportedColorEffects\")";
+if (true) return (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_r.RunMethod("getSupportedColorEffects")));
+ //BA.debugLineNum = 195;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.collections.List _getsupportedflashmodes() throws Exception{
+ //BA.debugLineNum = 187;BA.debugLine="Public Sub GetSupportedFlashModes As List";
+ //BA.debugLineNum = 188;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 189;BA.debugLine="Return r.RunMethod(\"getSupportedFlashModes\")";
+if (true) return (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_r.RunMethod("getSupportedFlashModes")));
+ //BA.debugLineNum = 190;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.collections.List _getsupportedfocusmodes() throws Exception{
+ //BA.debugLineNum = 237;BA.debugLine="Public Sub GetSupportedFocusModes As List";
+ //BA.debugLineNum = 238;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 239;BA.debugLine="Return r.RunMethod(\"getSupportedFocusModes\")";
+if (true) return (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_r.RunMethod("getSupportedFocusModes")));
+ //BA.debugLineNum = 240;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.cameraexclass._camerasize[] _getsupportedpicturessizes() throws Exception{
+anywheresoftware.b4a.objects.collections.List _list1 = null;
+reparto_izca.keymon.lat.cameraexclass._camerasize[] _cs = null;
+int _i = 0;
+ //BA.debugLineNum = 155;BA.debugLine="Public Sub GetSupportedPicturesSizes As CameraSize";
+ //BA.debugLineNum = 156;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 157;BA.debugLine="Dim list1 As List = r.RunMethod(\"getSupportedPict";
+_list1 = new anywheresoftware.b4a.objects.collections.List();
+_list1 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_r.RunMethod("getSupportedPictureSizes")));
+ //BA.debugLineNum = 158;BA.debugLine="Dim cs(list1.Size) As CameraSize";
+_cs = new reparto_izca.keymon.lat.cameraexclass._camerasize[_list1.getSize()];
+{
+int d0 = _cs.length;
+for (int i0 = 0;i0 < d0;i0++) {
+_cs[i0] = new reparto_izca.keymon.lat.cameraexclass._camerasize();
+}
+}
+;
+ //BA.debugLineNum = 159;BA.debugLine="For i = 0 To list1.Size - 1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_list1.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 160;BA.debugLine="r.target = list1.Get(i)";
+_r.Target = _list1.Get(_i);
+ //BA.debugLineNum = 161;BA.debugLine="cs(i).Width = r.GetField(\"width\")";
+_cs[_i].Width /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("width")));
+ //BA.debugLineNum = 162;BA.debugLine="cs(i).Height = r.GetField(\"height\")";
+_cs[_i].Height /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("height")));
+ }
+};
+ //BA.debugLineNum = 164;BA.debugLine="Return cs";
+if (true) return _cs;
+ //BA.debugLineNum = 165;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _panel1,boolean _frontcamera,Object _targetmodule,String _eventname) throws Exception{
+innerInitialize(_ba);
+int _id = 0;
+ //BA.debugLineNum = 19;BA.debugLine="Public Sub Initialize (Panel1 As Panel, FrontCamer";
+ //BA.debugLineNum = 20;BA.debugLine="target = TargetModule";
+_target = _targetmodule;
+ //BA.debugLineNum = 21;BA.debugLine="event = EventName";
+_event = _eventname;
+ //BA.debugLineNum = 22;BA.debugLine="Front = FrontCamera";
+_front = _frontcamera;
+ //BA.debugLineNum = 23;BA.debugLine="Dim id As Int";
+_id = 0;
+ //BA.debugLineNum = 24;BA.debugLine="id = FindCamera(Front).id";
+_id = _findcamera(_front).Id /*int*/ ;
+ //BA.debugLineNum = 25;BA.debugLine="If id = -1 Then";
+if (_id==-1) {
+ //BA.debugLineNum = 26;BA.debugLine="Front = Not(Front) 'try different camera";
+_front = __c.Not(_front);
+ //BA.debugLineNum = 27;BA.debugLine="id = FindCamera(Front).id";
+_id = _findcamera(_front).Id /*int*/ ;
+ //BA.debugLineNum = 28;BA.debugLine="If id = -1 Then";
+if (_id==-1) {
+ //BA.debugLineNum = 29;BA.debugLine="ToastMessageShow(\"No camera found.\", True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence("No camera found."),__c.True);
+ //BA.debugLineNum = 30;BA.debugLine="Return";
+if (true) return "";
+ };
+ };
+ //BA.debugLineNum = 33;BA.debugLine="cam.Initialize2(Panel1, \"camera\", id)";
+_cam.Initialize2(ba,(android.view.ViewGroup)(_panel1.getObject()),"camera",_id);
+ //BA.debugLineNum = 34;BA.debugLine="End Sub";
+return "";
+}
+public byte[] _previewimagetojpeg(byte[] _data,int _quality) throws Exception{
+Object _size = null;
+Object _previewformat = null;
+int _width = 0;
+int _height = 0;
+Object _yuvimage = null;
+anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper _rect1 = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+ //BA.debugLineNum = 217;BA.debugLine="Public Sub PreviewImageToJpeg(data() As Byte, qual";
+ //BA.debugLineNum = 218;BA.debugLine="Dim size, previewFormat As Object";
+_size = new Object();
+_previewformat = new Object();
+ //BA.debugLineNum = 219;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 220;BA.debugLine="size = r.RunMethod(\"getPreviewSize\")";
+_size = _r.RunMethod("getPreviewSize");
+ //BA.debugLineNum = 221;BA.debugLine="previewFormat = r.RunMethod(\"getPreviewFormat\")";
+_previewformat = _r.RunMethod("getPreviewFormat");
+ //BA.debugLineNum = 222;BA.debugLine="r.target = size";
+_r.Target = _size;
+ //BA.debugLineNum = 223;BA.debugLine="Dim width = r.GetField(\"width\"), height = r.GetFi";
+_width = (int)(BA.ObjectToNumber(_r.GetField("width")));
+_height = (int)(BA.ObjectToNumber(_r.GetField("height")));
+ //BA.debugLineNum = 224;BA.debugLine="Dim yuvImage As Object = r.CreateObject2(\"android";
+_yuvimage = _r.CreateObject2("android.graphics.YuvImage",new Object[]{(Object)(_data),_previewformat,(Object)(_width),(Object)(_height),__c.Null},new String[]{"[B","java.lang.int","java.lang.int","java.lang.int","[I"});
+ //BA.debugLineNum = 227;BA.debugLine="r.target = yuvImage";
+_r.Target = _yuvimage;
+ //BA.debugLineNum = 228;BA.debugLine="Dim rect1 As Rect";
+_rect1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper();
+ //BA.debugLineNum = 229;BA.debugLine="rect1.Initialize(0, 0, r.RunMethod(\"getWidth\"), r";
+_rect1.Initialize((int) (0),(int) (0),(int)(BA.ObjectToNumber(_r.RunMethod("getWidth"))),(int)(BA.ObjectToNumber(_r.RunMethod("getHeight"))));
+ //BA.debugLineNum = 230;BA.debugLine="Dim out As OutputStream";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 231;BA.debugLine="out.InitializeToBytesArray(100)";
+_out.InitializeToBytesArray((int) (100));
+ //BA.debugLineNum = 232;BA.debugLine="r.RunMethod4(\"compressToJpeg\", Array As Object(re";
+_r.RunMethod4("compressToJpeg",new Object[]{(Object)(_rect1.getObject()),(Object)(_quality),(Object)(_out.getObject())},new String[]{"android.graphics.Rect","java.lang.int","java.io.OutputStream"});
+ //BA.debugLineNum = 234;BA.debugLine="Return out.ToBytesArray";
+if (true) return _out.ToBytesArray();
+ //BA.debugLineNum = 235;BA.debugLine="End Sub";
+return null;
+}
+public String _release() throws Exception{
+ //BA.debugLineNum = 116;BA.debugLine="Public Sub Release";
+ //BA.debugLineNum = 117;BA.debugLine="cam.Release";
+_cam.Release();
+ //BA.debugLineNum = 118;BA.debugLine="End Sub";
+return "";
+}
+public String _savepicturetofile(byte[] _data,String _dir,String _filename) throws Exception{
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+ //BA.debugLineNum = 121;BA.debugLine="Public Sub SavePictureToFile(Data() As Byte, Dir A";
+ //BA.debugLineNum = 122;BA.debugLine="Dim out As OutputStream = File.OpenOutput(Dir, Fi";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = __c.File.OpenOutput(_dir,_filename,__c.False);
+ //BA.debugLineNum = 123;BA.debugLine="out.WriteBytes(Data, 0, Data.Length)";
+_out.WriteBytes(_data,(int) (0),_data.length);
+ //BA.debugLineNum = 124;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 125;BA.debugLine="End Sub";
+return "";
+}
+public String _setcoloreffect(String _effect) throws Exception{
+ //BA.debugLineNum = 151;BA.debugLine="Public Sub SetColorEffect(Effect As String)";
+ //BA.debugLineNum = 152;BA.debugLine="SetParameter(\"effect\", Effect)";
+_setparameter("effect",_effect);
+ //BA.debugLineNum = 153;BA.debugLine="End Sub";
+return "";
+}
+public String _setcontinuousautofocus() throws Exception{
+anywheresoftware.b4a.objects.collections.List _modes = null;
+ //BA.debugLineNum = 242;BA.debugLine="Public Sub SetContinuousAutoFocus";
+ //BA.debugLineNum = 243;BA.debugLine="Dim modes As List = GetSupportedFocusModes";
+_modes = new anywheresoftware.b4a.objects.collections.List();
+_modes = _getsupportedfocusmodes();
+ //BA.debugLineNum = 244;BA.debugLine="If modes.IndexOf(\"continuous-picture\") > -1 Th";
+if (_modes.IndexOf((Object)("continuous-picture"))>-1) {
+ //BA.debugLineNum = 245;BA.debugLine="SetFocusMode(\"continuous-picture\")";
+_setfocusmode("continuous-picture");
+ }else if(_modes.IndexOf((Object)("continuous-video"))>-1) {
+ //BA.debugLineNum = 247;BA.debugLine="SetFocusMode(\"continuous-video\")";
+_setfocusmode("continuous-video");
+ }else {
+ //BA.debugLineNum = 249;BA.debugLine="Log(\"Continuous focus mode is not availabl";
+__c.LogImpl("523658503","Continuous focus mode is not available",0);
+ };
+ //BA.debugLineNum = 251;BA.debugLine="End Sub";
+return "";
+}
+public String _setdisplayorientation() throws Exception{
+int _previewresult = 0;
+int _result = 0;
+int _degrees = 0;
+reparto_izca.keymon.lat.cameraexclass._camerainfoandid _ci = null;
+int _orientation = 0;
+ //BA.debugLineNum = 57;BA.debugLine="Private Sub SetDisplayOrientation";
+ //BA.debugLineNum = 58;BA.debugLine="r.target = r.GetActivity";
+_r.Target = (Object)(_r.GetActivity(ba));
+ //BA.debugLineNum = 59;BA.debugLine="r.target = r.RunMethod(\"getWindowManager\")";
+_r.Target = _r.RunMethod("getWindowManager");
+ //BA.debugLineNum = 60;BA.debugLine="r.target = r.RunMethod(\"getDefaultDisplay\")";
+_r.Target = _r.RunMethod("getDefaultDisplay");
+ //BA.debugLineNum = 61;BA.debugLine="r.target = r.RunMethod(\"getRotation\")";
+_r.Target = _r.RunMethod("getRotation");
+ //BA.debugLineNum = 62;BA.debugLine="Dim previewResult, result, degrees As Int = r.tar";
+_previewresult = 0;
+_result = 0;
+_degrees = (int) ((double)(BA.ObjectToNumber(_r.Target))*90);
+ //BA.debugLineNum = 63;BA.debugLine="Dim ci As CameraInfoAndId = FindCamera(Front)";
+_ci = _findcamera(_front);
+ //BA.debugLineNum = 64;BA.debugLine="r.target = ci.CameraInfo";
+_r.Target = _ci.CameraInfo /*Object*/ ;
+ //BA.debugLineNum = 65;BA.debugLine="Dim orientation As Int = r.GetField(\"orientation\"";
+_orientation = (int)(BA.ObjectToNumber(_r.GetField("orientation")));
+ //BA.debugLineNum = 66;BA.debugLine="If Front Then";
+if (_front) {
+ //BA.debugLineNum = 67;BA.debugLine="previewResult = (orientation + degrees) Mod 360";
+_previewresult = (int) ((_orientation+_degrees)%360);
+ //BA.debugLineNum = 68;BA.debugLine="result = previewResult";
+_result = _previewresult;
+ //BA.debugLineNum = 69;BA.debugLine="previewResult = (360 - previewResult) Mod 360";
+_previewresult = (int) ((360-_previewresult)%360);
+ }else {
+ //BA.debugLineNum = 71;BA.debugLine="previewResult = (orientation - degrees + 360) Mo";
+_previewresult = (int) ((_orientation-_degrees+360)%360);
+ //BA.debugLineNum = 72;BA.debugLine="result = previewResult";
+_result = _previewresult;
+ //BA.debugLineNum = 73;BA.debugLine="Log(previewResult)";
+__c.LogImpl("522020112",BA.NumberToString(_previewresult),0);
+ };
+ //BA.debugLineNum = 75;BA.debugLine="r.target = nativeCam";
+_r.Target = _nativecam;
+ //BA.debugLineNum = 76;BA.debugLine="r.RunMethod2(\"setDisplayOrientation\", previewResu";
+_r.RunMethod2("setDisplayOrientation",BA.NumberToString(_previewresult),"java.lang.int");
+ //BA.debugLineNum = 77;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 78;BA.debugLine="r.RunMethod2(\"setRotation\", result, \"java.lang.in";
+_r.RunMethod2("setRotation",BA.NumberToString(_result),"java.lang.int");
+ //BA.debugLineNum = 79;BA.debugLine="CommitParameters";
+_commitparameters();
+ //BA.debugLineNum = 80;BA.debugLine="End Sub";
+return "";
+}
+public String _setflashmode(String _mode) throws Exception{
+ //BA.debugLineNum = 177;BA.debugLine="Public Sub SetFlashMode(Mode As String)";
+ //BA.debugLineNum = 178;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 179;BA.debugLine="r.RunMethod2(\"setFlashMode\", Mode, \"java.lang.Str";
+_r.RunMethod2("setFlashMode",_mode,"java.lang.String");
+ //BA.debugLineNum = 180;BA.debugLine="End Sub";
+return "";
+}
+public String _setfocusmode(String _mode) throws Exception{
+ //BA.debugLineNum = 253;BA.debugLine="Public Sub SetFocusMode(Mode As String)";
+ //BA.debugLineNum = 254;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 255;BA.debugLine="r.RunMethod2(\"setFocusMode\", Mode, \"java.lang.";
+_r.RunMethod2("setFocusMode",_mode,"java.lang.String");
+ //BA.debugLineNum = 256;BA.debugLine="End Sub";
+return "";
+}
+public String _setjpegquality(int _quality) throws Exception{
+ //BA.debugLineNum = 172;BA.debugLine="Public Sub SetJpegQuality(Quality As Int)";
+ //BA.debugLineNum = 173;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 174;BA.debugLine="r.RunMethod2(\"setJpegQuality\", Quality, \"java.lan";
+_r.RunMethod2("setJpegQuality",BA.NumberToString(_quality),"java.lang.int");
+ //BA.debugLineNum = 175;BA.debugLine="End Sub";
+return "";
+}
+public String _setparameter(String _key,String _value) throws Exception{
+ //BA.debugLineNum = 127;BA.debugLine="Public Sub SetParameter(Key As String, Value As St";
+ //BA.debugLineNum = 128;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 129;BA.debugLine="r.RunMethod3(\"set\", Key, \"java.lang.String\", Valu";
+_r.RunMethod3("set",_key,"java.lang.String",_value,"java.lang.String");
+ //BA.debugLineNum = 130;BA.debugLine="End Sub";
+return "";
+}
+public String _setpicturesize(int _width,int _height) throws Exception{
+ //BA.debugLineNum = 167;BA.debugLine="Public Sub SetPictureSize(Width As Int, Height As";
+ //BA.debugLineNum = 168;BA.debugLine="r.target = parameters";
+_r.Target = _parameters;
+ //BA.debugLineNum = 169;BA.debugLine="r.RunMethod3(\"setPictureSize\", Width, \"java.lang.";
+_r.RunMethod3("setPictureSize",BA.NumberToString(_width),"java.lang.int",BA.NumberToString(_height),"java.lang.int");
+ //BA.debugLineNum = 170;BA.debugLine="End Sub";
+return "";
+}
+public String _startpreview() throws Exception{
+ //BA.debugLineNum = 108;BA.debugLine="Public Sub StartPreview";
+ //BA.debugLineNum = 109;BA.debugLine="cam.StartPreview";
+_cam.StartPreview();
+ //BA.debugLineNum = 110;BA.debugLine="End Sub";
+return "";
+}
+public String _stoppreview() throws Exception{
+ //BA.debugLineNum = 112;BA.debugLine="Public Sub StopPreview";
+ //BA.debugLineNum = 113;BA.debugLine="cam.StopPreview";
+_cam.StopPreview();
+ //BA.debugLineNum = 114;BA.debugLine="End Sub";
+return "";
+}
+public String _takepicture() throws Exception{
+ //BA.debugLineNum = 100;BA.debugLine="Public Sub TakePicture";
+ //BA.debugLineNum = 101;BA.debugLine="cam.TakePicture";
+_cam.TakePicture();
+ //BA.debugLineNum = 102;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/cl_appupdate.java b/B4A/Objects/src/reparto_izca/keymon/lat/cl_appupdate.java
new file mode 100644
index 0000000..98bfc42
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/cl_appupdate.java
@@ -0,0 +1,1789 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class cl_appupdate extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.cl_appupdate");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.cl_appupdate.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public int _err_nopkg = 0;
+public int _err_notxt = 0;
+public int _err_noapk = 0;
+public int _err_txtrow = 0;
+public int _err_html = 0;
+public int _err_nospace = 0;
+public int _err_noperm = 0;
+public int _err_download = 0;
+public int _err_http = 0;
+public int _ok_init = 0;
+public int _ok_curver = 0;
+public int _ok_webver = 0;
+public int _no_newerapk = 0;
+public int _ok_newerapk = 0;
+public int _ok_download = 0;
+public int _ok_install = 0;
+public Object _callback = null;
+public String _event = "";
+public String _spackagename = "";
+public String _snewvertxt = "";
+public String _snewverapk = "";
+public int _sstatuscode = 0;
+public String _susername = "";
+public String _supassword = "";
+public String _curver = "";
+public String _webver = "";
+public String _webclog = "";
+public String _webfsize = "";
+public boolean _sverbose = false;
+public anywheresoftware.b4a.objects.PanelWrapper _pnlsplash = null;
+public boolean _splashshowing = false;
+public anywheresoftware.b4a.phone.Phone _phone = null;
+public anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+public String _sharedfolder = "";
+public boolean _usefileprovider = false;
+public int _logcolor1 = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public boolean _canrequestpackageinstalls() throws Exception{
+anywheresoftware.b4j.object.JavaObject _ctxt = null;
+anywheresoftware.b4j.object.JavaObject _packagemanager = null;
+ //BA.debugLineNum = 448;BA.debugLine="Public Sub CanRequestPackageInstalls As Boolean";
+ //BA.debugLineNum = 449;BA.debugLine="Dim ctxt As JavaObject";
+_ctxt = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 450;BA.debugLine="ctxt.InitializeContext";
+_ctxt.InitializeContext(ba);
+ //BA.debugLineNum = 451;BA.debugLine="Dim PackageManager As JavaObject = ctxt.RunMethod";
+_packagemanager = new anywheresoftware.b4j.object.JavaObject();
+_packagemanager = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_ctxt.RunMethod("getPackageManager",(Object[])(__c.Null))));
+ //BA.debugLineNum = 452;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag";
+if (true) return BA.ObjectToBoolean(_packagemanager.RunMethod("canRequestPackageInstalls",(Object[])(__c.Null)));
+ //BA.debugLineNum = 453;BA.debugLine="End Sub";
+return false;
+}
+public boolean _checknonmarketappsenabled() throws Exception{
+anywheresoftware.b4j.object.JavaObject _context = null;
+anywheresoftware.b4j.object.JavaObject _resolver = null;
+anywheresoftware.b4j.object.JavaObject _global = null;
+ //BA.debugLineNum = 471;BA.debugLine="Public Sub CheckNonMarketAppsEnabled As Boolean";
+ //BA.debugLineNum = 472;BA.debugLine="If phone.SdkVersion >= 26 Then Return True";
+if (_phone.getSdkVersion()>=26) {
+if (true) return __c.True;};
+ //BA.debugLineNum = 473;BA.debugLine="If phone.SdkVersion < 17 Or phone.SdkVersion >= 2";
+if (_phone.getSdkVersion()<17 || _phone.getSdkVersion()>=21) {
+ //BA.debugLineNum = 474;BA.debugLine="Return phone.GetSettings(\"install_non_market_app";
+if (true) return (_phone.GetSettings("install_non_market_apps")).equals("1");
+ }else {
+ //BA.debugLineNum = 476;BA.debugLine="Dim context As JavaObject";
+_context = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 477;BA.debugLine="context.InitializeContext";
+_context.InitializeContext(ba);
+ //BA.debugLineNum = 478;BA.debugLine="Dim resolver As JavaObject = context.RunMethod(\"";
+_resolver = new anywheresoftware.b4j.object.JavaObject();
+_resolver = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_context.RunMethod("getContentResolver",(Object[])(__c.Null))));
+ //BA.debugLineNum = 479;BA.debugLine="Dim global As JavaObject";
+_global = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 480;BA.debugLine="global.InitializeStatic(\"android.provider.Settin";
+_global.InitializeStatic("android.provider.Settings.Global");
+ //BA.debugLineNum = 481;BA.debugLine="Return global.RunMethod(\"getString\", Array(resol";
+if (true) return (_global.RunMethod("getString",new Object[]{(Object)(_resolver.getObject()),(Object)("install_non_market_apps")})).equals((Object)("1"));
+ };
+ //BA.debugLineNum = 483;BA.debugLine="End Sub";
+return false;
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 6;BA.debugLine="Private Sub Class_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Public ERR_NOPKG = -1 As Int 'missing package";
+_err_nopkg = (int) (-1);
+ //BA.debugLineNum = 9;BA.debugLine="Public ERR_NOTXT = -2 As Int 'missing webserve";
+_err_notxt = (int) (-2);
+ //BA.debugLineNum = 10;BA.debugLine="Public ERR_NOAPK = -3 As Int 'missing webserve";
+_err_noapk = (int) (-3);
+ //BA.debugLineNum = 11;BA.debugLine="Public ERR_TXTROW = -4 As Int 'wrong row forma";
+_err_txtrow = (int) (-4);
+ //BA.debugLineNum = 12;BA.debugLine="Public ERR_HTML = -5 As Int 'website returned";
+_err_html = (int) (-5);
+ //BA.debugLineNum = 13;BA.debugLine="Public ERR_NOSPACE = -6 As Int 'no enough spac";
+_err_nospace = (int) (-6);
+ //BA.debugLineNum = 14;BA.debugLine="Public ERR_NOPERM = -7 As Int 'no permissions";
+_err_noperm = (int) (-7);
+ //BA.debugLineNum = 15;BA.debugLine="Public ERR_DOWNLOAD = -8 As Int 'failed to dow";
+_err_download = (int) (-8);
+ //BA.debugLineNum = 16;BA.debugLine="Public ERR_HTTP = -100 As Int 'HttpUtils error";
+_err_http = (int) (-100);
+ //BA.debugLineNum = 17;BA.debugLine="Public OK_INIT = 0 As Int";
+_ok_init = (int) (0);
+ //BA.debugLineNum = 18;BA.debugLine="Public OK_CURVER = 1 As Int 'curver has valid";
+_ok_curver = (int) (1);
+ //BA.debugLineNum = 19;BA.debugLine="Public OK_WEBVER = 2 As Int";
+_ok_webver = (int) (2);
+ //BA.debugLineNum = 20;BA.debugLine="Public NO_NEWERAPK = 3 As Int 'apk version on";
+_no_newerapk = (int) (3);
+ //BA.debugLineNum = 21;BA.debugLine="Public OK_NEWERAPK = 4 As Int 'current apk has";
+_ok_newerapk = (int) (4);
+ //BA.debugLineNum = 22;BA.debugLine="Public OK_DOWNLOAD = 5 As Int 'newer apk corre";
+_ok_download = (int) (5);
+ //BA.debugLineNum = 23;BA.debugLine="Public OK_INSTALL = 6 As Int 'user asked to in";
+_ok_install = (int) (6);
+ //BA.debugLineNum = 26;BA.debugLine="Private Callback As Object";
+_callback = new Object();
+ //BA.debugLineNum = 27;BA.debugLine="Private Event As String";
+_event = "";
+ //BA.debugLineNum = 28;BA.debugLine="Private sPackageName As String 'ex: com.te";
+_spackagename = "";
+ //BA.debugLineNum = 29;BA.debugLine="Private sNewVerTxt As String 'ex: http:/";
+_snewvertxt = "";
+ //BA.debugLineNum = 30;BA.debugLine="Private sNewVerApk As String 'ex: http:/";
+_snewverapk = "";
+ //BA.debugLineNum = 31;BA.debugLine="Private sStatusCode As Int 'negatives";
+_sstatuscode = 0;
+ //BA.debugLineNum = 32;BA.debugLine="Private sUserName As String 'user name";
+_susername = "";
+ //BA.debugLineNum = 33;BA.debugLine="Private sUPassword As String 'password r";
+_supassword = "";
+ //BA.debugLineNum = 34;BA.debugLine="Private curver, webver As String 'curver = c";
+_curver = "";
+_webver = "";
+ //BA.debugLineNum = 35;BA.debugLine="Private webclog As String 'webclog = optional";
+_webclog = "";
+ //BA.debugLineNum = 36;BA.debugLine="Private webfsize As String 'webfsize = option";
+_webfsize = "";
+ //BA.debugLineNum = 37;BA.debugLine="Private sVerbose As Boolean 'TRUE = a lot of";
+_sverbose = false;
+ //BA.debugLineNum = 38;BA.debugLine="Private pnlSplash As Panel 'panel used to sup";
+_pnlsplash = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Private SplashShowing As Boolean 'True = splash";
+_splashshowing = false;
+ //BA.debugLineNum = 40;BA.debugLine="Private phone As Phone";
+_phone = new anywheresoftware.b4a.phone.Phone();
+ //BA.debugLineNum = 41;BA.debugLine="Private rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 42;BA.debugLine="Private SharedFolder As String 'Foder where to";
+_sharedfolder = "";
+ //BA.debugLineNum = 43;BA.debugLine="Private UseFileProvider As Boolean 'TRUE = SDK";
+_usefileprovider = false;
+ //BA.debugLineNum = 44;BA.debugLine="Private LogColor1 As Int = 0xFFFF8C00 'first col";
+_logcolor1 = ((int)0xffff8c00);
+ //BA.debugLineNum = 45;BA.debugLine="End Sub";
+return "";
+}
+public void _downloadapk() throws Exception{
+ResumableSub_DownloadApk rsub = new ResumableSub_DownloadApk(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_DownloadApk extends BA.ResumableSub {
+public ResumableSub_DownloadApk(reparto_izca.keymon.lat.cl_appupdate parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.cl_appupdate parent;
+reparto_izca.keymon.lat.httpjob _j = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 159;BA.debugLine="LogColor(\"---- AppUpdating.DownloadApk\", LogColor";
+parent.__c.LogImpl("939256065","---- AppUpdating.DownloadApk",parent._logcolor1);
+ //BA.debugLineNum = 161;BA.debugLine="If sNewVerApk = \"\" Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 10;
+if ((parent._snewverapk).equals("")) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 162;BA.debugLine="sStatusCode = ERR_NOAPK";
+parent._sstatuscode = parent._err_noapk;
+ //BA.debugLineNum = 163;BA.debugLine="If sVerbose Then Log($\"${TAB}missing apk file fu";
+if (true) break;
+
+case 4:
+//if
+this.state = 9;
+if (parent._sverbose) {
+this.state = 6;
+;}if (true) break;
+
+case 6:
+//C
+this.state = 9;
+parent.__c.LogImpl("939256069",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
+if (true) break;
+
+case 9:
+//C
+this.state = 10;
+;
+ //BA.debugLineNum = 164;BA.debugLine="Finito";
+parent._finito();
+ //BA.debugLineNum = 165;BA.debugLine="Return";
+if (true) return ;
+ if (true) break;
+
+case 10:
+//C
+this.state = 11;
+;
+ //BA.debugLineNum = 168;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 169;BA.debugLine="j.Initialize(\"\", Me)";
+_j._initialize /*String*/ (ba,"",parent);
+ //BA.debugLineNum = 170;BA.debugLine="j.Username = sUserName";
+_j._username /*String*/ = parent._susername;
+ //BA.debugLineNum = 171;BA.debugLine="j.Password = sUPassword";
+_j._password /*String*/ = parent._supassword;
+ //BA.debugLineNum = 172;BA.debugLine="j.Download(sNewVerApk) 'ex: j.Download(\"htt";
+_j._download /*String*/ (parent._snewverapk);
+ //BA.debugLineNum = 173;BA.debugLine="Wait For (j) JobDone(j As HttpJob)";
+parent.__c.WaitFor("jobdone", ba, this, (Object)(_j));
+this.state = 29;
+return;
+case 29:
+//C
+this.state = 11;
+_j = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 174;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
+parent.__c.LogImpl("939256080",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
+ //BA.debugLineNum = 175;BA.debugLine="If j.Success Then";
+if (true) break;
+
+case 11:
+//if
+this.state = 28;
+if (_j._success /*boolean*/ ) {
+this.state = 13;
+}else {
+this.state = 21;
+}if (true) break;
+
+case 13:
+//C
+this.state = 14;
+ //BA.debugLineNum = 177;BA.debugLine="Dim out As OutputStream";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 178;BA.debugLine="out = File.OpenOutput(SharedFolder,\"tmp.apk\",Fal";
+_out = parent.__c.File.OpenOutput(parent._sharedfolder,"tmp.apk",parent.__c.False);
+ //BA.debugLineNum = 179;BA.debugLine="File.Copy2(J.GetInputStream, out)";
+parent.__c.File.Copy2((java.io.InputStream)(_j._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ ().getObject()),(java.io.OutputStream)(_out.getObject()));
+ //BA.debugLineNum = 180;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 181;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)";
+parent.__c.LogImpl("939256087",("Copy2 (saving) ok? TRUE"),0);
+ //BA.debugLineNum = 182;BA.debugLine="sStatusCode = OK_DOWNLOAD";
+parent._sstatuscode = parent._ok_download;
+ //BA.debugLineNum = 183;BA.debugLine="If sVerbose Then Log($\"${TAB}new apk version dow";
+if (true) break;
+
+case 14:
+//if
+this.state = 19;
+if (parent._sverbose) {
+this.state = 16;
+;}if (true) break;
+
+case 16:
+//C
+this.state = 19;
+parent.__c.LogImpl("939256089",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
+if (true) break;
+
+case 19:
+//C
+this.state = 28;
+;
+ if (true) break;
+
+case 21:
+//C
+this.state = 22;
+ //BA.debugLineNum = 185;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
+parent.__c.LogImpl("939256091",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
+ //BA.debugLineNum = 186;BA.debugLine="sStatusCode = ERR_HTTP";
+parent._sstatuscode = parent._err_http;
+ //BA.debugLineNum = 187;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils2";
+if (true) break;
+
+case 22:
+//if
+this.state = 27;
+if (parent._sverbose) {
+this.state = 24;
+;}if (true) break;
+
+case 24:
+//C
+this.state = 27;
+parent.__c.LogImpl("939256093",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
+if (true) break;
+
+case 27:
+//C
+this.state = 28;
+;
+ //BA.debugLineNum = 188;BA.debugLine="ToastMessageShow(\"Error: \" & J.ErrorMessage, Tru";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Error: "+_j._errormessage /*String*/ ),parent.__c.True);
+ if (true) break;
+
+case 28:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 190;BA.debugLine="j.Release";
+_j._release /*String*/ ();
+ //BA.debugLineNum = 191;BA.debugLine="Finito";
+parent._finito();
+ //BA.debugLineNum = 192;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _jobdone(reparto_izca.keymon.lat.httpjob _j) throws Exception{
+}
+public String _extractcl(String _txtrow) throws Exception{
+int _i = 0;
+int _j1 = 0;
+int _j2 = 0;
+ //BA.debugLineNum = 381;BA.debugLine="Private Sub ExtractCL(TxtRow As String) As String";
+ //BA.debugLineNum = 382;BA.debugLine="Dim i As Int";
+_i = 0;
+ //BA.debugLineNum = 383;BA.debugLine="i = TxtRow.IndexOf(\"\")";
+_i = _txtrow.indexOf("");
+ //BA.debugLineNum = 384;BA.debugLine="If i <> -1 Then";
+if (_i!=-1) {
+ //BA.debugLineNum = 385;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\")";
+_j1 = _txtrow.indexOf("");
+ //BA.debugLineNum = 386;BA.debugLine="If j1 = -1 Then";
+if (_j1==-1) {
+ //BA.debugLineNum = 387;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") 'l";
+_j2 = _txtrow.indexOf("");
+ //BA.debugLineNum = 388;BA.debugLine="j1 = j2";
+_j1 = _j2;
+ //BA.debugLineNum = 389;BA.debugLine="If j1 < i Then j1 = -1";
+if (_j1<_i) {
+_j1 = (int) (-1);};
+ };
+ //BA.debugLineNum = 391;BA.debugLine="If j1 <> -1 Then Return TxtRow.SubString2(i+11,j";
+if (_j1!=-1) {
+if (true) return _txtrow.substring((int) (_i+11),_j1);}
+else {
+if (true) return _txtrow.substring((int) (_i+11));};
+ }else {
+ //BA.debugLineNum = 393;BA.debugLine="Return \"\"";
+if (true) return "";
+ };
+ //BA.debugLineNum = 395;BA.debugLine="End Sub";
+return "";
+}
+public String _extractsz(String _txtrow) throws Exception{
+int _i = 0;
+int _j1 = 0;
+int _j2 = 0;
+String _s = "";
+ //BA.debugLineNum = 399;BA.debugLine="Private Sub ExtractSZ(TxtRow As String) As String";
+ //BA.debugLineNum = 400;BA.debugLine="Dim i As Int";
+_i = 0;
+ //BA.debugLineNum = 401;BA.debugLine="i = TxtRow.IndexOf(\"\")";
+_i = _txtrow.indexOf("");
+ //BA.debugLineNum = 402;BA.debugLine="If i <> -1 Then";
+if (_i!=-1) {
+ //BA.debugLineNum = 403;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\") '";
+_j1 = _txtrow.indexOf("");
+ //BA.debugLineNum = 404;BA.debugLine="If j1 = -1 Then";
+if (_j1==-1) {
+ //BA.debugLineNum = 405;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") '";
+_j2 = _txtrow.indexOf("");
+ //BA.debugLineNum = 406;BA.debugLine="j1 = j2";
+_j1 = _j2;
+ //BA.debugLineNum = 407;BA.debugLine="If j1 < i Then j1 = -1";
+if (_j1<_i) {
+_j1 = (int) (-1);};
+ };
+ //BA.debugLineNum = 409;BA.debugLine="Dim s As String";
+_s = "";
+ //BA.debugLineNum = 410;BA.debugLine="If j1 <> -1 Then s = TxtRow.SubString2(i+10,j1)";
+if (_j1!=-1) {
+_s = _txtrow.substring((int) (_i+10),_j1);}
+else {
+_s = _txtrow.substring((int) (_i+10));};
+ //BA.debugLineNum = 411;BA.debugLine="s = s.Replace(CRLF,\"\")";
+_s = _s.replace(__c.CRLF,"");
+ //BA.debugLineNum = 412;BA.debugLine="s=s.Replace(Chr(13),\"\")";
+_s = _s.replace(BA.ObjectToString(__c.Chr((int) (13))),"");
+ //BA.debugLineNum = 413;BA.debugLine="Return s";
+if (true) return _s;
+ }else {
+ //BA.debugLineNum = 415;BA.debugLine="Return \"\"";
+if (true) return "";
+ };
+ //BA.debugLineNum = 417;BA.debugLine="End Sub";
+return "";
+}
+public String _extractvn(String _txtrow) throws Exception{
+int _i = 0;
+int _j1 = 0;
+int _j2 = 0;
+int _j = 0;
+String _s = "";
+ //BA.debugLineNum = 360;BA.debugLine="Private Sub ExtractVN(TxtRow As String) As String";
+ //BA.debugLineNum = 361;BA.debugLine="Dim i As Int";
+_i = 0;
+ //BA.debugLineNum = 362;BA.debugLine="i = TxtRow.IndexOf(\"=\")";
+_i = _txtrow.indexOf("=");
+ //BA.debugLineNum = 363;BA.debugLine="If i <> -1 Then";
+if (_i!=-1) {
+ //BA.debugLineNum = 364;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\") 'l";
+_j1 = _txtrow.indexOf("");
+ //BA.debugLineNum = 365;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") 'lo";
+_j2 = _txtrow.indexOf("");
+ //BA.debugLineNum = 366;BA.debugLine="Dim j As Int = Min(j1, j2)";
+_j = (int) (__c.Min(_j1,_j2));
+ //BA.debugLineNum = 367;BA.debugLine="If j = -1 Then j = Max(j1,j2)";
+if (_j==-1) {
+_j = (int) (__c.Max(_j1,_j2));};
+ //BA.debugLineNum = 368;BA.debugLine="Dim s As String";
+_s = "";
+ //BA.debugLineNum = 369;BA.debugLine="If j <> - 1 Then s=TxtRow.SubString2(i+1,j) Else";
+if (_j!=-1) {
+_s = _txtrow.substring((int) (_i+1),_j);}
+else {
+_s = _txtrow.substring((int) (_i+1));};
+ //BA.debugLineNum = 370;BA.debugLine="s=s.Replace(CRLF,\"\")";
+_s = _s.replace(__c.CRLF,"");
+ //BA.debugLineNum = 371;BA.debugLine="s=s.Replace(Chr(13),\"\")";
+_s = _s.replace(BA.ObjectToString(__c.Chr((int) (13))),"");
+ //BA.debugLineNum = 372;BA.debugLine="Return s";
+if (true) return _s;
+ }else {
+ //BA.debugLineNum = 374;BA.debugLine="Return \"\"";
+if (true) return "";
+ };
+ //BA.debugLineNum = 376;BA.debugLine="End Sub";
+return "";
+}
+public String _finito() throws Exception{
+ //BA.debugLineNum = 290;BA.debugLine="Private Sub Finito";
+ //BA.debugLineNum = 291;BA.debugLine="If SubExists(Callback,Event&\"_UpdateComplete\") Th";
+if (__c.SubExists(ba,_callback,_event+"_UpdateComplete")) {
+ //BA.debugLineNum = 292;BA.debugLine="CallSub(Callback,Event&\"_UpdateComplete\")";
+__c.CallSubNew(ba,_callback,_event+"_UpdateComplete");
+ };
+ //BA.debugLineNum = 294;BA.debugLine="End Sub";
+return "";
+}
+public long _getavailablespace() throws Exception{
+ //BA.debugLineNum = 137;BA.debugLine="Public Sub GetAvailableSpace As Long";
+ //BA.debugLineNum = 138;BA.debugLine="Return GetFreeSpace";
+if (true) return _getfreespace();
+ //BA.debugLineNum = 139;BA.debugLine="End Sub";
+return 0L;
+}
+public String _getcurvn() throws Exception{
+ //BA.debugLineNum = 114;BA.debugLine="Public Sub getCurVN As String";
+ //BA.debugLineNum = 115;BA.debugLine="Return curver";
+if (true) return _curver;
+ //BA.debugLineNum = 116;BA.debugLine="End Sub";
+return "";
+}
+public Object _getfileuri(String _filename) throws Exception{
+anywheresoftware.b4j.object.JavaObject _uri = null;
+anywheresoftware.b4j.object.JavaObject _f = null;
+anywheresoftware.b4j.object.JavaObject _fp = null;
+anywheresoftware.b4j.object.JavaObject _context = null;
+ //BA.debugLineNum = 503;BA.debugLine="Private Sub GetFileUri (FileName As String) As Obj";
+ //BA.debugLineNum = 504;BA.debugLine="If UseFileProvider = False Then";
+if (_usefileprovider==__c.False) {
+ //BA.debugLineNum = 505;BA.debugLine="Dim uri As JavaObject";
+_uri = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 506;BA.debugLine="Return uri.InitializeStatic(\"android.net.Uri\").R";
+if (true) return _uri.InitializeStatic("android.net.Uri").RunMethod("parse",new Object[]{(Object)("file://"+__c.File.Combine(_sharedfolder,_filename))});
+ }else {
+ //BA.debugLineNum = 508;BA.debugLine="Dim f As JavaObject";
+_f = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 509;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh";
+_f.InitializeNewInstance("java.io.File",new Object[]{(Object)(_sharedfolder),(Object)(_filename)});
+ //BA.debugLineNum = 510;BA.debugLine="Dim fp As JavaObject";
+_fp = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 511;BA.debugLine="Dim context As JavaObject";
+_context = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 512;BA.debugLine="context.InitializeContext";
+_context.InitializeContext(ba);
+ //BA.debugLineNum = 513;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content.";
+_fp.InitializeStatic("androidx.core.content.FileProvider");
+ //BA.debugLineNum = 514;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte";
+if (true) return _fp.RunMethod("getUriForFile",new Object[]{(Object)(_context.getObject()),(Object)(__c.Application.getPackageName()+".provider"),(Object)(_f.getObject())});
+ };
+ //BA.debugLineNum = 516;BA.debugLine="End Sub";
+return null;
+}
+public long _getfreespace() throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 421;BA.debugLine="Private Sub GetFreeSpace As Long";
+ //BA.debugLineNum = 422;BA.debugLine="Dim jo As JavaObject";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 423;BA.debugLine="jo.InitializeNewInstance(\"java.io.File\", Array(Sh";
+_jo.InitializeNewInstance("java.io.File",new Object[]{(Object)(_sharedfolder)});
+ //BA.debugLineNum = 424;BA.debugLine="Return jo.RunMethod(\"getFreeSpace\", Null)";
+if (true) return BA.ObjectToLongNumber(_jo.RunMethod("getFreeSpace",(Object[])(__c.Null)));
+ //BA.debugLineNum = 425;BA.debugLine="End Sub";
+return 0L;
+}
+public String _getnmappinst() throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+anywheresoftware.b4j.object.JavaObject _context = null;
+anywheresoftware.b4j.object.JavaObject _resolver = null;
+ //BA.debugLineNum = 435;BA.debugLine="Private Sub GetNMAppInst As String";
+ //BA.debugLineNum = 436;BA.debugLine="Dim jo As JavaObject";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 437;BA.debugLine="jo.InitializeStatic(\"android.provider.Settings.Se";
+_jo.InitializeStatic("android.provider.Settings.Secure");
+ //BA.debugLineNum = 438;BA.debugLine="Dim context As JavaObject";
+_context = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 439;BA.debugLine="context.InitializeContext";
+_context.InitializeContext(ba);
+ //BA.debugLineNum = 440;BA.debugLine="Dim resolver As JavaObject = context.RunMethod(\"g";
+_resolver = new anywheresoftware.b4j.object.JavaObject();
+_resolver = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_context.RunMethod("getContentResolver",(Object[])(__c.Null))));
+ //BA.debugLineNum = 441;BA.debugLine="Return jo.RunMethod(\"getString\", Array(resolver,";
+if (true) return BA.ObjectToString(_jo.RunMethod("getString",new Object[]{(Object)(_resolver.getObject()),(Object)("install_non_market_apps")}));
+ //BA.debugLineNum = 442;BA.debugLine="End Sub";
+return "";
+}
+public String _getpackagename() throws Exception{
+ //BA.debugLineNum = 79;BA.debugLine="Public Sub getPackageName As String";
+ //BA.debugLineNum = 80;BA.debugLine="Return sPackageName";
+if (true) return _spackagename;
+ //BA.debugLineNum = 81;BA.debugLine="End Sub";
+return "";
+}
+public int _getsdkversion() throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 428;BA.debugLine="Private Sub GetSDKVersion As Int";
+ //BA.debugLineNum = 429;BA.debugLine="Dim jo As JavaObject";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 430;BA.debugLine="jo.InitializeStatic(\"android.os.Build.VERSION\")";
+_jo.InitializeStatic("android.os.Build.VERSION");
+ //BA.debugLineNum = 431;BA.debugLine="Return jo.GetField(\"SDK_INT\")";
+if (true) return (int)(BA.ObjectToNumber(_jo.GetField("SDK_INT")));
+ //BA.debugLineNum = 432;BA.debugLine="End Sub";
+return 0;
+}
+public int _getstatus() throws Exception{
+ //BA.debugLineNum = 108;BA.debugLine="Public Sub getStatus As Int";
+ //BA.debugLineNum = 109;BA.debugLine="Return sStatusCode";
+if (true) return _sstatuscode;
+ //BA.debugLineNum = 110;BA.debugLine="End Sub";
+return 0;
+}
+public String _getwebchangelog() throws Exception{
+ //BA.debugLineNum = 126;BA.debugLine="Public Sub getWebChangeLog As String";
+ //BA.debugLineNum = 127;BA.debugLine="Return webclog";
+if (true) return _webclog;
+ //BA.debugLineNum = 128;BA.debugLine="End Sub";
+return "";
+}
+public String _getwebfilesize() throws Exception{
+ //BA.debugLineNum = 132;BA.debugLine="Public Sub getWebFileSize As String";
+ //BA.debugLineNum = 133;BA.debugLine="Return webfsize";
+if (true) return _webfsize;
+ //BA.debugLineNum = 134;BA.debugLine="End Sub";
+return "";
+}
+public String _getwebvn() throws Exception{
+ //BA.debugLineNum = 120;BA.debugLine="Public Sub getWebVN As String";
+ //BA.debugLineNum = 121;BA.debugLine="Return webver";
+if (true) return _webver;
+ //BA.debugLineNum = 122;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callbackmodule,String _eventname) throws Exception{
+innerInitialize(_ba);
+anywheresoftware.b4a.phone.Phone _p = null;
+ //BA.debugLineNum = 48;BA.debugLine="Public Sub Initialize(CallbackModule As Object, Ev";
+ //BA.debugLineNum = 49;BA.debugLine="Callback = CallbackModule";
+_callback = _callbackmodule;
+ //BA.debugLineNum = 50;BA.debugLine="Event = EventName";
+_event = _eventname;
+ //BA.debugLineNum = 51;BA.debugLine="sPackageName = \"\"";
+_spackagename = "";
+ //BA.debugLineNum = 52;BA.debugLine="sNewVerTxt = \"\"";
+_snewvertxt = "";
+ //BA.debugLineNum = 53;BA.debugLine="sNewVerApk = \"\"";
+_snewverapk = "";
+ //BA.debugLineNum = 54;BA.debugLine="sUserName = \"\"";
+_susername = "";
+ //BA.debugLineNum = 55;BA.debugLine="sUPassword = \"\"";
+_supassword = "";
+ //BA.debugLineNum = 56;BA.debugLine="sStatusCode = OK_INIT";
+_sstatuscode = _ok_init;
+ //BA.debugLineNum = 57;BA.debugLine="curver = \"\"";
+_curver = "";
+ //BA.debugLineNum = 58;BA.debugLine="webver = \"\"";
+_webver = "";
+ //BA.debugLineNum = 59;BA.debugLine="sVerbose = False";
+_sverbose = __c.False;
+ //BA.debugLineNum = 60;BA.debugLine="Dim p As Phone";
+_p = new anywheresoftware.b4a.phone.Phone();
+ //BA.debugLineNum = 61;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable =";
+if (_p.getSdkVersion()>=24 || __c.File.getExternalWritable()==__c.False) {
+ //BA.debugLineNum = 62;BA.debugLine="UseFileProvider = True";
+_usefileprovider = __c.True;
+ //BA.debugLineNum = 63;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s";
+_sharedfolder = __c.File.Combine(__c.File.getDirInternal(),"shared");
+ //BA.debugLineNum = 64;BA.debugLine="File.MakeDir(\"\", SharedFolder)";
+__c.File.MakeDir("",_sharedfolder);
+ }else {
+ //BA.debugLineNum = 66;BA.debugLine="UseFileProvider = False";
+_usefileprovider = __c.False;
+ //BA.debugLineNum = 67;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha";
+_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
+ };
+ //BA.debugLineNum = 69;BA.debugLine="Log($\"SDK#: ${p.SdkVersion} - UseFP: ${UseFilePro";
+__c.LogImpl("938273045",("SDK#: "+__c.SmartStringFormatter("",(Object)(_p.getSdkVersion()))+" - UseFP: "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+" - SharedFolder: "+__c.SmartStringFormatter("",(Object)(_sharedfolder))+""),0);
+ //BA.debugLineNum = 70;BA.debugLine="End Sub";
+return "";
+}
+public String _installapk(boolean _pstatus) throws Exception{
+ //BA.debugLineNum = 195;BA.debugLine="Public Sub InstallApk(pstatus As Boolean)";
+ //BA.debugLineNum = 196;BA.debugLine="LogColor(\"---- AppUpdating.InstallApk\", LogColor1";
+__c.LogImpl("939321601","---- AppUpdating.InstallApk",_logcolor1);
+ //BA.debugLineNum = 197;BA.debugLine="If pstatus Then";
+if (_pstatus) {
+ //BA.debugLineNum = 198;BA.debugLine="SendInstallIntent";
+_sendinstallintent();
+ //BA.debugLineNum = 199;BA.debugLine="sStatusCode = OK_INSTALL";
+_sstatuscode = _ok_install;
+ //BA.debugLineNum = 200;BA.debugLine="If sVerbose Then Log(TAB & \"user asked to instal";
+if (_sverbose) {
+__c.LogImpl("939321605",__c.TAB+"user asked to install new apk",0);};
+ }else {
+ //BA.debugLineNum = 202;BA.debugLine="sStatusCode = ERR_NOPERM";
+_sstatuscode = _err_noperm;
+ //BA.debugLineNum = 203;BA.debugLine="If sVerbose Then Log(TAB & \"no permissions from";
+if (_sverbose) {
+__c.LogImpl("939321608",__c.TAB+"no permissions from user to install new apk",0);};
+ };
+ //BA.debugLineNum = 205;BA.debugLine="Finito";
+_finito();
+ //BA.debugLineNum = 206;BA.debugLine="End Sub";
+return "";
+}
+public boolean _isvalidcv() throws Exception{
+anywheresoftware.b4a.phone.PackageManagerWrapper _pm = null;
+ //BA.debugLineNum = 297;BA.debugLine="Private Sub IsValidCV As Boolean";
+ //BA.debugLineNum = 298;BA.debugLine="If sPackageName = \"\" Then";
+if ((_spackagename).equals("")) {
+ //BA.debugLineNum = 299;BA.debugLine="curver = \"\"";
+_curver = "";
+ //BA.debugLineNum = 300;BA.debugLine="sStatusCode = ERR_NOPKG";
+_sstatuscode = _err_nopkg;
+ //BA.debugLineNum = 301;BA.debugLine="If sVerbose Then Log($\"${TAB}missing package nam";
+if (_sverbose) {
+__c.LogImpl("939583748",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"missing package name for current version check"),0);};
+ }else {
+ //BA.debugLineNum = 303;BA.debugLine="Dim pm As PackageManager";
+_pm = new anywheresoftware.b4a.phone.PackageManagerWrapper();
+ //BA.debugLineNum = 304;BA.debugLine="curver = pm.GetVersionName(sPackageName)";
+_curver = _pm.GetVersionName(_spackagename);
+ //BA.debugLineNum = 305;BA.debugLine="sStatusCode = OK_CURVER 'got current ve";
+_sstatuscode = _ok_curver;
+ //BA.debugLineNum = 306;BA.debugLine="If sVerbose Then Log($\"${TAB}Current Version: ${";
+if (_sverbose) {
+__c.LogImpl("939583753",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"Current Version: "+__c.SmartStringFormatter("",(Object)(_curver))+""),0);};
+ };
+ //BA.debugLineNum = 308;BA.debugLine="Return (sStatusCode == OK_CURVER)";
+if (true) return (_sstatuscode==_ok_curver);
+ //BA.debugLineNum = 309;BA.debugLine="End Sub";
+return false;
+}
+public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _isvalidwv() throws Exception{
+ResumableSub_IsvalidWV rsub = new ResumableSub_IsvalidWV(this);
+rsub.resume(ba, null);
+return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
+}
+public static class ResumableSub_IsvalidWV extends BA.ResumableSub {
+public ResumableSub_IsvalidWV(reparto_izca.keymon.lat.cl_appupdate parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.cl_appupdate parent;
+reparto_izca.keymon.lat.httpjob _j = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+{
+parent.__c.ReturnFromResumableSub(this,null);return;}
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 313;BA.debugLine="Log(\"IsValidComplete start\")";
+parent.__c.LogImpl("939649281","IsValidComplete start",0);
+ //BA.debugLineNum = 314;BA.debugLine="If sNewVerTxt = \"\" Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 60;
+if ((parent._snewvertxt).equals("")) {
+this.state = 3;
+}else {
+this.state = 11;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 315;BA.debugLine="webver = \"\"";
+parent._webver = "";
+ //BA.debugLineNum = 316;BA.debugLine="sStatusCode = ERR_NOTXT";
+parent._sstatuscode = parent._err_notxt;
+ //BA.debugLineNum = 317;BA.debugLine="If sVerbose Then Log($\"${TAB}missing info file f";
+if (true) break;
+
+case 4:
+//if
+this.state = 9;
+if (parent._sverbose) {
+this.state = 6;
+;}if (true) break;
+
+case 6:
+//C
+this.state = 9;
+parent.__c.LogImpl("939649285",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0);
+if (true) break;
+
+case 9:
+//C
+this.state = 60;
+;
+ if (true) break;
+
+case 11:
+//C
+this.state = 12;
+ //BA.debugLineNum = 320;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 321;BA.debugLine="j.Initialize(\"\", Me)";
+_j._initialize /*String*/ (ba,"",parent);
+ //BA.debugLineNum = 322;BA.debugLine="j.Username = sUserName";
+_j._username /*String*/ = parent._susername;
+ //BA.debugLineNum = 323;BA.debugLine="j.Password = sUPassword";
+_j._password /*String*/ = parent._supassword;
+ //BA.debugLineNum = 324;BA.debugLine="j.Download(sNewVerTxt) 'ex: jobapk.Downlo";
+_j._download /*String*/ (parent._snewvertxt);
+ //BA.debugLineNum = 325;BA.debugLine="Log(\"before\")";
+parent.__c.LogImpl("939649293","before",0);
+ //BA.debugLineNum = 326;BA.debugLine="Wait For (j) JobDone(j As HttpJob)";
+parent.__c.WaitFor("jobdone", ba, this, (Object)(_j));
+this.state = 61;
+return;
+case 61:
+//C
+this.state = 12;
+_j = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 327;BA.debugLine="Log(\"after\")";
+parent.__c.LogImpl("939649295","after",0);
+ //BA.debugLineNum = 328;BA.debugLine="If j.Success Then";
+if (true) break;
+
+case 12:
+//if
+this.state = 59;
+if (_j._success /*boolean*/ ) {
+this.state = 14;
+}else {
+this.state = 52;
+}if (true) break;
+
+case 14:
+//C
+this.state = 15;
+ //BA.debugLineNum = 329;BA.debugLine="If sVerbose Then Log($\"Webserver's info file co";
+if (true) break;
+
+case 15:
+//if
+this.state = 20;
+if (parent._sverbose) {
+this.state = 17;
+;}if (true) break;
+
+case 17:
+//C
+this.state = 20;
+parent.__c.LogImpl("939649297",("Webserver's info file content: "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_j._getstring /*String*/ ()))+""),0);
+if (true) break;
+
+case 20:
+//C
+this.state = 21;
+;
+ //BA.debugLineNum = 330;BA.debugLine="If Not(J.GetString.Contains(\"\"))";
+if (true) break;
+
+case 21:
+//if
+this.state = 50;
+if (parent.__c.Not(_j._getstring /*String*/ ().contains(""))) {
+this.state = 23;
+}else {
+this.state = 43;
+}if (true) break;
+
+case 23:
+//C
+this.state = 24;
+ //BA.debugLineNum = 331;BA.debugLine="webver = ExtractVN(J.GetString)";
+parent._webver = parent._extractvn(_j._getstring /*String*/ ());
+ //BA.debugLineNum = 332;BA.debugLine="webclog = ExtractCL(J.GetString) 'optional";
+parent._webclog = parent._extractcl(_j._getstring /*String*/ ());
+ //BA.debugLineNum = 333;BA.debugLine="webfsize = ExtractSZ(J.GetString) 'optiona";
+parent._webfsize = parent._extractsz(_j._getstring /*String*/ ());
+ //BA.debugLineNum = 334;BA.debugLine="If webver = \"\" Then";
+if (true) break;
+
+case 24:
+//if
+this.state = 41;
+if ((parent._webver).equals("")) {
+this.state = 26;
+}else {
+this.state = 34;
+}if (true) break;
+
+case 26:
+//C
+this.state = 27;
+ //BA.debugLineNum = 335;BA.debugLine="sStatusCode = ERR_TXTROW";
+parent._sstatuscode = parent._err_txtrow;
+ //BA.debugLineNum = 336;BA.debugLine="If sVerbose Then Log($\"${TAB}wrong row format";
+if (true) break;
+
+case 27:
+//if
+this.state = 32;
+if (parent._sverbose) {
+this.state = 29;
+;}if (true) break;
+
+case 29:
+//C
+this.state = 32;
+parent.__c.LogImpl("939649304",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0);
+if (true) break;
+
+case 32:
+//C
+this.state = 41;
+;
+ if (true) break;
+
+case 34:
+//C
+this.state = 35;
+ //BA.debugLineNum = 338;BA.debugLine="sStatusCode = OK_WEBVER 'read apk's ver";
+parent._sstatuscode = parent._ok_webver;
+ //BA.debugLineNum = 339;BA.debugLine="If sVerbose Then Log($\"${TAB}Web version numb";
+if (true) break;
+
+case 35:
+//if
+this.state = 40;
+if (parent._sverbose) {
+this.state = 37;
+;}if (true) break;
+
+case 37:
+//C
+this.state = 40;
+parent.__c.LogImpl("939649307",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(parent._webver))+""),0);
+if (true) break;
+
+case 40:
+//C
+this.state = 41;
+;
+ if (true) break;
+
+case 41:
+//C
+this.state = 50;
+;
+ if (true) break;
+
+case 43:
+//C
+this.state = 44;
+ //BA.debugLineNum = 342;BA.debugLine="sStatusCode = ERR_HTML 'website returne";
+parent._sstatuscode = parent._err_html;
+ //BA.debugLineNum = 343;BA.debugLine="If sVerbose Then Log($\"${TAB}ERROR: website re";
+if (true) break;
+
+case 44:
+//if
+this.state = 49;
+if (parent._sverbose) {
+this.state = 46;
+;}if (true) break;
+
+case 46:
+//C
+this.state = 49;
+parent.__c.LogImpl("939649311",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0);
+if (true) break;
+
+case 49:
+//C
+this.state = 50;
+;
+ if (true) break;
+
+case 50:
+//C
+this.state = 59;
+;
+ if (true) break;
+
+case 52:
+//C
+this.state = 53;
+ //BA.debugLineNum = 346;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
+parent.__c.LogImpl("939649314",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
+ //BA.debugLineNum = 347;BA.debugLine="sStatusCode = ERR_HTTP";
+parent._sstatuscode = parent._err_http;
+ //BA.debugLineNum = 348;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils";
+if (true) break;
+
+case 53:
+//if
+this.state = 58;
+if (parent._sverbose) {
+this.state = 55;
+;}if (true) break;
+
+case 55:
+//C
+this.state = 58;
+parent.__c.LogImpl("939649316",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
+if (true) break;
+
+case 58:
+//C
+this.state = 59;
+;
+ //BA.debugLineNum = 349;BA.debugLine="ToastMessageShow(\"Error: \" & J.ErrorMessage, Tr";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Error: "+_j._errormessage /*String*/ ),parent.__c.True);
+ if (true) break;
+
+case 59:
+//C
+this.state = 60;
+;
+ //BA.debugLineNum = 351;BA.debugLine="j.Release";
+_j._release /*String*/ ();
+ if (true) break;
+
+case 60:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 353;BA.debugLine="Return (sStatusCode == OK_WEBVER)";
+if (true) {
+parent.__c.ReturnFromResumableSub(this,(Object)((parent._sstatuscode==parent._ok_webver)));return;};
+ //BA.debugLineNum = 354;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _readcurvn() throws Exception{
+ //BA.debugLineNum = 143;BA.debugLine="Public Sub ReadCurVN";
+ //BA.debugLineNum = 144;BA.debugLine="LogColor(\"---- AppUpdating.ReadCurVN\", LogColor1)";
+__c.LogImpl("939124993","---- AppUpdating.ReadCurVN",_logcolor1);
+ //BA.debugLineNum = 145;BA.debugLine="IsValidCV 'we don't care about its resu";
+_isvalidcv();
+ //BA.debugLineNum = 146;BA.debugLine="Finito";
+_finito();
+ //BA.debugLineNum = 147;BA.debugLine="End Sub";
+return "";
+}
+public void _readwebvn() throws Exception{
+ResumableSub_ReadWebVN rsub = new ResumableSub_ReadWebVN(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_ReadWebVN extends BA.ResumableSub {
+public ResumableSub_ReadWebVN(reparto_izca.keymon.lat.cl_appupdate parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.cl_appupdate parent;
+boolean _okwebver = false;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 152;BA.debugLine="LogColor(\"---- AppUpdating.ReadWebVN\", LogColor1)";
+parent.__c.LogImpl("939190529","---- AppUpdating.ReadWebVN",parent._logcolor1);
+ //BA.debugLineNum = 153;BA.debugLine="Wait For(IsvalidWV) Complete (OkWebVer As Boolean";
+parent.__c.WaitFor("complete", ba, this, parent._isvalidwv());
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+_okwebver = (Boolean) result[0];
+;
+ //BA.debugLineNum = 154;BA.debugLine="Finito";
+parent._finito();
+ //BA.debugLineNum = 155;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public void _complete(boolean _okwebver) throws Exception{
+}
+public String _sendinstallintent() throws Exception{
+String _apkname = "";
+anywheresoftware.b4a.objects.IntentWrapper _i = null;
+ //BA.debugLineNum = 487;BA.debugLine="Private Sub SendInstallIntent";
+ //BA.debugLineNum = 488;BA.debugLine="Dim ApkName As String = \"tmp.apk\"";
+_apkname = "tmp.apk";
+ //BA.debugLineNum = 489;BA.debugLine="Dim i As Intent";
+_i = new anywheresoftware.b4a.objects.IntentWrapper();
+ //BA.debugLineNum = 490;BA.debugLine="If phone.SdkVersion >= 24 Then 'Nouga";
+if (_phone.getSdkVersion()>=24) {
+ //BA.debugLineNum = 491;BA.debugLine="i.Initialize(\"android.intent.action.INSTALL_PACK";
+_i.Initialize("android.intent.action.INSTALL_PACKAGE",BA.ObjectToString(_getfileuri(_apkname)));
+ //BA.debugLineNum = 492;BA.debugLine="i.Flags = Bit.Or(i.Flags, 1) 'FLAG_GRANT_READ_UR";
+_i.setFlags(__c.Bit.Or(_i.getFlags(),(int) (1)));
+ }else {
+ //BA.debugLineNum = 494;BA.debugLine="i.Initialize(i.ACTION_VIEW, \"file://\" & File.Com";
+_i.Initialize(_i.ACTION_VIEW,"file://"+__c.File.Combine(_sharedfolder,_apkname));
+ //BA.debugLineNum = 495;BA.debugLine="i.SetType(\"application/vnd.android.package-archi";
+_i.SetType("application/vnd.android.package-archive");
+ };
+ //BA.debugLineNum = 497;BA.debugLine="StartActivity(i)";
+__c.StartActivity(ba,(Object)(_i.getObject()));
+ //BA.debugLineNum = 498;BA.debugLine="End Sub";
+return "";
+}
+public String _setandstartsplashscreen(anywheresoftware.b4a.objects.ActivityWrapper _callingact,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bm) throws Exception{
+anywheresoftware.b4a.objects.drawable.BitmapDrawable _bitimage = null;
+ //BA.debugLineNum = 532;BA.debugLine="Public Sub SetAndStartSplashScreen(CallingAct As A";
+ //BA.debugLineNum = 533;BA.debugLine="If BM.IsInitialized Then";
+if (_bm.IsInitialized()) {
+ //BA.debugLineNum = 534;BA.debugLine="pnlSplash.Initialize(\"pnl1\")";
+_pnlsplash.Initialize(ba,"pnl1");
+ //BA.debugLineNum = 535;BA.debugLine="pnlSplash.Tag = \"splash\"";
+_pnlsplash.setTag((Object)("splash"));
+ //BA.debugLineNum = 536;BA.debugLine="Dim BitImage As BitmapDrawable";
+_bitimage = new anywheresoftware.b4a.objects.drawable.BitmapDrawable();
+ //BA.debugLineNum = 537;BA.debugLine="BitImage.Initialize(BM)";
+_bitimage.Initialize((android.graphics.Bitmap)(_bm.getObject()));
+ //BA.debugLineNum = 538;BA.debugLine="BitImage.Gravity = Gravity.FILL";
+_bitimage.setGravity(__c.Gravity.FILL);
+ //BA.debugLineNum = 539;BA.debugLine="CallingAct.AddView(pnlSplash, 0, 0, CallingAct.W";
+_callingact.AddView((android.view.View)(_pnlsplash.getObject()),(int) (0),(int) (0),_callingact.getWidth(),_callingact.getHeight());
+ //BA.debugLineNum = 540;BA.debugLine="pnlSplash.Background = BitImage";
+_pnlsplash.setBackground((android.graphics.drawable.Drawable)(_bitimage.getObject()));
+ //BA.debugLineNum = 541;BA.debugLine="pnlSplash.BringToFront";
+_pnlsplash.BringToFront();
+ //BA.debugLineNum = 542;BA.debugLine="SplashShowing = True";
+_splashshowing = __c.True;
+ };
+ //BA.debugLineNum = 544;BA.debugLine="End Sub";
+return "";
+}
+public String _setcredentials(String _usern,String _userp) throws Exception{
+ //BA.debugLineNum = 96;BA.debugLine="Public Sub setCredentials(UserN As String, UserP A";
+ //BA.debugLineNum = 97;BA.debugLine="sUserName = UserN";
+_susername = _usern;
+ //BA.debugLineNum = 98;BA.debugLine="sUPassword = UserP";
+_supassword = _userp;
+ //BA.debugLineNum = 99;BA.debugLine="End Sub";
+return "";
+}
+public String _setfileuriasintentdata(anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 520;BA.debugLine="Private Sub SetFileUriAsIntentData (Intent As Inte";
+ //BA.debugLineNum = 521;BA.debugLine="Dim jo As JavaObject = Intent";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_intent.getObject()));
+ //BA.debugLineNum = 522;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName";
+_jo.RunMethod("setData",new Object[]{_getfileuri(_filename)});
+ //BA.debugLineNum = 523;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN";
+_intent.setFlags(__c.Bit.Or(_intent.getFlags(),(int) (1)));
+ //BA.debugLineNum = 524;BA.debugLine="End Sub";
+return "";
+}
+public String _setnewverapk(String _nva) throws Exception{
+ //BA.debugLineNum = 91;BA.debugLine="Public Sub setNewVerApk(NVA As String)";
+ //BA.debugLineNum = 92;BA.debugLine="sNewVerApk = NVA";
+_snewverapk = _nva;
+ //BA.debugLineNum = 93;BA.debugLine="End Sub";
+return "";
+}
+public String _setnewvertxt(String _nvt) throws Exception{
+ //BA.debugLineNum = 86;BA.debugLine="Public Sub setNewVerTxt(NVT As String)";
+ //BA.debugLineNum = 87;BA.debugLine="sNewVerTxt = NVT";
+_snewvertxt = _nvt;
+ //BA.debugLineNum = 88;BA.debugLine="End Sub";
+return "";
+}
+public String _setpackagename(String _pn) throws Exception{
+ //BA.debugLineNum = 74;BA.debugLine="Public Sub setPackageName(PN As String)";
+ //BA.debugLineNum = 75;BA.debugLine="sPackageName = PN";
+_spackagename = _pn;
+ //BA.debugLineNum = 76;BA.debugLine="End Sub";
+return "";
+}
+public String _setverbose(boolean _verbose) throws Exception{
+ //BA.debugLineNum = 102;BA.debugLine="Public Sub setVerbose(Verbose As Boolean)";
+ //BA.debugLineNum = 103;BA.debugLine="sVerbose = Verbose";
+_sverbose = _verbose;
+ //BA.debugLineNum = 104;BA.debugLine="newinst2.svcVerbose = Verbose";
+_newinst2._svcverbose /*boolean*/ = _verbose;
+ //BA.debugLineNum = 105;BA.debugLine="End Sub";
+return "";
+}
+public String _stopsplashscreen() throws Exception{
+ //BA.debugLineNum = 547;BA.debugLine="Public Sub StopSplashScreen";
+ //BA.debugLineNum = 548;BA.debugLine="If SplashShowing Then";
+if (_splashshowing) {
+ //BA.debugLineNum = 549;BA.debugLine="SplashShowing = False";
+_splashshowing = __c.False;
+ //BA.debugLineNum = 550;BA.debugLine="pnlSplash.RemoveView";
+_pnlsplash.RemoveView();
+ };
+ //BA.debugLineNum = 552;BA.debugLine="End Sub";
+return "";
+}
+public void _tryapkupdate() throws Exception{
+ResumableSub_TryApkUpdate rsub = new ResumableSub_TryApkUpdate(this);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_TryApkUpdate extends BA.ResumableSub {
+public ResumableSub_TryApkUpdate(reparto_izca.keymon.lat.cl_appupdate parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.cl_appupdate parent;
+reparto_izca.keymon.lat.httpjob _j = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+try {
+
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 246;BA.debugLine="LogColor($\"${TAB}-- TryApkUpdate\"$, LogColor1)";
+parent.__c.LogImpl("939452673",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"-- TryApkUpdate"),parent._logcolor1);
+ //BA.debugLineNum = 248;BA.debugLine="If ((sStatusCode >= 0) And (sStatusCode <> NO_NEW";
+if (true) break;
+
+case 1:
+//if
+this.state = 44;
+if (((parent._sstatuscode>=0) && (parent._sstatuscode!=parent._no_newerapk))) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 250;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 251;BA.debugLine="j.Initialize(\"\", Me)";
+_j._initialize /*String*/ (ba,"",parent);
+ //BA.debugLineNum = 252;BA.debugLine="j.Username = sUserName";
+_j._username /*String*/ = parent._susername;
+ //BA.debugLineNum = 253;BA.debugLine="j.Password = sUPassword";
+_j._password /*String*/ = parent._supassword;
+ //BA.debugLineNum = 254;BA.debugLine="j.Download(sNewVerApk) 'ex: jobapk.Downlo";
+_j._download /*String*/ (parent._snewverapk);
+ //BA.debugLineNum = 255;BA.debugLine="Wait For (j) JobDone(j As HttpJob)";
+parent.__c.WaitFor("jobdone", ba, this, (Object)(_j));
+this.state = 45;
+return;
+case 45:
+//C
+this.state = 4;
+_j = (reparto_izca.keymon.lat.httpjob) result[0];
+;
+ //BA.debugLineNum = 256;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
+parent.__c.LogImpl("939452683",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
+ //BA.debugLineNum = 257;BA.debugLine="If j.Success Then";
+if (true) break;
+
+case 4:
+//if
+this.state = 33;
+if (_j._success /*boolean*/ ) {
+this.state = 6;
+}else {
+this.state = 26;
+}if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 258;BA.debugLine="Try";
+if (true) break;
+
+case 7:
+//try
+this.state = 24;
+this.catchState = 17;
+this.state = 9;
+if (true) break;
+
+case 9:
+//C
+this.state = 10;
+this.catchState = 17;
+ //BA.debugLineNum = 260;BA.debugLine="Dim out As OutputStream";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 261;BA.debugLine="out = File.OpenOutput(SharedFolder,\"tmp.apk\",F";
+_out = parent.__c.File.OpenOutput(parent._sharedfolder,"tmp.apk",parent.__c.False);
+ //BA.debugLineNum = 262;BA.debugLine="File.Copy2(j.GetInputStream, out)";
+parent.__c.File.Copy2((java.io.InputStream)(_j._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ ().getObject()),(java.io.OutputStream)(_out.getObject()));
+ //BA.debugLineNum = 263;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 264;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)";
+parent.__c.LogImpl("939452691",("Copy2 (saving) ok? TRUE"),0);
+ //BA.debugLineNum = 265;BA.debugLine="sStatusCode = OK_DOWNLOAD";
+parent._sstatuscode = parent._ok_download;
+ //BA.debugLineNum = 266;BA.debugLine="If sVerbose Then Log($\"${TAB}new apk version d";
+if (true) break;
+
+case 10:
+//if
+this.state = 15;
+if (parent._sverbose) {
+this.state = 12;
+;}if (true) break;
+
+case 12:
+//C
+this.state = 15;
+parent.__c.LogImpl("939452693",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
+if (true) break;
+
+case 15:
+//C
+this.state = 24;
+;
+ if (true) break;
+
+case 17:
+//C
+this.state = 18;
+this.catchState = 0;
+ //BA.debugLineNum = 268;BA.debugLine="Log($\"Copy2 (saving) ok? FALSE\"$)";
+parent.__c.LogImpl("939452695",("Copy2 (saving) ok? FALSE"),0);
+ //BA.debugLineNum = 269;BA.debugLine="sStatusCode = ERR_DOWNLOAD";
+parent._sstatuscode = parent._err_download;
+ //BA.debugLineNum = 270;BA.debugLine="If sVerbose Then Log($\"${TAB}failed download o";
+if (true) break;
+
+case 18:
+//if
+this.state = 23;
+if (parent._sverbose) {
+this.state = 20;
+;}if (true) break;
+
+case 20:
+//C
+this.state = 23;
+parent.__c.LogImpl("939452697",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0);
+if (true) break;
+
+case 23:
+//C
+this.state = 24;
+;
+ //BA.debugLineNum = 271;BA.debugLine="ToastMessageShow(LastException, True)";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence(parent.__c.LastException(ba).getObject()),parent.__c.True);
+ if (true) break;
+if (true) break;
+
+case 24:
+//C
+this.state = 33;
+this.catchState = 0;
+;
+ if (true) break;
+
+case 26:
+//C
+this.state = 27;
+ //BA.debugLineNum = 274;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
+parent.__c.LogImpl("939452701",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
+ //BA.debugLineNum = 275;BA.debugLine="sStatusCode = ERR_HTTP";
+parent._sstatuscode = parent._err_http;
+ //BA.debugLineNum = 276;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils";
+if (true) break;
+
+case 27:
+//if
+this.state = 32;
+if (parent._sverbose) {
+this.state = 29;
+;}if (true) break;
+
+case 29:
+//C
+this.state = 32;
+parent.__c.LogImpl("939452703",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
+if (true) break;
+
+case 32:
+//C
+this.state = 33;
+;
+ //BA.debugLineNum = 277;BA.debugLine="ToastMessageShow($\"Error: ${J.ErrorMessage}\"$,";
+parent.__c.ToastMessageShow(BA.ObjectToCharSequence(("Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+"")),parent.__c.True);
+ if (true) break;
+
+case 33:
+//C
+this.state = 34;
+;
+ //BA.debugLineNum = 279;BA.debugLine="j.Release";
+_j._release /*String*/ ();
+ //BA.debugLineNum = 280;BA.debugLine="If sStatusCode == OK_DOWNLOAD Then";
+if (true) break;
+
+case 34:
+//if
+this.state = 43;
+if (parent._sstatuscode==parent._ok_download) {
+this.state = 36;
+}if (true) break;
+
+case 36:
+//C
+this.state = 37;
+ //BA.debugLineNum = 281;BA.debugLine="SendInstallIntent";
+parent._sendinstallintent();
+ //BA.debugLineNum = 282;BA.debugLine="sStatusCode = OK_INSTALL";
+parent._sstatuscode = parent._ok_install;
+ //BA.debugLineNum = 283;BA.debugLine="If sVerbose Then Log($\"${TAB}user asked to inst";
+if (true) break;
+
+case 37:
+//if
+this.state = 42;
+if (parent._sverbose) {
+this.state = 39;
+;}if (true) break;
+
+case 39:
+//C
+this.state = 42;
+parent.__c.LogImpl("939452710",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0);
+if (true) break;
+
+case 42:
+//C
+this.state = 43;
+;
+ if (true) break;
+
+case 43:
+//C
+this.state = 44;
+;
+ if (true) break;
+
+case 44:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 286;BA.debugLine="Finito";
+parent._finito();
+ //BA.debugLineNum = 287;BA.debugLine="End Sub";
+if (true) break;
+}}
+ catch (Exception e0) {
+
+if (catchState == 0)
+ throw e0;
+else {
+ state = catchState;
+ba.setLastException(e0);}
+ }
+ }
+ }
+}
+public void _updateapk(boolean _pstatus) throws Exception{
+ResumableSub_UpdateApk rsub = new ResumableSub_UpdateApk(this,_pstatus);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_UpdateApk extends BA.ResumableSub {
+public ResumableSub_UpdateApk(reparto_izca.keymon.lat.cl_appupdate parent,boolean _pstatus) {
+this.parent = parent;
+this._pstatus = _pstatus;
+}
+reparto_izca.keymon.lat.cl_appupdate parent;
+boolean _pstatus;
+boolean _okwebver = false;
+long _fsize = 0L;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 211;BA.debugLine="LogColor(\"---- AppUpdating.UpdateApk\", LogColor1)";
+parent.__c.LogImpl("939387137","---- AppUpdating.UpdateApk",parent._logcolor1);
+ //BA.debugLineNum = 212;BA.debugLine="If Not(pstatus) Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 61;
+if (parent.__c.Not(_pstatus)) {
+this.state = 3;
+}else {
+this.state = 11;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 213;BA.debugLine="sStatusCode = ERR_NOPERM";
+parent._sstatuscode = parent._err_noperm;
+ //BA.debugLineNum = 214;BA.debugLine="If sVerbose Then Log(TAB & \"no permissions from";
+if (true) break;
+
+case 4:
+//if
+this.state = 9;
+if (parent._sverbose) {
+this.state = 6;
+;}if (true) break;
+
+case 6:
+//C
+this.state = 9;
+parent.__c.LogImpl("939387140",parent.__c.TAB+"no permissions from user to install new apk",0);
+if (true) break;
+
+case 9:
+//C
+this.state = 61;
+;
+ if (true) break;
+
+case 11:
+//C
+this.state = 12;
+ //BA.debugLineNum = 216;BA.debugLine="Wait For(IsvalidWV) Complete (OkWebVer As Boolea";
+parent.__c.WaitFor("complete", ba, this, parent._isvalidwv());
+this.state = 62;
+return;
+case 62:
+//C
+this.state = 12;
+_okwebver = (Boolean) result[0];
+;
+ //BA.debugLineNum = 217;BA.debugLine="If (IsValidCV And OkWebVer) Then 'here we";
+if (true) break;
+
+case 12:
+//if
+this.state = 60;
+if ((parent._isvalidcv() && _okwebver)) {
+this.state = 14;
+}if (true) break;
+
+case 14:
+//C
+this.state = 15;
+ //BA.debugLineNum = 218;BA.debugLine="If curver < webver Then";
+if (true) break;
+
+case 15:
+//if
+this.state = 59;
+if ((double)(Double.parseDouble(parent._curver))<(double)(Double.parseDouble(parent._webver))) {
+this.state = 17;
+}else {
+this.state = 52;
+}if (true) break;
+
+case 17:
+//C
+this.state = 18;
+ //BA.debugLineNum = 220;BA.debugLine="If IsNumber(webfsize) Then";
+if (true) break;
+
+case 18:
+//if
+this.state = 31;
+if (parent.__c.IsNumber(parent._webfsize)) {
+this.state = 20;
+}if (true) break;
+
+case 20:
+//C
+this.state = 21;
+ //BA.debugLineNum = 221;BA.debugLine="Dim fsize As Long = webfsize";
+_fsize = (long)(Double.parseDouble(parent._webfsize));
+ //BA.debugLineNum = 222;BA.debugLine="If fsize*2 > GetFreeSpace Then";
+if (true) break;
+
+case 21:
+//if
+this.state = 30;
+if (_fsize*2>parent._getfreespace()) {
+this.state = 23;
+}if (true) break;
+
+case 23:
+//C
+this.state = 24;
+ //BA.debugLineNum = 223;BA.debugLine="sStatusCode = ERR_NOSPACE";
+parent._sstatuscode = parent._err_nospace;
+ //BA.debugLineNum = 224;BA.debugLine="If sVerbose Then Log($\"${TAB}no enough avail";
+if (true) break;
+
+case 24:
+//if
+this.state = 29;
+if (parent._sverbose) {
+this.state = 26;
+;}if (true) break;
+
+case 26:
+//C
+this.state = 29;
+parent.__c.LogImpl("939387150",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0);
+if (true) break;
+
+case 29:
+//C
+this.state = 30;
+;
+ if (true) break;
+
+case 30:
+//C
+this.state = 31;
+;
+ if (true) break;
+;
+ //BA.debugLineNum = 227;BA.debugLine="If sStatusCode >= 0 Then";
+
+case 31:
+//if
+this.state = 50;
+if (parent._sstatuscode>=0) {
+this.state = 33;
+}if (true) break;
+
+case 33:
+//C
+this.state = 34;
+ //BA.debugLineNum = 228;BA.debugLine="sStatusCode = OK_NEWERAPK 'info file tells";
+parent._sstatuscode = parent._ok_newerapk;
+ //BA.debugLineNum = 229;BA.debugLine="If sVerbose Then Log($\"${TAB}Newer version av";
+if (true) break;
+
+case 34:
+//if
+this.state = 39;
+if (parent._sverbose) {
+this.state = 36;
+;}if (true) break;
+
+case 36:
+//C
+this.state = 39;
+parent.__c.LogImpl("939387155",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Newer version available. Now I try its downloading"),0);
+if (true) break;
+
+case 39:
+//C
+this.state = 40;
+;
+ //BA.debugLineNum = 230;BA.debugLine="If sNewVerApk = \"\" Then";
+if (true) break;
+
+case 40:
+//if
+this.state = 49;
+if ((parent._snewverapk).equals("")) {
+this.state = 42;
+}if (true) break;
+
+case 42:
+//C
+this.state = 43;
+ //BA.debugLineNum = 231;BA.debugLine="sStatusCode = ERR_NOAPK";
+parent._sstatuscode = parent._err_noapk;
+ //BA.debugLineNum = 232;BA.debugLine="If sVerbose Then Log($\"${TAB}missing apk fil";
+if (true) break;
+
+case 43:
+//if
+this.state = 48;
+if (parent._sverbose) {
+this.state = 45;
+;}if (true) break;
+
+case 45:
+//C
+this.state = 48;
+parent.__c.LogImpl("939387158",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
+if (true) break;
+
+case 48:
+//C
+this.state = 49;
+;
+ if (true) break;
+
+case 49:
+//C
+this.state = 50;
+;
+ if (true) break;
+
+case 50:
+//C
+this.state = 59;
+;
+ if (true) break;
+
+case 52:
+//C
+this.state = 53;
+ //BA.debugLineNum = 236;BA.debugLine="sStatusCode = NO_NEWERAPK";
+parent._sstatuscode = parent._no_newerapk;
+ //BA.debugLineNum = 237;BA.debugLine="If sVerbose Then Log($\"${TAB}No newer version";
+if (true) break;
+
+case 53:
+//if
+this.state = 58;
+if (parent._sverbose) {
+this.state = 55;
+;}if (true) break;
+
+case 55:
+//C
+this.state = 58;
+parent.__c.LogImpl("939387163",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0);
+if (true) break;
+
+case 58:
+//C
+this.state = 59;
+;
+ if (true) break;
+
+case 59:
+//C
+this.state = 60;
+;
+ if (true) break;
+
+case 60:
+//C
+this.state = 61;
+;
+ if (true) break;
+
+case 61:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 241;BA.debugLine="TryApkUpdate 'if available and permitted, do";
+parent._tryapkupdate();
+ //BA.debugLineNum = 242;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/dbrequestmanager.java b/B4A/Objects/src/reparto_izca/keymon/lat/dbrequestmanager.java
new file mode 100644
index 0000000..8e5bfbf
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/dbrequestmanager.java
@@ -0,0 +1,690 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class dbrequestmanager extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.dbrequestmanager");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.dbrequestmanager.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public Object _mtarget = null;
+public String _link = "";
+public anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null;
+public byte _t_null = (byte)0;
+public byte _t_string = (byte)0;
+public byte _t_short = (byte)0;
+public byte _t_int = (byte)0;
+public byte _t_long = (byte)0;
+public byte _t_float = (byte)0;
+public byte _t_double = (byte)0;
+public byte _t_boolean = (byte)0;
+public byte _t_blob = (byte)0;
+public float _version = 0f;
+public Object[] _temparray = null;
+public String _jobtaganterior = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _dbresult{
+public boolean IsInitialized;
+public Object Tag;
+public anywheresoftware.b4a.objects.collections.Map Columns;
+public anywheresoftware.b4a.objects.collections.List Rows;
+public void Initialize() {
+IsInitialized = true;
+Tag = new Object();
+Columns = new anywheresoftware.b4a.objects.collections.Map();
+Rows = new anywheresoftware.b4a.objects.collections.List();
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public static class _dbcommand{
+public boolean IsInitialized;
+public String Name;
+public Object[] Parameters;
+public void Initialize() {
+IsInitialized = true;
+Name = "";
+Parameters = new Object[0];
+{
+int d0 = Parameters.length;
+for (int i0 = 0;i0 < d0;i0++) {
+Parameters[i0] = new Object();
+}
+}
+;
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bytestoimage(byte[] _bytes) throws Exception{
+anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
+anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
+ //BA.debugLineNum = 239;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap";
+ //BA.debugLineNum = 240;BA.debugLine="Dim In As InputStream";
+_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
+ //BA.debugLineNum = 241;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt";
+_in.InitializeFromBytesArray(_bytes,(int) (0),_bytes.length);
+ //BA.debugLineNum = 242;BA.debugLine="Dim bmp As Bitmap";
+_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
+ //BA.debugLineNum = 243;BA.debugLine="bmp.Initialize2(In)";
+_bmp.Initialize2((java.io.InputStream)(_in.getObject()));
+ //BA.debugLineNum = 244;BA.debugLine="Return bmp";
+if (true) return _bmp;
+ //BA.debugLineNum = 245;BA.debugLine="End Sub";
+return null;
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 3;BA.debugLine="Private mTarget As Object";
+_mtarget = new Object();
+ //BA.debugLineNum = 4;BA.debugLine="Type DBResult (Tag As Object, Columns As Map, Row";
+;
+ //BA.debugLineNum = 5;BA.debugLine="Type DBCommand (Name As String, Parameters() As O";
+;
+ //BA.debugLineNum = 6;BA.debugLine="Private link As String";
+_link = "";
+ //BA.debugLineNum = 7;BA.debugLine="Private bc As ByteConverter";
+_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter();
+ //BA.debugLineNum = 8;BA.debugLine="Private T_NULL = 0, T_STRING = 1, T_SHORT = 2, T_";
+_t_null = (byte) (0);
+_t_string = (byte) (1);
+_t_short = (byte) (2);
+_t_int = (byte) (3);
+_t_long = (byte) (4);
+_t_float = (byte) (5);
+_t_double = (byte) (6);
+_t_boolean = (byte) (7);
+_t_blob = (byte) (8);
+ //BA.debugLineNum = 10;BA.debugLine="Private VERSION As Float = 0.9";
+_version = (float) (0.9);
+ //BA.debugLineNum = 11;BA.debugLine="Private tempArray(1) As Object";
+_temparray = new Object[(int) (1)];
+{
+int d0 = _temparray.length;
+for (int i0 = 0;i0 < d0;i0++) {
+_temparray[i0] = new Object();
+}
+}
+;
+ //BA.debugLineNum = 12;BA.debugLine="Dim jobTagAnterior As String = \"\" 'Mod por CHV -";
+_jobtaganterior = "";
+ //BA.debugLineNum = 13;BA.debugLine="End Sub";
+return "";
+}
+public String _executebatch(anywheresoftware.b4a.objects.collections.List _listofcommands,Object _tag) throws Exception{
+reparto_izca.keymon.lat.httpjob _j = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null;
+reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command = null;
+ //BA.debugLineNum = 41;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta";
+ //BA.debugLineNum = 42;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 43;BA.debugLine="Dim ms As OutputStream";
+_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)";
+_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out2 = _startjob(_j,_ms,_tag);
+ //BA.debugLineNum = 45;BA.debugLine="WriteInt(ListOfCommands.Size, out2)";
+_writeint(_listofcommands.getSize(),_out2);
+ //BA.debugLineNum = 46;BA.debugLine="For Each Command As DBCommand In ListOfCommands";
+{
+final anywheresoftware.b4a.BA.IterableList group5 = _listofcommands;
+final int groupLen5 = group5.getSize()
+;int index5 = 0;
+;
+for (; index5 < groupLen5;index5++){
+_command = (reparto_izca.keymon.lat.dbrequestmanager._dbcommand)(group5.Get(index5));
+ //BA.debugLineNum = 47;BA.debugLine="WriteObject(Command.Name, out2)";
+_writeobject((Object)(_command.Name /*String*/ ),_out2);
+ //BA.debugLineNum = 48;BA.debugLine="WriteList(Command.Parameters, out2)";
+_writelist(anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2);
+ }
+};
+ //BA.debugLineNum = 50;BA.debugLine="out2.Close";
+_out2.Close();
+ //BA.debugLineNum = 51;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr";
+_j._postbytes /*String*/ (_link+"?method=batch",_ms.ToBytesArray());
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return "";
+}
+public String _executecommand(reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,Object _tag) throws Exception{
+ //BA.debugLineNum = 55;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta";
+ //BA.debugLineNum = 56;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)";
+_executebatch(anywheresoftware.b4a.keywords.Common.ArrayToList(new reparto_izca.keymon.lat.dbrequestmanager._dbcommand[]{_command}),_tag);
+ //BA.debugLineNum = 57;BA.debugLine="End Sub";
+return "";
+}
+public String _executequery(reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,int _limit,Object _tag) throws Exception{
+reparto_izca.keymon.lat.httpjob _j = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null;
+ //BA.debugLineNum = 26;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi";
+ //BA.debugLineNum = 27;BA.debugLine="Dim j As HttpJob";
+_j = new reparto_izca.keymon.lat.httpjob();
+ //BA.debugLineNum = 28;BA.debugLine="Dim ms As OutputStream";
+_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)";
+_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out2 = _startjob(_j,_ms,_tag);
+ //BA.debugLineNum = 31;BA.debugLine="WriteObject(Command.Name, out2)";
+_writeobject((Object)(_command.Name /*String*/ ),_out2);
+ //BA.debugLineNum = 32;BA.debugLine="WriteInt(Limit, out2)";
+_writeint(_limit,_out2);
+ //BA.debugLineNum = 33;BA.debugLine="WriteList(Command.Parameters, out2)";
+_writelist(anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2);
+ //BA.debugLineNum = 34;BA.debugLine="out2.Close";
+_out2.Close();
+ //BA.debugLineNum = 35;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr";
+_j._postbytes /*String*/ (_link+"?method=query",_ms.ToBytesArray());
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return "";
+}
+public byte[] _filetobytes(String _dir,String _filename) throws Exception{
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
+ //BA.debugLineNum = 221;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As";
+ //BA.debugLineNum = 222;BA.debugLine="Dim out As OutputStream";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 223;BA.debugLine="out.InitializeToBytesArray(0)";
+_out.InitializeToBytesArray((int) (0));
+ //BA.debugLineNum = 224;BA.debugLine="Dim In As InputStream = File.OpenInput(Dir, FileN";
+_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
+_in = __c.File.OpenInput(_dir,_filename);
+ //BA.debugLineNum = 225;BA.debugLine="File.Copy2(In, out)";
+__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject()));
+ //BA.debugLineNum = 226;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 227;BA.debugLine="Return out.ToBytesArray";
+if (true) return _out.ToBytesArray();
+ //BA.debugLineNum = 228;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.dbrequestmanager._dbresult _handlejob(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
+anywheresoftware.b4a.randomaccessfile.CompressedStreams _cs = null;
+float _serverversion = 0f;
+String _method = "";
+reparto_izca.keymon.lat.dbrequestmanager._dbresult _table = null;
+int _numberofcolumns = 0;
+int _i = 0;
+Object[] _rowobjects = null;
+int _col = 0;
+Object _o = null;
+int _rows = 0;
+ //BA.debugLineNum = 182;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult";
+ //BA.debugLineNum = 184;BA.debugLine="Dim In As InputStream = Job.GetInputStream";
+_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
+_in = _job._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ ();
+ //BA.debugLineNum = 185;BA.debugLine="Dim cs As CompressedStreams";
+_cs = new anywheresoftware.b4a.randomaccessfile.CompressedStreams();
+ //BA.debugLineNum = 186;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")";
+_in = _cs.WrapInputStream((java.io.InputStream)(_in.getObject()),"gzip");
+ //BA.debugLineNum = 187;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno";
+_serverversion = (float)(BA.ObjectToNumber(_readobject(_in)));
+ //BA.debugLineNum = 188;BA.debugLine="Dim method As String = ReadObject(In)";
+_method = BA.ObjectToString(_readobject(_in));
+ //BA.debugLineNum = 189;BA.debugLine="Dim table As DBResult";
+_table = new reparto_izca.keymon.lat.dbrequestmanager._dbresult();
+ //BA.debugLineNum = 190;BA.debugLine="table.Initialize";
+_table.Initialize();
+ //BA.debugLineNum = 191;BA.debugLine="table.Columns.Initialize";
+_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
+ //BA.debugLineNum = 192;BA.debugLine="table.rows.Initialize";
+_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
+ //BA.debugLineNum = 193;BA.debugLine="table.Tag = Job.Tag";
+_table.Tag /*Object*/ = _job._tag /*Object*/ ;
+ //BA.debugLineNum = 194;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl";
+if ((_jobtaganterior).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) {
+__c.LogImpl("524903692","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.Blue);};
+ //BA.debugLineNum = 195;BA.debugLine="jobTagAnterior = Job.Tag 'Mod por CHV - 211023";
+_jobtaganterior = BA.ObjectToString(_job._tag /*Object*/ );
+ //BA.debugLineNum = 196;BA.debugLine="If method = \"query\" Then";
+if ((_method).equals("query")) {
+ //BA.debugLineNum = 197;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)";
+_numberofcolumns = _readint(_in);
+ //BA.debugLineNum = 198;BA.debugLine="For i = 0 To numberOfColumns - 1";
+{
+final int step15 = 1;
+final int limit15 = (int) (_numberofcolumns-1);
+_i = (int) (0) ;
+for (;_i <= limit15 ;_i = _i + step15 ) {
+ //BA.debugLineNum = 199;BA.debugLine="table.Columns.Put(ReadObject(In), i)";
+_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put(_readobject(_in),(Object)(_i));
+ }
+};
+ //BA.debugLineNum = 201;BA.debugLine="Do While ReadByte(In) = 1";
+while (_readbyte(_in)==1) {
+ //BA.debugLineNum = 202;BA.debugLine="Dim rowObjects(numberOfColumns) As Object";
+_rowobjects = new Object[_numberofcolumns];
+{
+int d0 = _rowobjects.length;
+for (int i0 = 0;i0 < d0;i0++) {
+_rowobjects[i0] = new Object();
+}
+}
+;
+ //BA.debugLineNum = 203;BA.debugLine="table.rows.Add(rowObjects)";
+_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_rowobjects));
+ //BA.debugLineNum = 204;BA.debugLine="For col = 0 To numberOfColumns - 1";
+{
+final int step21 = 1;
+final int limit21 = (int) (_numberofcolumns-1);
+_col = (int) (0) ;
+for (;_col <= limit21 ;_col = _col + step21 ) {
+ //BA.debugLineNum = 205;BA.debugLine="Dim o As Object = ReadObject(In)";
+_o = _readobject(_in);
+ //BA.debugLineNum = 206;BA.debugLine="rowObjects(col) = o";
+_rowobjects[_col] = _o;
+ }
+};
+ }
+;
+ }else if((_method).equals("batch")) {
+ //BA.debugLineNum = 210;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)";
+_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)("AffectedRows"),(Object)(0));
+ //BA.debugLineNum = 211;BA.debugLine="Dim rows As Int = ReadInt(In)";
+_rows = _readint(_in);
+ //BA.debugLineNum = 212;BA.debugLine="For i = 0 To rows - 1";
+{
+final int step29 = 1;
+final int limit29 = (int) (_rows-1);
+_i = (int) (0) ;
+for (;_i <= limit29 ;_i = _i + step29 ) {
+ //BA.debugLineNum = 213;BA.debugLine="table.rows.Add(Array As Object(ReadInt(In)))";
+_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(new Object[]{(Object)(_readint(_in))}));
+ }
+};
+ };
+ //BA.debugLineNum = 216;BA.debugLine="In.Close";
+_in.Close();
+ //BA.debugLineNum = 217;BA.debugLine="Return table";
+if (true) return _table;
+ //BA.debugLineNum = 218;BA.debugLine="End Sub";
+return null;
+}
+public byte[] _imagetobytes(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+ //BA.debugLineNum = 231;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()";
+ //BA.debugLineNum = 232;BA.debugLine="Dim out As OutputStream";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 233;BA.debugLine="out.InitializeToBytesArray(0)";
+_out.InitializeToBytesArray((int) (0));
+ //BA.debugLineNum = 234;BA.debugLine="Image.WriteToStream(out, 100, \"JPEG\")";
+_image.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"JPEG"));
+ //BA.debugLineNum = 235;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 236;BA.debugLine="Return out.ToBytesArray";
+if (true) return _out.ToBytesArray();
+ //BA.debugLineNum = 237;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _target,String _connectorlink) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 17;BA.debugLine="Public Sub Initialize (Target As Object, Connector";
+ //BA.debugLineNum = 18;BA.debugLine="mTarget = Target";
+_mtarget = _target;
+ //BA.debugLineNum = 19;BA.debugLine="link = ConnectorLink";
+_link = _connectorlink;
+ //BA.debugLineNum = 20;BA.debugLine="End Sub";
+return "";
+}
+public String _printtable(reparto_izca.keymon.lat.dbrequestmanager._dbresult _table) throws Exception{
+anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
+Object _col = null;
+Object[] _row = null;
+Object _record = null;
+ //BA.debugLineNum = 248;BA.debugLine="Public Sub PrintTable(Table As DBResult)";
+ //BA.debugLineNum = 249;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C";
+__c.LogImpl("525165825","Tag: "+BA.ObjectToString(_table.Tag /*Object*/ )+", Columns: "+BA.NumberToString(_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+", Rows: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
+ //BA.debugLineNum = 250;BA.debugLine="Dim sb As StringBuilder";
+_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
+ //BA.debugLineNum = 251;BA.debugLine="sb.Initialize";
+_sb.Initialize();
+ //BA.debugLineNum = 252;BA.debugLine="For Each col In Table.Columns.Keys";
+{
+final anywheresoftware.b4a.BA.IterableList group4 = _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
+final int groupLen4 = group4.getSize()
+;int index4 = 0;
+;
+for (; index4 < groupLen4;index4++){
+_col = group4.Get(index4);
+ //BA.debugLineNum = 253;BA.debugLine="sb.Append(col).Append(TAB)";
+_sb.Append(BA.ObjectToString(_col)).Append(__c.TAB);
+ }
+};
+ //BA.debugLineNum = 255;BA.debugLine="Log(sb.ToString)";
+__c.LogImpl("525165831",_sb.ToString(),0);
+ //BA.debugLineNum = 256;BA.debugLine="For Each row() As Object In Table.Rows";
+{
+final anywheresoftware.b4a.BA.IterableList group8 = _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
+final int groupLen8 = group8.getSize()
+;int index8 = 0;
+;
+for (; index8 < groupLen8;index8++){
+_row = (Object[])(group8.Get(index8));
+ //BA.debugLineNum = 257;BA.debugLine="Dim sb As StringBuilder";
+_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
+ //BA.debugLineNum = 258;BA.debugLine="sb.Initialize";
+_sb.Initialize();
+ //BA.debugLineNum = 259;BA.debugLine="For Each record As Object In row";
+{
+final Object[] group11 = _row;
+final int groupLen11 = group11.length
+;int index11 = 0;
+;
+for (; index11 < groupLen11;index11++){
+_record = group11[index11];
+ //BA.debugLineNum = 260;BA.debugLine="sb.Append(record).Append(TAB)";
+_sb.Append(BA.ObjectToString(_record)).Append(__c.TAB);
+ }
+};
+ //BA.debugLineNum = 262;BA.debugLine="ToastMessageShow(sb.ToString, True)";
+__c.ToastMessageShow(BA.ObjectToCharSequence(_sb.ToString()),__c.True);
+ }
+};
+ //BA.debugLineNum = 264;BA.debugLine="End Sub";
+return "";
+}
+public byte _readbyte(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
+byte[] _data = null;
+ //BA.debugLineNum = 175;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte";
+ //BA.debugLineNum = 176;BA.debugLine="Dim data(1) As Byte";
+_data = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 177;BA.debugLine="In.ReadBytes(data, 0, 1)";
+_in.ReadBytes(_data,(int) (0),(int) (1));
+ //BA.debugLineNum = 178;BA.debugLine="Return data(0)";
+if (true) return _data[(int) (0)];
+ //BA.debugLineNum = 179;BA.debugLine="End Sub";
+return (byte)0;
+}
+public byte[] _readbytesfully(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in,byte[] _data,int _len) throws Exception{
+int _count = 0;
+int _read = 0;
+ //BA.debugLineNum = 155;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data";
+ //BA.debugLineNum = 156;BA.debugLine="Dim count = 0, read As Int";
+_count = (int) (0);
+_read = 0;
+ //BA.debugLineNum = 157;BA.debugLine="Do While count < Len And read > -1";
+while (_count<_len && _read>-1) {
+ //BA.debugLineNum = 158;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)";
+_read = _in.ReadBytes(_data,_count,(int) (_len-_count));
+ //BA.debugLineNum = 159;BA.debugLine="count = count + read";
+_count = (int) (_count+_read);
+ }
+;
+ //BA.debugLineNum = 161;BA.debugLine="Return Data";
+if (true) return _data;
+ //BA.debugLineNum = 162;BA.debugLine="End Sub";
+return null;
+}
+public int _readint(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
+byte[] _data = null;
+ //BA.debugLineNum = 170;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int";
+ //BA.debugLineNum = 171;BA.debugLine="Dim data(4) As Byte";
+_data = new byte[(int) (4)];
+;
+ //BA.debugLineNum = 172;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,";
+if (true) return _bc.IntsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)];
+ //BA.debugLineNum = 173;BA.debugLine="End Sub";
+return 0;
+}
+public Object _readobject(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
+byte[] _data = null;
+byte _b = (byte)0;
+int _len = 0;
+ //BA.debugLineNum = 119;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec";
+ //BA.debugLineNum = 120;BA.debugLine="Dim data(1) As Byte";
+_data = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 121;BA.debugLine="In.ReadBytes(data, 0, 1)";
+_in.ReadBytes(_data,(int) (0),(int) (1));
+ //BA.debugLineNum = 122;BA.debugLine="Select data(0)";
+switch (BA.switchObjectToInt(_data[(int) (0)],_t_null,_t_short,_t_int,_t_long,_t_float,_t_double,_t_boolean,_t_blob)) {
+case 0: {
+ //BA.debugLineNum = 124;BA.debugLine="Return Null";
+if (true) return __c.Null;
+ break; }
+case 1: {
+ //BA.debugLineNum = 126;BA.debugLine="Dim data(2) As Byte";
+_data = new byte[(int) (2)];
+;
+ //BA.debugLineNum = 127;BA.debugLine="Return bc.ShortsFromBytes(ReadBytesFully(In, da";
+if (true) return (Object)(_bc.ShortsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]);
+ break; }
+case 2: {
+ //BA.debugLineNum = 129;BA.debugLine="Dim data(4) As Byte";
+_data = new byte[(int) (4)];
+;
+ //BA.debugLineNum = 130;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data";
+if (true) return (Object)(_bc.IntsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]);
+ break; }
+case 3: {
+ //BA.debugLineNum = 132;BA.debugLine="Dim data(8) As Byte";
+_data = new byte[(int) (8)];
+;
+ //BA.debugLineNum = 133;BA.debugLine="Return bc.LongsFromBytes(ReadBytesFully(In, dat";
+if (true) return (Object)(_bc.LongsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]);
+ break; }
+case 4: {
+ //BA.debugLineNum = 135;BA.debugLine="Dim data(4) As Byte";
+_data = new byte[(int) (4)];
+;
+ //BA.debugLineNum = 136;BA.debugLine="Return bc.FloatsFromBytes(ReadBytesFully(In, da";
+if (true) return (Object)(_bc.FloatsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]);
+ break; }
+case 5: {
+ //BA.debugLineNum = 138;BA.debugLine="Dim data(8) As Byte";
+_data = new byte[(int) (8)];
+;
+ //BA.debugLineNum = 139;BA.debugLine="Return bc.DoublesFromBytes(ReadBytesFully(In, d";
+if (true) return (Object)(_bc.DoublesFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]);
+ break; }
+case 6: {
+ //BA.debugLineNum = 141;BA.debugLine="Dim b As Byte = ReadByte(In)";
+_b = _readbyte(_in);
+ //BA.debugLineNum = 142;BA.debugLine="Return b = 1";
+if (true) return (Object)(_b==1);
+ break; }
+case 7: {
+ //BA.debugLineNum = 144;BA.debugLine="Dim len As Int = ReadInt(In)";
+_len = _readint(_in);
+ //BA.debugLineNum = 145;BA.debugLine="Dim data(len) As Byte";
+_data = new byte[_len];
+;
+ //BA.debugLineNum = 146;BA.debugLine="Return ReadBytesFully(In, data, data.Length)";
+if (true) return (Object)(_readbytesfully(_in,_data,_data.length));
+ break; }
+default: {
+ //BA.debugLineNum = 148;BA.debugLine="Dim len As Int = ReadInt(In)";
+_len = _readint(_in);
+ //BA.debugLineNum = 149;BA.debugLine="Dim data(len) As Byte";
+_data = new byte[_len];
+;
+ //BA.debugLineNum = 150;BA.debugLine="ReadBytesFully(In, data, data.Length)";
+_readbytesfully(_in,_data,_data.length);
+ //BA.debugLineNum = 151;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF";
+if (true) return (Object)(__c.BytesToString(_data,(int) (0),_data.length,"UTF8"));
+ break; }
+}
+;
+ //BA.debugLineNum = 153;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _startjob(reparto_izca.keymon.lat.httpjob _j,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _memorystream,Object _tag) throws Exception{
+anywheresoftware.b4a.randomaccessfile.CompressedStreams _compress = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+ //BA.debugLineNum = 59;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As";
+ //BA.debugLineNum = 60;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)";
+_j._initialize /*String*/ (ba,"DBRequest",_mtarget);
+ //BA.debugLineNum = 61;BA.debugLine="j.Tag = Tag";
+_j._tag /*Object*/ = _tag;
+ //BA.debugLineNum = 62;BA.debugLine="MemoryStream.InitializeToBytesArray(0)";
+_memorystream.InitializeToBytesArray((int) (0));
+ //BA.debugLineNum = 63;BA.debugLine="Dim compress As CompressedStreams";
+_compress = new anywheresoftware.b4a.randomaccessfile.CompressedStreams();
+ //BA.debugLineNum = 64;BA.debugLine="Dim out As OutputStream = compress.WrapOutputStre";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = _compress.WrapOutputStream((java.io.OutputStream)(_memorystream.getObject()),"gzip");
+ //BA.debugLineNum = 65;BA.debugLine="WriteObject(VERSION, out)";
+_writeobject((Object)(_version),_out);
+ //BA.debugLineNum = 66;BA.debugLine="Return out";
+if (true) return _out;
+ //BA.debugLineNum = 67;BA.debugLine="End Sub";
+return null;
+}
+public String _writeint(int _i,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
+byte[] _data = null;
+ //BA.debugLineNum = 164;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream";
+ //BA.debugLineNum = 165;BA.debugLine="Dim data() As Byte";
+_data = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 166;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))";
+_data = _bc.IntsToBytes(new int[]{_i});
+ //BA.debugLineNum = 167;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
+_out.WriteBytes(_data,(int) (0),_data.length);
+ //BA.debugLineNum = 168;BA.debugLine="End Sub";
+return "";
+}
+public String _writelist(anywheresoftware.b4a.objects.collections.List _parameters,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
+byte[] _data = null;
+Object _o = null;
+ //BA.debugLineNum = 69;BA.debugLine="Private Sub WriteList(Parameters As List, out As O";
+ //BA.debugLineNum = 70;BA.debugLine="Dim data() As Byte";
+_data = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 71;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized";
+if (_parameters== null || _parameters.IsInitialized()==__c.False) {
+ //BA.debugLineNum = 72;BA.debugLine="Dim Parameters As List";
+_parameters = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 73;BA.debugLine="Parameters.Initialize";
+_parameters.Initialize();
+ };
+ //BA.debugLineNum = 75;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz";
+_data = _bc.IntsToBytes(new int[]{_parameters.getSize()});
+ //BA.debugLineNum = 76;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
+_out.WriteBytes(_data,(int) (0),_data.length);
+ //BA.debugLineNum = 77;BA.debugLine="For Each o As Object In Parameters";
+{
+final anywheresoftware.b4a.BA.IterableList group8 = _parameters;
+final int groupLen8 = group8.getSize()
+;int index8 = 0;
+;
+for (; index8 < groupLen8;index8++){
+_o = group8.Get(index8);
+ //BA.debugLineNum = 78;BA.debugLine="WriteObject(o, out)";
+_writeobject(_o,_out);
+ }
+};
+ //BA.debugLineNum = 80;BA.debugLine="End Sub";
+return "";
+}
+public String _writeobject(Object _o,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
+byte[] _data = null;
+boolean _b = false;
+ //BA.debugLineNum = 82;BA.debugLine="Private Sub WriteObject(o As Object, out As Output";
+ //BA.debugLineNum = 83;BA.debugLine="Dim data() As Byte";
+_data = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 84;BA.debugLine="tempArray(0) = o";
+_temparray[(int) (0)] = _o;
+ //BA.debugLineNum = 85;BA.debugLine="If tempArray(0) = Null Then";
+if (_temparray[(int) (0)]== null) {
+ //BA.debugLineNum = 86;BA.debugLine="out.WriteBytes(Array As Byte(T_NULL), 0, 1)";
+_out.WriteBytes(new byte[]{_t_null},(int) (0),(int) (1));
+ }else if(_temparray[(int) (0)] instanceof Short) {
+ //BA.debugLineNum = 88;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)";
+_out.WriteBytes(new byte[]{_t_short},(int) (0),(int) (1));
+ //BA.debugLineNum = 89;BA.debugLine="data = bc.ShortsToBytes(Array As Short(o))";
+_data = _bc.ShortsToBytes(new short[]{(short)(BA.ObjectToNumber(_o))});
+ }else if(_temparray[(int) (0)] instanceof Integer) {
+ //BA.debugLineNum = 91;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)";
+_out.WriteBytes(new byte[]{_t_int},(int) (0),(int) (1));
+ //BA.debugLineNum = 92;BA.debugLine="data = bc.IntsToBytes(Array As Int(o))";
+_data = _bc.IntsToBytes(new int[]{(int)(BA.ObjectToNumber(_o))});
+ }else if(_temparray[(int) (0)] instanceof Float) {
+ //BA.debugLineNum = 94;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)";
+_out.WriteBytes(new byte[]{_t_float},(int) (0),(int) (1));
+ //BA.debugLineNum = 95;BA.debugLine="data = bc.FloatsToBytes(Array As Float(o))";
+_data = _bc.FloatsToBytes(new float[]{(float)(BA.ObjectToNumber(_o))});
+ }else if(_temparray[(int) (0)] instanceof Double) {
+ //BA.debugLineNum = 97;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)";
+_out.WriteBytes(new byte[]{_t_double},(int) (0),(int) (1));
+ //BA.debugLineNum = 98;BA.debugLine="data = bc.DoublesToBytes(Array As Double(o))";
+_data = _bc.DoublesToBytes(new double[]{(double)(BA.ObjectToNumber(_o))});
+ }else if(_temparray[(int) (0)] instanceof Long) {
+ //BA.debugLineNum = 100;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)";
+_out.WriteBytes(new byte[]{_t_long},(int) (0),(int) (1));
+ //BA.debugLineNum = 101;BA.debugLine="data = bc.LongsToBytes(Array As Long(o))";
+_data = _bc.LongsToBytes(new long[]{BA.ObjectToLongNumber(_o)});
+ }else if(_temparray[(int) (0)] instanceof Boolean) {
+ //BA.debugLineNum = 103;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)";
+_out.WriteBytes(new byte[]{_t_boolean},(int) (0),(int) (1));
+ //BA.debugLineNum = 104;BA.debugLine="Dim b As Boolean = 0";
+_b = BA.ObjectToBoolean(0);
+ //BA.debugLineNum = 105;BA.debugLine="Dim data(1) As Byte";
+_data = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 106;BA.debugLine="If b Then data(0) = 1 Else data(0) = 0";
+if (_b) {
+_data[(int) (0)] = (byte) (1);}
+else {
+_data[(int) (0)] = (byte) (0);};
+ }else if((__c.GetType(_temparray[(int) (0)])).equals("[B")) {
+ //BA.debugLineNum = 108;BA.debugLine="data = o";
+_data = (byte[])(_o);
+ //BA.debugLineNum = 109;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)";
+_out.WriteBytes(new byte[]{_t_blob},(int) (0),(int) (1));
+ //BA.debugLineNum = 110;BA.debugLine="WriteInt(data.Length, out)";
+_writeint(_data.length,_out);
+ }else {
+ //BA.debugLineNum = 112;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)";
+_out.WriteBytes(new byte[]{_t_string},(int) (0),(int) (1));
+ //BA.debugLineNum = 113;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")";
+_data = _bc.StringToBytes(BA.ObjectToString(_o),"UTF8");
+ //BA.debugLineNum = 114;BA.debugLine="WriteInt(data.Length, out)";
+_writeint(_data.length,_out);
+ };
+ //BA.debugLineNum = 116;BA.debugLine="If data.Length > 0 Then out.WriteBytes(data, 0, d";
+if (_data.length>0) {
+_out.WriteBytes(_data,(int) (0),_data.length);};
+ //BA.debugLineNum = 117;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_check.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_check.java
new file mode 100644
index 0000000..1562b11
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_check.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_check{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[check/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_checklist.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_checklist.java
new file mode 100644
index 0000000..883df58
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_checklist.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_checklist{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[checklist/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_clientes.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_clientes.java
new file mode 100644
index 0000000..2344b41
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_clientes.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_clientes{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll 'uncomment to scale all views based on the device physical size."[clientes/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.java
new file mode 100644
index 0000000..00ef4d8
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_detalle_promo.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_detalle_promo{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[detalle_promo/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.java
new file mode 100644
index 0000000..360a7bb
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_detalleventa.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_detalleventa{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll 'uncomment to scale all views based on the device physical size."[detalleVenta/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_folioabono.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_folioabono.java
new file mode 100644
index 0000000..42bfc96
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_folioabono.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_folioabono{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[folioabono/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_historico.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_historico.java
new file mode 100644
index 0000000..b2fe07a
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_historico.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_historico{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll 'uncomment to scale all views based on the device physical size."[historico/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_login.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_login.java
new file mode 100644
index 0000000..d28bf2b
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_login.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_login{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll 'uncomment to scale all views based on the device physical size."[login/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mainpage.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mainpage.java
new file mode 100644
index 0000000..0086322
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mainpage.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_mainpage{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[MainPage/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.java
new file mode 100644
index 0000000..59c4149
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mapa_cliente.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_mapa_cliente{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[mapa_cliente/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.java
new file mode 100644
index 0000000..2a801ca
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_mapa_rutas.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_mapa_rutas{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[mapa_rutas/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_no_venta.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_no_venta.java
new file mode 100644
index 0000000..c4b6ec4
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_no_venta.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_no_venta{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll 'uncomment to scale all views based on the device physical size."[no_venta/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.java
new file mode 100644
index 0000000..b1adecd
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_panel_pick_ciego.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_panel_pick_ciego{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[panel_pick_ciego/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_pedido.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_pedido.java
new file mode 100644
index 0000000..81b448e
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_pedido.java
@@ -0,0 +1,22 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_pedido{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll 'uncomment to scale all views based on the device physical size."[pedido/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+//BA.debugLineNum = 3;BA.debugLine="i_fotol.SetLeftAndRight(0,100%x)"[pedido/General script]
+views.get("i_fotol").vw.setLeft((int)(0d));
+views.get("i_fotol").vw.setWidth((int)((100d / 100 * width) - (0d)));
+//BA.debugLineNum = 4;BA.debugLine="i_fotol.SetTopAndBottom(0,100%y)"[pedido/General script]
+views.get("i_fotol").vw.setTop((int)(0d));
+views.get("i_fotol").vw.setHeight((int)((100d / 100 * height) - (0d)));
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_principal.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_principal.java
new file mode 100644
index 0000000..32134a9
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_principal.java
@@ -0,0 +1,44 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_principal{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+views.get("img2").vw.setLeft((int)(0d));
+views.get("img2").vw.setWidth((int)((100d / 100 * width) - (0d)));
+//BA.debugLineNum = 4;BA.debugLine="img2.SetTopAndBottom(0,100%y)"[principal/General script]
+views.get("img2").vw.setTop((int)(0d));
+views.get("img2").vw.setHeight((int)((100d / 100 * height) - (0d)));
+//BA.debugLineNum = 5;BA.debugLine="L_carga.HorizontalCenter = 50%X"[principal/General script]
+views.get("l_carga").vw.setLeft((int)((50d / 100 * width) - (views.get("l_carga").vw.getWidth() / 2)));
+//BA.debugLineNum = 6;BA.debugLine="l_carga2.HorizontalCenter = 50%X"[principal/General script]
+views.get("l_carga2").vw.setLeft((int)((50d / 100 * width) - (views.get("l_carga2").vw.getWidth() / 2)));
+//BA.debugLineNum = 7;BA.debugLine="Label10.HorizontalCenter = 50%X"[principal/General script]
+views.get("label10").vw.setLeft((int)((50d / 100 * width) - (views.get("label10").vw.getWidth() / 2)));
+//BA.debugLineNum = 8;BA.debugLine="Label11.HorizontalCenter = 50%X"[principal/General script]
+views.get("label11").vw.setLeft((int)((50d / 100 * width) - (views.get("label11").vw.getWidth() / 2)));
+//BA.debugLineNum = 9;BA.debugLine="PB_carga.HorizontalCenter = 50%X"[principal/General script]
+views.get("pb_carga").vw.setLeft((int)((50d / 100 * width) - (views.get("pb_carga").vw.getWidth() / 2)));
+//BA.debugLineNum = 10;BA.debugLine="PB_carga2.HorizontalCenter = 50%X"[principal/General script]
+views.get("pb_carga2").vw.setLeft((int)((50d / 100 * width) - (views.get("pb_carga2").vw.getWidth() / 2)));
+//BA.debugLineNum = 11;BA.debugLine="B_carga.HorizontalCenter = 50%X"[principal/General script]
+views.get("b_carga").vw.setLeft((int)((50d / 100 * width) - (views.get("b_carga").vw.getWidth() / 2)));
+//BA.debugLineNum = 12;BA.debugLine="b_impresion_rec.HorizontalCenter = 25%x"[principal/General script]
+views.get("b_impresion_rec").vw.setLeft((int)((25d / 100 * width) - (views.get("b_impresion_rec").vw.getWidth() / 2)));
+//BA.debugLineNum = 13;BA.debugLine="b_regreso.HorizontalCenter = 75%x"[principal/General script]
+views.get("b_regreso").vw.setLeft((int)((75d / 100 * width) - (views.get("b_regreso").vw.getWidth() / 2)));
+//BA.debugLineNum = 14;BA.debugLine="ListView1.VerticalCenter = 50%y"[principal/General script]
+views.get("listview1").vw.setTop((int)((50d / 100 * height) - (views.get("listview1").vw.getHeight() / 2)));
+//BA.debugLineNum = 15;BA.debugLine="ListView1.HorizontalCenter = 50%x"[principal/General script]
+views.get("listview1").vw.setLeft((int)((50d / 100 * width) - (views.get("listview1").vw.getWidth() / 2)));
+//BA.debugLineNum = 16;BA.debugLine="B_REGRESA.HorizontalCenter = 50%x"[principal/General script]
+views.get("b_regresa").vw.setLeft((int)((50d / 100 * width) - (views.get("b_regresa").vw.getWidth() / 2)));
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_proditem.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_proditem.java
new file mode 100644
index 0000000..7cebbea
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_proditem.java
@@ -0,0 +1,15 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_proditem{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_proditem2.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_proditem2.java
new file mode 100644
index 0000000..a95b944
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_proditem2.java
@@ -0,0 +1,15 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_proditem2{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_productos.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_productos.java
new file mode 100644
index 0000000..90a85be
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_productos.java
@@ -0,0 +1,18 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_productos{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+views.get("i_fotol").vw.setLeft((int)(0d));
+views.get("i_fotol").vw.setWidth((int)((100d / 100 * width) - (0d)));
+views.get("i_fotol").vw.setTop((int)(0d));
+views.get("i_fotol").vw.setHeight((int)((100d / 100 * height) - (0d)));
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.java
new file mode 100644
index 0000000..d0de849
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_searchtemplate.java
@@ -0,0 +1,16 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_searchtemplate{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+//BA.debugLineNum = 2;BA.debugLine="AutoScaleAll"[searchtemplate/General script]
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_tabulador.java b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_tabulador.java
new file mode 100644
index 0000000..13e3beb
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/designerscripts/LS_tabulador.java
@@ -0,0 +1,15 @@
+package reparto_izca.keymon.lat.designerscripts;
+import anywheresoftware.b4a.objects.TextViewWrapper;
+import anywheresoftware.b4a.objects.ImageViewWrapper;
+import anywheresoftware.b4a.BA;
+
+
+public class LS_tabulador{
+
+public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
+java.util.Map views, int width, int height, float scale) throws Exception {
+anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
+anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
+
+}
+}
\ No newline at end of file
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/escposprinter.java b/B4A/Objects/src/reparto_izca/keymon/lat/escposprinter.java
new file mode 100644
index 0000000..d9a95c9
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/escposprinter.java
@@ -0,0 +1,2022 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class escposprinter extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.escposprinter");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.escposprinter.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public double _version = 0;
+public String _eventname = "";
+public Object _callback = null;
+public anywheresoftware.b4a.objects.Serial _serial1 = null;
+public anywheresoftware.b4a.randomaccessfile.AsyncStreams _astream = null;
+public boolean _connected = false;
+public String _connectederror = "";
+public String _esc = "";
+public String _fs = "";
+public String _gs = "";
+public String _unreverse = "";
+public String _reverse = "";
+public String _uninvert = "";
+public String _invert = "";
+public String _unrotate = "";
+public String _rotate = "";
+public String _ht = "";
+public String _uline0 = "";
+public String _uline1 = "";
+public String _uline2 = "";
+public String _bold = "";
+public String _nobold = "";
+public String _single = "";
+public String _high = "";
+public String _wide = "";
+public String _highwide = "";
+public String _leftjustify = "";
+public String _linedefault = "";
+public String _linset0 = "";
+public String _lmargin0 = "";
+public String _width0 = "";
+public String _charspacing0 = "";
+public String _charfont0 = "";
+public String _defaults = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _animage{
+public boolean IsInitialized;
+public int Width;
+public int Height;
+public byte[] Data;
+public void Initialize() {
+IsInitialized = true;
+Width = 0;
+Height = 0;
+Data = new byte[0];
+;
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public String _astream_error() throws Exception{
+ //BA.debugLineNum = 2285;BA.debugLine="Private Sub AStream_Error";
+ //BA.debugLineNum = 2286;BA.debugLine="If SubExists(CallBack, EventName & \"_Error\") Then";
+if (__c.SubExists(ba,_callback,_eventname+"_Error")) {
+ //BA.debugLineNum = 2287;BA.debugLine="CallSub(CallBack, EventName & \"_Error\")";
+__c.CallSubNew(ba,_callback,_eventname+"_Error");
+ };
+ //BA.debugLineNum = 2289;BA.debugLine="End Sub";
+return "";
+}
+public String _astream_newdata(byte[] _buffer) throws Exception{
+ //BA.debugLineNum = 2278;BA.debugLine="Private Sub AStream_NewData (Buffer() As Byte)";
+ //BA.debugLineNum = 2279;BA.debugLine="If SubExists(CallBack, EventName & \"_NewData\") Th";
+if (__c.SubExists(ba,_callback,_eventname+"_NewData")) {
+ //BA.debugLineNum = 2280;BA.debugLine="CallSub2(CallBack, EventName & \"_NewData\", Buffe";
+__c.CallSubNew2(ba,_callback,_eventname+"_NewData",(Object)(_buffer));
+ };
+ //BA.debugLineNum = 2282;BA.debugLine="Log(\"Data \" & Buffer(0))";
+__c.LogImpl("528704772","Data "+BA.NumberToString(_buffer[(int) (0)]),0);
+ //BA.debugLineNum = 2283;BA.debugLine="End Sub";
+return "";
+}
+public String _astream_terminated() throws Exception{
+ //BA.debugLineNum = 2291;BA.debugLine="Private Sub AStream_Terminated";
+ //BA.debugLineNum = 2292;BA.debugLine="Connected = False";
+_connected = __c.False;
+ //BA.debugLineNum = 2293;BA.debugLine="If SubExists(CallBack, EventName & \"_Terminated\")";
+if (__c.SubExists(ba,_callback,_eventname+"_Terminated")) {
+ //BA.debugLineNum = 2294;BA.debugLine="CallSub(CallBack, EventName & \"_Terminated\")";
+__c.CallSubNew(ba,_callback,_eventname+"_Terminated");
+ };
+ //BA.debugLineNum = 2296;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1158;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 1165;BA.debugLine="Private Version As Double = 2.0 ' Printer class v";
+_version = 2.0;
+ //BA.debugLineNum = 1167;BA.debugLine="Type AnImage(Width As Int, Height As Int, Data()";
+;
+ //BA.debugLineNum = 1169;BA.debugLine="Private EventName As String 'ignore";
+_eventname = "";
+ //BA.debugLineNum = 1170;BA.debugLine="Private CallBack As Object 'ignore";
+_callback = new Object();
+ //BA.debugLineNum = 1172;BA.debugLine="Private Serial1 As Serial";
+_serial1 = new anywheresoftware.b4a.objects.Serial();
+ //BA.debugLineNum = 1173;BA.debugLine="Private Astream As AsyncStreams";
+_astream = new anywheresoftware.b4a.randomaccessfile.AsyncStreams();
+ //BA.debugLineNum = 1174;BA.debugLine="Private Connected As Boolean";
+_connected = false;
+ //BA.debugLineNum = 1175;BA.debugLine="Private ConnectedError As String";
+_connectederror = "";
+ //BA.debugLineNum = 1177;BA.debugLine="Dim ESC As String = Chr(27)";
+_esc = BA.ObjectToString(__c.Chr((int) (27)));
+ //BA.debugLineNum = 1178;BA.debugLine="Dim FS As String = Chr(28)";
+_fs = BA.ObjectToString(__c.Chr((int) (28)));
+ //BA.debugLineNum = 1179;BA.debugLine="Dim GS As String = Chr(29)";
+_gs = BA.ObjectToString(__c.Chr((int) (29)));
+ //BA.debugLineNum = 1182;BA.debugLine="Dim UNREVERSE As String = GS & \"B\" & Chr(0)";
+_unreverse = _gs+"B"+BA.ObjectToString(__c.Chr((int) (0)));
+ //BA.debugLineNum = 1183;BA.debugLine="Dim REVERSE As String = GS & \"B\" & Chr(1)";
+_reverse = _gs+"B"+BA.ObjectToString(__c.Chr((int) (1)));
+ //BA.debugLineNum = 1186;BA.debugLine="Dim UNINVERT As String = ESC & \"{0\"";
+_uninvert = _esc+"{0";
+ //BA.debugLineNum = 1187;BA.debugLine="Dim INVERT As String = ESC & \"{1\"";
+_invert = _esc+"{1";
+ //BA.debugLineNum = 1190;BA.debugLine="Dim UNROTATE As String = ESC & \"V0\"";
+_unrotate = _esc+"V0";
+ //BA.debugLineNum = 1191;BA.debugLine="Dim ROTATE As String = ESC & \"V1\"";
+_rotate = _esc+"V1";
+ //BA.debugLineNum = 1194;BA.debugLine="Dim HT As String = Chr(9)";
+_ht = BA.ObjectToString(__c.Chr((int) (9)));
+ //BA.debugLineNum = 1197;BA.debugLine="Dim ULINE0 As String = ESC & \"-0\"";
+_uline0 = _esc+"-0";
+ //BA.debugLineNum = 1198;BA.debugLine="Dim ULINE1 As String = ESC & \"-1\"";
+_uline1 = _esc+"-1";
+ //BA.debugLineNum = 1199;BA.debugLine="Dim ULINE2 As String = ESC & \"-2\"";
+_uline2 = _esc+"-2";
+ //BA.debugLineNum = 1202;BA.debugLine="Dim BOLD As String = ESC & \"E1\"";
+_bold = _esc+"E1";
+ //BA.debugLineNum = 1203;BA.debugLine="Dim NOBOLD As String = ESC & \"E0\"";
+_nobold = _esc+"E0";
+ //BA.debugLineNum = 1206;BA.debugLine="Dim SINGLE As String = GS & \"!\" & Chr(0x00)";
+_single = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x00)));
+ //BA.debugLineNum = 1207;BA.debugLine="Dim HIGH As String = GS & \"!\" & Chr(0x01)";
+_high = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x01)));
+ //BA.debugLineNum = 1208;BA.debugLine="Dim WIDE As String = GS & \"!\" & Chr(0x10)";
+_wide = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x10)));
+ //BA.debugLineNum = 1209;BA.debugLine="Dim HIGHWIDE As String = GS & \"!\" & Chr(0x11)";
+_highwide = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x11)));
+ //BA.debugLineNum = 1212;BA.debugLine="Private LEFTJUSTIFY As String = ESC & \"a0\"";
+_leftjustify = _esc+"a0";
+ //BA.debugLineNum = 1213;BA.debugLine="Private LINEDEFAULT As String = ESC & \"2\"";
+_linedefault = _esc+"2";
+ //BA.debugLineNum = 1214;BA.debugLine="Private LINSET0 As String = ESC & \"$\" & Chr(0x0)";
+_linset0 = _esc+"$"+BA.ObjectToString(__c.Chr(((int)0x0)))+BA.ObjectToString(__c.Chr(((int)0x0)));
+ //BA.debugLineNum = 1215;BA.debugLine="Private LMARGIN0 As String = GS & \"L\" & Chr(0x0)";
+_lmargin0 = _gs+"L"+BA.ObjectToString(__c.Chr(((int)0x0)))+BA.ObjectToString(__c.Chr(((int)0x0)));
+ //BA.debugLineNum = 1216;BA.debugLine="Private WIDTH0 As String = GS & \"W\" & Chr(0xff) &";
+_width0 = _gs+"W"+BA.ObjectToString(__c.Chr(((int)0xff)))+BA.ObjectToString(__c.Chr(((int)0xff)));
+ //BA.debugLineNum = 1217;BA.debugLine="Private CHARSPACING0 As String = ESC & \" \" & Chr(";
+_charspacing0 = _esc+" "+BA.ObjectToString(__c.Chr((int) (0)));
+ //BA.debugLineNum = 1218;BA.debugLine="Private CHARFONT0 As String = ESC & \"M\" & Chr(0)";
+_charfont0 = _esc+"M"+BA.ObjectToString(__c.Chr((int) (0)));
+ //BA.debugLineNum = 1219;BA.debugLine="Dim DEFAULTS As String = CHARSPACING0 & CHARFONT";
+_defaults = _charspacing0+_charfont0+_lmargin0+_width0+_linset0+_linedefault+_leftjustify+_uninvert+_unrotate+_unreverse+_nobold+_uline0;
+ //BA.debugLineNum = 1222;BA.debugLine="End Sub";
+return "";
+}
+public boolean _connect() throws Exception{
+anywheresoftware.b4a.objects.collections.Map _paireddevices = null;
+anywheresoftware.b4a.objects.collections.List _l = null;
+int _i = 0;
+int _res = 0;
+ //BA.debugLineNum = 1254;BA.debugLine="Public Sub Connect As Boolean";
+ //BA.debugLineNum = 1258;BA.debugLine="Try";
+try { //BA.debugLineNum = 1259;BA.debugLine="If Starter.MAC_IMPRESORA = \"0\" Then";
+if ((_starter._mac_impresora /*String*/ ).equals("0")) {
+ //BA.debugLineNum = 1260;BA.debugLine="Dim PairedDevices As Map";
+_paireddevices = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 1261;BA.debugLine="PairedDevices = Serial1.GetPairedDevices";
+_paireddevices = _serial1.GetPairedDevices();
+ //BA.debugLineNum = 1262;BA.debugLine="Dim l As List";
+_l = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 1263;BA.debugLine="l.Initialize";
+_l.Initialize();
+ //BA.debugLineNum = 1264;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
+{
+final int step7 = 1;
+final int limit7 = (int) (_paireddevices.getSize()-1);
+_i = (int) (0) ;
+for (;_i <= limit7 ;_i = _i + step7 ) {
+ //BA.debugLineNum = 1265;BA.debugLine="l.Add(PairedDevices.GetKeyAt(i))";
+_l.Add(_paireddevices.GetKeyAt(_i));
+ }
+};
+ //BA.debugLineNum = 1267;BA.debugLine="Dim Res As Int";
+_res = 0;
+ //BA.debugLineNum = 1268;BA.debugLine="Res = InputList(l, \"Choose a printer\", -1) 'sho";
+_res = __c.InputList(_l,BA.ObjectToCharSequence("Choose a printer"),(int) (-1),getActivityBA());
+ //BA.debugLineNum = 1269;BA.debugLine="If Res <> DialogResponse.CANCEL Then";
+if (_res!=__c.DialogResponse.CANCEL) {
+ //BA.debugLineNum = 1270;BA.debugLine="Serial1.Connect(PairedDevices.Get(l.Get(Res)))";
+_serial1.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l.Get(_res))));
+ //BA.debugLineNum = 1272;BA.debugLine="Starter.mac_impresora = PairedDevices.Get(l.Ge";
+_starter._mac_impresora /*String*/ = BA.ObjectToString(_paireddevices.Get(_l.Get(_res)));
+ //BA.debugLineNum = 1273;BA.debugLine="Return True";
+if (true) return __c.True;
+ };
+ //BA.debugLineNum = 1275;BA.debugLine="Return False";
+if (true) return __c.False;
+ }else {
+ //BA.debugLineNum = 1277;BA.debugLine="Serial1.Connect(Starter.mac_impresora)";
+_serial1.Connect(ba,_starter._mac_impresora /*String*/ );
+ //BA.debugLineNum = 1279;BA.debugLine="Return True";
+if (true) return __c.True;
+ };
+ }
+ catch (Exception e23) {
+ ba.setLastException(e23); //BA.debugLineNum = 1282;BA.debugLine="Log(LastException)";
+__c.LogImpl("525559068",BA.ObjectToString(__c.LastException(getActivityBA())),0);
+ };
+ //BA.debugLineNum = 1284;BA.debugLine="End Sub";
+return false;
+}
+public String _connectederrormsg() throws Exception{
+ //BA.debugLineNum = 1238;BA.debugLine="Public Sub ConnectedErrorMsg As String";
+ //BA.debugLineNum = 1239;BA.debugLine="Return ConnectedError";
+if (true) return _connectederror;
+ //BA.debugLineNum = 1240;BA.debugLine="End Sub";
+return "";
+}
+public int _createbox(int _x0,int _y0,int _x1,int _y1,boolean _fill) throws Exception{
+int _box = 0;
+ //BA.debugLineNum = 1664;BA.debugLine="Public Sub CreateBox(x0 As Int, y0 As Int, x1 As I";
+ //BA.debugLineNum = 1665;BA.debugLine="Dim box As Int = 0x10000000";
+_box = ((int)0x10000000);
+ //BA.debugLineNum = 1666;BA.debugLine="If fill Then box = box + 0x80000000";
+if (_fill) {
+_box = (int) (_box+((int)0x80000000));};
+ //BA.debugLineNum = 1667;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x0), 24)";
+_box = (int) (_box+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x0),(int) (24)));
+ //BA.debugLineNum = 1668;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)";
+_box = (int) (_box+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x1f),_y0),(int) (16)));
+ //BA.debugLineNum = 1669;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x1), 8)";
+_box = (int) (_box+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x1),(int) (8)));
+ //BA.debugLineNum = 1670;BA.debugLine="box = box + Bit.And(0x1f,y1)";
+_box = (int) (_box+__c.Bit.And(((int)0x1f),_y1));
+ //BA.debugLineNum = 1671;BA.debugLine="Return box";
+if (true) return _box;
+ //BA.debugLineNum = 1672;BA.debugLine="End Sub";
+return 0;
+}
+public int _createcircle(int _radius,int _quadrants,int _x1,int _y1,boolean _fill) throws Exception{
+int _circle = 0;
+ //BA.debugLineNum = 1634;BA.debugLine="Public Sub CreateCircle(radius As Int, quadrants A";
+ //BA.debugLineNum = 1635;BA.debugLine="Dim circle As Int = 0x20000000";
+_circle = ((int)0x20000000);
+ //BA.debugLineNum = 1636;BA.debugLine="If fill Then circle = circle + 0x80000000";
+if (_fill) {
+_circle = (int) (_circle+((int)0x80000000));};
+ //BA.debugLineNum = 1637;BA.debugLine="circle = circle + Bit.ShiftLeft(radius, 24)";
+_circle = (int) (_circle+__c.Bit.ShiftLeft(_radius,(int) (24)));
+ //BA.debugLineNum = 1638;BA.debugLine="circle = circle + Bit.ShiftLeft(quadrants, 16)";
+_circle = (int) (_circle+__c.Bit.ShiftLeft(_quadrants,(int) (16)));
+ //BA.debugLineNum = 1639;BA.debugLine="circle = circle + Bit.ShiftLeft(x1, 8)";
+_circle = (int) (_circle+__c.Bit.ShiftLeft(_x1,(int) (8)));
+ //BA.debugLineNum = 1640;BA.debugLine="circle = circle + y1";
+_circle = (int) (_circle+_y1);
+ //BA.debugLineNum = 1641;BA.debugLine="Return circle";
+if (true) return _circle;
+ //BA.debugLineNum = 1642;BA.debugLine="End Sub";
+return 0;
+}
+public byte[] _createcustomcharacter(int[] _shapes,int _characterfont) throws Exception{
+byte[] _masks = null;
+byte[][] _points = null;
+int _x = 0;
+int _y = 0;
+int _size = 0;
+byte[] _charbyes = null;
+int _c = 0;
+int _i = 0;
+int _fill = 0;
+int _shape = 0;
+int _x0 = 0;
+int _y0 = 0;
+int _x1 = 0;
+int _y1 = 0;
+int _x2 = 0;
+int _y2 = 0;
+String _logmsg = "";
+byte _bits = (byte)0;
+int _b = 0;
+ //BA.debugLineNum = 1548;BA.debugLine="Public Sub CreateCustomCharacter(shapes() As Int,";
+ //BA.debugLineNum = 1549;BA.debugLine="Dim masks(8) As Byte";
+_masks = new byte[(int) (8)];
+;
+ //BA.debugLineNum = 1550;BA.debugLine="masks(0) = 0x80";
+_masks[(int) (0)] = (byte) (((int)0x80));
+ //BA.debugLineNum = 1551;BA.debugLine="masks(1) = 0x40";
+_masks[(int) (1)] = (byte) (((int)0x40));
+ //BA.debugLineNum = 1552;BA.debugLine="masks(2) = 0x20";
+_masks[(int) (2)] = (byte) (((int)0x20));
+ //BA.debugLineNum = 1553;BA.debugLine="masks(3) = 0x10";
+_masks[(int) (3)] = (byte) (((int)0x10));
+ //BA.debugLineNum = 1554;BA.debugLine="masks(4) = 0x08";
+_masks[(int) (4)] = (byte) (((int)0x08));
+ //BA.debugLineNum = 1555;BA.debugLine="masks(5) = 0x04";
+_masks[(int) (5)] = (byte) (((int)0x04));
+ //BA.debugLineNum = 1556;BA.debugLine="masks(6) = 0x02";
+_masks[(int) (6)] = (byte) (((int)0x02));
+ //BA.debugLineNum = 1557;BA.debugLine="masks(7) = 0x01";
+_masks[(int) (7)] = (byte) (((int)0x01));
+ //BA.debugLineNum = 1560;BA.debugLine="Dim points(16,32) As Byte";
+_points = new byte[(int) (16)][];
+{
+int d0 = _points.length;
+int d1 = (int) (32);
+for (int i0 = 0;i0 < d0;i0++) {
+_points[i0] = new byte[d1];
+}
+}
+;
+ //BA.debugLineNum = 1562;BA.debugLine="For x = 0 To 15";
+{
+final int step11 = 1;
+final int limit11 = (int) (15);
+_x = (int) (0) ;
+for (;_x <= limit11 ;_x = _x + step11 ) {
+ //BA.debugLineNum = 1563;BA.debugLine="For y = 0 To 31";
+{
+final int step12 = 1;
+final int limit12 = (int) (31);
+_y = (int) (0) ;
+for (;_y <= limit12 ;_y = _y + step12 ) {
+ //BA.debugLineNum = 1564;BA.debugLine="points(x,y) = 0";
+_points[_x][_y] = (byte) (0);
+ }
+};
+ }
+};
+ //BA.debugLineNum = 1567;BA.debugLine="Dim size As Int = 12";
+_size = (int) (12);
+ //BA.debugLineNum = 1568;BA.debugLine="If characterfont = 1 Then size = 9";
+if (_characterfont==1) {
+_size = (int) (9);};
+ //BA.debugLineNum = 1569;BA.debugLine="Dim charbyes(size * 3) As Byte";
+_charbyes = new byte[(int) (_size*3)];
+;
+ //BA.debugLineNum = 1570;BA.debugLine="For c = 0 To charbyes.Length - 1";
+{
+final int step19 = 1;
+final int limit19 = (int) (_charbyes.length-1);
+_c = (int) (0) ;
+for (;_c <= limit19 ;_c = _c + step19 ) {
+ //BA.debugLineNum = 1571;BA.debugLine="charbyes(c) = 0";
+_charbyes[_c] = (byte) (0);
+ }
+};
+ //BA.debugLineNum = 1574;BA.debugLine="For i = 0 To shapes.Length -1";
+{
+final int step22 = 1;
+final int limit22 = (int) (_shapes.length-1);
+_i = (int) (0) ;
+for (;_i <= limit22 ;_i = _i + step22 ) {
+ //BA.debugLineNum = 1575;BA.debugLine="Dim fill As Int = Bit.UnsignedShiftRight(Bit.An";
+_fill = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x80000000),_shapes[_i]),(int) (31));
+ //BA.debugLineNum = 1576;BA.debugLine="Dim shape As Int = Bit.UnsignedShiftRight(Bit.An";
+_shape = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x70000000),_shapes[_i]),(int) (28));
+ //BA.debugLineNum = 1577;BA.debugLine="Dim x0 As Int = Bit.UnsignedShiftRight(Bit.And(0";
+_x0 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x0f000000),_shapes[_i]),(int) (24));
+ //BA.debugLineNum = 1578;BA.debugLine="Dim y0 As Int = Bit.UnsignedShiftRight(Bit.And(0";
+_y0 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x001f0000),_shapes[_i]),(int) (16));
+ //BA.debugLineNum = 1579;BA.debugLine="Dim x1 As Int = Bit.UnsignedShiftRight(Bit.And(0";
+_x1 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x00000f00),_shapes[_i]),(int) (8));
+ //BA.debugLineNum = 1580;BA.debugLine="Dim y1 As Int = Bit.And(0x0000001f, shapes(i))";
+_y1 = __c.Bit.And(((int)0x0000001f),_shapes[_i]);
+ //BA.debugLineNum = 1581;BA.debugLine="Dim x2 As Int = Bit.UnsignedShiftRight(Bit.And(0";
+_x2 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x0000f000),_shapes[_i]),(int) (12));
+ //BA.debugLineNum = 1582;BA.debugLine="Dim y2 As Int = Bit.UnsignedShiftRight(Bit.And(0";
+_y2 = (int) (__c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x00e00000),_shapes[_i]),(int) (18))+__c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x000000e0),_shapes[_i]),(int) (5)));
+ //BA.debugLineNum = 1588;BA.debugLine="Dim logmsg As String = \": Fill=\" & fill & \" : Po";
+_logmsg = ": Fill="+BA.NumberToString(_fill)+" : Points "+BA.NumberToString(_x0)+","+BA.NumberToString(_y0)+" "+BA.NumberToString(_x1)+","+BA.NumberToString(_y1)+" "+BA.NumberToString(_x2)+","+BA.NumberToString(_y2);
+ //BA.debugLineNum = 1589;BA.debugLine="If shape = 3 Then";
+if (_shape==3) {
+ //BA.debugLineNum = 1590;BA.debugLine="Log(\"Triangle \" & logmsg)";
+__c.LogImpl("526869802","Triangle "+_logmsg,0);
+ //BA.debugLineNum = 1591;BA.debugLine="PlotTriangle(x0, y0, x1, y1, x2, y2, points, fi";
+_plottriangle(_x0,_y0,_x1,_y1,_x2,_y2,_points,_fill);
+ }else if(_shape==2) {
+ //BA.debugLineNum = 1593;BA.debugLine="Log(\"Circle \" & logmsg)";
+__c.LogImpl("526869805","Circle "+_logmsg,0);
+ //BA.debugLineNum = 1594;BA.debugLine="PlotCircle(x0, y0, x1, y1, points, fill)";
+_plotcircle(_x0,_y0,_x1,_y1,_points,_fill);
+ }else if(_shape==1) {
+ //BA.debugLineNum = 1596;BA.debugLine="Log(\"Box \" & logmsg)";
+__c.LogImpl("526869808","Box "+_logmsg,0);
+ //BA.debugLineNum = 1597;BA.debugLine="PlotBox(x0, y0, x1, y1, points, fill)";
+_plotbox(_x0,_y0,_x1,_y1,_points,_fill);
+ }else {
+ //BA.debugLineNum = 1599;BA.debugLine="Log(\"Line \" & logmsg)";
+__c.LogImpl("526869811","Line "+_logmsg,0);
+ //BA.debugLineNum = 1600;BA.debugLine="PlotLine(x0, y0, x1, y1, points)";
+_plotline(_x0,_y0,_x1,_y1,_points);
+ };
+ //BA.debugLineNum = 1603;BA.debugLine="For x = 0 To size -1 ' 9 or 12 horizontal bytes";
+{
+final int step45 = 1;
+final int limit45 = (int) (_size-1);
+_x = (int) (0) ;
+for (;_x <= limit45 ;_x = _x + step45 ) {
+ //BA.debugLineNum = 1604;BA.debugLine="For y = 0 To 2 ' 3 vertical bytes";
+{
+final int step46 = 1;
+final int limit46 = (int) (2);
+_y = (int) (0) ;
+for (;_y <= limit46 ;_y = _y + step46 ) {
+ //BA.debugLineNum = 1605;BA.debugLine="Dim bits As Byte = 0";
+_bits = (byte) (0);
+ //BA.debugLineNum = 1606;BA.debugLine="For b = 0 To 7 ' 8 vertical bits";
+{
+final int step48 = 1;
+final int limit48 = (int) (7);
+_b = (int) (0) ;
+for (;_b <= limit48 ;_b = _b + step48 ) {
+ //BA.debugLineNum = 1607;BA.debugLine="If points(x, y*8+b) <> 0 Then";
+if (_points[_x][(int) (_y*8+_b)]!=0) {
+ //BA.debugLineNum = 1608;BA.debugLine="bits = Bit.Or(bits, masks(b))";
+_bits = (byte) (__c.Bit.Or((int) (_bits),(int) (_masks[_b])));
+ };
+ }
+};
+ //BA.debugLineNum = 1611;BA.debugLine="charbyes(x*3+y) = bits";
+_charbyes[(int) (_x*3+_y)] = _bits;
+ }
+};
+ }
+};
+ }
+};
+ //BA.debugLineNum = 1615;BA.debugLine="Return charbyes";
+if (true) return _charbyes;
+ //BA.debugLineNum = 1616;BA.debugLine="End Sub";
+return null;
+}
+public int _createline(int _x0,int _y0,int _x1,int _y1) throws Exception{
+int _line = 0;
+ //BA.debugLineNum = 1621;BA.debugLine="Public Sub CreateLine(x0 As Int, y0 As Int, x1 As";
+ //BA.debugLineNum = 1622;BA.debugLine="Dim line As Int = 0";
+_line = (int) (0);
+ //BA.debugLineNum = 1623;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x0), 24)";
+_line = (int) (_line+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x0),(int) (24)));
+ //BA.debugLineNum = 1624;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)";
+_line = (int) (_line+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x1f),_y0),(int) (16)));
+ //BA.debugLineNum = 1625;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x1), 8)";
+_line = (int) (_line+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x1),(int) (8)));
+ //BA.debugLineNum = 1626;BA.debugLine="line = line + Bit.And(0x1f,y1)";
+_line = (int) (_line+__c.Bit.And(((int)0x1f),_y1));
+ //BA.debugLineNum = 1627;BA.debugLine="Return line";
+if (true) return _line;
+ //BA.debugLineNum = 1628;BA.debugLine="End Sub";
+return 0;
+}
+public int _createtriangle(int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,boolean _fill) throws Exception{
+int _triangle = 0;
+ //BA.debugLineNum = 1648;BA.debugLine="Public Sub CreateTriangle(x0 As Int, y0 As Int, x1";
+ //BA.debugLineNum = 1649;BA.debugLine="Dim triangle As Int = 0x30000000";
+_triangle = ((int)0x30000000);
+ //BA.debugLineNum = 1650;BA.debugLine="If fill Then triangle = triangle + 0x80000000";
+if (_fill) {
+_triangle = (int) (_triangle+((int)0x80000000));};
+ //BA.debugLineNum = 1651;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x";
+_triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x0),(int) (24)));
+ //BA.debugLineNum = 1652;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x1f,";
+_triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x1f),_y0),(int) (16)));
+ //BA.debugLineNum = 1653;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x";
+_triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x1),(int) (8)));
+ //BA.debugLineNum = 1654;BA.debugLine="triangle = triangle + Bit.And(0x1f,y1)";
+_triangle = (int) (_triangle+__c.Bit.And(((int)0x1f),_y1));
+ //BA.debugLineNum = 1655;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x";
+_triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x2),(int) (12)));
+ //BA.debugLineNum = 1656;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x7,y";
+_triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x7),_y2),(int) (5)));
+ //BA.debugLineNum = 1657;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x18,";
+_triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x18),_y2),(int) (18)));
+ //BA.debugLineNum = 1658;BA.debugLine="Return triangle";
+if (true) return _triangle;
+ //BA.debugLineNum = 1659;BA.debugLine="End Sub";
+return 0;
+}
+public int _definecustomcharacter(int _charcode,byte[] _bitdata) throws Exception{
+int _excess = 0;
+int _size = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 1496;BA.debugLine="Public Sub DefineCustomCharacter(charcode As Int,";
+ //BA.debugLineNum = 1497;BA.debugLine="Dim excess As Int = bitdata.Length Mod 3";
+_excess = (int) (_bitdata.length%3);
+ //BA.debugLineNum = 1498;BA.debugLine="If excess <> 0 Then Return -1";
+if (_excess!=0) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 1499;BA.debugLine="Dim size As Int = bitdata.Length / 3";
+_size = (int) (_bitdata.length/(double)3);
+ //BA.debugLineNum = 1500;BA.debugLine="WriteString(ESC & \"&\")";
+_writestring(_esc+"&");
+ //BA.debugLineNum = 1501;BA.debugLine="Dim params(4) As Byte";
+_params = new byte[(int) (4)];
+;
+ //BA.debugLineNum = 1502;BA.debugLine="params(0) = 3";
+_params[(int) (0)] = (byte) (3);
+ //BA.debugLineNum = 1503;BA.debugLine="params(1) = charcode";
+_params[(int) (1)] = (byte) (_charcode);
+ //BA.debugLineNum = 1504;BA.debugLine="params(2) = charcode";
+_params[(int) (2)] = (byte) (_charcode);
+ //BA.debugLineNum = 1505;BA.debugLine="params(3) = size";
+_params[(int) (3)] = (byte) (_size);
+ //BA.debugLineNum = 1506;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1507;BA.debugLine="WriteBytes(bitdata)";
+_writebytes(_bitdata);
+ //BA.debugLineNum = 1508;BA.debugLine="Return 0";
+if (true) return (int) (0);
+ //BA.debugLineNum = 1509;BA.debugLine="End Sub";
+return 0;
+}
+public String _deletecustomcharacter(int _charcode) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 1461;BA.debugLine="Public Sub DeleteCustomCharacter(charcode As Int)";
+ //BA.debugLineNum = 1462;BA.debugLine="WriteString(ESC & \"?\")";
+_writestring(_esc+"?");
+ //BA.debugLineNum = 1463;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 1464;BA.debugLine="params(0) = charcode";
+_params[(int) (0)] = (byte) (_charcode);
+ //BA.debugLineNum = 1465;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1466;BA.debugLine="End Sub";
+return "";
+}
+public String _disconnect() throws Exception{
+ //BA.debugLineNum = 1287;BA.debugLine="Public Sub DisConnect";
+ //BA.debugLineNum = 1288;BA.debugLine="Serial1.Disconnect";
+_serial1.Disconnect();
+ //BA.debugLineNum = 1289;BA.debugLine="Connected = False";
+_connected = __c.False;
+ //BA.debugLineNum = 1290;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.escposprinter._animage _ditherimage1d(reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{
+byte[] _pixels = null;
+int _error = 0;
+int _y = 0;
+int _x = 0;
+int _lum = 0;
+reparto_izca.keymon.lat.escposprinter._animage _ret = null;
+ //BA.debugLineNum = 1907;BA.debugLine="Sub DitherImage1D(img As AnImage, threshold As Int";
+ //BA.debugLineNum = 1908;BA.debugLine="Dim pixels(img.Data.Length) As Byte";
+_pixels = new byte[_img.Data /*byte[]*/ .length];
+;
+ //BA.debugLineNum = 1909;BA.debugLine="Dim error As Int";
+_error = 0;
+ //BA.debugLineNum = 1910;BA.debugLine="For y = 0 To img.Height - 1";
+{
+final int step3 = 1;
+final int limit3 = (int) (_img.Height /*int*/ -1);
+_y = (int) (0) ;
+for (;_y <= limit3 ;_y = _y + step3 ) {
+ //BA.debugLineNum = 1911;BA.debugLine="error = 0 ' reset on each new line";
+_error = (int) (0);
+ //BA.debugLineNum = 1912;BA.debugLine="For x = 0 To img.Width - 1";
+{
+final int step5 = 1;
+final int limit5 = (int) (_img.Width /*int*/ -1);
+_x = (int) (0) ;
+for (;_x <= limit5 ;_x = _x + step5 ) {
+ //BA.debugLineNum = 1913;BA.debugLine="Dim lum As Int = Bit.And(img.Data(y*img.Width +";
+_lum = __c.Bit.And((int) (_img.Data /*byte[]*/ [(int) (_y*_img.Width /*int*/ +_x)]),((int)0xff));
+ //BA.debugLineNum = 1914;BA.debugLine="lum = lum + error";
+_lum = (int) (_lum+_error);
+ //BA.debugLineNum = 1915;BA.debugLine="If lum < threshold Then";
+if (_lum<_threshold) {
+ //BA.debugLineNum = 1916;BA.debugLine="error = lum";
+_error = _lum;
+ //BA.debugLineNum = 1917;BA.debugLine="lum = 1";
+_lum = (int) (1);
+ }else {
+ //BA.debugLineNum = 1919;BA.debugLine="error = lum - 255";
+_error = (int) (_lum-255);
+ //BA.debugLineNum = 1920;BA.debugLine="lum = 0";
+_lum = (int) (0);
+ };
+ //BA.debugLineNum = 1922;BA.debugLine="pixels(y*img.Width + x) = lum";
+_pixels[(int) (_y*_img.Width /*int*/ +_x)] = (byte) (_lum);
+ }
+};
+ }
+};
+ //BA.debugLineNum = 1925;BA.debugLine="Dim ret As AnImage";
+_ret = new reparto_izca.keymon.lat.escposprinter._animage();
+ //BA.debugLineNum = 1926;BA.debugLine="ret.Width = img.Width";
+_ret.Width /*int*/ = _img.Width /*int*/ ;
+ //BA.debugLineNum = 1927;BA.debugLine="ret.Height = img.Height";
+_ret.Height /*int*/ = _img.Height /*int*/ ;
+ //BA.debugLineNum = 1928;BA.debugLine="ret.Data = pixels";
+_ret.Data /*byte[]*/ = _pixels;
+ //BA.debugLineNum = 1929;BA.debugLine="Return ret";
+if (true) return _ret;
+ //BA.debugLineNum = 1930;BA.debugLine="End Sub";
+return null;
+}
+public reparto_izca.keymon.lat.escposprinter._animage _ditherimage2d(reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{
+byte[] _pixels = null;
+int _xerror = 0;
+int[] _yerrors = null;
+int _i = 0;
+int _y = 0;
+int _x = 0;
+int _lum = 0;
+reparto_izca.keymon.lat.escposprinter._animage _ret = null;
+ //BA.debugLineNum = 1938;BA.debugLine="Sub DitherImage2D(img As AnImage, threshold As Int";
+ //BA.debugLineNum = 1939;BA.debugLine="Dim pixels(img.Data.Length) As Byte";
+_pixels = new byte[_img.Data /*byte[]*/ .length];
+;
+ //BA.debugLineNum = 1940;BA.debugLine="Dim xerror As Int";
+_xerror = 0;
+ //BA.debugLineNum = 1941;BA.debugLine="Dim yerrors(img.Width) As Int";
+_yerrors = new int[_img.Width /*int*/ ];
+;
+ //BA.debugLineNum = 1942;BA.debugLine="For i = 0 To yerrors.Length -1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_yerrors.length-1);
+_i = (int) (0) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 1943;BA.debugLine="yerrors(0) = 0";
+_yerrors[(int) (0)] = (int) (0);
+ }
+};
+ //BA.debugLineNum = 1945;BA.debugLine="For y = 0 To img.Height - 1";
+{
+final int step7 = 1;
+final int limit7 = (int) (_img.Height /*int*/ -1);
+_y = (int) (0) ;
+for (;_y <= limit7 ;_y = _y + step7 ) {
+ //BA.debugLineNum = 1946;BA.debugLine="xerror = 0 ' reset on each new line";
+_xerror = (int) (0);
+ //BA.debugLineNum = 1947;BA.debugLine="For x = 0 To img.Width - 1";
+{
+final int step9 = 1;
+final int limit9 = (int) (_img.Width /*int*/ -1);
+_x = (int) (0) ;
+for (;_x <= limit9 ;_x = _x + step9 ) {
+ //BA.debugLineNum = 1948;BA.debugLine="Dim lum As Int = Bit.And(img.Data(y*img.Width +";
+_lum = __c.Bit.And((int) (_img.Data /*byte[]*/ [(int) (_y*_img.Width /*int*/ +_x)]),((int)0xff));
+ //BA.debugLineNum = 1949;BA.debugLine="lum = lum + xerror + yerrors(x)";
+_lum = (int) (_lum+_xerror+_yerrors[_x]);
+ //BA.debugLineNum = 1950;BA.debugLine="If lum < threshold Then";
+if (_lum<_threshold) {
+ //BA.debugLineNum = 1951;BA.debugLine="xerror = lum/2";
+_xerror = (int) (_lum/(double)2);
+ //BA.debugLineNum = 1952;BA.debugLine="yerrors(x) = xerror";
+_yerrors[_x] = _xerror;
+ //BA.debugLineNum = 1953;BA.debugLine="lum = 1";
+_lum = (int) (1);
+ }else {
+ //BA.debugLineNum = 1955;BA.debugLine="xerror = (lum - 255)/2";
+_xerror = (int) ((_lum-255)/(double)2);
+ //BA.debugLineNum = 1956;BA.debugLine="yerrors(x) = xerror";
+_yerrors[_x] = _xerror;
+ //BA.debugLineNum = 1957;BA.debugLine="lum = 0";
+_lum = (int) (0);
+ };
+ //BA.debugLineNum = 1959;BA.debugLine="pixels(y*img.Width + x) = lum";
+_pixels[(int) (_y*_img.Width /*int*/ +_x)] = (byte) (_lum);
+ }
+};
+ }
+};
+ //BA.debugLineNum = 1962;BA.debugLine="Dim ret As AnImage";
+_ret = new reparto_izca.keymon.lat.escposprinter._animage();
+ //BA.debugLineNum = 1963;BA.debugLine="ret.Width = img.Width";
+_ret.Width /*int*/ = _img.Width /*int*/ ;
+ //BA.debugLineNum = 1964;BA.debugLine="ret.Height = img.Height";
+_ret.Height /*int*/ = _img.Height /*int*/ ;
+ //BA.debugLineNum = 1965;BA.debugLine="ret.Data = pixels";
+_ret.Data /*byte[]*/ = _pixels;
+ //BA.debugLineNum = 1966;BA.debugLine="Return ret";
+if (true) return _ret;
+ //BA.debugLineNum = 1967;BA.debugLine="End Sub";
+return null;
+}
+public String _filltriangle(int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,byte[][] _points) throws Exception{
+int _tx = 0;
+int _ty = 0;
+double _dx0 = 0;
+double _dx1 = 0;
+double _dx2 = 0;
+double _x3 = 0;
+double _x4 = 0;
+double _y3 = 0;
+double _y4 = 0;
+int _inc = 0;
+int _x = 0;
+ //BA.debugLineNum = 1688;BA.debugLine="Private Sub FillTriangle(x0 As Int, y0 As Int, x1";
+ //BA.debugLineNum = 1690;BA.debugLine="Dim tx, ty As Int";
+_tx = 0;
+_ty = 0;
+ //BA.debugLineNum = 1691;BA.debugLine="If y0 > y1 Then";
+if (_y0>_y1) {
+ //BA.debugLineNum = 1692;BA.debugLine="tx = x0 : ty = y0";
+_tx = _x0;
+ //BA.debugLineNum = 1692;BA.debugLine="tx = x0 : ty = y0";
+_ty = _y0;
+ //BA.debugLineNum = 1693;BA.debugLine="x0 = x1 : y0 = y1";
+_x0 = _x1;
+ //BA.debugLineNum = 1693;BA.debugLine="x0 = x1 : y0 = y1";
+_y0 = _y1;
+ //BA.debugLineNum = 1694;BA.debugLine="x1 = tx : y1 = ty";
+_x1 = _tx;
+ //BA.debugLineNum = 1694;BA.debugLine="x1 = tx : y1 = ty";
+_y1 = _ty;
+ };
+ //BA.debugLineNum = 1696;BA.debugLine="If y0 > y2 Then";
+if (_y0>_y2) {
+ //BA.debugLineNum = 1697;BA.debugLine="tx = x0 : ty = y0";
+_tx = _x0;
+ //BA.debugLineNum = 1697;BA.debugLine="tx = x0 : ty = y0";
+_ty = _y0;
+ //BA.debugLineNum = 1698;BA.debugLine="x0 = x2 : y0 = y2";
+_x0 = _x2;
+ //BA.debugLineNum = 1698;BA.debugLine="x0 = x2 : y0 = y2";
+_y0 = _y2;
+ //BA.debugLineNum = 1699;BA.debugLine="x2 = tx : y2 = ty";
+_x2 = _tx;
+ //BA.debugLineNum = 1699;BA.debugLine="x2 = tx : y2 = ty";
+_y2 = _ty;
+ };
+ //BA.debugLineNum = 1701;BA.debugLine="If y1 > y2 Then";
+if (_y1>_y2) {
+ //BA.debugLineNum = 1702;BA.debugLine="tx = x1 : ty = y1";
+_tx = _x1;
+ //BA.debugLineNum = 1702;BA.debugLine="tx = x1 : ty = y1";
+_ty = _y1;
+ //BA.debugLineNum = 1703;BA.debugLine="x1 = x2 : y1 = y2";
+_x1 = _x2;
+ //BA.debugLineNum = 1703;BA.debugLine="x1 = x2 : y1 = y2";
+_y1 = _y2;
+ //BA.debugLineNum = 1704;BA.debugLine="x2 = tx : y2 = ty";
+_x2 = _tx;
+ //BA.debugLineNum = 1704;BA.debugLine="x2 = tx : y2 = ty";
+_y2 = _ty;
+ };
+ //BA.debugLineNum = 1707;BA.debugLine="Dim dx0, dx1, dx2 As Double";
+_dx0 = 0;
+_dx1 = 0;
+_dx2 = 0;
+ //BA.debugLineNum = 1708;BA.debugLine="Dim x3, x4, y3, y4 As Double";
+_x3 = 0;
+_x4 = 0;
+_y3 = 0;
+_y4 = 0;
+ //BA.debugLineNum = 1709;BA.debugLine="Dim inc As Int";
+_inc = 0;
+ //BA.debugLineNum = 1711;BA.debugLine="If y1 - y0 > 0 Then dx0=(x1-x0)/(y1-y0) Else dx0=";
+if (_y1-_y0>0) {
+_dx0 = (_x1-_x0)/(double)(_y1-_y0);}
+else {
+_dx0 = 0;};
+ //BA.debugLineNum = 1712;BA.debugLine="If y2 - y0 > 0 Then dx1=(x2-x0)/(y2-y0) Else dx1=";
+if (_y2-_y0>0) {
+_dx1 = (_x2-_x0)/(double)(_y2-_y0);}
+else {
+_dx1 = 0;};
+ //BA.debugLineNum = 1713;BA.debugLine="If y2 - y1 > 0 Then dx2=(x2-x1)/(y2-y1) Else dx2=";
+if (_y2-_y1>0) {
+_dx2 = (_x2-_x1)/(double)(_y2-_y1);}
+else {
+_dx2 = 0;};
+ //BA.debugLineNum = 1714;BA.debugLine="x3 = x0 : x4 = x0";
+_x3 = _x0;
+ //BA.debugLineNum = 1714;BA.debugLine="x3 = x0 : x4 = x0";
+_x4 = _x0;
+ //BA.debugLineNum = 1715;BA.debugLine="y3 = y0 : y4 = y0";
+_y3 = _y0;
+ //BA.debugLineNum = 1715;BA.debugLine="y3 = y0 : y4 = y0";
+_y4 = _y0;
+ //BA.debugLineNum = 1716;BA.debugLine="If dx0 > dx1 Then";
+if (_dx0>_dx1) {
+ //BA.debugLineNum = 1717;BA.debugLine="While";
+__c.While();
+ //BA.debugLineNum = 1718;BA.debugLine="Do While y3 <= y1";
+while (_y3<=_y1) {
+ //BA.debugLineNum = 1719;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
+if (_x3>_x4) {
+_inc = (int) (-1);}
+else {
+_inc = (int) (1);};
+ //BA.debugLineNum = 1720;BA.debugLine="For x = x3 To x4 Step inc";
+{
+final int step40 = _inc;
+final int limit40 = (int) (_x4);
+_x = (int) (_x3) ;
+for (;(step40 > 0 && _x <= limit40) || (step40 < 0 && _x >= limit40) ;_x = ((int)(0 + _x + step40)) ) {
+ //BA.debugLineNum = 1721;BA.debugLine="points(x, y3) = 1";
+_points[_x][(int) (_y3)] = (byte) (1);
+ }
+};
+ //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_y3 = _y3+1;
+ //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_y4 = _y4+1;
+ //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_x3 = _x3+_dx1;
+ //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_x4 = _x4+_dx0;
+ }
+;
+ //BA.debugLineNum = 1725;BA.debugLine="x4=x1";
+_x4 = _x1;
+ //BA.debugLineNum = 1726;BA.debugLine="y4=y1";
+_y4 = _y1;
+ //BA.debugLineNum = 1727;BA.debugLine="Do While y3 <= y2";
+while (_y3<=_y2) {
+ //BA.debugLineNum = 1728;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
+if (_x3>_x4) {
+_inc = (int) (-1);}
+else {
+_inc = (int) (1);};
+ //BA.debugLineNum = 1729;BA.debugLine="For x = x3 To x4 Step inc";
+{
+final int step52 = _inc;
+final int limit52 = (int) (_x4);
+_x = (int) (_x3) ;
+for (;(step52 > 0 && _x <= limit52) || (step52 < 0 && _x >= limit52) ;_x = ((int)(0 + _x + step52)) ) {
+ //BA.debugLineNum = 1730;BA.debugLine="points(x ,y3) = 1";
+_points[_x][(int) (_y3)] = (byte) (1);
+ }
+};
+ //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_y3 = _y3+1;
+ //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_y4 = _y4+1;
+ //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_x3 = _x3+_dx1;
+ //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
+_x4 = _x4+_dx2;
+ }
+;
+ }else {
+ //BA.debugLineNum = 1735;BA.debugLine="While";
+__c.While();
+ //BA.debugLineNum = 1736;BA.debugLine="Do While y3 <= y1";
+while (_y3<=_y1) {
+ //BA.debugLineNum = 1737;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
+if (_x3>_x4) {
+_inc = (int) (-1);}
+else {
+_inc = (int) (1);};
+ //BA.debugLineNum = 1738;BA.debugLine="For x = x3 To x4 Step inc";
+{
+final int step64 = _inc;
+final int limit64 = (int) (_x4);
+_x = (int) (_x3) ;
+for (;(step64 > 0 && _x <= limit64) || (step64 < 0 && _x >= limit64) ;_x = ((int)(0 + _x + step64)) ) {
+ //BA.debugLineNum = 1739;BA.debugLine="points(x, y3) = 1";
+_points[_x][(int) (_y3)] = (byte) (1);
+ }
+};
+ //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
+_y3 = _y3+1;
+ //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
+_y4 = _y4+1;
+ //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
+_x3 = _x3+_dx0;
+ //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
+_x4 = _x4+_dx1;
+ }
+;
+ //BA.debugLineNum = 1743;BA.debugLine="x3=x1";
+_x3 = _x1;
+ //BA.debugLineNum = 1744;BA.debugLine="y3=y1";
+_y3 = _y1;
+ //BA.debugLineNum = 1745;BA.debugLine="Do While y3<=y2";
+while (_y3<=_y2) {
+ //BA.debugLineNum = 1746;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
+if (_x3>_x4) {
+_inc = (int) (-1);}
+else {
+_inc = (int) (1);};
+ //BA.debugLineNum = 1747;BA.debugLine="For x = x3 To x4 Step inc";
+{
+final int step76 = _inc;
+final int limit76 = (int) (_x4);
+_x = (int) (_x3) ;
+for (;(step76 > 0 && _x <= limit76) || (step76 < 0 && _x >= limit76) ;_x = ((int)(0 + _x + step76)) ) {
+ //BA.debugLineNum = 1748;BA.debugLine="points(x, y3) = 1";
+_points[_x][(int) (_y3)] = (byte) (1);
+ }
+};
+ //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
+_y3 = _y3+1;
+ //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
+_y4 = _y4+1;
+ //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
+_x3 = _x3+_dx2;
+ //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
+_x4 = _x4+_dx1;
+ }
+;
+ };
+ //BA.debugLineNum = 1753;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.escposprinter._animage _imagetobwimage(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp) throws Exception{
+b4a.example.bitmapcreator _bc = null;
+int _w = 0;
+int _h = 0;
+byte[] _pixels = null;
+int _y = 0;
+int _x = 0;
+int _j = 0;
+b4a.example.bitmapcreator._argbcolor _col = null;
+int _lum = 0;
+reparto_izca.keymon.lat.escposprinter._animage _ret = null;
+ //BA.debugLineNum = 1857;BA.debugLine="Sub ImageToBWIMage(bmp As Bitmap) As AnImage";
+ //BA.debugLineNum = 1858;BA.debugLine="Dim BC As BitmapCreator 'ignore";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 1859;BA.debugLine="Dim W As Int = bmp.Width";
+_w = _bmp.getWidth();
+ //BA.debugLineNum = 1860;BA.debugLine="Dim H As Int = bmp.Height";
+_h = _bmp.getHeight();
+ //BA.debugLineNum = 1861;BA.debugLine="Dim pixels(W * H) As Byte";
+_pixels = new byte[(int) (_w*_h)];
+;
+ //BA.debugLineNum = 1863;BA.debugLine="For y = 0 To H - 1";
+{
+final int step5 = 1;
+final int limit5 = (int) (_h-1);
+_y = (int) (0) ;
+for (;_y <= limit5 ;_y = _y + step5 ) {
+ //BA.debugLineNum = 1864;BA.debugLine="For x = 0 To W - 1";
+{
+final int step6 = 1;
+final int limit6 = (int) (_w-1);
+_x = (int) (0) ;
+for (;_x <= limit6 ;_x = _x + step6 ) {
+ //BA.debugLineNum = 1865;BA.debugLine="Dim j As Int = bmp.GetPixel(x, y)";
+_j = _bmp.GetPixel(_x,_y);
+ //BA.debugLineNum = 1867;BA.debugLine="Dim col As ARGBColor";
+_col = new b4a.example.bitmapcreator._argbcolor();
+ //BA.debugLineNum = 1868;BA.debugLine="BC.ColorToARGB(j, col )";
+_bc._colortoargb(_j,_col);
+ //BA.debugLineNum = 1869;BA.debugLine="Dim lum As Int = col.r * 0.2 + col.b*0.1 + col.";
+_lum = (int) (_col.r*0.2+_col.b*0.1+_col.g*0.7);
+ //BA.debugLineNum = 1870;BA.debugLine="If lum> 255 Then lum = 255";
+if (_lum>255) {
+_lum = (int) (255);};
+ //BA.debugLineNum = 1872;BA.debugLine="pixels(y*W + x) = lum";
+_pixels[(int) (_y*_w+_x)] = (byte) (_lum);
+ }
+};
+ }
+};
+ //BA.debugLineNum = 1875;BA.debugLine="Dim ret As AnImage";
+_ret = new reparto_izca.keymon.lat.escposprinter._animage();
+ //BA.debugLineNum = 1876;BA.debugLine="ret.Width = bmp.Width";
+_ret.Width /*int*/ = _bmp.getWidth();
+ //BA.debugLineNum = 1877;BA.debugLine="ret.Height = bmp.Height";
+_ret.Height /*int*/ = _bmp.getHeight();
+ //BA.debugLineNum = 1878;BA.debugLine="ret.Data = pixels";
+_ret.Data /*byte[]*/ = _pixels;
+ //BA.debugLineNum = 1879;BA.debugLine="Return ret";
+if (true) return _ret;
+ //BA.debugLineNum = 1880;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 1229;BA.debugLine="Public Sub Initialize(vCallback As Object, vEventN";
+ //BA.debugLineNum = 1230;BA.debugLine="EventName = vEventName";
+_eventname = _veventname;
+ //BA.debugLineNum = 1231;BA.debugLine="CallBack = vCallback";
+_callback = _vcallback;
+ //BA.debugLineNum = 1232;BA.debugLine="Serial1.Initialize(\"Serial1\")";
+_serial1.Initialize("Serial1");
+ //BA.debugLineNum = 1233;BA.debugLine="Connected = False";
+_connected = __c.False;
+ //BA.debugLineNum = 1234;BA.debugLine="ConnectedError = \"\"";
+_connectederror = "";
+ //BA.debugLineNum = 1235;BA.debugLine="End Sub";
+return "";
+}
+public boolean _isbluetoothon() throws Exception{
+ //BA.debugLineNum = 1248;BA.debugLine="Public Sub IsBluetoothOn As Boolean";
+ //BA.debugLineNum = 1249;BA.debugLine="Return Serial1.IsEnabled";
+if (true) return _serial1.IsEnabled();
+ //BA.debugLineNum = 1250;BA.debugLine="End Sub";
+return false;
+}
+public boolean _isconnected() throws Exception{
+ //BA.debugLineNum = 1243;BA.debugLine="Public Sub IsConnected As Boolean";
+ //BA.debugLineNum = 1244;BA.debugLine="Return Connected";
+if (true) return _connected;
+ //BA.debugLineNum = 1245;BA.debugLine="End Sub";
+return false;
+}
+public reparto_izca.keymon.lat.escposprinter._animage _packimage(reparto_izca.keymon.lat.escposprinter._animage _imagedata) throws Exception{
+int _xbytes = 0;
+byte[] _pixels = null;
+byte[] _masks = null;
+int _index = 0;
+int _y = 0;
+int _x = 0;
+byte _xbyte = (byte)0;
+int _b = 0;
+byte _pix = (byte)0;
+reparto_izca.keymon.lat.escposprinter._animage _ret = null;
+ //BA.debugLineNum = 2009;BA.debugLine="Public Sub PackImage(imagedata As AnImage) As AnIm";
+ //BA.debugLineNum = 2010;BA.debugLine="Dim xbytes As Int = imagedata.width/8";
+_xbytes = (int) (_imagedata.Width /*int*/ /(double)8);
+ //BA.debugLineNum = 2011;BA.debugLine="Dim pixels(xbytes * imagedata.height) As Byte";
+_pixels = new byte[(int) (_xbytes*_imagedata.Height /*int*/ )];
+;
+ //BA.debugLineNum = 2012;BA.debugLine="Dim masks(8) As Byte";
+_masks = new byte[(int) (8)];
+;
+ //BA.debugLineNum = 2013;BA.debugLine="masks(0) = 0x80";
+_masks[(int) (0)] = (byte) (((int)0x80));
+ //BA.debugLineNum = 2014;BA.debugLine="masks(1) = 0x40";
+_masks[(int) (1)] = (byte) (((int)0x40));
+ //BA.debugLineNum = 2015;BA.debugLine="masks(2) = 0x20";
+_masks[(int) (2)] = (byte) (((int)0x20));
+ //BA.debugLineNum = 2016;BA.debugLine="masks(3) = 0x10";
+_masks[(int) (3)] = (byte) (((int)0x10));
+ //BA.debugLineNum = 2017;BA.debugLine="masks(4) = 0x08";
+_masks[(int) (4)] = (byte) (((int)0x08));
+ //BA.debugLineNum = 2018;BA.debugLine="masks(5) = 0x04";
+_masks[(int) (5)] = (byte) (((int)0x04));
+ //BA.debugLineNum = 2019;BA.debugLine="masks(6) = 0x02";
+_masks[(int) (6)] = (byte) (((int)0x02));
+ //BA.debugLineNum = 2020;BA.debugLine="masks(7) = 0x01";
+_masks[(int) (7)] = (byte) (((int)0x01));
+ //BA.debugLineNum = 2021;BA.debugLine="Dim index As Int = 0";
+_index = (int) (0);
+ //BA.debugLineNum = 2022;BA.debugLine="For y = 0 To imagedata.Height - 1";
+{
+final int step13 = 1;
+final int limit13 = (int) (_imagedata.Height /*int*/ -1);
+_y = (int) (0) ;
+for (;_y <= limit13 ;_y = _y + step13 ) {
+ //BA.debugLineNum = 2023;BA.debugLine="For x = 0 To xbytes - 1";
+{
+final int step14 = 1;
+final int limit14 = (int) (_xbytes-1);
+_x = (int) (0) ;
+for (;_x <= limit14 ;_x = _x + step14 ) {
+ //BA.debugLineNum = 2024;BA.debugLine="Dim xbyte As Byte = 0";
+_xbyte = (byte) (0);
+ //BA.debugLineNum = 2025;BA.debugLine="For b = 0 To 7";
+{
+final int step16 = 1;
+final int limit16 = (int) (7);
+_b = (int) (0) ;
+for (;_b <= limit16 ;_b = _b + step16 ) {
+ //BA.debugLineNum = 2027;BA.debugLine="Dim pix As Byte = imagedata.Data(index)";
+_pix = _imagedata.Data /*byte[]*/ [_index];
+ //BA.debugLineNum = 2028;BA.debugLine="If pix <> 0 Then";
+if (_pix!=0) {
+ //BA.debugLineNum = 2029;BA.debugLine="xbyte = xbyte + masks(b)";
+_xbyte = (byte) (_xbyte+_masks[_b]);
+ };
+ //BA.debugLineNum = 2031;BA.debugLine="index = index + 1";
+_index = (int) (_index+1);
+ }
+};
+ //BA.debugLineNum = 2033;BA.debugLine="pixels(y*xbytes + x) = xbyte";
+_pixels[(int) (_y*_xbytes+_x)] = _xbyte;
+ }
+};
+ }
+};
+ //BA.debugLineNum = 2036;BA.debugLine="Dim ret As AnImage";
+_ret = new reparto_izca.keymon.lat.escposprinter._animage();
+ //BA.debugLineNum = 2037;BA.debugLine="ret.Width = xbytes";
+_ret.Width /*int*/ = _xbytes;
+ //BA.debugLineNum = 2038;BA.debugLine="ret.Height = imagedata.Height";
+_ret.Height /*int*/ = _imagedata.Height /*int*/ ;
+ //BA.debugLineNum = 2039;BA.debugLine="ret.Data = pixels";
+_ret.Data /*byte[]*/ = _pixels;
+ //BA.debugLineNum = 2040;BA.debugLine="Return ret";
+if (true) return _ret;
+ //BA.debugLineNum = 2041;BA.debugLine="End Sub";
+return null;
+}
+public byte[] _packimageslice(reparto_izca.keymon.lat.escposprinter._animage _img,int _slice,boolean _dots24) throws Exception{
+int _bytes = 0;
+byte[] _pixels = null;
+int _slicestart = 0;
+byte[] _masks = null;
+int _x = 0;
+int _s = 0;
+byte _xbyte = (byte)0;
+int _b = 0;
+byte _pix = (byte)0;
+ //BA.debugLineNum = 2107;BA.debugLine="Public Sub PackImageSlice(img As AnImage, slice As";
+ //BA.debugLineNum = 2108;BA.debugLine="Dim bytes As Int = img.width";
+_bytes = _img.Width /*int*/ ;
+ //BA.debugLineNum = 2109;BA.debugLine="If dots24 Then";
+if (_dots24) {
+ //BA.debugLineNum = 2110;BA.debugLine="Dim pixels(bytes * 3) As Byte";
+_pixels = new byte[(int) (_bytes*3)];
+;
+ //BA.debugLineNum = 2111;BA.debugLine="Dim slicestart As Int = slice * bytes * 8 * 3";
+_slicestart = (int) (_slice*_bytes*8*3);
+ }else {
+ //BA.debugLineNum = 2113;BA.debugLine="Dim pixels(bytes) As Byte";
+_pixels = new byte[_bytes];
+;
+ //BA.debugLineNum = 2114;BA.debugLine="Dim slicestart As Int = slice * bytes * 8";
+_slicestart = (int) (_slice*_bytes*8);
+ };
+ //BA.debugLineNum = 2117;BA.debugLine="Dim masks(8) As Byte";
+_masks = new byte[(int) (8)];
+;
+ //BA.debugLineNum = 2118;BA.debugLine="masks(0) = 0x80";
+_masks[(int) (0)] = (byte) (((int)0x80));
+ //BA.debugLineNum = 2119;BA.debugLine="masks(1) = 0x40";
+_masks[(int) (1)] = (byte) (((int)0x40));
+ //BA.debugLineNum = 2120;BA.debugLine="masks(2) = 0x20";
+_masks[(int) (2)] = (byte) (((int)0x20));
+ //BA.debugLineNum = 2121;BA.debugLine="masks(3) = 0x10";
+_masks[(int) (3)] = (byte) (((int)0x10));
+ //BA.debugLineNum = 2122;BA.debugLine="masks(4) = 0x08";
+_masks[(int) (4)] = (byte) (((int)0x08));
+ //BA.debugLineNum = 2123;BA.debugLine="masks(5) = 0x04";
+_masks[(int) (5)] = (byte) (((int)0x04));
+ //BA.debugLineNum = 2124;BA.debugLine="masks(6) = 0x02";
+_masks[(int) (6)] = (byte) (((int)0x02));
+ //BA.debugLineNum = 2125;BA.debugLine="masks(7) = 0x01";
+_masks[(int) (7)] = (byte) (((int)0x01));
+ //BA.debugLineNum = 2127;BA.debugLine="If dots24 Then";
+if (_dots24) {
+ //BA.debugLineNum = 2128;BA.debugLine="For x = 0 To bytes - 1";
+{
+final int step19 = 1;
+final int limit19 = (int) (_bytes-1);
+_x = (int) (0) ;
+for (;_x <= limit19 ;_x = _x + step19 ) {
+ //BA.debugLineNum = 2129;BA.debugLine="For s = 0 To 2";
+{
+final int step20 = 1;
+final int limit20 = (int) (2);
+_s = (int) (0) ;
+for (;_s <= limit20 ;_s = _s + step20 ) {
+ //BA.debugLineNum = 2130;BA.debugLine="Dim xbyte As Byte = 0";
+_xbyte = (byte) (0);
+ //BA.debugLineNum = 2131;BA.debugLine="For b = 0 To 7";
+{
+final int step22 = 1;
+final int limit22 = (int) (7);
+_b = (int) (0) ;
+for (;_b <= limit22 ;_b = _b + step22 ) {
+ //BA.debugLineNum = 2133;BA.debugLine="Dim pix As Byte = img.Data(slicestart + ((b +";
+_pix = _img.Data /*byte[]*/ [(int) (_slicestart+((_b+_s*8)*_bytes)+_x)];
+ //BA.debugLineNum = 2134;BA.debugLine="If pix <> 0 Then";
+if (_pix!=0) {
+ //BA.debugLineNum = 2135;BA.debugLine="xbyte = xbyte + masks(b)";
+_xbyte = (byte) (_xbyte+_masks[_b]);
+ };
+ }
+};
+ //BA.debugLineNum = 2138;BA.debugLine="pixels(x*3+s) = xbyte";
+_pixels[(int) (_x*3+_s)] = _xbyte;
+ }
+};
+ }
+};
+ }else {
+ //BA.debugLineNum = 2142;BA.debugLine="For x = 0 To bytes - 1";
+{
+final int step32 = 1;
+final int limit32 = (int) (_bytes-1);
+_x = (int) (0) ;
+for (;_x <= limit32 ;_x = _x + step32 ) {
+ //BA.debugLineNum = 2143;BA.debugLine="Dim xbyte As Byte = 0";
+_xbyte = (byte) (0);
+ //BA.debugLineNum = 2144;BA.debugLine="For b = 0 To 7";
+{
+final int step34 = 1;
+final int limit34 = (int) (7);
+_b = (int) (0) ;
+for (;_b <= limit34 ;_b = _b + step34 ) {
+ //BA.debugLineNum = 2146;BA.debugLine="Dim pix As Byte = img.Data(slicestart + (b * b";
+_pix = _img.Data /*byte[]*/ [(int) (_slicestart+(_b*_bytes)+_x)];
+ //BA.debugLineNum = 2147;BA.debugLine="If pix <> 0 Then";
+if (_pix!=0) {
+ //BA.debugLineNum = 2148;BA.debugLine="xbyte = xbyte + masks(b)";
+_xbyte = (byte) (_xbyte+_masks[_b]);
+ };
+ }
+};
+ //BA.debugLineNum = 2151;BA.debugLine="pixels(x) = xbyte";
+_pixels[_x] = _xbyte;
+ }
+};
+ };
+ //BA.debugLineNum = 2154;BA.debugLine="Return pixels";
+if (true) return _pixels;
+ //BA.debugLineNum = 2155;BA.debugLine="End Sub";
+return null;
+}
+public String _plotbox(int _x0,int _y0,int _x1,int _y1,byte[][] _points,int _fill) throws Exception{
+int _x = 0;
+ //BA.debugLineNum = 1755;BA.debugLine="Private Sub PlotBox(x0 As Int, y0 As Int, x1 As In";
+ //BA.debugLineNum = 1757;BA.debugLine="PlotLine(x0, y0, x0, y1, points)";
+_plotline(_x0,_y0,_x0,_y1,_points);
+ //BA.debugLineNum = 1758;BA.debugLine="PlotLine(x0, y0, x1, y0, points)";
+_plotline(_x0,_y0,_x1,_y0,_points);
+ //BA.debugLineNum = 1759;BA.debugLine="PlotLine(x1, y0, x1, y1, points)";
+_plotline(_x1,_y0,_x1,_y1,_points);
+ //BA.debugLineNum = 1760;BA.debugLine="PlotLine(x0, y1, x1, y1, points)";
+_plotline(_x0,_y1,_x1,_y1,_points);
+ //BA.debugLineNum = 1761;BA.debugLine="If Fill > 0 Then";
+if (_fill>0) {
+ //BA.debugLineNum = 1762;BA.debugLine="For x = x0 To x1";
+{
+final int step6 = 1;
+final int limit6 = _x1;
+_x = _x0 ;
+for (;_x <= limit6 ;_x = _x + step6 ) {
+ //BA.debugLineNum = 1763;BA.debugLine="PlotLine(x, y0, x, y1, points)";
+_plotline(_x,_y0,_x,_y1,_points);
+ }
+};
+ };
+ //BA.debugLineNum = 1766;BA.debugLine="End Sub";
+return "";
+}
+public String _plotcircle(int _radius,int _quadrants,int _x1,int _y1,byte[][] _points,int _fill) throws Exception{
+int _mask = 0;
+int _q = 0;
+int _i = 0;
+double _x = 0;
+double _y = 0;
+ //BA.debugLineNum = 1769;BA.debugLine="Private Sub PlotCircle(radius As Int, quadrants As";
+ //BA.debugLineNum = 1771;BA.debugLine="Dim mask As Int = 1";
+_mask = (int) (1);
+ //BA.debugLineNum = 1772;BA.debugLine="For q = 3 To 0 Step -1";
+{
+final int step2 = -1;
+final int limit2 = (int) (0);
+_q = (int) (3) ;
+for (;_q >= limit2 ;_q = _q + step2 ) {
+ //BA.debugLineNum = 1773;BA.debugLine="If Bit.And(quadrants, mask) <> 0 Then";
+if (__c.Bit.And(_quadrants,_mask)!=0) {
+ //BA.debugLineNum = 1774;BA.debugLine="For i = q*90 To q*90+90 Step 1";
+{
+final int step4 = 1;
+final int limit4 = (int) (_q*90+90);
+_i = (int) (_q*90) ;
+for (;_i <= limit4 ;_i = _i + step4 ) {
+ //BA.debugLineNum = 1775;BA.debugLine="Dim x,y As Double";
+_x = 0;
+_y = 0;
+ //BA.debugLineNum = 1776;BA.debugLine="x = x1 - SinD(i)*radius";
+_x = _x1-__c.SinD(_i)*_radius;
+ //BA.debugLineNum = 1777;BA.debugLine="y = y1 - CosD(i)*radius";
+_y = _y1-__c.CosD(_i)*_radius;
+ //BA.debugLineNum = 1778;BA.debugLine="If fill > 0 Then";
+if (_fill>0) {
+ //BA.debugLineNum = 1779;BA.debugLine="PlotLine(x1, y1, x, y, points)";
+_plotline(_x1,_y1,(int) (_x),(int) (_y),_points);
+ }else {
+ //BA.debugLineNum = 1781;BA.debugLine="points(Round(x), Round(y)) = 1";
+_points[(int) (__c.Round(_x))][(int) (__c.Round(_y))] = (byte) (1);
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 1785;BA.debugLine="mask = Bit.ShiftLeft(mask, 1)";
+_mask = __c.Bit.ShiftLeft(_mask,(int) (1));
+ }
+};
+ //BA.debugLineNum = 1787;BA.debugLine="End Sub";
+return "";
+}
+public String _plotline(int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{
+ //BA.debugLineNum = 1790;BA.debugLine="Private Sub PlotLine(x0 As Int, y0 As Int, x1 As I";
+ //BA.debugLineNum = 1791;BA.debugLine="If Abs(y1 - y0) < Abs(x1 - x0) Then";
+if (__c.Abs(_y1-_y0)<__c.Abs(_x1-_x0)) {
+ //BA.debugLineNum = 1792;BA.debugLine="If x0 > x1 Then";
+if (_x0>_x1) {
+ //BA.debugLineNum = 1793;BA.debugLine="PlotLineLow(x1, y1, x0, y0, points)";
+_plotlinelow(_x1,_y1,_x0,_y0,_points);
+ }else {
+ //BA.debugLineNum = 1795;BA.debugLine="PlotLineLow(x0, y0, x1, y1, points)";
+_plotlinelow(_x0,_y0,_x1,_y1,_points);
+ };
+ }else {
+ //BA.debugLineNum = 1798;BA.debugLine="If y0 > y1 Then";
+if (_y0>_y1) {
+ //BA.debugLineNum = 1799;BA.debugLine="PlotLineHigh(x1, y1, x0, y0, points)";
+_plotlinehigh(_x1,_y1,_x0,_y0,_points);
+ }else {
+ //BA.debugLineNum = 1801;BA.debugLine="PlotLineHigh(x0, y0, x1, y1, points)";
+_plotlinehigh(_x0,_y0,_x1,_y1,_points);
+ };
+ };
+ //BA.debugLineNum = 1804;BA.debugLine="End Sub";
+return "";
+}
+public String _plotlinehigh(int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{
+int _dx = 0;
+int _dy = 0;
+int _xi = 0;
+int _d = 0;
+int _x = 0;
+int _y = 0;
+ //BA.debugLineNum = 1806;BA.debugLine="Private Sub PlotLineHigh(x0 As Int, y0 As Int, x1";
+ //BA.debugLineNum = 1807;BA.debugLine="Dim dx As Int = x1 - x0";
+_dx = (int) (_x1-_x0);
+ //BA.debugLineNum = 1808;BA.debugLine="Dim dy As Int = y1 - y0";
+_dy = (int) (_y1-_y0);
+ //BA.debugLineNum = 1809;BA.debugLine="Dim xi As Int = 1";
+_xi = (int) (1);
+ //BA.debugLineNum = 1810;BA.debugLine="If dx < 0 Then";
+if (_dx<0) {
+ //BA.debugLineNum = 1811;BA.debugLine="xi = -1";
+_xi = (int) (-1);
+ //BA.debugLineNum = 1812;BA.debugLine="dx = -dx";
+_dx = (int) (-_dx);
+ };
+ //BA.debugLineNum = 1814;BA.debugLine="Dim D As Int = 2*dx - dy";
+_d = (int) (2*_dx-_dy);
+ //BA.debugLineNum = 1815;BA.debugLine="Dim x As Int = x0";
+_x = _x0;
+ //BA.debugLineNum = 1816;BA.debugLine="For y = y0 To y1";
+{
+final int step10 = 1;
+final int limit10 = _y1;
+_y = _y0 ;
+for (;_y <= limit10 ;_y = _y + step10 ) {
+ //BA.debugLineNum = 1817;BA.debugLine="points(x,y) = 1";
+_points[_x][_y] = (byte) (1);
+ //BA.debugLineNum = 1818;BA.debugLine="If D > 0 Then";
+if (_d>0) {
+ //BA.debugLineNum = 1819;BA.debugLine="x = x + xi";
+_x = (int) (_x+_xi);
+ //BA.debugLineNum = 1820;BA.debugLine="D = D - 2*dy";
+_d = (int) (_d-2*_dy);
+ };
+ //BA.debugLineNum = 1822;BA.debugLine="D = D + 2*dx";
+_d = (int) (_d+2*_dx);
+ }
+};
+ //BA.debugLineNum = 1824;BA.debugLine="End Sub";
+return "";
+}
+public String _plotlinelow(int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{
+int _dx = 0;
+int _dy = 0;
+int _yi = 0;
+int _d = 0;
+int _y = 0;
+int _x = 0;
+ //BA.debugLineNum = 1826;BA.debugLine="Private Sub PlotLineLow(x0 As Int, y0 As Int, x1 A";
+ //BA.debugLineNum = 1827;BA.debugLine="Dim dx As Int = x1 - x0";
+_dx = (int) (_x1-_x0);
+ //BA.debugLineNum = 1828;BA.debugLine="Dim dy As Int = y1 - y0";
+_dy = (int) (_y1-_y0);
+ //BA.debugLineNum = 1829;BA.debugLine="Dim yi As Int = 1";
+_yi = (int) (1);
+ //BA.debugLineNum = 1830;BA.debugLine="If dy < 0 Then";
+if (_dy<0) {
+ //BA.debugLineNum = 1831;BA.debugLine="yi = -1";
+_yi = (int) (-1);
+ //BA.debugLineNum = 1832;BA.debugLine="dy = -dy";
+_dy = (int) (-_dy);
+ };
+ //BA.debugLineNum = 1834;BA.debugLine="Dim D As Int = 2*dy - dx";
+_d = (int) (2*_dy-_dx);
+ //BA.debugLineNum = 1835;BA.debugLine="Dim y As Int = y0";
+_y = _y0;
+ //BA.debugLineNum = 1836;BA.debugLine="For x = x0 To x1";
+{
+final int step10 = 1;
+final int limit10 = _x1;
+_x = _x0 ;
+for (;_x <= limit10 ;_x = _x + step10 ) {
+ //BA.debugLineNum = 1837;BA.debugLine="points(x,y) = 1";
+_points[_x][_y] = (byte) (1);
+ //BA.debugLineNum = 1838;BA.debugLine="If D > 0 Then";
+if (_d>0) {
+ //BA.debugLineNum = 1839;BA.debugLine="y = y + yi";
+_y = (int) (_y+_yi);
+ //BA.debugLineNum = 1840;BA.debugLine="D = D - 2*dx";
+_d = (int) (_d-2*_dx);
+ };
+ //BA.debugLineNum = 1842;BA.debugLine="D = D + 2*dy";
+_d = (int) (_d+2*_dy);
+ }
+};
+ //BA.debugLineNum = 1844;BA.debugLine="End Sub";
+return "";
+}
+public String _plottriangle(int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,byte[][] _points,int _fill) throws Exception{
+ //BA.debugLineNum = 1678;BA.debugLine="Private Sub PlotTriangle(x0 As Int, y0 As Int, x1";
+ //BA.debugLineNum = 1680;BA.debugLine="PlotLine(x0, y0, x1, y1, points)";
+_plotline(_x0,_y0,_x1,_y1,_points);
+ //BA.debugLineNum = 1681;BA.debugLine="PlotLine(x1, y1, x2, y2, points)";
+_plotline(_x1,_y1,_x2,_y2,_points);
+ //BA.debugLineNum = 1682;BA.debugLine="PlotLine(x2, y2, x0, y0, points)";
+_plotline(_x2,_y2,_x0,_y0,_points);
+ //BA.debugLineNum = 1683;BA.debugLine="If Fill > 0 Then";
+if (_fill>0) {
+ //BA.debugLineNum = 1684;BA.debugLine="FillTriangle(x0, y0, x1, y1, x2, y2, points)";
+_filltriangle(_x0,_y0,_x1,_y1,_x2,_y2,_points);
+ };
+ //BA.debugLineNum = 1686;BA.debugLine="End Sub";
+return "";
+}
+public String _printandfeedpaper(int _units) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 1304;BA.debugLine="Public Sub PrintAndFeedPaper(units As Int)";
+ //BA.debugLineNum = 1305;BA.debugLine="WriteString(ESC & \"J\")";
+_writestring(_esc+"J");
+ //BA.debugLineNum = 1306;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 1307;BA.debugLine="params(0) = units";
+_params[(int) (0)] = (byte) (_units);
+ //BA.debugLineNum = 1308;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1309;BA.debugLine="End Sub";
+return "";
+}
+public int _printimage(reparto_izca.keymon.lat.escposprinter._animage _img) throws Exception{
+int _xh = 0;
+int _xl = 0;
+int _yh = 0;
+int _yl = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 1981;BA.debugLine="Public Sub PrintImage(img As AnImage) As Int";
+ //BA.debugLineNum = 1984;BA.debugLine="If img.width > 72 Then Return -1";
+if (_img.Width /*int*/ >72) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 1985;BA.debugLine="If img.height > 512 Then Return -2";
+if (_img.Height /*int*/ >512) {
+if (true) return (int) (-2);};
+ //BA.debugLineNum = 1986;BA.debugLine="If img.data.Length < img.width * img.height Then";
+if (_img.Data /*byte[]*/ .length<_img.Width /*int*/ *_img.Height /*int*/ ) {
+if (true) return (int) (-3);};
+ //BA.debugLineNum = 1987;BA.debugLine="Dim xh As Int = img.width / 256";
+_xh = (int) (_img.Width /*int*/ /(double)256);
+ //BA.debugLineNum = 1988;BA.debugLine="Dim xl As Int = img.width - xh * 256";
+_xl = (int) (_img.Width /*int*/ -_xh*256);
+ //BA.debugLineNum = 1989;BA.debugLine="Dim yh As Int = img.height / 256";
+_yh = (int) (_img.Height /*int*/ /(double)256);
+ //BA.debugLineNum = 1990;BA.debugLine="Dim yl As Int = img.height - yh * 256";
+_yl = (int) (_img.Height /*int*/ -_yh*256);
+ //BA.debugLineNum = 1991;BA.debugLine="Dim params(5) As Byte";
+_params = new byte[(int) (5)];
+;
+ //BA.debugLineNum = 1992;BA.debugLine="params(0) = 0 '";
+_params[(int) (0)] = (byte) (0);
+ //BA.debugLineNum = 1993;BA.debugLine="params(1) = xl";
+_params[(int) (1)] = (byte) (_xl);
+ //BA.debugLineNum = 1994;BA.debugLine="params(2) = xh";
+_params[(int) (2)] = (byte) (_xh);
+ //BA.debugLineNum = 1995;BA.debugLine="params(3) = yl";
+_params[(int) (3)] = (byte) (_yl);
+ //BA.debugLineNum = 1996;BA.debugLine="params(4) = yh";
+_params[(int) (4)] = (byte) (_yh);
+ //BA.debugLineNum = 1997;BA.debugLine="WriteString(GS & \"v0\")";
+_writestring(_gs+"v0");
+ //BA.debugLineNum = 1998;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1999;BA.debugLine="WriteBytes(img.data)";
+_writebytes(_img.Data /*byte[]*/ );
+ //BA.debugLineNum = 2000;BA.debugLine="WriteString(CRLF)";
+_writestring(__c.CRLF);
+ //BA.debugLineNum = 2001;BA.debugLine="Return 0";
+if (true) return (int) (0);
+ //BA.debugLineNum = 2002;BA.debugLine="End Sub";
+return 0;
+}
+public int _printimage2(int _width,byte[] _data,boolean _highdensity,boolean _dotds24) throws Exception{
+String _d = "";
+int _xh = 0;
+int _xl = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 2071;BA.debugLine="Public Sub PrintImage2(width As Int, data() As Byt";
+ //BA.debugLineNum = 2072;BA.debugLine="Dim d As String = Chr(0)";
+_d = BA.ObjectToString(__c.Chr((int) (0)));
+ //BA.debugLineNum = 2073;BA.debugLine="If Not(highdensity) And Not(dotds24 ) Then";
+if (__c.Not(_highdensity) && __c.Not(_dotds24)) {
+ //BA.debugLineNum = 2074;BA.debugLine="d = Chr(0)";
+_d = BA.ObjectToString(__c.Chr((int) (0)));
+ //BA.debugLineNum = 2075;BA.debugLine="If width > 288 Then Return -1";
+if (_width>288) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 2076;BA.debugLine="If data.Length <> width Then Return -3";
+if (_data.length!=_width) {
+if (true) return (int) (-3);};
+ }else if(_highdensity && __c.Not(_dotds24)) {
+ //BA.debugLineNum = 2078;BA.debugLine="d = Chr(1)";
+_d = BA.ObjectToString(__c.Chr((int) (1)));
+ //BA.debugLineNum = 2079;BA.debugLine="If width > 576 Then Return -1";
+if (_width>576) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 2080;BA.debugLine="If data.Length <> width Then Return -3";
+if (_data.length!=_width) {
+if (true) return (int) (-3);};
+ }else if(__c.Not(_highdensity) && _dotds24) {
+ //BA.debugLineNum = 2082;BA.debugLine="d = Chr(32)";
+_d = BA.ObjectToString(__c.Chr((int) (32)));
+ //BA.debugLineNum = 2083;BA.debugLine="If width > 288 Then Return -1";
+if (_width>288) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 2084;BA.debugLine="If data.Length <> width*3 Then Return -3";
+if (_data.length!=_width*3) {
+if (true) return (int) (-3);};
+ }else {
+ //BA.debugLineNum = 2086;BA.debugLine="d = Chr(33)";
+_d = BA.ObjectToString(__c.Chr((int) (33)));
+ //BA.debugLineNum = 2087;BA.debugLine="If width > 576 Then Return -1";
+if (_width>576) {
+if (true) return (int) (-1);};
+ //BA.debugLineNum = 2088;BA.debugLine="If data.Length <> width*3 Then Return -3";
+if (_data.length!=_width*3) {
+if (true) return (int) (-3);};
+ };
+ //BA.debugLineNum = 2090;BA.debugLine="Dim xh As Int = width / 256";
+_xh = (int) (_width/(double)256);
+ //BA.debugLineNum = 2091;BA.debugLine="Dim xl As Int = width - xh * 256";
+_xl = (int) (_width-_xh*256);
+ //BA.debugLineNum = 2092;BA.debugLine="Dim params(2) As Byte";
+_params = new byte[(int) (2)];
+;
+ //BA.debugLineNum = 2093;BA.debugLine="params(0) = xl";
+_params[(int) (0)] = (byte) (_xl);
+ //BA.debugLineNum = 2094;BA.debugLine="params(1) = xh";
+_params[(int) (1)] = (byte) (_xh);
+ //BA.debugLineNum = 2095;BA.debugLine="WriteString(ESC & \"*\" & d)";
+_writestring(_esc+"*"+_d);
+ //BA.debugLineNum = 2096;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 2097;BA.debugLine="WriteBytes(data)";
+_writebytes(_data);
+ //BA.debugLineNum = 2098;BA.debugLine="WriteString(CRLF)";
+_writestring(__c.CRLF);
+ //BA.debugLineNum = 2099;BA.debugLine="Return 0";
+if (true) return (int) (0);
+ //BA.debugLineNum = 2100;BA.debugLine="End Sub";
+return 0;
+}
+public String _reset() throws Exception{
+ //BA.debugLineNum = 1293;BA.debugLine="Public Sub Reset";
+ //BA.debugLineNum = 1294;BA.debugLine="WriteString(ESC & \"@\")";
+_writestring(_esc+"@");
+ //BA.debugLineNum = 1295;BA.debugLine="End Sub";
+return "";
+}
+public String _serial1_connected(boolean _success) throws Exception{
+ //BA.debugLineNum = 2259;BA.debugLine="Private Sub Serial1_Connected (Success As Boolean)";
+ //BA.debugLineNum = 2260;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 2261;BA.debugLine="Astream.Initialize(Serial1.InputStream, Serial1.";
+_astream.Initialize(ba,_serial1.getInputStream(),_serial1.getOutputStream(),"astream");
+ //BA.debugLineNum = 2262;BA.debugLine="Connected = True";
+_connected = __c.True;
+ //BA.debugLineNum = 2263;BA.debugLine="ConnectedError = \"\"";
+_connectederror = "";
+ //BA.debugLineNum = 2264;BA.debugLine="Serial1.Listen";
+_serial1.Listen(ba);
+ }else {
+ //BA.debugLineNum = 2266;BA.debugLine="Connected = False";
+_connected = __c.False;
+ //BA.debugLineNum = 2267;BA.debugLine="ConnectedError = LastException.Message";
+_connectederror = __c.LastException(getActivityBA()).getMessage();
+ };
+ //BA.debugLineNum = 2269;BA.debugLine="If SubExists(CallBack, EventName & \"_Connected\")";
+if (__c.SubExists(ba,_callback,_eventname+"_Connected")) {
+ //BA.debugLineNum = 2270;BA.debugLine="CallSub2(CallBack, EventName & \"_Connected\", Suc";
+__c.CallSubNew2(ba,_callback,_eventname+"_Connected",(Object)(_success));
+ };
+ //BA.debugLineNum = 2272;BA.debugLine="End Sub";
+return "";
+}
+public String _setbarcodeheight(int _height) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 2163;BA.debugLine="Public Sub setBarCodeHeight(height As Int)";
+ //BA.debugLineNum = 2164;BA.debugLine="WriteString(GS & \"h\")";
+_writestring(_gs+"h");
+ //BA.debugLineNum = 2165;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 2166;BA.debugLine="params(0) = height";
+_params[(int) (0)] = (byte) (_height);
+ //BA.debugLineNum = 2167;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 2168;BA.debugLine="End Sub";
+return "";
+}
+public String _setbarcodeleft(int _left) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 2172;BA.debugLine="Public Sub setBarCodeLeft(left As Int)";
+ //BA.debugLineNum = 2173;BA.debugLine="WriteString(GS & \"x\")";
+_writestring(_gs+"x");
+ //BA.debugLineNum = 2174;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 2175;BA.debugLine="params(0) = left";
+_params[(int) (0)] = (byte) (_left);
+ //BA.debugLineNum = 2176;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 2177;BA.debugLine="End Sub";
+return "";
+}
+public String _setbarcodewidth(int _width) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 2182;BA.debugLine="Public Sub setBarCodeWidth(width As Int)";
+ //BA.debugLineNum = 2183;BA.debugLine="WriteString(GS & \"w\")";
+_writestring(_gs+"w");
+ //BA.debugLineNum = 2184;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 2185;BA.debugLine="params(0) = width";
+_params[(int) (0)] = (byte) (_width);
+ //BA.debugLineNum = 2186;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 2187;BA.debugLine="End Sub";
+return "";
+}
+public String _setcharacterfont(int _font) throws Exception{
+ //BA.debugLineNum = 1391;BA.debugLine="Public Sub setCharacterFont(font As Int)";
+ //BA.debugLineNum = 1392;BA.debugLine="WriteString(ESC & \"M\" & Chr(Bit.And(1,font)))";
+_writestring(_esc+"M"+BA.ObjectToString(__c.Chr(__c.Bit.And((int) (1),_font))));
+ //BA.debugLineNum = 1393;BA.debugLine="End Sub";
+return "";
+}
+public String _setcharacterspacing(int _spacing) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 1312;BA.debugLine="Public Sub setCharacterSpacing(spacing As Int)";
+ //BA.debugLineNum = 1313;BA.debugLine="WriteString(ESC & \" \")";
+_writestring(_esc+" ");
+ //BA.debugLineNum = 1314;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 1315;BA.debugLine="params(0) = spacing";
+_params[(int) (0)] = (byte) (_spacing);
+ //BA.debugLineNum = 1316;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1317;BA.debugLine="End Sub";
+return "";
+}
+public String _setcodepage(int _codepage) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 1380;BA.debugLine="Public Sub setCodePage(codepage As Int)";
+ //BA.debugLineNum = 1381;BA.debugLine="WriteString(ESC & \"t\")";
+_writestring(_esc+"t");
+ //BA.debugLineNum = 1382;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 1383;BA.debugLine="params(0) = codepage";
+_params[(int) (0)] = (byte) (_codepage);
+ //BA.debugLineNum = 1384;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1385;BA.debugLine="End Sub";
+return "";
+}
+public String _sethrifont(int _font) throws Exception{
+ //BA.debugLineNum = 2204;BA.debugLine="Public Sub setHriFont(font As Int)";
+ //BA.debugLineNum = 2205;BA.debugLine="WriteString(GS & \"f\" & Chr(font))";
+_writestring(_gs+"f"+BA.ObjectToString(__c.Chr(_font)));
+ //BA.debugLineNum = 2206;BA.debugLine="End Sub";
+return "";
+}
+public String _sethriposn(int _posn) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 2193;BA.debugLine="Public Sub setHriPosn(posn As Int)";
+ //BA.debugLineNum = 2194;BA.debugLine="WriteString(GS & \"H\")";
+_writestring(_gs+"H");
+ //BA.debugLineNum = 2195;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 2196;BA.debugLine="params(0) = posn";
+_params[(int) (0)] = (byte) (_posn);
+ //BA.debugLineNum = 2197;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 2198;BA.debugLine="End Sub";
+return "";
+}
+public String _setjustify(int _justify) throws Exception{
+ //BA.debugLineNum = 1374;BA.debugLine="Public Sub setJustify(justify As Int)";
+ //BA.debugLineNum = 1375;BA.debugLine="WriteString(ESC & \"a\" & Chr(justify + 48))";
+_writestring(_esc+"a"+BA.ObjectToString(__c.Chr((int) (_justify+48))));
+ //BA.debugLineNum = 1376;BA.debugLine="End Sub";
+return "";
+}
+public String _setleftinset(int _inset) throws Exception{
+int _dh = 0;
+int _dl = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 1322;BA.debugLine="Public Sub setLeftInset(inset As Int)";
+ //BA.debugLineNum = 1323;BA.debugLine="Dim dh As Int = inset / 256";
+_dh = (int) (_inset/(double)256);
+ //BA.debugLineNum = 1324;BA.debugLine="Dim dl As Int = inset - dh";
+_dl = (int) (_inset-_dh);
+ //BA.debugLineNum = 1325;BA.debugLine="WriteString(ESC & \"$\" & Chr(dl) & Chr(dh))";
+_writestring(_esc+"$"+BA.ObjectToString(__c.Chr(_dl))+BA.ObjectToString(__c.Chr(_dh)));
+ //BA.debugLineNum = 1326;BA.debugLine="Dim params(2) As Byte";
+_params = new byte[(int) (2)];
+;
+ //BA.debugLineNum = 1327;BA.debugLine="params(0) = dl";
+_params[(int) (0)] = (byte) (_dl);
+ //BA.debugLineNum = 1328;BA.debugLine="params(1) = dh";
+_params[(int) (1)] = (byte) (_dh);
+ //BA.debugLineNum = 1329;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1330;BA.debugLine="End Sub";
+return "";
+}
+public String _setleftmargin(int _margin) throws Exception{
+int _dh = 0;
+int _dl = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 1335;BA.debugLine="Public Sub setLeftMargin(margin As Int)";
+ //BA.debugLineNum = 1336;BA.debugLine="Dim dh As Int = margin / 256";
+_dh = (int) (_margin/(double)256);
+ //BA.debugLineNum = 1337;BA.debugLine="Dim dl As Int = margin - dh";
+_dl = (int) (_margin-_dh);
+ //BA.debugLineNum = 1338;BA.debugLine="WriteString(GS & \"L\")";
+_writestring(_gs+"L");
+ //BA.debugLineNum = 1339;BA.debugLine="Dim params(2) As Byte";
+_params = new byte[(int) (2)];
+;
+ //BA.debugLineNum = 1340;BA.debugLine="params(0) = dl";
+_params[(int) (0)] = (byte) (_dl);
+ //BA.debugLineNum = 1341;BA.debugLine="params(1) = dh";
+_params[(int) (1)] = (byte) (_dh);
+ //BA.debugLineNum = 1342;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1343;BA.debugLine="End Sub";
+return "";
+}
+public String _setlinespacing(int _spacing) throws Exception{
+byte[] _params = null;
+ //BA.debugLineNum = 1361;BA.debugLine="Public Sub setLineSpacing(spacing As Int)";
+ //BA.debugLineNum = 1362;BA.debugLine="If spacing < 0 Then";
+if (_spacing<0) {
+ //BA.debugLineNum = 1363;BA.debugLine="WriteString(ESC & \"2\")";
+_writestring(_esc+"2");
+ }else {
+ //BA.debugLineNum = 1365;BA.debugLine="WriteString(ESC & \"3\")";
+_writestring(_esc+"3");
+ //BA.debugLineNum = 1366;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 1367;BA.debugLine="params(0) = spacing";
+_params[(int) (0)] = (byte) (_spacing);
+ //BA.debugLineNum = 1368;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ };
+ //BA.debugLineNum = 1370;BA.debugLine="End Sub";
+return "";
+}
+public String _setprintwidth(int _width) throws Exception{
+int _dh = 0;
+int _dl = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 1349;BA.debugLine="Public Sub setPrintWidth(width As Int)";
+ //BA.debugLineNum = 1350;BA.debugLine="Dim dh As Int = width / 256";
+_dh = (int) (_width/(double)256);
+ //BA.debugLineNum = 1351;BA.debugLine="Dim dl As Int = width - dh";
+_dl = (int) (_width-_dh);
+ //BA.debugLineNum = 1352;BA.debugLine="WriteString(GS & \"W\")";
+_writestring(_gs+"W");
+ //BA.debugLineNum = 1353;BA.debugLine="Dim params(2) As Byte";
+_params = new byte[(int) (2)];
+;
+ //BA.debugLineNum = 1354;BA.debugLine="params(0) = dl";
+_params[(int) (0)] = (byte) (_dl);
+ //BA.debugLineNum = 1355;BA.debugLine="params(1) = dh";
+_params[(int) (1)] = (byte) (_dh);
+ //BA.debugLineNum = 1356;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1357;BA.debugLine="End Sub";
+return "";
+}
+public String _setrelativeprintposn(int _relposn) throws Exception{
+int _dh = 0;
+int _dl = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 1413;BA.debugLine="Public Sub setRelativePrintPosn(relposn As Int)";
+ //BA.debugLineNum = 1414;BA.debugLine="Dim dh As Int = relposn / 256";
+_dh = (int) (_relposn/(double)256);
+ //BA.debugLineNum = 1415;BA.debugLine="Dim dl As Int = relposn - dh";
+_dl = (int) (_relposn-_dh);
+ //BA.debugLineNum = 1416;BA.debugLine="WriteString(ESC & \"\\\")";
+_writestring(_esc+"\\");
+ //BA.debugLineNum = 1417;BA.debugLine="Dim params(2) As Byte";
+_params = new byte[(int) (2)];
+;
+ //BA.debugLineNum = 1418;BA.debugLine="params(0) = dl";
+_params[(int) (0)] = (byte) (_dl);
+ //BA.debugLineNum = 1419;BA.debugLine="params(1) = dh";
+_params[(int) (1)] = (byte) (_dh);
+ //BA.debugLineNum = 1420;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 1421;BA.debugLine="End Sub";
+return "";
+}
+public String _settabpositions(int[] _tabs) throws Exception{
+byte[] _data = null;
+int _i = 0;
+ //BA.debugLineNum = 1399;BA.debugLine="Public Sub setTabPositions(tabs() As Int)";
+ //BA.debugLineNum = 1400;BA.debugLine="WriteString(ESC & \"D\")";
+_writestring(_esc+"D");
+ //BA.debugLineNum = 1401;BA.debugLine="Dim data(tabs.Length+1) As Byte";
+_data = new byte[(int) (_tabs.length+1)];
+;
+ //BA.debugLineNum = 1402;BA.debugLine="For i = 0 To tabs.Length - 1";
+{
+final int step3 = 1;
+final int limit3 = (int) (_tabs.length-1);
+_i = (int) (0) ;
+for (;_i <= limit3 ;_i = _i + step3 ) {
+ //BA.debugLineNum = 1403;BA.debugLine="data(i) = tabs(i)";
+_data[_i] = (byte) (_tabs[_i]);
+ }
+};
+ //BA.debugLineNum = 1405;BA.debugLine="data(tabs.Length) = 0";
+_data[_tabs.length] = (byte) (0);
+ //BA.debugLineNum = 1406;BA.debugLine="WriteBytes(data)";
+_writebytes(_data);
+ //BA.debugLineNum = 1407;BA.debugLine="End Sub";
+return "";
+}
+public String _setusecustomcharacters(boolean _custom) throws Exception{
+ //BA.debugLineNum = 1473;BA.debugLine="Public Sub setUseCustomCharacters(custom As Boolea";
+ //BA.debugLineNum = 1474;BA.debugLine="If custom Then";
+if (_custom) {
+ //BA.debugLineNum = 1475;BA.debugLine="WriteString(ESC & \"%1\")";
+_writestring(_esc+"%1");
+ }else {
+ //BA.debugLineNum = 1477;BA.debugLine="WriteString(ESC & \"%0\")";
+_writestring(_esc+"%0");
+ };
+ //BA.debugLineNum = 1479;BA.debugLine="End Sub";
+return "";
+}
+public reparto_izca.keymon.lat.escposprinter._animage _thresholdimage(reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{
+byte[] _pixels = null;
+int _i = 0;
+int _lum = 0;
+reparto_izca.keymon.lat.escposprinter._animage _ret = null;
+ //BA.debugLineNum = 1884;BA.debugLine="Sub ThresholdImage(img As AnImage, threshold As In";
+ //BA.debugLineNum = 1885;BA.debugLine="Dim pixels(img.Data.Length) As Byte";
+_pixels = new byte[_img.Data /*byte[]*/ .length];
+;
+ //BA.debugLineNum = 1886;BA.debugLine="For i = 0 To pixels.Length - 1";
+{
+final int step2 = 1;
+final int limit2 = (int) (_pixels.length-1);
+_i = (int) (0) ;
+for (;_i <= limit2 ;_i = _i + step2 ) {
+ //BA.debugLineNum = 1887;BA.debugLine="Dim lum As Int = Bit.And(img.Data(i), 0xff) ' by";
+_lum = __c.Bit.And((int) (_img.Data /*byte[]*/ [_i]),((int)0xff));
+ //BA.debugLineNum = 1888;BA.debugLine="If lum < threshold Then";
+if (_lum<_threshold) {
+ //BA.debugLineNum = 1889;BA.debugLine="lum = 1";
+_lum = (int) (1);
+ }else {
+ //BA.debugLineNum = 1891;BA.debugLine="lum = 0";
+_lum = (int) (0);
+ };
+ //BA.debugLineNum = 1893;BA.debugLine="pixels(i) = lum";
+_pixels[_i] = (byte) (_lum);
+ }
+};
+ //BA.debugLineNum = 1895;BA.debugLine="Dim ret As AnImage";
+_ret = new reparto_izca.keymon.lat.escposprinter._animage();
+ //BA.debugLineNum = 1896;BA.debugLine="ret.Width = img.Width";
+_ret.Width /*int*/ = _img.Width /*int*/ ;
+ //BA.debugLineNum = 1897;BA.debugLine="ret.Height = img.Height";
+_ret.Height /*int*/ = _img.Height /*int*/ ;
+ //BA.debugLineNum = 1898;BA.debugLine="ret.Data = pixels";
+_ret.Data /*byte[]*/ = _pixels;
+ //BA.debugLineNum = 1899;BA.debugLine="Return ret";
+if (true) return _ret;
+ //BA.debugLineNum = 1900;BA.debugLine="End Sub";
+return null;
+}
+public String _writebarcode(String _bartype,String _data) throws Exception{
+byte[] _databytes = null;
+int _dlow = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 2220;BA.debugLine="Public Sub WriteBarCode(bartype As String, data As";
+ //BA.debugLineNum = 2221;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ASCII\")";
+_databytes = _data.getBytes("ASCII");
+ //BA.debugLineNum = 2222;BA.debugLine="Dim dlow As Int = databytes.Length";
+_dlow = _databytes.length;
+ //BA.debugLineNum = 2223;BA.debugLine="Log(\"Barcode \" & bartype & \", Size \" & dlow & \",";
+__c.LogImpl("528508163","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0);
+ //BA.debugLineNum = 2224;BA.debugLine="WriteString(GS & \"k\" & bartype.ToUpperCase.CharAt";
+_writestring(_gs+"k"+BA.ObjectToString(_bartype.toUpperCase().charAt((int) (0))));
+ //BA.debugLineNum = 2225;BA.debugLine="Dim params(1) As Byte";
+_params = new byte[(int) (1)];
+;
+ //BA.debugLineNum = 2226;BA.debugLine="params(0) = dlow";
+_params[(int) (0)] = (byte) (_dlow);
+ //BA.debugLineNum = 2227;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 2228;BA.debugLine="WriteBytes(databytes)";
+_writebytes(_databytes);
+ //BA.debugLineNum = 2229;BA.debugLine="End Sub";
+return "";
+}
+public String _writebytes(byte[] _data) throws Exception{
+ //BA.debugLineNum = 1425;BA.debugLine="Public Sub WriteBytes(data() As Byte)";
+ //BA.debugLineNum = 1426;BA.debugLine="If Connected Then";
+if (_connected) {
+ //BA.debugLineNum = 1427;BA.debugLine="Astream.Write(data)";
+_astream.Write(_data);
+ };
+ //BA.debugLineNum = 1429;BA.debugLine="End Sub";
+return "";
+}
+public String _writeqrcode(int _size,String _ec,int _scale,String _data) throws Exception{
+byte[] _databytes = null;
+int _dhigh = 0;
+int _dlow = 0;
+byte[] _params = null;
+ //BA.debugLineNum = 2236;BA.debugLine="Public Sub WriteQRCode(size As Int, EC As String,";
+ //BA.debugLineNum = 2237;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ISO-8859";
+_databytes = _data.getBytes("ISO-8859-1");
+ //BA.debugLineNum = 2238;BA.debugLine="Dim dhigh As Int = databytes.Length / 256";
+_dhigh = (int) (_databytes.length/(double)256);
+ //BA.debugLineNum = 2239;BA.debugLine="Dim dlow As Int = databytes.Length - dhigh*256";
+_dlow = (int) (_databytes.length-_dhigh*256);
+ //BA.debugLineNum = 2240;BA.debugLine="Log(\"QR Code : Size \" & size & \", EC \" & EC & \",";
+__c.LogImpl("528573700","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0);
+ //BA.debugLineNum = 2241;BA.debugLine="Dim params(3) As Byte";
+_params = new byte[(int) (3)];
+;
+ //BA.debugLineNum = 2242;BA.debugLine="params(0) = scale";
+_params[(int) (0)] = (byte) (_scale);
+ //BA.debugLineNum = 2243;BA.debugLine="params(1) = dlow";
+_params[(int) (1)] = (byte) (_dlow);
+ //BA.debugLineNum = 2244;BA.debugLine="params(2) = dhigh";
+_params[(int) (2)] = (byte) (_dhigh);
+ //BA.debugLineNum = 2245;BA.debugLine="WriteString(ESC & \"Z\" & Chr(size) & EC.ToUpperCas";
+_writestring(_esc+"Z"+BA.ObjectToString(__c.Chr(_size))+BA.ObjectToString(_ec.toUpperCase().charAt((int) (0))));
+ //BA.debugLineNum = 2246;BA.debugLine="WriteBytes(params)";
+_writebytes(_params);
+ //BA.debugLineNum = 2247;BA.debugLine="WriteBytes(databytes)";
+_writebytes(_databytes);
+ //BA.debugLineNum = 2248;BA.debugLine="End Sub";
+return "";
+}
+public String _writestring(String _data) throws Exception{
+ //BA.debugLineNum = 1435;BA.debugLine="Public Sub WriteString(data As String)";
+ //BA.debugLineNum = 1436;BA.debugLine="WriteString2(data, \"IBM437\")";
+_writestring2(_data,"IBM437");
+ //BA.debugLineNum = 1437;BA.debugLine="End Sub";
+return "";
+}
+public String _writestring2(String _data,String _encoding) throws Exception{
+ //BA.debugLineNum = 1443;BA.debugLine="Public Sub WriteString2(data As String, encoding A";
+ //BA.debugLineNum = 1444;BA.debugLine="Try";
+try { //BA.debugLineNum = 1445;BA.debugLine="If Connected Then";
+if (_connected) {
+ //BA.debugLineNum = 1446;BA.debugLine="Astream.Write(data.GetBytes(encoding))";
+_astream.Write(_data.getBytes(_encoding));
+ };
+ }
+ catch (Exception e6) {
+ ba.setLastException(e6); //BA.debugLineNum = 1449;BA.debugLine="Log(\"Printer error : \" & LastException.Message)";
+__c.LogImpl("526607622","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0);
+ //BA.debugLineNum = 1450;BA.debugLine="AStream_Error";
+_astream_error();
+ };
+ //BA.debugLineNum = 1452;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/fileprovider.java b/B4A/Objects/src/reparto_izca/keymon/lat/fileprovider.java
new file mode 100644
index 0000000..b3ef790
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/fileprovider.java
@@ -0,0 +1,128 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class fileprovider extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.fileprovider");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.fileprovider.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _sharedfolder = "";
+public boolean _usefileprovider = false;
+public anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 3;BA.debugLine="Public SharedFolder As String";
+_sharedfolder = "";
+ //BA.debugLineNum = 4;BA.debugLine="Public UseFileProvider As Boolean";
+_usefileprovider = false;
+ //BA.debugLineNum = 5;BA.debugLine="Private rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 6;BA.debugLine="End Sub";
+return "";
+}
+public Object _getfileuri(String _filename) throws Exception{
+anywheresoftware.b4j.object.JavaObject _uri = null;
+anywheresoftware.b4j.object.JavaObject _f = null;
+anywheresoftware.b4j.object.JavaObject _fp = null;
+anywheresoftware.b4j.object.JavaObject _context = null;
+ //BA.debugLineNum = 22;BA.debugLine="Public Sub GetFileUri (FileName As String) As Obje";
+ //BA.debugLineNum = 24;BA.debugLine="If UseFileProvider = False Then";
+if (_usefileprovider==__c.False) {
+ //BA.debugLineNum = 25;BA.debugLine="Dim uri As JavaObject";
+_uri = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 26;BA.debugLine="Return uri.InitializeStatic(\"android.net.Uri\").R";
+if (true) return _uri.InitializeStatic("android.net.Uri").RunMethod("parse",new Object[]{(Object)("file://"+__c.File.Combine(_sharedfolder,_filename))});
+ }else {
+ //BA.debugLineNum = 28;BA.debugLine="Dim f As JavaObject";
+_f = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 29;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh";
+_f.InitializeNewInstance("java.io.File",new Object[]{(Object)(_sharedfolder),(Object)(_filename)});
+ //BA.debugLineNum = 30;BA.debugLine="Dim fp As JavaObject";
+_fp = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 31;BA.debugLine="Dim context As JavaObject";
+_context = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 32;BA.debugLine="context.InitializeContext";
+_context.InitializeContext(ba);
+ //BA.debugLineNum = 33;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content.";
+_fp.InitializeStatic("androidx.core.content.FileProvider");
+ //BA.debugLineNum = 34;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte";
+if (true) return _fp.RunMethod("getUriForFile",new Object[]{(Object)(_context.getObject()),(Object)(__c.Application.getPackageName()+".provider"),(Object)(_f.getObject())});
+ };
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return null;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+innerInitialize(_ba);
+anywheresoftware.b4a.phone.Phone _p = null;
+ //BA.debugLineNum = 8;BA.debugLine="Public Sub Initialize";
+ //BA.debugLineNum = 9;BA.debugLine="Dim p As Phone";
+_p = new anywheresoftware.b4a.phone.Phone();
+ //BA.debugLineNum = 10;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable =";
+if (_p.getSdkVersion()>=24 || __c.File.getExternalWritable()==__c.False) {
+ //BA.debugLineNum = 11;BA.debugLine="UseFileProvider = True";
+_usefileprovider = __c.True;
+ //BA.debugLineNum = 12;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s";
+_sharedfolder = __c.File.Combine(__c.File.getDirInternal(),"shared");
+ //BA.debugLineNum = 13;BA.debugLine="File.MakeDir(\"\", SharedFolder)";
+__c.File.MakeDir("",_sharedfolder);
+ }else {
+ //BA.debugLineNum = 15;BA.debugLine="UseFileProvider = False";
+_usefileprovider = __c.False;
+ //BA.debugLineNum = 16;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha";
+_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
+ };
+ //BA.debugLineNum = 18;BA.debugLine="Log($\"Using FileProvider? ${UseFileProvider}\"$)";
+__c.LogImpl("949676298",("Using FileProvider? "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
+ //BA.debugLineNum = 19;BA.debugLine="End Sub";
+return "";
+}
+public String _setfileuriasintentdata(anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 40;BA.debugLine="Public Sub SetFileUriAsIntentData (Intent As Inten";
+ //BA.debugLineNum = 41;BA.debugLine="Dim jo As JavaObject = Intent";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_intent.getObject()));
+ //BA.debugLineNum = 42;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName";
+_jo.RunMethod("setData",new Object[]{_getfileuri(_filename)});
+ //BA.debugLineNum = 43;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN";
+_intent.setFlags(__c.Bit.Or(_intent.getFlags(),(int) (1)));
+ //BA.debugLineNum = 44;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/foto.java b/B4A/Objects/src/reparto_izca/keymon/lat/foto.java
new file mode 100644
index 0000000..133622b
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/foto.java
@@ -0,0 +1,670 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.B4AMenuItem;
+import android.app.Activity;
+import android.os.Bundle;
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.B4AActivity;
+import anywheresoftware.b4a.ObjectWrapper;
+import anywheresoftware.b4a.objects.ActivityWrapper;
+import java.lang.reflect.InvocationTargetException;
+import anywheresoftware.b4a.B4AUncaughtException;
+import anywheresoftware.b4a.debug.*;
+import java.lang.ref.WeakReference;
+
+public class foto extends Activity implements B4AActivity{
+ public static foto mostCurrent;
+ static boolean afterFirstLayout;
+ static boolean isFirst = true;
+ private static boolean processGlobalsRun = false;
+ BALayout layout;
+ public static BA processBA;
+ BA activityBA;
+ ActivityWrapper _activity;
+ java.util.ArrayList menuItems;
+ public static final boolean fullScreen = false;
+ public static final boolean includeTitle = true;
+ public static WeakReference previousOne;
+ public static boolean dontPause;
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.foto");
+ processBA.loadHtSubs(this.getClass());
+ float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
+ BALayout.setDeviceScale(deviceScale);
+
+ }
+ else if (previousOne != null) {
+ Activity p = previousOne.get();
+ if (p != null && p != this) {
+ BA.LogInfo("Killing previous instance (foto).");
+ p.finish();
+ }
+ }
+ processBA.setActivityPaused(true);
+ processBA.runHook("oncreate", this, null);
+ if (!includeTitle) {
+ this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
+ }
+ if (fullScreen) {
+ getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,
+ android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ }
+
+ processBA.sharedProcessBA.activityBA = null;
+ layout = new BALayout(this);
+ setContentView(layout);
+ afterFirstLayout = false;
+ WaitForLayout wl = new WaitForLayout();
+ if (anywheresoftware.b4a.objects.ServiceHelper.StarterHelper.startFromActivity(this, processBA, wl, false))
+ BA.handler.postDelayed(wl, 5);
+
+ }
+ static class WaitForLayout implements Runnable {
+ public void run() {
+ if (afterFirstLayout)
+ return;
+ if (mostCurrent == null)
+ return;
+
+ if (mostCurrent.layout.getWidth() == 0) {
+ BA.handler.postDelayed(this, 5);
+ return;
+ }
+ mostCurrent.layout.getLayoutParams().height = mostCurrent.layout.getHeight();
+ mostCurrent.layout.getLayoutParams().width = mostCurrent.layout.getWidth();
+ afterFirstLayout = true;
+ mostCurrent.afterFirstLayout();
+ }
+ }
+ private void afterFirstLayout() {
+ if (this != mostCurrent)
+ return;
+ activityBA = new BA(this, layout, processBA, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.foto");
+
+ processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference(activityBA);
+ anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
+ _activity = new ActivityWrapper(activityBA, "activity");
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ if (isFirst)
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.foto", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density, mostCurrent);
+ _activity.reinitializeForShell(activityBA, "activity");
+ }
+ initializeProcessGlobals();
+ initializeGlobals();
+
+ BA.LogInfo("** Activity (foto) Create " + (isFirst ? "(first time)" : "") + " **");
+ processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
+ isFirst = false;
+ if (this != mostCurrent)
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (foto) Resume **");
+ processBA.raiseEvent(null, "activity_resume");
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ }
+ public void addMenuItem(B4AMenuItem item) {
+ if (menuItems == null)
+ menuItems = new java.util.ArrayList();
+ menuItems.add(item);
+ }
+ @Override
+ public boolean onCreateOptionsMenu(android.view.Menu menu) {
+ super.onCreateOptionsMenu(menu);
+ try {
+ if (processBA.subExists("activity_actionbarhomeclick")) {
+ Class.forName("android.app.ActionBar").getMethod("setHomeButtonEnabled", boolean.class).invoke(
+ getClass().getMethod("getActionBar").invoke(this), true);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ if (processBA.runHook("oncreateoptionsmenu", this, new Object[] {menu}))
+ return true;
+ if (menuItems == null)
+ return false;
+ for (B4AMenuItem bmi : menuItems) {
+ android.view.MenuItem mi = menu.add(bmi.title);
+ if (bmi.drawable != null)
+ mi.setIcon(bmi.drawable);
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ if (bmi.addToBar) {
+ android.view.MenuItem.class.getMethod("setShowAsAction", int.class).invoke(mi, 1);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ mi.setOnMenuItemClickListener(new B4AMenuItemsClickListener(bmi.eventName.toLowerCase(BA.cul)));
+ }
+
+ return true;
+ }
+ @Override
+ public boolean onOptionsItemSelected(android.view.MenuItem item) {
+ if (item.getItemId() == 16908332) {
+ processBA.raiseEvent(null, "activity_actionbarhomeclick");
+ return true;
+ }
+ else
+ return super.onOptionsItemSelected(item);
+}
+@Override
+ public boolean onPrepareOptionsMenu(android.view.Menu menu) {
+ super.onPrepareOptionsMenu(menu);
+ processBA.runHook("onprepareoptionsmenu", this, new Object[] {menu});
+ return true;
+
+ }
+ protected void onStart() {
+ super.onStart();
+ processBA.runHook("onstart", this, null);
+}
+ protected void onStop() {
+ super.onStop();
+ processBA.runHook("onstop", this, null);
+}
+ public void onWindowFocusChanged(boolean hasFocus) {
+ super.onWindowFocusChanged(hasFocus);
+ if (processBA.subExists("activity_windowfocuschanged"))
+ processBA.raiseEvent2(null, true, "activity_windowfocuschanged", false, hasFocus);
+ }
+ private class B4AMenuItemsClickListener implements android.view.MenuItem.OnMenuItemClickListener {
+ private final String eventName;
+ public B4AMenuItemsClickListener(String eventName) {
+ this.eventName = eventName;
+ }
+ public boolean onMenuItemClick(android.view.MenuItem item) {
+ processBA.raiseEventFromUI(item.getTitle(), eventName + "_click");
+ return true;
+ }
+ }
+ public static Class> getObject() {
+ return foto.class;
+ }
+ private Boolean onKeySubExist = null;
+ private Boolean onKeyUpSubExist = null;
+ @Override
+ public boolean onKeyDown(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeydown", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeySubExist == null)
+ onKeySubExist = processBA.subExists("activity_keypress");
+ if (onKeySubExist) {
+ if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK &&
+ android.os.Build.VERSION.SDK_INT >= 18) {
+ HandleKeyDelayed hk = new HandleKeyDelayed();
+ hk.kc = keyCode;
+ BA.handler.post(hk);
+ return true;
+ }
+ else {
+ boolean res = new HandleKeyDelayed().runDirectly(keyCode);
+ if (res)
+ return true;
+ }
+ }
+ return super.onKeyDown(keyCode, event);
+ }
+ private class HandleKeyDelayed implements Runnable {
+ int kc;
+ public void run() {
+ runDirectly(kc);
+ }
+ public boolean runDirectly(int keyCode) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keypress", false, keyCode);
+ if (res == null || res == true) {
+ return true;
+ }
+ else if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK) {
+ finish();
+ return true;
+ }
+ return false;
+ }
+
+ }
+ @Override
+ public boolean onKeyUp(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeyup", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeyUpSubExist == null)
+ onKeyUpSubExist = processBA.subExists("activity_keyup");
+ if (onKeyUpSubExist) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keyup", false, keyCode);
+ if (res == null || res == true)
+ return true;
+ }
+ return super.onKeyUp(keyCode, event);
+ }
+ @Override
+ public void onNewIntent(android.content.Intent intent) {
+ super.onNewIntent(intent);
+ this.setIntent(intent);
+ processBA.runHook("onnewintent", this, new Object[] {intent});
+ }
+ @Override
+ public void onPause() {
+ super.onPause();
+ if (_activity == null)
+ return;
+ if (this != mostCurrent)
+ return;
+ anywheresoftware.b4a.Msgbox.dismiss(true);
+ if (!dontPause)
+ BA.LogInfo("** Activity (foto) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
+ else
+ BA.LogInfo("** Activity (foto) Pause event (activity is not paused). **");
+ if (mostCurrent != null)
+ processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());
+ if (!dontPause) {
+ processBA.setActivityPaused(true);
+ mostCurrent = null;
+ }
+
+ if (!activityBA.activity.isFinishing())
+ previousOne = new WeakReference(this);
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ processBA.runHook("onpause", this, null);
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ previousOne = null;
+ processBA.runHook("ondestroy", this, null);
+ }
+ @Override
+ public void onResume() {
+ super.onResume();
+ mostCurrent = this;
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (activityBA != null) { //will be null during activity create (which waits for AfterLayout).
+ ResumeMessage rm = new ResumeMessage(mostCurrent);
+ BA.handler.post(rm);
+ }
+ processBA.runHook("onresume", this, null);
+ }
+ private static class ResumeMessage implements Runnable {
+ private final WeakReference activity;
+ public ResumeMessage(Activity activity) {
+ this.activity = new WeakReference(activity);
+ }
+ public void run() {
+ foto mc = mostCurrent;
+ if (mc == null || mc != activity.get())
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (foto) Resume **");
+ if (mc != mostCurrent)
+ return;
+ processBA.raiseEvent(mc._activity, "activity_resume", (Object[])null);
+ }
+ }
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode,
+ android.content.Intent data) {
+ processBA.onActivityResult(requestCode, resultCode, data);
+ processBA.runHook("onactivityresult", this, new Object[] {requestCode, resultCode});
+ }
+ private static void initializeGlobals() {
+ processBA.raiseEvent2(null, true, "globals", false, (Object[])null);
+ }
+ public void onRequestPermissionsResult(int requestCode,
+ String permissions[], int[] grantResults) {
+ for (int i = 0;i < permissions.length;i++) {
+ Object[] o = new Object[] {permissions[i], grantResults[i] == 0};
+ processBA.raiseEventFromDifferentThread(null,null, 0, "activity_permissionresult", true, o);
+ }
+
+ }
+
+public anywheresoftware.b4a.keywords.Common __c = null;
+public static boolean _frontcamera = false;
+public static anywheresoftware.b4a.gps.GPS _g = null;
+public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null;
+public reparto_izca.keymon.lat.cameraexclass _camex = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _btntakepicture = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public static String _cuenta = "";
+public static String _lat_gps = "";
+public static String _usuario = "";
+public static String _motivo = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+
+public static void initializeProcessGlobals() {
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+}
+public static String _activity_create(boolean _firsttime) throws Exception{
+ //BA.debugLineNum = 27;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)";
+ //BA.debugLineNum = 28;BA.debugLine="If(FirstTime) Then";
+if ((_firsttime)) {
+ //BA.debugLineNum = 29;BA.debugLine="g.Initialize(\"GPS\")";
+_g.Initialize("GPS");
+ };
+ //BA.debugLineNum = 31;BA.debugLine="Activity.LoadLayout(\"foto\")";
+mostCurrent._activity.LoadLayout("foto",mostCurrent.activityBA);
+ //BA.debugLineNum = 32;BA.debugLine="c=Starter.skmt.ExecQuery(\"select cuenta from cuen";
+mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select cuenta from cuentaa")));
+ //BA.debugLineNum = 33;BA.debugLine="c.Position = 0";
+mostCurrent._c.setPosition((int) (0));
+ //BA.debugLineNum = 34;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+mostCurrent._cuenta = mostCurrent._c.GetString("CUENTA");
+ //BA.debugLineNum = 35;BA.debugLine="End Sub";
+return "";
+}
+public static boolean _activity_keypress(int _key) throws Exception{
+ //BA.debugLineNum = 174;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean";
+ //BA.debugLineNum = 176;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then";
+if (_key==anywheresoftware.b4a.keywords.Common.KeyCodes.KEYCODE_BACK) {
+ //BA.debugLineNum = 178;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Principal");
+ };
+ //BA.debugLineNum = 182;BA.debugLine="Return False";
+if (true) return anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 183;BA.debugLine="End Sub";
+return false;
+}
+public static String _activity_pause(boolean _userclosed) throws Exception{
+ //BA.debugLineNum = 46;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
+ //BA.debugLineNum = 47;BA.debugLine="camEx.Release";
+mostCurrent._camex._release /*String*/ ();
+ //BA.debugLineNum = 48;BA.debugLine="End Sub";
+return "";
+}
+public static String _activity_resume() throws Exception{
+ //BA.debugLineNum = 37;BA.debugLine="Sub Activity_Resume";
+ //BA.debugLineNum = 38;BA.debugLine="InitializeCamera";
+_initializecamera();
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+return "";
+}
+public static String _btneffect_click() throws Exception{
+anywheresoftware.b4a.objects.collections.List _effects = null;
+String _effect = "";
+ //BA.debugLineNum = 138;BA.debugLine="Sub btnEffect_Click";
+ //BA.debugLineNum = 139;BA.debugLine="Dim effects As List = camEx.GetSupportedColorEffe";
+_effects = new anywheresoftware.b4a.objects.collections.List();
+_effects = mostCurrent._camex._getsupportedcoloreffects /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 140;BA.debugLine="If effects.IsInitialized = False Then";
+if (_effects.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 141;BA.debugLine="ToastMessageShow(\"Effects not supported.\", False";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Effects not supported."),anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 142;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 144;BA.debugLine="Dim effect As String = effects.Get((effects.Index";
+_effect = BA.ObjectToString(_effects.Get((int) ((_effects.IndexOf((Object)(mostCurrent._camex._getcoloreffect /*String*/ ()))+1)%_effects.getSize())));
+ //BA.debugLineNum = 145;BA.debugLine="camEx.SetColorEffect(effect)";
+mostCurrent._camex._setcoloreffect /*String*/ (_effect);
+ //BA.debugLineNum = 146;BA.debugLine="ToastMessageShow(effect, False)";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(_effect),anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 147;BA.debugLine="camEx.CommitParameters";
+mostCurrent._camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 148;BA.debugLine="End Sub";
+return "";
+}
+public static String _btnflash_click() throws Exception{
+float[] _f = null;
+anywheresoftware.b4a.objects.collections.List _flashmodes = null;
+String _flash = "";
+ //BA.debugLineNum = 150;BA.debugLine="Sub btnFlash_Click";
+ //BA.debugLineNum = 151;BA.debugLine="Dim f() As Float = camEx.GetFocusDistances";
+_f = mostCurrent._camex._getfocusdistances /*float[]*/ ();
+ //BA.debugLineNum = 152;BA.debugLine="Log(f(0) & \", \" & f(1) & \", \" & f(2))";
+anywheresoftware.b4a.keywords.Common.LogImpl("529753346",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0);
+ //BA.debugLineNum = 153;BA.debugLine="Dim flashModes As List = camEx.GetSupportedFlashM";
+_flashmodes = new anywheresoftware.b4a.objects.collections.List();
+_flashmodes = mostCurrent._camex._getsupportedflashmodes /*anywheresoftware.b4a.objects.collections.List*/ ();
+ //BA.debugLineNum = 154;BA.debugLine="If flashModes.IsInitialized = False Then";
+if (_flashmodes.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 155;BA.debugLine="ToastMessageShow(\"Flash not supported.\", False)";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Flash not supported."),anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 156;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 158;BA.debugLine="Dim flash As String = flashModes.Get((flashModes.";
+_flash = BA.ObjectToString(_flashmodes.Get((int) ((_flashmodes.IndexOf((Object)(mostCurrent._camex._getflashmode /*String*/ ()))+1)%_flashmodes.getSize())));
+ //BA.debugLineNum = 159;BA.debugLine="camEx.SetFlashMode(flash)";
+mostCurrent._camex._setflashmode /*String*/ (_flash);
+ //BA.debugLineNum = 160;BA.debugLine="ToastMessageShow(flash, False)";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(_flash),anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 161;BA.debugLine="camEx.CommitParameters";
+mostCurrent._camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 162;BA.debugLine="End Sub";
+return "";
+}
+public static String _btnfocus_click() throws Exception{
+ //BA.debugLineNum = 78;BA.debugLine="Sub btnFocus_Click";
+ //BA.debugLineNum = 79;BA.debugLine="camEx.FocusAndTakePicture";
+mostCurrent._camex._focusandtakepicture /*String*/ ();
+ //BA.debugLineNum = 80;BA.debugLine="End Sub";
+return "";
+}
+public static String _btnpicturesize_click() throws Exception{
+reparto_izca.keymon.lat.cameraexclass._camerasize[] _picturesizes = null;
+reparto_izca.keymon.lat.cameraexclass._camerasize _current = null;
+int _i = 0;
+reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null;
+ //BA.debugLineNum = 163;BA.debugLine="Sub btnPictureSize_Click";
+ //BA.debugLineNum = 164;BA.debugLine="Dim pictureSizes() As CameraSize = camEx.GetSuppo";
+_picturesizes = mostCurrent._camex._getsupportedpicturessizes /*reparto_izca.keymon.lat.cameraexclass._camerasize[]*/ ();
+ //BA.debugLineNum = 165;BA.debugLine="Dim current As CameraSize = camEx.GetPictureSize";
+_current = mostCurrent._camex._getpicturesize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ();
+ //BA.debugLineNum = 166;BA.debugLine="For i = 0 To pictureSizes.Length - 1";
+{
+final int step3 = 1;
+final int limit3 = (int) (_picturesizes.length /*int*/ -1);
+_i = (int) (0) ;
+for (;_i <= limit3 ;_i = _i + step3 ) {
+ //BA.debugLineNum = 167;BA.debugLine="If pictureSizes(i).Width = current.Width And pic";
+if (_picturesizes[_i].Width /*int*/ ==_current.Width /*int*/ && _picturesizes[_i].Height /*int*/ ==_current.Height /*int*/ ) {
+if (true) break;};
+ }
+};
+ //BA.debugLineNum = 169;BA.debugLine="Dim ps As CameraSize = pictureSizes((i + 1) Mod p";
+_ps = _picturesizes[(int) ((_i+1)%_picturesizes.length /*int*/ )];
+ //BA.debugLineNum = 170;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)";
+mostCurrent._camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ );
+ //BA.debugLineNum = 171;BA.debugLine="ToastMessageShow(ps.Width & \"x\" & ps.Height & i,";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(BA.NumberToString(_ps.Width /*int*/ )+"x"+BA.NumberToString(_ps.Height /*int*/ )+BA.NumberToString(_i)),anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 172;BA.debugLine="camEx.CommitParameters";
+mostCurrent._camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 173;BA.debugLine="End Sub";
+return "";
+}
+public static String _btntakepicture_click() throws Exception{
+reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null;
+ //BA.debugLineNum = 68;BA.debugLine="Sub btnTakePicture_Click";
+ //BA.debugLineNum = 69;BA.debugLine="Dim ps As CameraSize";
+_ps = new reparto_izca.keymon.lat.cameraexclass._camerasize();
+ //BA.debugLineNum = 70;BA.debugLine="ps.Width =640";
+_ps.Width /*int*/ = (int) (640);
+ //BA.debugLineNum = 71;BA.debugLine="ps.Height =480";
+_ps.Height /*int*/ = (int) (480);
+ //BA.debugLineNum = 72;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)";
+mostCurrent._camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ );
+ //BA.debugLineNum = 74;BA.debugLine="camEx.CommitParameters";
+mostCurrent._camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 75;BA.debugLine="camEx.TakePicture";
+mostCurrent._camex._takepicture /*String*/ ();
+ //BA.debugLineNum = 76;BA.debugLine="End Sub";
+return "";
+}
+public static String _camera1_picturetaken(byte[] _data) throws Exception{
+String _filename = "";
+String _dir = "";
+String _sdate = "";
+String _stime = "";
+int _i = 0;
+ //BA.debugLineNum = 82;BA.debugLine="Sub Camera1_PictureTaken (Data() As Byte)";
+ //BA.debugLineNum = 83;BA.debugLine="Dim filename As String = \"1.jpg\"";
+_filename = "1.jpg";
+ //BA.debugLineNum = 84;BA.debugLine="Dim dir As String = File.DirInternal";
+_dir = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
+ //BA.debugLineNum = 86;BA.debugLine="camEx.SavePictureToFile(Data, dir, filename)";
+mostCurrent._camex._savepicturetofile /*String*/ (_data,_dir,_filename);
+ //BA.debugLineNum = 87;BA.debugLine="camEx.StartPreview 'restart preview";
+mostCurrent._camex._startpreview /*String*/ ();
+ //BA.debugLineNum = 91;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 94;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 95;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
+ //BA.debugLineNum = 96;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
+ //BA.debugLineNum = 97;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen";
+mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa")));
+ //BA.debugLineNum = 98;BA.debugLine="c.Position = 0";
+mostCurrent._c.setPosition((int) (0));
+ //BA.debugLineNum = 99;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
+mostCurrent._cuenta = mostCurrent._c.GetString("CUENTA");
+ //BA.debugLineNum = 100;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
+mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 101;BA.debugLine="c.Position = 0";
+mostCurrent._c.setPosition((int) (0));
+ //BA.debugLineNum = 102;BA.debugLine="USUARIO = c.GetString(\"USUARIO\")";
+mostCurrent._usuario = mostCurrent._c.GetString("USUARIO");
+ //BA.debugLineNum = 103;BA.debugLine="c.Close";
+mostCurrent._c.Close();
+ //BA.debugLineNum = 104;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)");
+ //BA.debugLineNum = 106;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_CLIENTE,HVD_";
+mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc")));
+ //BA.debugLineNum = 108;BA.debugLine="If c.RowCount>0 Then";
+if (mostCurrent._c.getRowCount()>0) {
+ //BA.debugLineNum = 109;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step19 = 1;
+final int limit19 = (int) (mostCurrent._c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit19 ;_i = _i + step19 ) {
+ //BA.debugLineNum = 110;BA.debugLine="c.Position=i";
+mostCurrent._c.setPosition(_i);
+ //BA.debugLineNum = 111;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{mostCurrent._c.GetString("HVD_PRONOMBRE")}));
+ //BA.debugLineNum = 113;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._c.GetString("HVD_CANT")),(Object)(mostCurrent._c.GetString("HVD_PRONOMBRE"))}));
+ }
+};
+ };
+ //BA.debugLineNum = 124;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._cuenta),(Object)(_sdate+_stime),(Object)(mostCurrent._usuario),(Object)("CERRADO"),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._noventa /*reparto_izca.keymon.lat.c_noventa*/ ._comentario /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._lon_gps /*String*/ ),(Object)(_data)}));
+ //BA.debugLineNum = 125;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)"));
+ //BA.debugLineNum = 126;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
+ //BA.debugLineNum = 127;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Principal");
+ //BA.debugLineNum = 130;BA.debugLine="End Sub";
+return "";
+}
+public static String _camera1_ready(boolean _success) throws Exception{
+ //BA.debugLineNum = 57;BA.debugLine="Sub Camera1_Ready (Success As Boolean)";
+ //BA.debugLineNum = 58;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 59;BA.debugLine="camEx.SetJpegQuality(90)";
+mostCurrent._camex._setjpegquality /*String*/ ((int) (90));
+ //BA.debugLineNum = 60;BA.debugLine="camEx.CommitParameters";
+mostCurrent._camex._commitparameters /*String*/ ();
+ //BA.debugLineNum = 61;BA.debugLine="camEx.StartPreview";
+mostCurrent._camex._startpreview /*String*/ ();
+ //BA.debugLineNum = 62;BA.debugLine="Log(camEx.GetPreviewSize)";
+anywheresoftware.b4a.keywords.Common.LogImpl("529360133",BA.ObjectToString(mostCurrent._camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ()),0);
+ }else {
+ //BA.debugLineNum = 64;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),anywheresoftware.b4a.keywords.Common.True);
+ };
+ //BA.debugLineNum = 66;BA.debugLine="End Sub";
+return "";
+}
+public static String _changecamera_click() throws Exception{
+ //BA.debugLineNum = 132;BA.debugLine="Sub ChangeCamera_Click";
+ //BA.debugLineNum = 133;BA.debugLine="camEx.Release";
+mostCurrent._camex._release /*String*/ ();
+ //BA.debugLineNum = 134;BA.debugLine="frontCamera = Not(frontCamera)";
+_frontcamera = anywheresoftware.b4a.keywords.Common.Not(_frontcamera);
+ //BA.debugLineNum = 135;BA.debugLine="InitializeCamera";
+_initializecamera();
+ //BA.debugLineNum = 136;BA.debugLine="End Sub";
+return "";
+}
+public static String _globals() throws Exception{
+ //BA.debugLineNum = 14;BA.debugLine="Sub Globals";
+ //BA.debugLineNum = 15;BA.debugLine="Private p_camara As Panel";
+mostCurrent._p_camara = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 16;BA.debugLine="Private camEx As CameraExClass";
+mostCurrent._camex = new reparto_izca.keymon.lat.cameraexclass();
+ //BA.debugLineNum = 17;BA.debugLine="Dim btnTakePicture As Button";
+mostCurrent._btntakepicture = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Dim c As Cursor";
+mostCurrent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Dim cuenta As String";
+mostCurrent._cuenta = "";
+ //BA.debugLineNum = 21;BA.debugLine="Dim lat_gps As String";
+mostCurrent._lat_gps = "";
+ //BA.debugLineNum = 23;BA.debugLine="Dim USUARIO As String";
+mostCurrent._usuario = "";
+ //BA.debugLineNum = 24;BA.debugLine="Dim MOTIVO As String";
+mostCurrent._motivo = "";
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return "";
+}
+public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+ //BA.debugLineNum = 50;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return "";
+}
+public static String _initializecamera() throws Exception{
+ //BA.debugLineNum = 41;BA.debugLine="Private Sub InitializeCamera";
+ //BA.debugLineNum = 42;BA.debugLine="camEx.Initialize(p_camara, frontCamera, Me, \"Came";
+mostCurrent._camex._initialize /*String*/ (mostCurrent.activityBA,mostCurrent._p_camara,_frontcamera,foto.getObject(),"Camera1");
+ //BA.debugLineNum = 43;BA.debugLine="frontCamera = camEx.Front";
+_frontcamera = mostCurrent._camex._front /*boolean*/ ;
+ //BA.debugLineNum = 44;BA.debugLine="End Sub";
+return "";
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 7;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Private frontCamera As Boolean = False";
+_frontcamera = anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 10;BA.debugLine="Dim g As GPS";
+_g = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 12;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/httpjob.java b/B4A/Objects/src/reparto_izca/keymon/lat/httpjob.java
new file mode 100644
index 0000000..45ec318
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/httpjob.java
@@ -0,0 +1,577 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class httpjob extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.httpjob");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.httpjob.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _jobname = "";
+public boolean _success = false;
+public String _username = "";
+public String _password = "";
+public String _errormessage = "";
+public Object _target = null;
+public String _taskid = "";
+public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+public anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest _req = null;
+public anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse _response = null;
+public Object _tag = null;
+public String _invalidurl = "";
+public String _defaultscheme = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static class _multipartfiledata{
+public boolean IsInitialized;
+public String Dir;
+public String FileName;
+public String KeyName;
+public String ContentType;
+public void Initialize() {
+IsInitialized = true;
+Dir = "";
+FileName = "";
+KeyName = "";
+ContentType = "";
+}
+@Override
+ public String toString() {
+ return BA.TypeToString(this, false);
+ }}
+public String _addscheme(String _link) throws Exception{
+ //BA.debugLineNum = 52;BA.debugLine="Private Sub AddScheme (Link As String) As String";
+ //BA.debugLineNum = 53;BA.debugLine="If DefaultScheme = \"\" Or Link.Contains(\":\") Then";
+if ((_defaultscheme).equals("") || _link.contains(":")) {
+if (true) return _link;};
+ //BA.debugLineNum = 54;BA.debugLine="Return DefaultScheme & \"://\" & Link";
+if (true) return _defaultscheme+"://"+_link;
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 3;BA.debugLine="Public JobName As String";
+_jobname = "";
+ //BA.debugLineNum = 4;BA.debugLine="Public Success As Boolean";
+_success = false;
+ //BA.debugLineNum = 5;BA.debugLine="Public Username, Password As String";
+_username = "";
+_password = "";
+ //BA.debugLineNum = 6;BA.debugLine="Public ErrorMessage As String";
+_errormessage = "";
+ //BA.debugLineNum = 7;BA.debugLine="Private target As Object";
+_target = new Object();
+ //BA.debugLineNum = 10;BA.debugLine="Public taskId As String";
+_taskid = "";
+ //BA.debugLineNum = 11;BA.debugLine="Public Out As OutputStream";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Private req As OkHttpRequest";
+_req = new anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest();
+ //BA.debugLineNum = 16;BA.debugLine="Public Response As OkHttpResponse";
+_response = new anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse();
+ //BA.debugLineNum = 25;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 26;BA.debugLine="Type MultipartFileData (Dir As String, FileName A";
+;
+ //BA.debugLineNum = 30;BA.debugLine="Private Const InvalidURL As String = \"https://inv";
+_invalidurl = "https://invalid-url/";
+ //BA.debugLineNum = 31;BA.debugLine="Public DefaultScheme As String = \"https\"";
+_defaultscheme = "https";
+ //BA.debugLineNum = 32;BA.debugLine="End Sub";
+return "";
+}
+public String _complete(int _id) throws Exception{
+ //BA.debugLineNum = 315;BA.debugLine="Public Sub Complete (id As Int)";
+ //BA.debugLineNum = 316;BA.debugLine="taskId = id";
+_taskid = BA.NumberToString(_id);
+ //BA.debugLineNum = 317;BA.debugLine="CallSubDelayed2(target, \"JobDone\", Me)";
+__c.CallSubDelayed2(ba,_target,"JobDone",this);
+ //BA.debugLineNum = 318;BA.debugLine="End Sub";
+return "";
+}
+public String _delete(String _link) throws Exception{
+ //BA.debugLineNum = 261;BA.debugLine="Public Sub Delete(Link As String)";
+ //BA.debugLineNum = 262;BA.debugLine="Try";
+try { //BA.debugLineNum = 263;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 264;BA.debugLine="req.InitializeDelete(Link)";
+_req.InitializeDelete(_link);
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 266;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("951576837",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 267;BA.debugLine="req.InitializeDelete(InvalidURL)";
+_req.InitializeDelete(_invalidurl);
+ };
+ //BA.debugLineNum = 269;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 270;BA.debugLine="End Sub";
+return "";
+}
+public String _delete2(String _link,String[] _parameters) throws Exception{
+ //BA.debugLineNum = 272;BA.debugLine="Public Sub Delete2(Link As String, Parameters() As";
+ //BA.debugLineNum = 273;BA.debugLine="Try";
+try { //BA.debugLineNum = 274;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 275;BA.debugLine="req.InitializeDelete(escapeLink(Link, Parameters";
+_req.InitializeDelete(_escapelink(_link,_parameters));
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 277;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("951642373",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 278;BA.debugLine="req.InitializeDelete(escapeLink(InvalidURL, Para";
+_req.InitializeDelete(_escapelink(_invalidurl,_parameters));
+ };
+ //BA.debugLineNum = 280;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 281;BA.debugLine="End Sub";
+return "";
+}
+public String _download(String _link) throws Exception{
+ //BA.debugLineNum = 219;BA.debugLine="Public Sub Download(Link As String)";
+ //BA.debugLineNum = 220;BA.debugLine="Try";
+try { //BA.debugLineNum = 221;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 222;BA.debugLine="req.InitializeGet(Link)";
+_req.InitializeGet(_link);
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 224;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("951380229",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 225;BA.debugLine="req.InitializeGet(InvalidURL)";
+_req.InitializeGet(_invalidurl);
+ };
+ //BA.debugLineNum = 227;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 228;BA.debugLine="End Sub";
+return "";
+}
+public String _download2(String _link,String[] _parameters) throws Exception{
+ //BA.debugLineNum = 235;BA.debugLine="Public Sub Download2(Link As String, Parameters()";
+ //BA.debugLineNum = 236;BA.debugLine="Try";
+try { //BA.debugLineNum = 237;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 238;BA.debugLine="req.InitializeGet(escapeLink(Link, Parameters))";
+_req.InitializeGet(_escapelink(_link,_parameters));
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 240;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("951445765",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 241;BA.debugLine="req.InitializeGet(escapeLink(InvalidURL, Paramet";
+_req.InitializeGet(_escapelink(_invalidurl,_parameters));
+ };
+ //BA.debugLineNum = 243;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 244;BA.debugLine="End Sub";
+return "";
+}
+public String _escapelink(String _link,String[] _parameters) throws Exception{
+anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
+anywheresoftware.b4a.objects.StringUtils _su = null;
+int _i = 0;
+ //BA.debugLineNum = 246;BA.debugLine="Private Sub escapeLink(Link As String, Parameters(";
+ //BA.debugLineNum = 247;BA.debugLine="Dim sb As StringBuilder";
+_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
+ //BA.debugLineNum = 248;BA.debugLine="sb.Initialize";
+_sb.Initialize();
+ //BA.debugLineNum = 249;BA.debugLine="sb.Append(Link)";
+_sb.Append(_link);
+ //BA.debugLineNum = 250;BA.debugLine="If Parameters.Length > 0 Then sb.Append(\"?\")";
+if (_parameters.length>0) {
+_sb.Append("?");};
+ //BA.debugLineNum = 251;BA.debugLine="Dim su As StringUtils";
+_su = new anywheresoftware.b4a.objects.StringUtils();
+ //BA.debugLineNum = 252;BA.debugLine="For i = 0 To Parameters.Length - 1 Step 2";
+{
+final int step6 = 2;
+final int limit6 = (int) (_parameters.length-1);
+_i = (int) (0) ;
+for (;_i <= limit6 ;_i = _i + step6 ) {
+ //BA.debugLineNum = 253;BA.debugLine="If i > 0 Then sb.Append(\"&\")";
+if (_i>0) {
+_sb.Append("&");};
+ //BA.debugLineNum = 254;BA.debugLine="sb.Append(su.EncodeUrl(Parameters(i), \"UTF8\")).A";
+_sb.Append(_su.EncodeUrl(_parameters[_i],"UTF8")).Append("=");
+ //BA.debugLineNum = 255;BA.debugLine="sb.Append(su.EncodeUrl(Parameters(i + 1), \"UTF8\"";
+_sb.Append(_su.EncodeUrl(_parameters[(int) (_i+1)],"UTF8"));
+ }
+};
+ //BA.debugLineNum = 257;BA.debugLine="Return sb.ToString";
+if (true) return _sb.ToString();
+ //BA.debugLineNum = 258;BA.debugLine="End Sub";
+return "";
+}
+public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _getbitmap() throws Exception{
+anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _b = null;
+ //BA.debugLineNum = 330;BA.debugLine="Public Sub GetBitmap As Bitmap";
+ //BA.debugLineNum = 331;BA.debugLine="Dim b As Bitmap";
+_b = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
+ //BA.debugLineNum = 332;BA.debugLine="b = LoadBitmap(HttpUtils2Service.TempFolder, task";
+_b = __c.LoadBitmap(_httputils2service._tempfolder /*String*/ ,_taskid);
+ //BA.debugLineNum = 333;BA.debugLine="Return b";
+if (true) return _b;
+ //BA.debugLineNum = 334;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _getbitmapresize(int _width,int _height,boolean _keepaspectratio) throws Exception{
+ //BA.debugLineNum = 341;BA.debugLine="Public Sub GetBitmapResize(Width As Int, Height As";
+ //BA.debugLineNum = 342;BA.debugLine="Return LoadBitmapResize(HttpUtils2Service.TempFol";
+if (true) return __c.LoadBitmapResize(_httputils2service._tempfolder /*String*/ ,_taskid,_width,_height,_keepaspectratio);
+ //BA.debugLineNum = 343;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _getbitmapsample(int _width,int _height) throws Exception{
+ //BA.debugLineNum = 337;BA.debugLine="Public Sub GetBitmapSample(Width As Int, Height As";
+ //BA.debugLineNum = 338;BA.debugLine="Return LoadBitmapSample(HttpUtils2Service.TempFol";
+if (true) return __c.LoadBitmapSample(_httputils2service._tempfolder /*String*/ ,_taskid,_width,_height);
+ //BA.debugLineNum = 339;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _getinputstream() throws Exception{
+anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
+ //BA.debugLineNum = 347;BA.debugLine="Public Sub GetInputStream As InputStream";
+ //BA.debugLineNum = 348;BA.debugLine="Dim In As InputStream";
+_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
+ //BA.debugLineNum = 349;BA.debugLine="In = File.OpenInput(HttpUtils2Service.TempFolder,";
+_in = __c.File.OpenInput(_httputils2service._tempfolder /*String*/ ,_taskid);
+ //BA.debugLineNum = 350;BA.debugLine="Return In";
+if (true) return _in;
+ //BA.debugLineNum = 351;BA.debugLine="End Sub";
+return null;
+}
+public anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest _getrequest() throws Exception{
+ //BA.debugLineNum = 310;BA.debugLine="Public Sub GetRequest As OkHttpRequest";
+ //BA.debugLineNum = 311;BA.debugLine="Return req";
+if (true) return _req;
+ //BA.debugLineNum = 312;BA.debugLine="End Sub";
+return null;
+}
+public String _getstring() throws Exception{
+ //BA.debugLineNum = 291;BA.debugLine="Public Sub GetString As String";
+ //BA.debugLineNum = 292;BA.debugLine="Return GetString2(\"UTF8\")";
+if (true) return _getstring2("UTF8");
+ //BA.debugLineNum = 293;BA.debugLine="End Sub";
+return "";
+}
+public String _getstring2(String _encoding) throws Exception{
+anywheresoftware.b4a.objects.streams.File.TextReaderWrapper _tr = null;
+String _res = "";
+ //BA.debugLineNum = 296;BA.debugLine="Public Sub GetString2(Encoding As String) As Strin";
+ //BA.debugLineNum = 300;BA.debugLine="Dim tr As TextReader";
+_tr = new anywheresoftware.b4a.objects.streams.File.TextReaderWrapper();
+ //BA.debugLineNum = 301;BA.debugLine="tr.Initialize2(File.OpenInput(HttpUtils2Service.T";
+_tr.Initialize2((java.io.InputStream)(__c.File.OpenInput(_httputils2service._tempfolder /*String*/ ,_taskid).getObject()),_encoding);
+ //BA.debugLineNum = 302;BA.debugLine="Dim res As String = tr.ReadAll";
+_res = _tr.ReadAll();
+ //BA.debugLineNum = 303;BA.debugLine="tr.Close";
+_tr.Close();
+ //BA.debugLineNum = 304;BA.debugLine="Return res";
+if (true) return _res;
+ //BA.debugLineNum = 306;BA.debugLine="End Sub";
+return "";
+}
+public String _head(String _link) throws Exception{
+ //BA.debugLineNum = 119;BA.debugLine="Public Sub Head(Link As String)";
+ //BA.debugLineNum = 120;BA.debugLine="Try";
+try { //BA.debugLineNum = 121;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 122;BA.debugLine="req.InitializeHead(Link)";
+_req.InitializeHead(_link);
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 124;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("951118085",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 125;BA.debugLine="req.InitializeHead(InvalidURL)";
+_req.InitializeHead(_invalidurl);
+ };
+ //BA.debugLineNum = 127;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 128;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,String _name,Object _targetmodule) throws Exception{
+innerInitialize(_ba);
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 38;BA.debugLine="Public Sub Initialize (Name As String, TargetModul";
+ //BA.debugLineNum = 39;BA.debugLine="JobName = Name";
+_jobname = _name;
+ //BA.debugLineNum = 40;BA.debugLine="target = TargetModule";
+_target = _targetmodule;
+ //BA.debugLineNum = 42;BA.debugLine="If HttpUtils2Service.TempFolder = \"\" Then";
+if ((_httputils2service._tempfolder /*String*/ ).equals("")) {
+ //BA.debugLineNum = 43;BA.debugLine="Dim jo As JavaObject";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 44;BA.debugLine="jo.InitializeNewInstance(Application.PackageName";
+_jo.InitializeNewInstance(__c.Application.getPackageName()+".httputils2service",(Object[])(__c.Null));
+ //BA.debugLineNum = 45;BA.debugLine="jo.RunMethod(\"onReceive\", Array(Null, Null))";
+_jo.RunMethod("onReceive",new Object[]{__c.Null,__c.Null});
+ };
+ //BA.debugLineNum = 48;BA.debugLine="End Sub";
+return "";
+}
+public boolean _multipartstartsection(anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _stream,boolean _empty) throws Exception{
+ //BA.debugLineNum = 179;BA.debugLine="Private Sub MultipartStartSection (stream As Outpu";
+ //BA.debugLineNum = 180;BA.debugLine="If empty = False Then";
+if (_empty==__c.False) {
+ //BA.debugLineNum = 181;BA.debugLine="stream.WriteBytes(Array As Byte(13, 10), 0, 2)";
+_stream.WriteBytes(new byte[]{(byte) (13),(byte) (10)},(int) (0),(int) (2));
+ }else {
+ //BA.debugLineNum = 183;BA.debugLine="empty = False";
+_empty = __c.False;
+ };
+ //BA.debugLineNum = 185;BA.debugLine="Return empty";
+if (true) return _empty;
+ //BA.debugLineNum = 186;BA.debugLine="End Sub";
+return false;
+}
+public String _patchbytes(String _link,byte[] _data) throws Exception{
+ //BA.debugLineNum = 97;BA.debugLine="Public Sub PatchBytes(Link As String, Data() As By";
+ //BA.debugLineNum = 98;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 106;BA.debugLine="Try";
+try { //BA.debugLineNum = 107;BA.debugLine="req.InitializePatch2(Link, Data)";
+_req.InitializePatch2(_link,_data);
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 109;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("951052556",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 110;BA.debugLine="req.InitializePatch2(InvalidURL, Data)";
+_req.InitializePatch2(_invalidurl,_data);
+ };
+ //BA.debugLineNum = 114;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 115;BA.debugLine="End Sub";
+return "";
+}
+public String _patchstring(String _link,String _text) throws Exception{
+ //BA.debugLineNum = 92;BA.debugLine="Public Sub PatchString(Link As String, Text As Str";
+ //BA.debugLineNum = 93;BA.debugLine="PatchBytes(Link, Text.GetBytes(\"UTF8\"))";
+_patchbytes(_link,_text.getBytes("UTF8"));
+ //BA.debugLineNum = 94;BA.debugLine="End Sub";
+return "";
+}
+public String _postbytes(String _link,byte[] _data) throws Exception{
+ //BA.debugLineNum = 63;BA.debugLine="Public Sub PostBytes(Link As String, Data() As Byt";
+ //BA.debugLineNum = 64;BA.debugLine="Try";
+try { //BA.debugLineNum = 65;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 66;BA.debugLine="req.InitializePost2(Link, Data)";
+_req.InitializePost2(_link,_data);
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 68;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("950790405",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 69;BA.debugLine="req.InitializePost2(InvalidURL, Data)";
+_req.InitializePost2(_invalidurl,_data);
+ };
+ //BA.debugLineNum = 71;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 72;BA.debugLine="End Sub";
+return "";
+}
+public String _postfile(String _link,String _dir,String _filename) throws Exception{
+int _length = 0;
+anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
+ //BA.debugLineNum = 190;BA.debugLine="Public Sub PostFile(Link As String, Dir As String,";
+ //BA.debugLineNum = 191;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 196;BA.debugLine="Dim length As Int";
+_length = 0;
+ //BA.debugLineNum = 197;BA.debugLine="If Dir = File.DirAssets Then";
+if ((_dir).equals(__c.File.getDirAssets())) {
+ //BA.debugLineNum = 198;BA.debugLine="Log(\"Cannot send files from the assets folder.\")";
+__c.LogImpl("951314696","Cannot send files from the assets folder.",0);
+ //BA.debugLineNum = 199;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 201;BA.debugLine="length = File.Size(Dir, FileName)";
+_length = (int) (__c.File.Size(_dir,_filename));
+ //BA.debugLineNum = 202;BA.debugLine="Dim In As InputStream";
+_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
+ //BA.debugLineNum = 203;BA.debugLine="In = File.OpenInput(Dir, FileName)";
+_in = __c.File.OpenInput(_dir,_filename);
+ //BA.debugLineNum = 204;BA.debugLine="If length < 1000000 Then '1mb";
+if (_length<1000000) {
+ //BA.debugLineNum = 207;BA.debugLine="Dim out As OutputStream";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 208;BA.debugLine="out.InitializeToBytesArray(length)";
+_out.InitializeToBytesArray(_length);
+ //BA.debugLineNum = 209;BA.debugLine="File.Copy2(In, out)";
+__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject()));
+ //BA.debugLineNum = 210;BA.debugLine="PostBytes(Link, out.ToBytesArray)";
+_postbytes(_link,_out.ToBytesArray());
+ }else {
+ //BA.debugLineNum = 212;BA.debugLine="req.InitializePost(Link, In, length)";
+_req.InitializePost(_link,(java.io.InputStream)(_in.getObject()),_length);
+ //BA.debugLineNum = 213;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\",";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ };
+ //BA.debugLineNum = 216;BA.debugLine="End Sub";
+return "";
+}
+public String _postmultipart(String _link,anywheresoftware.b4a.objects.collections.Map _namevalues,anywheresoftware.b4a.objects.collections.List _files) throws Exception{
+String _boundary = "";
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _stream = null;
+byte[] _b = null;
+String _eol = "";
+boolean _empty = false;
+String _key = "";
+String _value = "";
+String _s = "";
+reparto_izca.keymon.lat.httpjob._multipartfiledata _fd = null;
+anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
+ //BA.debugLineNum = 133;BA.debugLine="Public Sub PostMultipart(Link As String, NameValue";
+ //BA.debugLineNum = 134;BA.debugLine="Dim boundary As String = \"-----------------------";
+_boundary = "---------------------------1461124740692";
+ //BA.debugLineNum = 135;BA.debugLine="Dim stream As OutputStream";
+_stream = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+ //BA.debugLineNum = 136;BA.debugLine="stream.InitializeToBytesArray(0)";
+_stream.InitializeToBytesArray((int) (0));
+ //BA.debugLineNum = 137;BA.debugLine="Dim b() As Byte";
+_b = new byte[(int) (0)];
+;
+ //BA.debugLineNum = 138;BA.debugLine="Dim eol As String = Chr(13) & Chr(10)";
+_eol = BA.ObjectToString(__c.Chr((int) (13)))+BA.ObjectToString(__c.Chr((int) (10)));
+ //BA.debugLineNum = 139;BA.debugLine="Dim empty As Boolean = True";
+_empty = __c.True;
+ //BA.debugLineNum = 140;BA.debugLine="If NameValues <> Null And NameValues.IsInitialize";
+if (_namevalues!= null && _namevalues.IsInitialized()) {
+ //BA.debugLineNum = 141;BA.debugLine="For Each key As String In NameValues.Keys";
+{
+final anywheresoftware.b4a.BA.IterableList group8 = _namevalues.Keys();
+final int groupLen8 = group8.getSize()
+;int index8 = 0;
+;
+for (; index8 < groupLen8;index8++){
+_key = BA.ObjectToString(group8.Get(index8));
+ //BA.debugLineNum = 142;BA.debugLine="Dim value As String = NameValues.Get(key)";
+_value = BA.ObjectToString(_namevalues.Get((Object)(_key)));
+ //BA.debugLineNum = 143;BA.debugLine="empty = MultipartStartSection (stream, empty)";
+_empty = _multipartstartsection(_stream,_empty);
+ //BA.debugLineNum = 144;BA.debugLine="Dim s As String = _ $\"--${boundary} Content-Dis";
+_s = ("--"+__c.SmartStringFormatter("",(Object)(_boundary))+"\n"+"Content-Disposition: form-data; name=\""+__c.SmartStringFormatter("",(Object)(_key))+"\"\n"+"\n"+""+__c.SmartStringFormatter("",(Object)(_value))+"");
+ //BA.debugLineNum = 149;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")";
+_b = _s.replace(__c.CRLF,_eol).getBytes("UTF8");
+ //BA.debugLineNum = 150;BA.debugLine="stream.WriteBytes(b, 0, b.Length)";
+_stream.WriteBytes(_b,(int) (0),_b.length);
+ }
+};
+ };
+ //BA.debugLineNum = 153;BA.debugLine="If Files <> Null And Files.IsInitialized Then";
+if (_files!= null && _files.IsInitialized()) {
+ //BA.debugLineNum = 154;BA.debugLine="For Each fd As MultipartFileData In Files";
+{
+final anywheresoftware.b4a.BA.IterableList group17 = _files;
+final int groupLen17 = group17.getSize()
+;int index17 = 0;
+;
+for (; index17 < groupLen17;index17++){
+_fd = (reparto_izca.keymon.lat.httpjob._multipartfiledata)(group17.Get(index17));
+ //BA.debugLineNum = 155;BA.debugLine="empty = MultipartStartSection (stream, empty)";
+_empty = _multipartstartsection(_stream,_empty);
+ //BA.debugLineNum = 156;BA.debugLine="Dim s As String = _ $\"--${boundary} Content-Dis";
+_s = ("--"+__c.SmartStringFormatter("",(Object)(_boundary))+"\n"+"Content-Disposition: form-data; name=\""+__c.SmartStringFormatter("",(Object)(_fd.KeyName /*String*/ ))+"\"; filename=\""+__c.SmartStringFormatter("",(Object)(_fd.FileName /*String*/ ))+"\"\n"+"Content-Type: "+__c.SmartStringFormatter("",(Object)(_fd.ContentType /*String*/ ))+"\n"+"\n"+"");
+ //BA.debugLineNum = 162;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")";
+_b = _s.replace(__c.CRLF,_eol).getBytes("UTF8");
+ //BA.debugLineNum = 163;BA.debugLine="stream.WriteBytes(b, 0, b.Length)";
+_stream.WriteBytes(_b,(int) (0),_b.length);
+ //BA.debugLineNum = 164;BA.debugLine="Dim in As InputStream = File.OpenInput(fd.Dir,";
+_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
+_in = __c.File.OpenInput(_fd.Dir /*String*/ ,_fd.FileName /*String*/ );
+ //BA.debugLineNum = 165;BA.debugLine="File.Copy2(in, stream)";
+__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_stream.getObject()));
+ }
+};
+ };
+ //BA.debugLineNum = 168;BA.debugLine="empty = MultipartStartSection (stream, empty)";
+_empty = _multipartstartsection(_stream,_empty);
+ //BA.debugLineNum = 169;BA.debugLine="s = _ $\"--${boundary}-- \"$";
+_s = ("--"+__c.SmartStringFormatter("",(Object)(_boundary))+"--\n"+"");
+ //BA.debugLineNum = 172;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")";
+_b = _s.replace(__c.CRLF,_eol).getBytes("UTF8");
+ //BA.debugLineNum = 173;BA.debugLine="stream.WriteBytes(b, 0, b.Length)";
+_stream.WriteBytes(_b,(int) (0),_b.length);
+ //BA.debugLineNum = 174;BA.debugLine="PostBytes(Link, stream.ToBytesArray)";
+_postbytes(_link,_stream.ToBytesArray());
+ //BA.debugLineNum = 175;BA.debugLine="req.SetContentType(\"multipart/form-data; boundary";
+_req.SetContentType("multipart/form-data; boundary="+_boundary);
+ //BA.debugLineNum = 176;BA.debugLine="req.SetContentEncoding(\"UTF8\")";
+_req.SetContentEncoding("UTF8");
+ //BA.debugLineNum = 177;BA.debugLine="End Sub";
+return "";
+}
+public String _poststring(String _link,String _text) throws Exception{
+ //BA.debugLineNum = 58;BA.debugLine="Public Sub PostString(Link As String, Text As Stri";
+ //BA.debugLineNum = 59;BA.debugLine="PostBytes(Link, Text.GetBytes(\"UTF8\"))";
+_postbytes(_link,_text.getBytes("UTF8"));
+ //BA.debugLineNum = 60;BA.debugLine="End Sub";
+return "";
+}
+public String _putbytes(String _link,byte[] _data) throws Exception{
+ //BA.debugLineNum = 80;BA.debugLine="Public Sub PutBytes(Link As String, Data() As Byte";
+ //BA.debugLineNum = 81;BA.debugLine="Try";
+try { //BA.debugLineNum = 82;BA.debugLine="Link = AddScheme(Link)";
+_link = _addscheme(_link);
+ //BA.debugLineNum = 83;BA.debugLine="req.InitializePut2(Link, Data)";
+_req.InitializePut2(_link,_data);
+ }
+ catch (Exception e5) {
+ ba.setLastException(e5); //BA.debugLineNum = 85;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
+__c.LogImpl("950921477",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
+ //BA.debugLineNum = 86;BA.debugLine="req.InitializePut2(InvalidURL, Data)";
+_req.InitializePut2(_invalidurl,_data);
+ };
+ //BA.debugLineNum = 88;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M";
+__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this);
+ //BA.debugLineNum = 89;BA.debugLine="End Sub";
+return "";
+}
+public String _putstring(String _link,String _text) throws Exception{
+ //BA.debugLineNum = 75;BA.debugLine="Public Sub PutString(Link As String, Text As Strin";
+ //BA.debugLineNum = 76;BA.debugLine="PutBytes(Link, Text.GetBytes(\"UTF8\"))";
+_putbytes(_link,_text.getBytes("UTF8"));
+ //BA.debugLineNum = 77;BA.debugLine="End Sub";
+return "";
+}
+public String _release() throws Exception{
+ //BA.debugLineNum = 284;BA.debugLine="Public Sub Release";
+ //BA.debugLineNum = 286;BA.debugLine="File.Delete(HttpUtils2Service.TempFolder, taskId)";
+__c.File.Delete(_httputils2service._tempfolder /*String*/ ,_taskid);
+ //BA.debugLineNum = 288;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/httputils2service.java b/B4A/Objects/src/reparto_izca/keymon/lat/httputils2service.java
new file mode 100644
index 0000000..55fb5dc
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/httputils2service.java
@@ -0,0 +1,238 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.objects.ReceiverHelper;
+import anywheresoftware.b4a.debug.*;
+
+public class httputils2service extends android.content.BroadcastReceiver{
+
+ static httputils2service mostCurrent;
+ public static BA processBA;
+ private ReceiverHelper _receiver;
+ private static boolean firstTime = true;
+ public static Class> getObject() {
+ return httputils2service.class;
+ }
+ @Override
+ public void onReceive(android.content.Context context, android.content.Intent intent) {
+ mostCurrent = this;
+
+ if (processBA == null) {
+
+ processBA = new BA(context, null, null, anywheresoftware.b4a.BA.SharedProcessBA.ModuleType.RECEIVER, "reparto_izca.keymon.lat.httputils2service");
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ }
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ processBA.loadHtSubs(this.getClass());
+ }
+ _receiver = new ReceiverHelper(this);
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.httputils2service", processBA, _receiver, anywheresoftware.b4a.keywords.Common.Density);
+ }
+ processBA.setActivityPaused(false);
+ BA.LogInfo("*** Receiver (httputils2service) Receive " + (firstTime ? "(first time)" : "") + " ***");
+ anywheresoftware.b4a.objects.IntentWrapper iw = new anywheresoftware.b4a.objects.IntentWrapper();
+ iw.setObject(intent);
+ processBA.raiseEvent(null, "receiver_receive", firstTime, iw);
+ firstTime = false;
+ }
+
+public anywheresoftware.b4a.keywords.Common __c = null;
+public static anywheresoftware.b4h.okhttp.OkHttpClientWrapper _hc = null;
+public static anywheresoftware.b4a.objects.collections.Map _taskidtojob = null;
+public static String _tempfolder = "";
+public static int _taskcounter = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static String _completejob(int _taskid,boolean _success,String _errormessage) throws Exception{
+reparto_izca.keymon.lat.httpjob _job = null;
+ //BA.debugLineNum = 152;BA.debugLine="Sub CompleteJob(TaskId As Int, success As Boolean,";
+ //BA.debugLineNum = 156;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)";
+_job = (reparto_izca.keymon.lat.httpjob)(_taskidtojob.Get((Object)(_taskid)));
+ //BA.debugLineNum = 157;BA.debugLine="If job = Null Then";
+if (_job== null) {
+ //BA.debugLineNum = 158;BA.debugLine="Log(\"HttpUtils2Service: job completed multiple t";
+anywheresoftware.b4a.keywords.Common.LogImpl("550462726","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0);
+ //BA.debugLineNum = 159;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 161;BA.debugLine="TaskIdToJob.Remove(TaskId)";
+_taskidtojob.Remove((Object)(_taskid));
+ //BA.debugLineNum = 162;BA.debugLine="job.success = success";
+_job._success /*boolean*/ = _success;
+ //BA.debugLineNum = 163;BA.debugLine="job.errorMessage = errorMessage";
+_job._errormessage /*String*/ = _errormessage;
+ //BA.debugLineNum = 165;BA.debugLine="job.Complete(TaskId)";
+_job._complete /*String*/ (_taskid);
+ //BA.debugLineNum = 169;BA.debugLine="End Sub";
+return "";
+}
+public static String _hc_responseerror(anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse _response,String _reason,int _statuscode,int _taskid) throws Exception{
+reparto_izca.keymon.lat.httpjob _job = null;
+ //BA.debugLineNum = 115;BA.debugLine="Sub hc_ResponseError (Response As OkHttpResponse,";
+ //BA.debugLineNum = 117;BA.debugLine="Log($\"ResponseError. Reason: ${Reason}, Response:";
+anywheresoftware.b4a.keywords.Common.LogImpl("550397186",("ResponseError. Reason: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_reason))+", Response: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_response.getErrorResponse()))+""),0);
+ //BA.debugLineNum = 119;BA.debugLine="Response.Release";
+_response.Release();
+ //BA.debugLineNum = 120;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)";
+_job = (reparto_izca.keymon.lat.httpjob)(_taskidtojob.Get((Object)(_taskid)));
+ //BA.debugLineNum = 121;BA.debugLine="If job = Null Then";
+if (_job== null) {
+ //BA.debugLineNum = 122;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseError): job c";
+anywheresoftware.b4a.keywords.Common.LogImpl("550397191","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0);
+ //BA.debugLineNum = 123;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 125;BA.debugLine="job.Response = Response";
+_job._response /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse*/ = _response;
+ //BA.debugLineNum = 126;BA.debugLine="If Response.ErrorResponse <> \"\" Then";
+if ((_response.getErrorResponse()).equals("") == false) {
+ //BA.debugLineNum = 127;BA.debugLine="CompleteJob(TaskId, False, Response.ErrorRespons";
+_completejob(_taskid,anywheresoftware.b4a.keywords.Common.False,_response.getErrorResponse());
+ }else {
+ //BA.debugLineNum = 129;BA.debugLine="CompleteJob(TaskId, False, Reason)";
+_completejob(_taskid,anywheresoftware.b4a.keywords.Common.False,_reason);
+ };
+ //BA.debugLineNum = 131;BA.debugLine="End Sub";
+return "";
+}
+public static String _hc_responsesuccess(anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse _response,int _taskid) throws Exception{
+reparto_izca.keymon.lat.httpjob _job = null;
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+ //BA.debugLineNum = 92;BA.debugLine="Sub hc_ResponseSuccess (Response As OkHttpResponse";
+ //BA.debugLineNum = 93;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)";
+_job = (reparto_izca.keymon.lat.httpjob)(_taskidtojob.Get((Object)(_taskid)));
+ //BA.debugLineNum = 94;BA.debugLine="If job = Null Then";
+if (_job== null) {
+ //BA.debugLineNum = 95;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseSuccess): job";
+anywheresoftware.b4a.keywords.Common.LogImpl("550266115","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0);
+ //BA.debugLineNum = 96;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 98;BA.debugLine="job.Response = Response";
+_job._response /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse*/ = _response;
+ //BA.debugLineNum = 99;BA.debugLine="Dim out As OutputStream = File.OpenOutput(TempFol";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = anywheresoftware.b4a.keywords.Common.File.OpenOutput(_tempfolder,BA.NumberToString(_taskid),anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 101;BA.debugLine="job.Out = out";
+_job._out /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ = _out;
+ //BA.debugLineNum = 103;BA.debugLine="Response.GetAsynchronously(\"response\", out , _";
+_response.GetAsynchronously(processBA,"response",(java.io.OutputStream)(_out.getObject()),anywheresoftware.b4a.keywords.Common.True,_taskid);
+ //BA.debugLineNum = 105;BA.debugLine="End Sub";
+return "";
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 5;BA.debugLine="Public hc As OkHttpClient";
+_hc = new anywheresoftware.b4h.okhttp.OkHttpClientWrapper();
+ //BA.debugLineNum = 9;BA.debugLine="Public TaskIdToJob As Map";
+_taskidtojob = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 19;BA.debugLine="Public TempFolder As String";
+_tempfolder = "";
+ //BA.debugLineNum = 23;BA.debugLine="Private taskCounter As Int";
+_taskcounter = 0;
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return "";
+}
+public static String _receiver_receive(boolean _firsttime,anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
+ //BA.debugLineNum = 58;BA.debugLine="Private Sub Receiver_Receive (FirstTime As Boolean";
+ //BA.debugLineNum = 59;BA.debugLine="If FirstTime Then";
+if (_firsttime) {
+ //BA.debugLineNum = 60;BA.debugLine="Service_Create";
+_service_create();
+ };
+ //BA.debugLineNum = 62;BA.debugLine="End Sub";
+return "";
+}
+public static String _response_streamfinish(boolean _success,int _taskid) throws Exception{
+ //BA.debugLineNum = 107;BA.debugLine="Private Sub Response_StreamFinish (Success As Bool";
+ //BA.debugLineNum = 108;BA.debugLine="If Success Then";
+if (_success) {
+ //BA.debugLineNum = 109;BA.debugLine="CompleteJob(TaskId, Success, \"\")";
+_completejob(_taskid,_success,"");
+ }else {
+ //BA.debugLineNum = 111;BA.debugLine="CompleteJob(TaskId, Success, LastException.Messa";
+_completejob(_taskid,_success,anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage());
+ };
+ //BA.debugLineNum = 113;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_create() throws Exception{
+ //BA.debugLineNum = 27;BA.debugLine="Sub Service_Create";
+ //BA.debugLineNum = 29;BA.debugLine="TempFolder = File.DirInternalCache";
+_tempfolder = anywheresoftware.b4a.keywords.Common.File.getDirInternalCache();
+ //BA.debugLineNum = 30;BA.debugLine="Try";
+try { //BA.debugLineNum = 31;BA.debugLine="File.WriteString(TempFolder, \"~test.test\", \"test";
+anywheresoftware.b4a.keywords.Common.File.WriteString(_tempfolder,"~test.test","test");
+ //BA.debugLineNum = 32;BA.debugLine="File.Delete(TempFolder, \"~test.test\")";
+anywheresoftware.b4a.keywords.Common.File.Delete(_tempfolder,"~test.test");
+ }
+ catch (Exception e6) {
+ processBA.setLastException(e6); //BA.debugLineNum = 34;BA.debugLine="Log(LastException)";
+anywheresoftware.b4a.keywords.Common.LogImpl("549938439",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
+ //BA.debugLineNum = 35;BA.debugLine="Log(\"Switching to File.DirInternal\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("549938440","Switching to File.DirInternal",0);
+ //BA.debugLineNum = 36;BA.debugLine="TempFolder = File.DirInternal";
+_tempfolder = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
+ };
+ //BA.debugLineNum = 41;BA.debugLine="If hc.IsInitialized = False Then";
+if (_hc.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 46;BA.debugLine="hc.Initialize(\"hc\")";
+_hc.Initialize("hc");
+ };
+ //BA.debugLineNum = 54;BA.debugLine="TaskIdToJob.Initialize";
+_taskidtojob.Initialize();
+ //BA.debugLineNum = 56;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_destroy() throws Exception{
+ //BA.debugLineNum = 68;BA.debugLine="Sub Service_Destroy";
+ //BA.debugLineNum = 70;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
+ //BA.debugLineNum = 64;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
+ //BA.debugLineNum = 66;BA.debugLine="End Sub";
+return "";
+}
+public static String _submitjob(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+int _taskid = 0;
+ //BA.debugLineNum = 74;BA.debugLine="Public Sub SubmitJob(job As HttpJob)";
+ //BA.debugLineNum = 75;BA.debugLine="If TaskIdToJob.IsInitialized = False Then Service";
+if (_taskidtojob.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) {
+_service_create();};
+ //BA.debugLineNum = 79;BA.debugLine="taskCounter = taskCounter + 1";
+_taskcounter = (int) (_taskcounter+1);
+ //BA.debugLineNum = 80;BA.debugLine="Dim TaskId As Int = taskCounter";
+_taskid = _taskcounter;
+ //BA.debugLineNum = 82;BA.debugLine="TaskIdToJob.Put(TaskId, job)";
+_taskidtojob.Put((Object)(_taskid),(Object)(_job));
+ //BA.debugLineNum = 83;BA.debugLine="If job.Username <> \"\" And job.Password <> \"\" Then";
+if ((_job._username /*String*/ ).equals("") == false && (_job._password /*String*/ ).equals("") == false) {
+ //BA.debugLineNum = 84;BA.debugLine="hc.ExecuteCredentials(job.GetRequest, TaskId, jo";
+_hc.ExecuteCredentials(processBA,_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ (),_taskid,_job._username /*String*/ ,_job._password /*String*/ );
+ }else {
+ //BA.debugLineNum = 86;BA.debugLine="hc.Execute(job.GetRequest, TaskId)";
+_hc.Execute(processBA,_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ (),_taskid);
+ };
+ //BA.debugLineNum = 88;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/madewithlove.java b/B4A/Objects/src/reparto_izca/keymon/lat/madewithlove.java
new file mode 100644
index 0000000..17e8114
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/madewithlove.java
@@ -0,0 +1,108 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class madewithlove extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.madewithlove");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.madewithlove.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public Object _tag = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 47;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 48;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Wid";
+_mbase.GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 49;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 2;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 3;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 4;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 5;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 6;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 7;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+anywheresoftware.b4a.objects.CSBuilder _cs = null;
+ //BA.debugLineNum = 15;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 16;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 17;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 17;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 18;BA.debugLine="Dim xlbl As B4XView = Lbl";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 33;BA.debugLine="Dim cs As CSBuilder";
+_cs = new anywheresoftware.b4a.objects.CSBuilder();
+ //BA.debugLineNum = 34;BA.debugLine="cs.Initialize.Append(\"Made with \").Typeface(Typef";
+_cs.Initialize().Append(BA.ObjectToCharSequence("Made with ")).Typeface(__c.Typeface.getFONTAWESOME()).Color(_xui.Color_Red).Append(BA.ObjectToCharSequence(__c.Chr(((int)0xf004)))).Pop().Pop().Append(BA.ObjectToCharSequence(" in B4X")).PopAll();
+ //BA.debugLineNum = 35;BA.debugLine="xlbl.Text = cs";
+_xlbl.setText(BA.ObjectToCharSequence(_cs.getObject()));
+ //BA.debugLineNum = 36;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_xlbl.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 37;BA.debugLine="mBase.AddView(xlbl, 0, 0, mBase.Width, mBase.Heig";
+_mbase.AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 45;BA.debugLine="End Sub";
+return "";
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 9;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 10;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 11;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 12;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/main.java b/B4A/Objects/src/reparto_izca/keymon/lat/main.java
new file mode 100644
index 0000000..a5e180f
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/main.java
@@ -0,0 +1,458 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.B4AMenuItem;
+import android.app.Activity;
+import android.os.Bundle;
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.B4AActivity;
+import anywheresoftware.b4a.ObjectWrapper;
+import anywheresoftware.b4a.objects.ActivityWrapper;
+import java.lang.reflect.InvocationTargetException;
+import anywheresoftware.b4a.B4AUncaughtException;
+import anywheresoftware.b4a.debug.*;
+import java.lang.ref.WeakReference;
+
+public class main extends Activity implements B4AActivity{
+ public static main mostCurrent;
+ static boolean afterFirstLayout;
+ static boolean isFirst = true;
+ private static boolean processGlobalsRun = false;
+ BALayout layout;
+ public static BA processBA;
+ BA activityBA;
+ ActivityWrapper _activity;
+ java.util.ArrayList menuItems;
+ public static final boolean fullScreen = false;
+ public static final boolean includeTitle = true;
+ public static WeakReference previousOne;
+ public static boolean dontPause;
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.main");
+ processBA.loadHtSubs(this.getClass());
+ float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
+ BALayout.setDeviceScale(deviceScale);
+
+ }
+ else if (previousOne != null) {
+ Activity p = previousOne.get();
+ if (p != null && p != this) {
+ BA.LogInfo("Killing previous instance (main).");
+ p.finish();
+ }
+ }
+ processBA.setActivityPaused(true);
+ processBA.runHook("oncreate", this, null);
+ if (!includeTitle) {
+ this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
+ }
+ if (fullScreen) {
+ getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,
+ android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ }
+
+ processBA.sharedProcessBA.activityBA = null;
+ layout = new BALayout(this);
+ setContentView(layout);
+ afterFirstLayout = false;
+ WaitForLayout wl = new WaitForLayout();
+ if (anywheresoftware.b4a.objects.ServiceHelper.StarterHelper.startFromActivity(this, processBA, wl, false))
+ BA.handler.postDelayed(wl, 5);
+
+ }
+ static class WaitForLayout implements Runnable {
+ public void run() {
+ if (afterFirstLayout)
+ return;
+ if (mostCurrent == null)
+ return;
+
+ if (mostCurrent.layout.getWidth() == 0) {
+ BA.handler.postDelayed(this, 5);
+ return;
+ }
+ mostCurrent.layout.getLayoutParams().height = mostCurrent.layout.getHeight();
+ mostCurrent.layout.getLayoutParams().width = mostCurrent.layout.getWidth();
+ afterFirstLayout = true;
+ mostCurrent.afterFirstLayout();
+ }
+ }
+ private void afterFirstLayout() {
+ if (this != mostCurrent)
+ return;
+ activityBA = new BA(this, layout, processBA, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.main");
+
+ processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference(activityBA);
+ anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
+ _activity = new ActivityWrapper(activityBA, "activity");
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ if (isFirst)
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.main", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density, mostCurrent);
+ _activity.reinitializeForShell(activityBA, "activity");
+ }
+ initializeProcessGlobals();
+ initializeGlobals();
+
+ BA.LogInfo("** Activity (main) Create " + (isFirst ? "(first time)" : "") + " **");
+ processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
+ isFirst = false;
+ if (this != mostCurrent)
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (main) Resume **");
+ processBA.raiseEvent(null, "activity_resume");
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ }
+ public void addMenuItem(B4AMenuItem item) {
+ if (menuItems == null)
+ menuItems = new java.util.ArrayList();
+ menuItems.add(item);
+ }
+ @Override
+ public boolean onCreateOptionsMenu(android.view.Menu menu) {
+ super.onCreateOptionsMenu(menu);
+ try {
+ if (processBA.subExists("activity_actionbarhomeclick")) {
+ Class.forName("android.app.ActionBar").getMethod("setHomeButtonEnabled", boolean.class).invoke(
+ getClass().getMethod("getActionBar").invoke(this), true);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ if (processBA.runHook("oncreateoptionsmenu", this, new Object[] {menu}))
+ return true;
+ if (menuItems == null)
+ return false;
+ for (B4AMenuItem bmi : menuItems) {
+ android.view.MenuItem mi = menu.add(bmi.title);
+ if (bmi.drawable != null)
+ mi.setIcon(bmi.drawable);
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ if (bmi.addToBar) {
+ android.view.MenuItem.class.getMethod("setShowAsAction", int.class).invoke(mi, 1);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ mi.setOnMenuItemClickListener(new B4AMenuItemsClickListener(bmi.eventName.toLowerCase(BA.cul)));
+ }
+
+ return true;
+ }
+ @Override
+ public boolean onOptionsItemSelected(android.view.MenuItem item) {
+ if (item.getItemId() == 16908332) {
+ processBA.raiseEvent(null, "activity_actionbarhomeclick");
+ return true;
+ }
+ else
+ return super.onOptionsItemSelected(item);
+}
+@Override
+ public boolean onPrepareOptionsMenu(android.view.Menu menu) {
+ super.onPrepareOptionsMenu(menu);
+ processBA.runHook("onprepareoptionsmenu", this, new Object[] {menu});
+ return true;
+
+ }
+ protected void onStart() {
+ super.onStart();
+ processBA.runHook("onstart", this, null);
+}
+ protected void onStop() {
+ super.onStop();
+ processBA.runHook("onstop", this, null);
+}
+ public void onWindowFocusChanged(boolean hasFocus) {
+ super.onWindowFocusChanged(hasFocus);
+ if (processBA.subExists("activity_windowfocuschanged"))
+ processBA.raiseEvent2(null, true, "activity_windowfocuschanged", false, hasFocus);
+ }
+ private class B4AMenuItemsClickListener implements android.view.MenuItem.OnMenuItemClickListener {
+ private final String eventName;
+ public B4AMenuItemsClickListener(String eventName) {
+ this.eventName = eventName;
+ }
+ public boolean onMenuItemClick(android.view.MenuItem item) {
+ processBA.raiseEventFromUI(item.getTitle(), eventName + "_click");
+ return true;
+ }
+ }
+ public static Class> getObject() {
+ return main.class;
+ }
+ private Boolean onKeySubExist = null;
+ private Boolean onKeyUpSubExist = null;
+ @Override
+ public boolean onKeyDown(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeydown", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeySubExist == null)
+ onKeySubExist = processBA.subExists("activity_keypress");
+ if (onKeySubExist) {
+ if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK &&
+ android.os.Build.VERSION.SDK_INT >= 18) {
+ HandleKeyDelayed hk = new HandleKeyDelayed();
+ hk.kc = keyCode;
+ BA.handler.post(hk);
+ return true;
+ }
+ else {
+ boolean res = new HandleKeyDelayed().runDirectly(keyCode);
+ if (res)
+ return true;
+ }
+ }
+ return super.onKeyDown(keyCode, event);
+ }
+ private class HandleKeyDelayed implements Runnable {
+ int kc;
+ public void run() {
+ runDirectly(kc);
+ }
+ public boolean runDirectly(int keyCode) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keypress", false, keyCode);
+ if (res == null || res == true) {
+ return true;
+ }
+ else if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK) {
+ finish();
+ return true;
+ }
+ return false;
+ }
+
+ }
+ @Override
+ public boolean onKeyUp(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeyup", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeyUpSubExist == null)
+ onKeyUpSubExist = processBA.subExists("activity_keyup");
+ if (onKeyUpSubExist) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keyup", false, keyCode);
+ if (res == null || res == true)
+ return true;
+ }
+ return super.onKeyUp(keyCode, event);
+ }
+ @Override
+ public void onNewIntent(android.content.Intent intent) {
+ super.onNewIntent(intent);
+ this.setIntent(intent);
+ processBA.runHook("onnewintent", this, new Object[] {intent});
+ }
+ @Override
+ public void onPause() {
+ super.onPause();
+ if (_activity == null)
+ return;
+ if (this != mostCurrent)
+ return;
+ anywheresoftware.b4a.Msgbox.dismiss(true);
+ if (!dontPause)
+ BA.LogInfo("** Activity (main) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
+ else
+ BA.LogInfo("** Activity (main) Pause event (activity is not paused). **");
+ if (mostCurrent != null)
+ processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());
+ if (!dontPause) {
+ processBA.setActivityPaused(true);
+ mostCurrent = null;
+ }
+
+ if (!activityBA.activity.isFinishing())
+ previousOne = new WeakReference(this);
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ processBA.runHook("onpause", this, null);
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ previousOne = null;
+ processBA.runHook("ondestroy", this, null);
+ }
+ @Override
+ public void onResume() {
+ super.onResume();
+ mostCurrent = this;
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (activityBA != null) { //will be null during activity create (which waits for AfterLayout).
+ ResumeMessage rm = new ResumeMessage(mostCurrent);
+ BA.handler.post(rm);
+ }
+ processBA.runHook("onresume", this, null);
+ }
+ private static class ResumeMessage implements Runnable {
+ private final WeakReference activity;
+ public ResumeMessage(Activity activity) {
+ this.activity = new WeakReference(activity);
+ }
+ public void run() {
+ main mc = mostCurrent;
+ if (mc == null || mc != activity.get())
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (main) Resume **");
+ if (mc != mostCurrent)
+ return;
+ processBA.raiseEvent(mc._activity, "activity_resume", (Object[])null);
+ }
+ }
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode,
+ android.content.Intent data) {
+ processBA.onActivityResult(requestCode, resultCode, data);
+ processBA.runHook("onactivityresult", this, new Object[] {requestCode, resultCode});
+ }
+ private static void initializeGlobals() {
+ processBA.raiseEvent2(null, true, "globals", false, (Object[])null);
+ }
+ public void onRequestPermissionsResult(int requestCode,
+ String permissions[], int[] grantResults) {
+ for (int i = 0;i < permissions.length;i++) {
+ Object[] o = new Object[] {permissions[i], grantResults[i] == 0};
+ processBA.raiseEventFromDifferentThread(null,null, 0, "activity_permissionresult", true, o);
+ }
+
+ }
+
+public anywheresoftware.b4a.keywords.Common __c = null;
+public static boolean _actionbarhomeclicked = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+
+public static boolean isAnyActivityVisible() {
+ boolean vis = false;
+vis = vis | (main.mostCurrent != null);
+vis = vis | (foto.mostCurrent != null);
+vis = vis | (mapa_cliente.mostCurrent != null);
+vis = vis | (mapa_rutas.mostCurrent != null);
+return vis;}
+public static String _activity_actionbarhomeclick() throws Exception{
+ //BA.debugLineNum = 34;BA.debugLine="Sub Activity_ActionBarHomeClick";
+ //BA.debugLineNum = 35;BA.debugLine="ActionBarHomeClicked = True";
+_actionbarhomeclicked = anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 36;BA.debugLine="B4XPages.Delegate.Activity_ActionBarHomeClick";
+mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_actionbarhomeclick /*String*/ ();
+ //BA.debugLineNum = 37;BA.debugLine="ActionBarHomeClicked = False";
+_actionbarhomeclicked = anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 38;BA.debugLine="End Sub";
+return "";
+}
+public static String _activity_create(boolean _firsttime) throws Exception{
+reparto_izca.keymon.lat.b4xpagesmanager _pm = null;
+ //BA.debugLineNum = 26;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)";
+ //BA.debugLineNum = 27;BA.debugLine="Dim pm As B4XPagesManager";
+_pm = new reparto_izca.keymon.lat.b4xpagesmanager();
+ //BA.debugLineNum = 28;BA.debugLine="pm.Initialize(Activity)";
+_pm._initialize /*String*/ (mostCurrent.activityBA,mostCurrent._activity);
+ //BA.debugLineNum = 29;BA.debugLine="End Sub";
+return "";
+}
+public static boolean _activity_keypress(int _keycode) throws Exception{
+ //BA.debugLineNum = 40;BA.debugLine="Sub Activity_KeyPress (KeyCode As Int) As Boolean";
+ //BA.debugLineNum = 41;BA.debugLine="Return B4XPages.Delegate.Activity_KeyPress(KeyCod";
+if (true) return mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_keypress /*boolean*/ (_keycode);
+ //BA.debugLineNum = 42;BA.debugLine="End Sub";
+return false;
+}
+public static String _activity_pause(boolean _userclosed) throws Exception{
+ //BA.debugLineNum = 48;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
+ //BA.debugLineNum = 49;BA.debugLine="B4XPages.Delegate.Activity_Pause";
+mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_pause /*String*/ ();
+ //BA.debugLineNum = 50;BA.debugLine="End Sub";
+return "";
+}
+public static String _activity_permissionresult(String _permission,boolean _result) throws Exception{
+ //BA.debugLineNum = 52;BA.debugLine="Sub Activity_PermissionResult (Permission As Strin";
+ //BA.debugLineNum = 53;BA.debugLine="B4XPages.Delegate.Activity_PermissionResult(Permi";
+mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_permissionresult /*String*/ (_permission,_result);
+ //BA.debugLineNum = 54;BA.debugLine="End Sub";
+return "";
+}
+public static String _activity_resume() throws Exception{
+ //BA.debugLineNum = 44;BA.debugLine="Sub Activity_Resume";
+ //BA.debugLineNum = 45;BA.debugLine="B4XPages.Delegate.Activity_Resume";
+mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_resume /*String*/ ();
+ //BA.debugLineNum = 46;BA.debugLine="End Sub";
+return "";
+}
+public static String _create_menu(Object _menu) throws Exception{
+ //BA.debugLineNum = 56;BA.debugLine="Sub Create_Menu (Menu As Object)";
+ //BA.debugLineNum = 57;BA.debugLine="B4XPages.Delegate.Create_Menu(Menu)";
+mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._create_menu /*String*/ (_menu);
+ //BA.debugLineNum = 58;BA.debugLine="End Sub";
+return "";
+}
+public static String _globals() throws Exception{
+ //BA.debugLineNum = 22;BA.debugLine="Sub Globals";
+ //BA.debugLineNum = 24;BA.debugLine="End Sub";
+return "";
+}
+
+public static void initializeProcessGlobals() {
+
+ if (main.processGlobalsRun == false) {
+ main.processGlobalsRun = true;
+ try {
+ b4a.example.dateutils._process_globals();
+main._process_globals();
+appupdater._process_globals();
+foto._process_globals();
+mapa_cliente._process_globals();
+mapa_rutas._process_globals();
+starter._process_globals();
+subs._process_globals();
+tracker._process_globals();
+newinst2._process_globals();
+b4xpages._process_globals();
+b4xcollections._process_globals();
+httputils2service._process_globals();
+xuiviewsutils._process_globals();
+
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+}public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 18;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 19;BA.debugLine="Public ActionBarHomeClicked As Boolean";
+_actionbarhomeclicked = false;
+ //BA.debugLineNum = 20;BA.debugLine="End Sub";
+return "";
+}
+public boolean _onCreateOptionsMenu(android.view.Menu menu) {
+ processBA.raiseEvent(null, "create_menu", menu);
+ return true;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/manageexternalstorage.java b/B4A/Objects/src/reparto_izca/keymon/lat/manageexternalstorage.java
new file mode 100644
index 0000000..d8bc264
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/manageexternalstorage.java
@@ -0,0 +1,147 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class manageexternalstorage extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.manageexternalstorage");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.manageexternalstorage.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public Object _ion = null;
+public Object _mcallback = null;
+public String _meventname = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 3;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 4;BA.debugLine="Private ion As Object";
+_ion = new Object();
+ //BA.debugLineNum = 5;BA.debugLine="Private mCallback As Object";
+_mcallback = new Object();
+ //BA.debugLineNum = 6;BA.debugLine="Private mEventName As String";
+_meventname = "";
+ //BA.debugLineNum = 8;BA.debugLine="End Sub";
+return "";
+}
+public Object _getba() throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 71;BA.debugLine="Private Sub GetBA As Object";
+ //BA.debugLineNum = 72;BA.debugLine="Dim jo As JavaObject = Me";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(this));
+ //BA.debugLineNum = 73;BA.debugLine="Return jo.RunMethod(\"getBA\", Null)";
+if (true) return _jo.RunMethod("getBA",(Object[])(__c.Null));
+ //BA.debugLineNum = 74;BA.debugLine="End Sub";
+return null;
+}
+public String _getpermission() throws Exception{
+anywheresoftware.b4a.objects.IntentWrapper _in = null;
+ //BA.debugLineNum = 41;BA.debugLine="Public Sub GetPermission";
+ //BA.debugLineNum = 42;BA.debugLine="If HasPermission Then";
+if (_haspermission()) {
+ //BA.debugLineNum = 43;BA.debugLine="RaiseEvent";
+_raiseevent();
+ //BA.debugLineNum = 44;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 46;BA.debugLine="Dim in As Intent";
+_in = new anywheresoftware.b4a.objects.IntentWrapper();
+ //BA.debugLineNum = 48;BA.debugLine="in.Initialize(\"android.settings.MANAGE_APP_ALL_FI";
+_in.Initialize("android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION",("package:"+__c.SmartStringFormatter("",(Object)(__c.Application.getPackageName()))+""));
+ //BA.debugLineNum = 49;BA.debugLine="StartActivityForResult(in)";
+_startactivityforresult(_in);
+ //BA.debugLineNum = 50;BA.debugLine="End Sub";
+return "";
+}
+public boolean _haspermission() throws Exception{
+boolean _has = false;
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 30;BA.debugLine="Public Sub HasPermission As Boolean";
+ //BA.debugLineNum = 31;BA.debugLine="Dim has As Boolean";
+_has = false;
+ //BA.debugLineNum = 32;BA.debugLine="Dim jo As JavaObject";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 33;BA.debugLine="jo.InitializeStatic(\"android.os.Environment\")";
+_jo.InitializeStatic("android.os.Environment");
+ //BA.debugLineNum = 34;BA.debugLine="has = jo.RunMethod(\"isExternalStorageManager\", Nu";
+_has = BA.ObjectToBoolean(_jo.RunMethod("isExternalStorageManager",(Object[])(__c.Null)));
+ //BA.debugLineNum = 35;BA.debugLine="Return has";
+if (true) return _has;
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return false;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 22;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 23;BA.debugLine="mCallback = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 24;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return "";
+}
+public Object _ion_event(String _methodname,Object[] _args) throws Exception{
+ //BA.debugLineNum = 59;BA.debugLine="Private Sub ion_Event (MethodName As String, Args(";
+ //BA.debugLineNum = 60;BA.debugLine="RaiseEvent";
+_raiseevent();
+ //BA.debugLineNum = 61;BA.debugLine="Return Null";
+if (true) return __c.Null;
+ //BA.debugLineNum = 62;BA.debugLine="End Sub";
+return null;
+}
+public String _raiseevent() throws Exception{
+ //BA.debugLineNum = 53;BA.debugLine="Private Sub RaiseEvent";
+ //BA.debugLineNum = 54;BA.debugLine="Log(\"Calling : \" & mEventName & \"_StorageAvailab";
+__c.LogImpl("530212097","Calling : "+_meventname+"_StorageAvailable",0);
+ //BA.debugLineNum = 55;BA.debugLine="CallSubDelayed(mCallback, mEventName & \"_StorageA";
+__c.CallSubDelayed(ba,_mcallback,_meventname+"_StorageAvailable");
+ //BA.debugLineNum = 56;BA.debugLine="End Sub";
+return "";
+}
+public String _startactivityforresult(anywheresoftware.b4a.objects.IntentWrapper _i) throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 65;BA.debugLine="Private Sub StartActivityForResult(i As Intent)";
+ //BA.debugLineNum = 66;BA.debugLine="Dim jo As JavaObject = GetBA";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_getba()));
+ //BA.debugLineNum = 67;BA.debugLine="ion = jo.CreateEvent(\"anywheresoftware.b4a.IOnAct";
+_ion = _jo.CreateEvent(ba,"anywheresoftware.b4a.IOnActivityResult","ion",__c.Null);
+ //BA.debugLineNum = 68;BA.debugLine="jo.RunMethod(\"startActivityForResult\", Array As O";
+_jo.RunMethod("startActivityForResult",new Object[]{_ion,(Object)(_i.getObject())});
+ //BA.debugLineNum = 69;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/mapa_cliente.java b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_cliente.java
new file mode 100644
index 0000000..73ed8fd
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_cliente.java
@@ -0,0 +1,574 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.B4AMenuItem;
+import android.app.Activity;
+import android.os.Bundle;
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.B4AActivity;
+import anywheresoftware.b4a.ObjectWrapper;
+import anywheresoftware.b4a.objects.ActivityWrapper;
+import java.lang.reflect.InvocationTargetException;
+import anywheresoftware.b4a.B4AUncaughtException;
+import anywheresoftware.b4a.debug.*;
+import java.lang.ref.WeakReference;
+
+public class mapa_cliente extends Activity implements B4AActivity{
+ public static mapa_cliente mostCurrent;
+ static boolean afterFirstLayout;
+ static boolean isFirst = true;
+ private static boolean processGlobalsRun = false;
+ BALayout layout;
+ public static BA processBA;
+ BA activityBA;
+ ActivityWrapper _activity;
+ java.util.ArrayList menuItems;
+ public static final boolean fullScreen = false;
+ public static final boolean includeTitle = false;
+ public static WeakReference previousOne;
+ public static boolean dontPause;
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_cliente");
+ processBA.loadHtSubs(this.getClass());
+ float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
+ BALayout.setDeviceScale(deviceScale);
+
+ }
+ else if (previousOne != null) {
+ Activity p = previousOne.get();
+ if (p != null && p != this) {
+ BA.LogInfo("Killing previous instance (mapa_cliente).");
+ p.finish();
+ }
+ }
+ processBA.setActivityPaused(true);
+ processBA.runHook("oncreate", this, null);
+ if (!includeTitle) {
+ this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
+ }
+ if (fullScreen) {
+ getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,
+ android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ }
+
+ processBA.sharedProcessBA.activityBA = null;
+ layout = new BALayout(this);
+ setContentView(layout);
+ afterFirstLayout = false;
+ WaitForLayout wl = new WaitForLayout();
+ if (anywheresoftware.b4a.objects.ServiceHelper.StarterHelper.startFromActivity(this, processBA, wl, false))
+ BA.handler.postDelayed(wl, 5);
+
+ }
+ static class WaitForLayout implements Runnable {
+ public void run() {
+ if (afterFirstLayout)
+ return;
+ if (mostCurrent == null)
+ return;
+
+ if (mostCurrent.layout.getWidth() == 0) {
+ BA.handler.postDelayed(this, 5);
+ return;
+ }
+ mostCurrent.layout.getLayoutParams().height = mostCurrent.layout.getHeight();
+ mostCurrent.layout.getLayoutParams().width = mostCurrent.layout.getWidth();
+ afterFirstLayout = true;
+ mostCurrent.afterFirstLayout();
+ }
+ }
+ private void afterFirstLayout() {
+ if (this != mostCurrent)
+ return;
+ activityBA = new BA(this, layout, processBA, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_cliente");
+
+ processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference(activityBA);
+ anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
+ _activity = new ActivityWrapper(activityBA, "activity");
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ if (isFirst)
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.mapa_cliente", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density, mostCurrent);
+ _activity.reinitializeForShell(activityBA, "activity");
+ }
+ initializeProcessGlobals();
+ initializeGlobals();
+
+ BA.LogInfo("** Activity (mapa_cliente) Create " + (isFirst ? "(first time)" : "") + " **");
+ processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
+ isFirst = false;
+ if (this != mostCurrent)
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (mapa_cliente) Resume **");
+ processBA.raiseEvent(null, "activity_resume");
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ }
+ public void addMenuItem(B4AMenuItem item) {
+ if (menuItems == null)
+ menuItems = new java.util.ArrayList();
+ menuItems.add(item);
+ }
+ @Override
+ public boolean onCreateOptionsMenu(android.view.Menu menu) {
+ super.onCreateOptionsMenu(menu);
+ try {
+ if (processBA.subExists("activity_actionbarhomeclick")) {
+ Class.forName("android.app.ActionBar").getMethod("setHomeButtonEnabled", boolean.class).invoke(
+ getClass().getMethod("getActionBar").invoke(this), true);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ if (processBA.runHook("oncreateoptionsmenu", this, new Object[] {menu}))
+ return true;
+ if (menuItems == null)
+ return false;
+ for (B4AMenuItem bmi : menuItems) {
+ android.view.MenuItem mi = menu.add(bmi.title);
+ if (bmi.drawable != null)
+ mi.setIcon(bmi.drawable);
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ if (bmi.addToBar) {
+ android.view.MenuItem.class.getMethod("setShowAsAction", int.class).invoke(mi, 1);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ mi.setOnMenuItemClickListener(new B4AMenuItemsClickListener(bmi.eventName.toLowerCase(BA.cul)));
+ }
+
+ return true;
+ }
+ @Override
+ public boolean onOptionsItemSelected(android.view.MenuItem item) {
+ if (item.getItemId() == 16908332) {
+ processBA.raiseEvent(null, "activity_actionbarhomeclick");
+ return true;
+ }
+ else
+ return super.onOptionsItemSelected(item);
+}
+@Override
+ public boolean onPrepareOptionsMenu(android.view.Menu menu) {
+ super.onPrepareOptionsMenu(menu);
+ processBA.runHook("onprepareoptionsmenu", this, new Object[] {menu});
+ return true;
+
+ }
+ protected void onStart() {
+ super.onStart();
+ processBA.runHook("onstart", this, null);
+}
+ protected void onStop() {
+ super.onStop();
+ processBA.runHook("onstop", this, null);
+}
+ public void onWindowFocusChanged(boolean hasFocus) {
+ super.onWindowFocusChanged(hasFocus);
+ if (processBA.subExists("activity_windowfocuschanged"))
+ processBA.raiseEvent2(null, true, "activity_windowfocuschanged", false, hasFocus);
+ }
+ private class B4AMenuItemsClickListener implements android.view.MenuItem.OnMenuItemClickListener {
+ private final String eventName;
+ public B4AMenuItemsClickListener(String eventName) {
+ this.eventName = eventName;
+ }
+ public boolean onMenuItemClick(android.view.MenuItem item) {
+ processBA.raiseEventFromUI(item.getTitle(), eventName + "_click");
+ return true;
+ }
+ }
+ public static Class> getObject() {
+ return mapa_cliente.class;
+ }
+ private Boolean onKeySubExist = null;
+ private Boolean onKeyUpSubExist = null;
+ @Override
+ public boolean onKeyDown(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeydown", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeySubExist == null)
+ onKeySubExist = processBA.subExists("activity_keypress");
+ if (onKeySubExist) {
+ if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK &&
+ android.os.Build.VERSION.SDK_INT >= 18) {
+ HandleKeyDelayed hk = new HandleKeyDelayed();
+ hk.kc = keyCode;
+ BA.handler.post(hk);
+ return true;
+ }
+ else {
+ boolean res = new HandleKeyDelayed().runDirectly(keyCode);
+ if (res)
+ return true;
+ }
+ }
+ return super.onKeyDown(keyCode, event);
+ }
+ private class HandleKeyDelayed implements Runnable {
+ int kc;
+ public void run() {
+ runDirectly(kc);
+ }
+ public boolean runDirectly(int keyCode) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keypress", false, keyCode);
+ if (res == null || res == true) {
+ return true;
+ }
+ else if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK) {
+ finish();
+ return true;
+ }
+ return false;
+ }
+
+ }
+ @Override
+ public boolean onKeyUp(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeyup", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeyUpSubExist == null)
+ onKeyUpSubExist = processBA.subExists("activity_keyup");
+ if (onKeyUpSubExist) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keyup", false, keyCode);
+ if (res == null || res == true)
+ return true;
+ }
+ return super.onKeyUp(keyCode, event);
+ }
+ @Override
+ public void onNewIntent(android.content.Intent intent) {
+ super.onNewIntent(intent);
+ this.setIntent(intent);
+ processBA.runHook("onnewintent", this, new Object[] {intent});
+ }
+ @Override
+ public void onPause() {
+ super.onPause();
+ if (_activity == null)
+ return;
+ if (this != mostCurrent)
+ return;
+ anywheresoftware.b4a.Msgbox.dismiss(true);
+ if (!dontPause)
+ BA.LogInfo("** Activity (mapa_cliente) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
+ else
+ BA.LogInfo("** Activity (mapa_cliente) Pause event (activity is not paused). **");
+ if (mostCurrent != null)
+ processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());
+ if (!dontPause) {
+ processBA.setActivityPaused(true);
+ mostCurrent = null;
+ }
+
+ if (!activityBA.activity.isFinishing())
+ previousOne = new WeakReference(this);
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ processBA.runHook("onpause", this, null);
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ previousOne = null;
+ processBA.runHook("ondestroy", this, null);
+ }
+ @Override
+ public void onResume() {
+ super.onResume();
+ mostCurrent = this;
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (activityBA != null) { //will be null during activity create (which waits for AfterLayout).
+ ResumeMessage rm = new ResumeMessage(mostCurrent);
+ BA.handler.post(rm);
+ }
+ processBA.runHook("onresume", this, null);
+ }
+ private static class ResumeMessage implements Runnable {
+ private final WeakReference activity;
+ public ResumeMessage(Activity activity) {
+ this.activity = new WeakReference(activity);
+ }
+ public void run() {
+ mapa_cliente mc = mostCurrent;
+ if (mc == null || mc != activity.get())
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (mapa_cliente) Resume **");
+ if (mc != mostCurrent)
+ return;
+ processBA.raiseEvent(mc._activity, "activity_resume", (Object[])null);
+ }
+ }
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode,
+ android.content.Intent data) {
+ processBA.onActivityResult(requestCode, resultCode, data);
+ processBA.runHook("onactivityresult", this, new Object[] {requestCode, resultCode});
+ }
+ private static void initializeGlobals() {
+ processBA.raiseEvent2(null, true, "globals", false, (Object[])null);
+ }
+ public void onRequestPermissionsResult(int requestCode,
+ String permissions[], int[] grantResults) {
+ for (int i = 0;i < permissions.length;i++) {
+ Object[] o = new Object[] {permissions[i], grantResults[i] == 0};
+ processBA.raiseEventFromDifferentThread(null,null, 0, "activity_permissionresult", true, o);
+ }
+
+ }
+
+public anywheresoftware.b4a.keywords.Common __c = null;
+public static anywheresoftware.b4a.gps.GPS _gps = null;
+public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+public static String _ruta = "";
+public static anywheresoftware.b4a.sql.SQL _skmt = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper _gmap = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper _mapfragment1 = null;
+public static double _latitud = 0;
+public static double _longitud = 0;
+public static double _lat2 = 0;
+public static double _lon2 = 0;
+public anywheresoftware.b4a.gps.LocationWrapper _p1 = null;
+public anywheresoftware.b4a.gps.LocationWrapper _p2 = null;
+public static float _distance = 0f;
+public anywheresoftware.b4a.objects.ButtonWrapper _boton1 = null;
+public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public static String _latmarker = "";
+public static String _longmarker = "";
+public anywheresoftware.b4a.objects.LabelWrapper _l_long = null;
+public anywheresoftware.b4a.objects.LabelWrapper _l_lat = null;
+public static String _nombre_tienda = "";
+public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_regresar = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+
+public static void initializeProcessGlobals() {
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+}
+public static String _activity_create(boolean _firsttime) throws Exception{
+ //BA.debugLineNum = 34;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)";
+ //BA.debugLineNum = 35;BA.debugLine="Activity.LoadLayout(\"mapa_cliente\")";
+mostCurrent._activity.LoadLayout("mapa_cliente",mostCurrent.activityBA);
+ //BA.debugLineNum = 36;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable = F";
+if (mostCurrent._mapfragment1.IsGooglePlayServicesAvailable(mostCurrent.activityBA)==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 37;BA.debugLine="ToastMessageShow(\"Please install Google Play Ser";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Please install Google Play Services."),anywheresoftware.b4a.keywords.Common.True);
+ };
+ //BA.debugLineNum = 39;BA.debugLine="End Sub";
+return "";
+}
+public static String _activity_pause(boolean _userclosed) throws Exception{
+ //BA.debugLineNum = 96;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
+ //BA.debugLineNum = 97;BA.debugLine="GPS.Stop";
+_gps.Stop();
+ //BA.debugLineNum = 98;BA.debugLine="End Sub";
+return "";
+}
+public static String _activity_resume() throws Exception{
+ //BA.debugLineNum = 80;BA.debugLine="Sub Activity_Resume";
+ //BA.debugLineNum = 81;BA.debugLine="Subs.centraBoton(b_regresar, Activity.Width)";
+mostCurrent._subs._centraboton /*String*/ (mostCurrent.activityBA,mostCurrent._b_regresar,mostCurrent._activity.getWidth());
+ //BA.debugLineNum = 82;BA.debugLine="GPS.Initialize(\"GPS\")";
+_gps.Initialize("GPS");
+ //BA.debugLineNum = 83;BA.debugLine="If GPS.GPSEnabled = False Then";
+if (_gps.getGPSEnabled()==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 84;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo."),anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 85;BA.debugLine="StartActivity(GPS.LocationSettingsIntent)";
+anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(_gps.getLocationSettingsIntent()));
+ }else {
+ //BA.debugLineNum = 87;BA.debugLine="GPS.Start(0, 0)";
+_gps.Start(processBA,(long) (0),(float) (0));
+ };
+ //BA.debugLineNum = 89;BA.debugLine="Subs.centraPanel(p_principal, Activity.Width)";
+mostCurrent._subs._centrapanel /*String*/ (mostCurrent.activityBA,mostCurrent._p_principal,mostCurrent._activity.getWidth());
+ //BA.debugLineNum = 90;BA.debugLine="p_principal.Height = Activity.Height * 0.95";
+mostCurrent._p_principal.setHeight((int) (mostCurrent._activity.getHeight()*0.95));
+ //BA.debugLineNum = 91;BA.debugLine="latmarker = B4XPages.MainPage.cliente.LATITUD";
+mostCurrent._latmarker = mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._latitud /*String*/ ;
+ //BA.debugLineNum = 92;BA.debugLine="longmarker = B4XPages.MainPage.cliente.LONGITUD";
+mostCurrent._longmarker = mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._longitud /*String*/ ;
+ //BA.debugLineNum = 93;BA.debugLine="NOMBRE_TIENDA = B4XPages.MainPage.cliente.NOMBRE";
+mostCurrent._nombre_tienda = mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._nombre /*String*/ ;
+ //BA.debugLineNum = 94;BA.debugLine="End Sub";
+return "";
+}
+public static String _b_regresar_click() throws Exception{
+ //BA.debugLineNum = 105;BA.debugLine="Private Sub b_regresar_Click";
+ //BA.debugLineNum = 106;BA.debugLine="Log(\"Pressed\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("530998529","Pressed",0);
+ //BA.debugLineNum = 107;BA.debugLine="Activity.Finish";
+mostCurrent._activity.Finish();
+ //BA.debugLineNum = 108;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente");
+ //BA.debugLineNum = 109;BA.debugLine="End Sub";
+return "";
+}
+public static String _globals() throws Exception{
+ //BA.debugLineNum = 14;BA.debugLine="Sub Globals";
+ //BA.debugLineNum = 15;BA.debugLine="Private gmap As GoogleMap";
+mostCurrent._gmap = new anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper();
+ //BA.debugLineNum = 16;BA.debugLine="Private MapFragment1 As MapFragment";
+mostCurrent._mapfragment1 = new anywheresoftware.b4a.objects.MapFragmentWrapper();
+ //BA.debugLineNum = 17;BA.debugLine="Dim Latitud As Double = 0";
+_latitud = 0;
+ //BA.debugLineNum = 18;BA.debugLine="Dim Longitud As Double = 0";
+_longitud = 0;
+ //BA.debugLineNum = 19;BA.debugLine="Dim Lat2 As Double = 0";
+_lat2 = 0;
+ //BA.debugLineNum = 20;BA.debugLine="Dim Lon2 As Double = 0";
+_lon2 = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Dim p1, p2 As Location";
+mostCurrent._p1 = new anywheresoftware.b4a.gps.LocationWrapper();
+mostCurrent._p2 = new anywheresoftware.b4a.gps.LocationWrapper();
+ //BA.debugLineNum = 22;BA.debugLine="Dim Distance As Float";
+_distance = 0f;
+ //BA.debugLineNum = 23;BA.debugLine="Dim boton1 As Button";
+mostCurrent._boton1 = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 24;BA.debugLine="Dim c As Cursor";
+mostCurrent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Dim latmarker As String";
+mostCurrent._latmarker = "";
+ //BA.debugLineNum = 26;BA.debugLine="Dim longmarker As String";
+mostCurrent._longmarker = "";
+ //BA.debugLineNum = 27;BA.debugLine="Private l_long As Label";
+mostCurrent._l_long = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 28;BA.debugLine="Private l_lat As Label";
+mostCurrent._l_lat = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Private NOMBRE_TIENDA As String";
+mostCurrent._nombre_tienda = "";
+ //BA.debugLineNum = 30;BA.debugLine="Private p_principal As Panel";
+mostCurrent._p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Private b_regresar As Button";
+mostCurrent._b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 32;BA.debugLine="End Sub";
+return "";
+}
+public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _parametro) throws Exception{
+ //BA.debugLineNum = 59;BA.debugLine="Sub GPS_LocationChanged (Parametro As Location)";
+ //BA.debugLineNum = 78;BA.debugLine="End Sub";
+return "";
+}
+public static void _mapfragment1_ready() throws Exception{
+ResumableSub_MapFragment1_Ready rsub = new ResumableSub_MapFragment1_Ready(null);
+rsub.resume(processBA, null);
+}
+public static class ResumableSub_MapFragment1_Ready extends BA.ResumableSub {
+public ResumableSub_MapFragment1_Ready(reparto_izca.keymon.lat.mapa_cliente parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.mapa_cliente parent;
+String _permission = "";
+boolean _result = false;
+anywheresoftware.b4j.object.JavaObject _javamapsobject = null;
+anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper _marcador1 = null;
+anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper _aa = null;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = -1;
+ //BA.debugLineNum = 42;BA.debugLine="gmap = MapFragment1.GetMap";
+parent.mostCurrent._gmap = parent.mostCurrent._mapfragment1.GetMap();
+ //BA.debugLineNum = 44;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA";
+parent._rp.CheckAndRequest(processBA,parent._rp.PERMISSION_ACCESS_FINE_LOCATION);
+ //BA.debugLineNum = 45;BA.debugLine="Wait For Activity_PermissionResult (Permission As";
+anywheresoftware.b4a.keywords.Common.WaitFor("activity_permissionresult", processBA, this, null);
+this.state = 1;
+return;
+case 1:
+//C
+this.state = -1;
+_permission = (String) result[0];
+_result = (Boolean) result[1];
+;
+ //BA.debugLineNum = 46;BA.debugLine="gmap.MyLocationEnabled = Result";
+parent.mostCurrent._gmap.setMyLocationEnabled(_result);
+ //BA.debugLineNum = 48;BA.debugLine="Dim JavaMapsObject As JavaObject";
+_javamapsobject = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 49;BA.debugLine="JavaMapsObject = gmap.GetUiSettings";
+_javamapsobject = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(parent.mostCurrent._gmap.GetUiSettings().getObject()));
+ //BA.debugLineNum = 50;BA.debugLine="JavaMapsObject.RunMethod(\"setMapToolbarEnabled\",";
+_javamapsobject.RunMethod("setMapToolbarEnabled",new Object[]{(Object)(anywheresoftware.b4a.keywords.Common.True)});
+ //BA.debugLineNum = 51;BA.debugLine="Dim marcador1 As Marker = gmap.AddMarker (latmark";
+_marcador1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper();
+_marcador1 = parent.mostCurrent._gmap.AddMarker((double)(Double.parseDouble(parent.mostCurrent._latmarker)),(double)(Double.parseDouble(parent.mostCurrent._longmarker)),"TIENDA");
+ //BA.debugLineNum = 52;BA.debugLine="marcador1.Snippet = B4XPages.MainPage.cliente.NOM";
+_marcador1.setSnippet(parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._nombre /*String*/ );
+ //BA.debugLineNum = 54;BA.debugLine="Dim aa As CameraPosition";
+_aa = new anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper();
+ //BA.debugLineNum = 55;BA.debugLine="aa.Initialize(latmarker,longmarker,15)''' RECOMEN";
+_aa.Initialize((double)(Double.parseDouble(parent.mostCurrent._latmarker)),(double)(Double.parseDouble(parent.mostCurrent._longmarker)),(float) (15));
+ //BA.debugLineNum = 56;BA.debugLine="gmap.AnimateCamera(aa)";
+parent.mostCurrent._gmap.AnimateCamera((com.google.android.gms.maps.model.CameraPosition)(_aa.getObject()));
+ //BA.debugLineNum = 57;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public static void _activity_permissionresult(String _permission,boolean _result) throws Exception{
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 7;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Dim GPS As GPS";
+_gps = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 9;BA.debugLine="Dim rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 10;BA.debugLine="Dim ruta As String";
+_ruta = "";
+ //BA.debugLineNum = 11;BA.debugLine="Dim skmt As SQL";
+_skmt = new anywheresoftware.b4a.sql.SQL();
+ //BA.debugLineNum = 12;BA.debugLine="End Sub";
+return "";
+}
+public static String _reg_click() throws Exception{
+ //BA.debugLineNum = 100;BA.debugLine="Sub reg_Click";
+ //BA.debugLineNum = 102;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente");
+ //BA.debugLineNum = 103;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/mapa_rutas.java b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_rutas.java
new file mode 100644
index 0000000..2f38881
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_rutas.java
@@ -0,0 +1,1464 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.B4AMenuItem;
+import android.app.Activity;
+import android.os.Bundle;
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.B4AActivity;
+import anywheresoftware.b4a.ObjectWrapper;
+import anywheresoftware.b4a.objects.ActivityWrapper;
+import java.lang.reflect.InvocationTargetException;
+import anywheresoftware.b4a.B4AUncaughtException;
+import anywheresoftware.b4a.debug.*;
+import java.lang.ref.WeakReference;
+
+public class mapa_rutas extends Activity implements B4AActivity{
+ public static mapa_rutas mostCurrent;
+ static boolean afterFirstLayout;
+ static boolean isFirst = true;
+ private static boolean processGlobalsRun = false;
+ BALayout layout;
+ public static BA processBA;
+ BA activityBA;
+ ActivityWrapper _activity;
+ java.util.ArrayList menuItems;
+ public static final boolean fullScreen = false;
+ public static final boolean includeTitle = false;
+ public static WeakReference previousOne;
+ public static boolean dontPause;
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_rutas");
+ processBA.loadHtSubs(this.getClass());
+ float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
+ BALayout.setDeviceScale(deviceScale);
+
+ }
+ else if (previousOne != null) {
+ Activity p = previousOne.get();
+ if (p != null && p != this) {
+ BA.LogInfo("Killing previous instance (mapa_rutas).");
+ p.finish();
+ }
+ }
+ processBA.setActivityPaused(true);
+ processBA.runHook("oncreate", this, null);
+ if (!includeTitle) {
+ this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
+ }
+ if (fullScreen) {
+ getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,
+ android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ }
+
+ processBA.sharedProcessBA.activityBA = null;
+ layout = new BALayout(this);
+ setContentView(layout);
+ afterFirstLayout = false;
+ WaitForLayout wl = new WaitForLayout();
+ if (anywheresoftware.b4a.objects.ServiceHelper.StarterHelper.startFromActivity(this, processBA, wl, false))
+ BA.handler.postDelayed(wl, 5);
+
+ }
+ static class WaitForLayout implements Runnable {
+ public void run() {
+ if (afterFirstLayout)
+ return;
+ if (mostCurrent == null)
+ return;
+
+ if (mostCurrent.layout.getWidth() == 0) {
+ BA.handler.postDelayed(this, 5);
+ return;
+ }
+ mostCurrent.layout.getLayoutParams().height = mostCurrent.layout.getHeight();
+ mostCurrent.layout.getLayoutParams().width = mostCurrent.layout.getWidth();
+ afterFirstLayout = true;
+ mostCurrent.afterFirstLayout();
+ }
+ }
+ private void afterFirstLayout() {
+ if (this != mostCurrent)
+ return;
+ activityBA = new BA(this, layout, processBA, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_rutas");
+
+ processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference(activityBA);
+ anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
+ _activity = new ActivityWrapper(activityBA, "activity");
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ if (isFirst)
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.mapa_rutas", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density, mostCurrent);
+ _activity.reinitializeForShell(activityBA, "activity");
+ }
+ initializeProcessGlobals();
+ initializeGlobals();
+
+ BA.LogInfo("** Activity (mapa_rutas) Create " + (isFirst ? "(first time)" : "") + " **");
+ processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
+ isFirst = false;
+ if (this != mostCurrent)
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (mapa_rutas) Resume **");
+ processBA.raiseEvent(null, "activity_resume");
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ }
+ public void addMenuItem(B4AMenuItem item) {
+ if (menuItems == null)
+ menuItems = new java.util.ArrayList();
+ menuItems.add(item);
+ }
+ @Override
+ public boolean onCreateOptionsMenu(android.view.Menu menu) {
+ super.onCreateOptionsMenu(menu);
+ try {
+ if (processBA.subExists("activity_actionbarhomeclick")) {
+ Class.forName("android.app.ActionBar").getMethod("setHomeButtonEnabled", boolean.class).invoke(
+ getClass().getMethod("getActionBar").invoke(this), true);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ if (processBA.runHook("oncreateoptionsmenu", this, new Object[] {menu}))
+ return true;
+ if (menuItems == null)
+ return false;
+ for (B4AMenuItem bmi : menuItems) {
+ android.view.MenuItem mi = menu.add(bmi.title);
+ if (bmi.drawable != null)
+ mi.setIcon(bmi.drawable);
+ if (android.os.Build.VERSION.SDK_INT >= 11) {
+ try {
+ if (bmi.addToBar) {
+ android.view.MenuItem.class.getMethod("setShowAsAction", int.class).invoke(mi, 1);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ mi.setOnMenuItemClickListener(new B4AMenuItemsClickListener(bmi.eventName.toLowerCase(BA.cul)));
+ }
+
+ return true;
+ }
+ @Override
+ public boolean onOptionsItemSelected(android.view.MenuItem item) {
+ if (item.getItemId() == 16908332) {
+ processBA.raiseEvent(null, "activity_actionbarhomeclick");
+ return true;
+ }
+ else
+ return super.onOptionsItemSelected(item);
+}
+@Override
+ public boolean onPrepareOptionsMenu(android.view.Menu menu) {
+ super.onPrepareOptionsMenu(menu);
+ processBA.runHook("onprepareoptionsmenu", this, new Object[] {menu});
+ return true;
+
+ }
+ protected void onStart() {
+ super.onStart();
+ processBA.runHook("onstart", this, null);
+}
+ protected void onStop() {
+ super.onStop();
+ processBA.runHook("onstop", this, null);
+}
+ public void onWindowFocusChanged(boolean hasFocus) {
+ super.onWindowFocusChanged(hasFocus);
+ if (processBA.subExists("activity_windowfocuschanged"))
+ processBA.raiseEvent2(null, true, "activity_windowfocuschanged", false, hasFocus);
+ }
+ private class B4AMenuItemsClickListener implements android.view.MenuItem.OnMenuItemClickListener {
+ private final String eventName;
+ public B4AMenuItemsClickListener(String eventName) {
+ this.eventName = eventName;
+ }
+ public boolean onMenuItemClick(android.view.MenuItem item) {
+ processBA.raiseEventFromUI(item.getTitle(), eventName + "_click");
+ return true;
+ }
+ }
+ public static Class> getObject() {
+ return mapa_rutas.class;
+ }
+ private Boolean onKeySubExist = null;
+ private Boolean onKeyUpSubExist = null;
+ @Override
+ public boolean onKeyDown(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeydown", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeySubExist == null)
+ onKeySubExist = processBA.subExists("activity_keypress");
+ if (onKeySubExist) {
+ if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK &&
+ android.os.Build.VERSION.SDK_INT >= 18) {
+ HandleKeyDelayed hk = new HandleKeyDelayed();
+ hk.kc = keyCode;
+ BA.handler.post(hk);
+ return true;
+ }
+ else {
+ boolean res = new HandleKeyDelayed().runDirectly(keyCode);
+ if (res)
+ return true;
+ }
+ }
+ return super.onKeyDown(keyCode, event);
+ }
+ private class HandleKeyDelayed implements Runnable {
+ int kc;
+ public void run() {
+ runDirectly(kc);
+ }
+ public boolean runDirectly(int keyCode) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keypress", false, keyCode);
+ if (res == null || res == true) {
+ return true;
+ }
+ else if (keyCode == anywheresoftware.b4a.keywords.constants.KeyCodes.KEYCODE_BACK) {
+ finish();
+ return true;
+ }
+ return false;
+ }
+
+ }
+ @Override
+ public boolean onKeyUp(int keyCode, android.view.KeyEvent event) {
+ if (processBA.runHook("onkeyup", this, new Object[] {keyCode, event}))
+ return true;
+ if (onKeyUpSubExist == null)
+ onKeyUpSubExist = processBA.subExists("activity_keyup");
+ if (onKeyUpSubExist) {
+ Boolean res = (Boolean)processBA.raiseEvent2(_activity, false, "activity_keyup", false, keyCode);
+ if (res == null || res == true)
+ return true;
+ }
+ return super.onKeyUp(keyCode, event);
+ }
+ @Override
+ public void onNewIntent(android.content.Intent intent) {
+ super.onNewIntent(intent);
+ this.setIntent(intent);
+ processBA.runHook("onnewintent", this, new Object[] {intent});
+ }
+ @Override
+ public void onPause() {
+ super.onPause();
+ if (_activity == null)
+ return;
+ if (this != mostCurrent)
+ return;
+ anywheresoftware.b4a.Msgbox.dismiss(true);
+ if (!dontPause)
+ BA.LogInfo("** Activity (mapa_rutas) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
+ else
+ BA.LogInfo("** Activity (mapa_rutas) Pause event (activity is not paused). **");
+ if (mostCurrent != null)
+ processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());
+ if (!dontPause) {
+ processBA.setActivityPaused(true);
+ mostCurrent = null;
+ }
+
+ if (!activityBA.activity.isFinishing())
+ previousOne = new WeakReference(this);
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ processBA.runHook("onpause", this, null);
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ previousOne = null;
+ processBA.runHook("ondestroy", this, null);
+ }
+ @Override
+ public void onResume() {
+ super.onResume();
+ mostCurrent = this;
+ anywheresoftware.b4a.Msgbox.isDismissing = false;
+ if (activityBA != null) { //will be null during activity create (which waits for AfterLayout).
+ ResumeMessage rm = new ResumeMessage(mostCurrent);
+ BA.handler.post(rm);
+ }
+ processBA.runHook("onresume", this, null);
+ }
+ private static class ResumeMessage implements Runnable {
+ private final WeakReference activity;
+ public ResumeMessage(Activity activity) {
+ this.activity = new WeakReference(activity);
+ }
+ public void run() {
+ mapa_rutas mc = mostCurrent;
+ if (mc == null || mc != activity.get())
+ return;
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Activity (mapa_rutas) Resume **");
+ if (mc != mostCurrent)
+ return;
+ processBA.raiseEvent(mc._activity, "activity_resume", (Object[])null);
+ }
+ }
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode,
+ android.content.Intent data) {
+ processBA.onActivityResult(requestCode, resultCode, data);
+ processBA.runHook("onactivityresult", this, new Object[] {requestCode, resultCode});
+ }
+ private static void initializeGlobals() {
+ processBA.raiseEvent2(null, true, "globals", false, (Object[])null);
+ }
+ public void onRequestPermissionsResult(int requestCode,
+ String permissions[], int[] grantResults) {
+ for (int i = 0;i < permissions.length;i++) {
+ Object[] o = new Object[] {permissions[i], grantResults[i] == 0};
+ processBA.raiseEventFromDifferentThread(null,null, 0, "activity_permissionresult", true, o);
+ }
+
+ }
+
+public anywheresoftware.b4a.keywords.Common __c = null;
+public static anywheresoftware.b4a.gps.GPS _gps = null;
+public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+public static anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public static anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
+public static anywheresoftware.b4a.sql.SQL.CursorWrapper _c22 = null;
+public static anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper _gmap = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper _mapfragment1 = null;
+public static double _latitud = 0;
+public static double _longitud = 0;
+public static double _lat2 = 0;
+public static double _lon2 = 0;
+public anywheresoftware.b4a.gps.LocationWrapper _p1 = null;
+public anywheresoftware.b4a.gps.LocationWrapper _p2 = null;
+public static float _distance = 0f;
+public anywheresoftware.b4a.objects.ButtonWrapper _boton1 = null;
+public static float _hue_blue = 0f;
+public static float _hue_red = 0f;
+public static float _hue_green = 0f;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_azul = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_rojo = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_verde = null;
+public anywheresoftware.b4a.objects.ButtonWrapper _b_todos = null;
+public static String _tienda = "";
+public static String _ruta = "";
+public static String _rutaant = "";
+public static double _latitudru = 0;
+public static double _longitudru = 0;
+public anywheresoftware.b4a.objects.collections.List _list_azul = null;
+public anywheresoftware.b4a.objects.collections.List _list_rojo = null;
+public anywheresoftware.b4a.objects.collections.List _list_verde = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper _mark_azul = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper _mark_rojo = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper _mark_verde = null;
+public anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper _mark_cedis = null;
+public static String _rojo = "";
+public static String _azul = "";
+public static String _verde = "";
+public static String _todos = "";
+public static int _numserie = 0;
+public uk.co.martinpearman.b4a.com.google.android.gms.maps.googlemap.OnInfoWindowClickListener _oninfowindowclicklistener1 = null;
+public uk.co.martinpearman.b4a.googlemapsextras.GoogleMapsExtras _googlemapextra = null;
+public static String _codigo = "";
+public static String _semana = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+
+public static void initializeProcessGlobals() {
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+}
+public static String _activity_create(boolean _firsttime) throws Exception{
+ //BA.debugLineNum = 57;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)";
+ //BA.debugLineNum = 59;BA.debugLine="Activity.LoadLayout(\"MAPA_RUTAS\")";
+mostCurrent._activity.LoadLayout("MAPA_RUTAS",mostCurrent.activityBA);
+ //BA.debugLineNum = 70;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable = F";
+if (mostCurrent._mapfragment1.IsGooglePlayServicesAvailable(mostCurrent.activityBA)==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 71;BA.debugLine="ToastMessageShow(\"Please install Google Play Ser";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Please install Google Play Services."),anywheresoftware.b4a.keywords.Common.True);
+ };
+ //BA.debugLineNum = 82;BA.debugLine="MARK_AZUL.IsInitialized";
+mostCurrent._mark_azul.IsInitialized();
+ //BA.debugLineNum = 83;BA.debugLine="MARK_ROJO.IsInitialized";
+mostCurrent._mark_rojo.IsInitialized();
+ //BA.debugLineNum = 84;BA.debugLine="MARK_VERDE.IsInitialized";
+mostCurrent._mark_verde.IsInitialized();
+ //BA.debugLineNum = 86;BA.debugLine="LIST_AZUL.Initialize";
+mostCurrent._list_azul.Initialize();
+ //BA.debugLineNum = 87;BA.debugLine="LIST_ROJO.Initialize";
+mostCurrent._list_rojo.Initialize();
+ //BA.debugLineNum = 88;BA.debugLine="LIST_VERDE.Initialize";
+mostCurrent._list_verde.Initialize();
+ //BA.debugLineNum = 90;BA.debugLine="verde = 0";
+mostCurrent._verde = BA.NumberToString(0);
+ //BA.debugLineNum = 91;BA.debugLine="azul = 0";
+mostCurrent._azul = BA.NumberToString(0);
+ //BA.debugLineNum = 92;BA.debugLine="rojo = 0";
+mostCurrent._rojo = BA.NumberToString(0);
+ //BA.debugLineNum = 93;BA.debugLine="todos = 1";
+mostCurrent._todos = BA.NumberToString(1);
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return "";
+}
+public static boolean _activity_keypress(int _key) throws Exception{
+ //BA.debugLineNum = 352;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean 'ign";
+ //BA.debugLineNum = 354;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then";
+if (_key==anywheresoftware.b4a.keywords.Common.KeyCodes.KEYCODE_BACK) {
+ //BA.debugLineNum = 356;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
+mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Principal");
+ //BA.debugLineNum = 357;BA.debugLine="Return False";
+if (true) return anywheresoftware.b4a.keywords.Common.False;
+ };
+ //BA.debugLineNum = 361;BA.debugLine="End Sub";
+return false;
+}
+public static String _activity_pause(boolean _userclosed) throws Exception{
+ //BA.debugLineNum = 312;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)";
+ //BA.debugLineNum = 313;BA.debugLine="GPS.Stop";
+_gps.Stop();
+ //BA.debugLineNum = 314;BA.debugLine="End Sub";
+return "";
+}
+public static String _activity_resume() throws Exception{
+ //BA.debugLineNum = 303;BA.debugLine="Sub Activity_Resume";
+ //BA.debugLineNum = 310;BA.debugLine="End Sub";
+return "";
+}
+public static String _b_azul_click() throws Exception{
+ //BA.debugLineNum = 342;BA.debugLine="Sub B_AZUL_Click";
+ //BA.debugLineNum = 343;BA.debugLine="azul = 1";
+mostCurrent._azul = BA.NumberToString(1);
+ //BA.debugLineNum = 344;BA.debugLine="verde = 0";
+mostCurrent._verde = BA.NumberToString(0);
+ //BA.debugLineNum = 345;BA.debugLine="rojo = 0";
+mostCurrent._rojo = BA.NumberToString(0);
+ //BA.debugLineNum = 346;BA.debugLine="todos = 0";
+mostCurrent._todos = BA.NumberToString(0);
+ //BA.debugLineNum = 347;BA.debugLine="gmap.Clear";
+mostCurrent._gmap.Clear();
+ //BA.debugLineNum = 348;BA.debugLine="MapFragment1_Ready";
+_mapfragment1_ready();
+ //BA.debugLineNum = 349;BA.debugLine="End Sub";
+return "";
+}
+public static String _b_rojo_click() throws Exception{
+ //BA.debugLineNum = 333;BA.debugLine="Sub B_ROJO_Click";
+ //BA.debugLineNum = 334;BA.debugLine="rojo = 1";
+mostCurrent._rojo = BA.NumberToString(1);
+ //BA.debugLineNum = 335;BA.debugLine="verde = 0";
+mostCurrent._verde = BA.NumberToString(0);
+ //BA.debugLineNum = 336;BA.debugLine="azul = 0";
+mostCurrent._azul = BA.NumberToString(0);
+ //BA.debugLineNum = 337;BA.debugLine="todos = 0";
+mostCurrent._todos = BA.NumberToString(0);
+ //BA.debugLineNum = 338;BA.debugLine="gmap.Clear";
+mostCurrent._gmap.Clear();
+ //BA.debugLineNum = 339;BA.debugLine="MapFragment1_Ready";
+_mapfragment1_ready();
+ //BA.debugLineNum = 340;BA.debugLine="End Sub";
+return "";
+}
+public static String _b_todos_click() throws Exception{
+ //BA.debugLineNum = 316;BA.debugLine="Sub B_TODOS_Click";
+ //BA.debugLineNum = 317;BA.debugLine="todos =1";
+mostCurrent._todos = BA.NumberToString(1);
+ //BA.debugLineNum = 318;BA.debugLine="verde = 0";
+mostCurrent._verde = BA.NumberToString(0);
+ //BA.debugLineNum = 319;BA.debugLine="azul = 0";
+mostCurrent._azul = BA.NumberToString(0);
+ //BA.debugLineNum = 320;BA.debugLine="rojo = 0";
+mostCurrent._rojo = BA.NumberToString(0);
+ //BA.debugLineNum = 321;BA.debugLine="MapFragment1_Ready";
+_mapfragment1_ready();
+ //BA.debugLineNum = 322;BA.debugLine="End Sub";
+return "";
+}
+public static String _b_verde_click() throws Exception{
+ //BA.debugLineNum = 324;BA.debugLine="Sub B_VERDE_Click";
+ //BA.debugLineNum = 325;BA.debugLine="verde = 1";
+mostCurrent._verde = BA.NumberToString(1);
+ //BA.debugLineNum = 326;BA.debugLine="azul = 0";
+mostCurrent._azul = BA.NumberToString(0);
+ //BA.debugLineNum = 327;BA.debugLine="rojo = 0";
+mostCurrent._rojo = BA.NumberToString(0);
+ //BA.debugLineNum = 328;BA.debugLine="todos = 0";
+mostCurrent._todos = BA.NumberToString(0);
+ //BA.debugLineNum = 329;BA.debugLine="gmap.Clear";
+mostCurrent._gmap.Clear();
+ //BA.debugLineNum = 330;BA.debugLine="MapFragment1_Ready";
+_mapfragment1_ready();
+ //BA.debugLineNum = 331;BA.debugLine="End Sub";
+return "";
+}
+public static String _globals() throws Exception{
+ //BA.debugLineNum = 17;BA.debugLine="Sub Globals";
+ //BA.debugLineNum = 18;BA.debugLine="Private gmap As GoogleMap";
+mostCurrent._gmap = new anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Private MapFragment1 As MapFragment";
+mostCurrent._mapfragment1 = new anywheresoftware.b4a.objects.MapFragmentWrapper();
+ //BA.debugLineNum = 20;BA.debugLine="Dim Latitud As Double = 0";
+_latitud = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Dim Longitud As Double = 0";
+_longitud = 0;
+ //BA.debugLineNum = 22;BA.debugLine="Dim Lat2 As Double = 0";
+_lat2 = 0;
+ //BA.debugLineNum = 23;BA.debugLine="Dim Lon2 As Double = 0";
+_lon2 = 0;
+ //BA.debugLineNum = 24;BA.debugLine="Dim p1, p2 As Location";
+mostCurrent._p1 = new anywheresoftware.b4a.gps.LocationWrapper();
+mostCurrent._p2 = new anywheresoftware.b4a.gps.LocationWrapper();
+ //BA.debugLineNum = 25;BA.debugLine="Dim Distance As Float";
+_distance = 0f;
+ //BA.debugLineNum = 26;BA.debugLine="Dim boton1 As Button";
+mostCurrent._boton1 = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 27;BA.debugLine="Dim HUE_BLUE As Float";
+_hue_blue = 0f;
+ //BA.debugLineNum = 28;BA.debugLine="Dim HUE_RED As Float";
+_hue_red = 0f;
+ //BA.debugLineNum = 29;BA.debugLine="Dim HUE_GREEN As Float";
+_hue_green = 0f;
+ //BA.debugLineNum = 30;BA.debugLine="Private B_AZUL As Button";
+mostCurrent._b_azul = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 31;BA.debugLine="Private B_ROJO As Button";
+mostCurrent._b_rojo = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 32;BA.debugLine="Private B_VERDE As Button";
+mostCurrent._b_verde = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 33;BA.debugLine="Private B_TODOS As Button";
+mostCurrent._b_todos = new anywheresoftware.b4a.objects.ButtonWrapper();
+ //BA.debugLineNum = 34;BA.debugLine="Dim Tienda As String";
+mostCurrent._tienda = "";
+ //BA.debugLineNum = 35;BA.debugLine="Dim ruta, rutaAnt As String";
+mostCurrent._ruta = "";
+mostCurrent._rutaant = "";
+ //BA.debugLineNum = 36;BA.debugLine="Dim LatitudRu As Double";
+_latitudru = 0;
+ //BA.debugLineNum = 37;BA.debugLine="Dim LongitudRU As Double";
+_longitudru = 0;
+ //BA.debugLineNum = 38;BA.debugLine="Dim LIST_AZUL As List";
+mostCurrent._list_azul = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 39;BA.debugLine="Dim LIST_ROJO As List";
+mostCurrent._list_rojo = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 40;BA.debugLine="Dim LIST_VERDE As List";
+mostCurrent._list_verde = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 41;BA.debugLine="Dim MARK_AZUL As Marker";
+mostCurrent._mark_azul = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper();
+ //BA.debugLineNum = 42;BA.debugLine="Dim MARK_ROJO As Marker";
+mostCurrent._mark_rojo = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper();
+ //BA.debugLineNum = 43;BA.debugLine="Dim MARK_VERDE As Marker";
+mostCurrent._mark_verde = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper();
+ //BA.debugLineNum = 44;BA.debugLine="Dim MARK_CEDIS As Marker";
+mostCurrent._mark_cedis = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper();
+ //BA.debugLineNum = 45;BA.debugLine="Dim rojo As String";
+mostCurrent._rojo = "";
+ //BA.debugLineNum = 46;BA.debugLine="Dim azul As String";
+mostCurrent._azul = "";
+ //BA.debugLineNum = 47;BA.debugLine="Dim verde As String";
+mostCurrent._verde = "";
+ //BA.debugLineNum = 48;BA.debugLine="Dim todos As String";
+mostCurrent._todos = "";
+ //BA.debugLineNum = 49;BA.debugLine="Dim NumSerie As Int";
+_numserie = 0;
+ //BA.debugLineNum = 50;BA.debugLine="Dim OnInfoWindowClickListener1 As OnInfoWindowCli";
+mostCurrent._oninfowindowclicklistener1 = new uk.co.martinpearman.b4a.com.google.android.gms.maps.googlemap.OnInfoWindowClickListener();
+ //BA.debugLineNum = 51;BA.debugLine="Dim GoogleMapEXTRA As GoogleMapsExtras";
+mostCurrent._googlemapextra = new uk.co.martinpearman.b4a.googlemapsextras.GoogleMapsExtras();
+ //BA.debugLineNum = 52;BA.debugLine="Dim CODIGO As String";
+mostCurrent._codigo = "";
+ //BA.debugLineNum = 53;BA.debugLine="Private SEMANA As String";
+mostCurrent._semana = "";
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return "";
+}
+public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _parametro) throws Exception{
+ //BA.debugLineNum = 282;BA.debugLine="Sub GPS_LocationChanged (Parametro As Location)";
+ //BA.debugLineNum = 301;BA.debugLine="End Sub";
+return "";
+}
+public static void _mapfragment1_ready() throws Exception{
+ResumableSub_MapFragment1_Ready rsub = new ResumableSub_MapFragment1_Ready(null);
+rsub.resume(processBA, null);
+}
+public static class ResumableSub_MapFragment1_Ready extends BA.ResumableSub {
+public ResumableSub_MapFragment1_Ready(reparto_izca.keymon.lat.mapa_rutas parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.mapa_rutas parent;
+String _permission = "";
+boolean _result = false;
+anywheresoftware.b4j.object.JavaObject _javamapsobject = null;
+int _esteazul = 0;
+String _esteazul2 = "";
+int _i = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
+int _esterojo = 0;
+String _esterojo2 = "";
+anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper _aa = null;
+int step15;
+int limit15;
+int step49;
+int limit49;
+int step74;
+int limit74;
+int step94;
+int limit94;
+int step119;
+int limit119;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 110;BA.debugLine="gmap = MapFragment1.GetMap";
+parent.mostCurrent._gmap = parent.mostCurrent._mapfragment1.GetMap();
+ //BA.debugLineNum = 111;BA.debugLine="gmap.IsInitialized";
+parent.mostCurrent._gmap.IsInitialized();
+ //BA.debugLineNum = 112;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA";
+parent._rp.CheckAndRequest(processBA,parent._rp.PERMISSION_ACCESS_FINE_LOCATION);
+ //BA.debugLineNum = 113;BA.debugLine="Wait For Activity_PermissionResult (Permission As";
+anywheresoftware.b4a.keywords.Common.WaitFor("activity_permissionresult", processBA, this, null);
+this.state = 126;
+return;
+case 126:
+//C
+this.state = 1;
+_permission = (String) result[0];
+_result = (Boolean) result[1];
+;
+ //BA.debugLineNum = 114;BA.debugLine="gmap.MyLocationEnabled = Result";
+parent.mostCurrent._gmap.setMyLocationEnabled(_result);
+ //BA.debugLineNum = 116;BA.debugLine="Dim JavaMapsObject As JavaObject";
+_javamapsobject = new anywheresoftware.b4j.object.JavaObject();
+ //BA.debugLineNum = 117;BA.debugLine="JavaMapsObject = gmap.GetUiSettings";
+_javamapsobject = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(parent.mostCurrent._gmap.GetUiSettings().getObject()));
+ //BA.debugLineNum = 118;BA.debugLine="JavaMapsObject.RunMethod(\"setMapToolbarEnabled\",";
+_javamapsobject.RunMethod("setMapToolbarEnabled",new Object[]{(Object)(anywheresoftware.b4a.keywords.Common.True)});
+ //BA.debugLineNum = 120;BA.debugLine="Private esteAzul As Int = 0";
+_esteazul = (int) (0);
+ //BA.debugLineNum = 121;BA.debugLine="Private esteAzul2 As String";
+_esteazul2 = "";
+ //BA.debugLineNum = 122;BA.debugLine="If azul = 1 Or todos = 1 Then";
+if (true) break;
+
+case 1:
+//if
+this.state = 59;
+if ((parent.mostCurrent._azul).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) {
+this.state = 3;
+}if (true) break;
+
+case 3:
+//C
+this.state = 4;
+ //BA.debugLineNum = 123;BA.debugLine="c.IsInitialized";
+parent._c.IsInitialized();
+ //BA.debugLineNum = 124;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO";
+parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LAT, CAT_CL_LONG, CAT_CL_RUTA from kmt_info where gestion = 0 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")));
+ //BA.debugLineNum = 125;BA.debugLine="rutaAnt = \"\"";
+parent.mostCurrent._rutaant = "";
+ //BA.debugLineNum = 126;BA.debugLine="For i = 0 To c.RowCount -1";
+if (true) break;
+
+case 4:
+//for
+this.state = 52;
+step15 = 1;
+limit15 = (int) (parent._c.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 127;
+if (true) break;
+
+case 127:
+//C
+this.state = 52;
+if ((step15 > 0 && _i <= limit15) || (step15 < 0 && _i >= limit15)) this.state = 6;
+if (true) break;
+
+case 128:
+//C
+this.state = 127;
+_i = ((int)(0 + _i + step15)) ;
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+ //BA.debugLineNum = 127;BA.debugLine="c.Position = i";
+parent._c.setPosition(_i);
+ //BA.debugLineNum = 128;BA.debugLine="LatitudRu = c.GetString(\"CAT_CL_LAT\")";
+parent._latitudru = (double)(Double.parseDouble(parent._c.GetString("CAT_CL_LAT")));
+ //BA.debugLineNum = 129;BA.debugLine="LongitudRU = c.GetString(\"CAT_CL_LONG\")";
+parent._longitudru = (double)(Double.parseDouble(parent._c.GetString("CAT_CL_LONG")));
+ //BA.debugLineNum = 130;BA.debugLine="CODIGO=c.GetString(\"CAT_CL_CODIGO\")";
+parent.mostCurrent._codigo = parent._c.GetString("CAT_CL_CODIGO");
+ //BA.debugLineNum = 131;BA.debugLine="Tienda= c.GetString(\"CAT_CL_NOMBRE\")";
+parent.mostCurrent._tienda = parent._c.GetString("CAT_CL_NOMBRE");
+ //BA.debugLineNum = 132;BA.debugLine="ruta = c.GetString(\"CAT_CL_RUTA\")";
+parent.mostCurrent._ruta = parent._c.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 133;BA.debugLine="If c.GetString(\"SECUENCIA\") = \"null\" Then";
+if (true) break;
+
+case 7:
+//if
+this.state = 12;
+if ((parent._c.GetString("SECUENCIA")).equals("null")) {
+this.state = 9;
+}else {
+this.state = 11;
+}if (true) break;
+
+case 9:
+//C
+this.state = 12;
+ //BA.debugLineNum = 134;BA.debugLine="NumSerie = 0";
+parent._numserie = (int) (0);
+ if (true) break;
+
+case 11:
+//C
+this.state = 12;
+ //BA.debugLineNum = 136;BA.debugLine="NumSerie = c.GetString(\"SECUENCIA\")";
+parent._numserie = (int)(Double.parseDouble(parent._c.GetString("SECUENCIA")));
+ if (true) break;
+
+case 12:
+//C
+this.state = 13;
+;
+ //BA.debugLineNum = 138;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\"";
+_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select indice from waypoints where codigo = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent.mostCurrent._codigo))+"'"))));
+ //BA.debugLineNum = 139;BA.debugLine="If s.RowCount > 0 Then";
+if (true) break;
+
+case 13:
+//if
+this.state = 16;
+if (_s.getRowCount()>0) {
+this.state = 15;
+}if (true) break;
+
+case 15:
+//C
+this.state = 16;
+ //BA.debugLineNum = 140;BA.debugLine="s.Position = 0";
+_s.setPosition((int) (0));
+ //BA.debugLineNum = 141;BA.debugLine="NumSerie = s.GetString(\"indice\")";
+parent._numserie = (int)(Double.parseDouble(_s.GetString("indice")));
+ if (true) break;
+;
+ //BA.debugLineNum = 143;BA.debugLine="If rutaAnt <> ruta Then esteAzul = esteAzul + 1";
+
+case 16:
+//if
+this.state = 21;
+if ((parent.mostCurrent._rutaant).equals(parent.mostCurrent._ruta) == false) {
+this.state = 18;
+;}if (true) break;
+
+case 18:
+//C
+this.state = 21;
+_esteazul = (int) (_esteazul+1);
+if (true) break;
+
+case 21:
+//C
+this.state = 22;
+;
+ //BA.debugLineNum = 150;BA.debugLine="If esteAzul = 1 Then esteAzul2= \"marker-azul.pn";
+if (true) break;
+
+case 22:
+//if
+this.state = 27;
+if (_esteazul==1) {
+this.state = 24;
+;}if (true) break;
+
+case 24:
+//C
+this.state = 27;
+_esteazul2 = "marker-azul.png";
+if (true) break;
+
+case 27:
+//C
+this.state = 28;
+;
+ //BA.debugLineNum = 151;BA.debugLine="If esteAzul = 2 Then esteAzul2= \"marker-azul1.p";
+if (true) break;
+
+case 28:
+//if
+this.state = 33;
+if (_esteazul==2) {
+this.state = 30;
+;}if (true) break;
+
+case 30:
+//C
+this.state = 33;
+_esteazul2 = "marker-azul1.png";
+if (true) break;
+
+case 33:
+//C
+this.state = 34;
+;
+ //BA.debugLineNum = 152;BA.debugLine="If esteAzul = 3 Then esteAzul2= \"marker-azul2.p";
+if (true) break;
+
+case 34:
+//if
+this.state = 39;
+if (_esteazul==3) {
+this.state = 36;
+;}if (true) break;
+
+case 36:
+//C
+this.state = 39;
+_esteazul2 = "marker-azul2.png";
+if (true) break;
+
+case 39:
+//C
+this.state = 40;
+;
+ //BA.debugLineNum = 153;BA.debugLine="If esteAzul = 4 Then esteAzul2= \"marker-azul3.p";
+if (true) break;
+
+case 40:
+//if
+this.state = 45;
+if (_esteazul==4) {
+this.state = 42;
+;}if (true) break;
+
+case 42:
+//C
+this.state = 45;
+_esteazul2 = "marker-azul3.png";
+if (true) break;
+
+case 45:
+//C
+this.state = 46;
+;
+ //BA.debugLineNum = 154;BA.debugLine="If esteAzul = 5 Then esteAzul2= \"marker-azul4.p";
+if (true) break;
+
+case 46:
+//if
+this.state = 51;
+if (_esteazul==5) {
+this.state = 48;
+;}if (true) break;
+
+case 48:
+//C
+this.state = 51;
+_esteazul2 = "marker-azul4.png";
+if (true) break;
+
+case 51:
+//C
+this.state = 128;
+;
+ //BA.debugLineNum = 159;BA.debugLine="MARK_AZUL = gmap.AddMarker3(LatitudRu,LongitudR";
+parent.mostCurrent._mark_azul = parent.mostCurrent._gmap.AddMarker3(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,(android.graphics.Bitmap)(parent.mostCurrent._subs._createbitmapwithnumber /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ (mostCurrent.activityBA,anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),_esteazul2),parent._numserie).getObject()));
+ //BA.debugLineNum = 160;BA.debugLine="MARK_AZUL.Snippet = \"R: \" & ruta & \" - \" & Tien";
+parent.mostCurrent._mark_azul.setSnippet("R: "+parent.mostCurrent._ruta+" - "+parent.mostCurrent._tienda);
+ //BA.debugLineNum = 161;BA.debugLine="rutaAnt = ruta";
+parent.mostCurrent._rutaant = parent.mostCurrent._ruta;
+ if (true) break;
+if (true) break;
+
+case 52:
+//C
+this.state = 53;
+;
+ //BA.debugLineNum = 163;BA.debugLine="c .Close";
+parent._c.Close();
+ //BA.debugLineNum = 164;BA.debugLine="If MARK_AZUL.IsInitialized Then LIST_AZUL.Add(MA";
+if (true) break;
+
+case 53:
+//if
+this.state = 58;
+if (parent.mostCurrent._mark_azul.IsInitialized()) {
+this.state = 55;
+;}if (true) break;
+
+case 55:
+//C
+this.state = 58;
+parent.mostCurrent._list_azul.Add((Object)(parent.mostCurrent._mark_azul.getObject()));
+if (true) break;
+
+case 58:
+//C
+this.state = 59;
+;
+ if (true) break;
+;
+ //BA.debugLineNum = 167;BA.debugLine="If verde = 1 Or todos = 1 Then";
+
+case 59:
+//if
+this.state = 92;
+if ((parent.mostCurrent._verde).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) {
+this.state = 61;
+}else {
+this.state = 77;
+}if (true) break;
+
+case 61:
+//C
+this.state = 62;
+ //BA.debugLineNum = 168;BA.debugLine="rutaAnt = \"\"";
+parent.mostCurrent._rutaant = "";
+ //BA.debugLineNum = 169;BA.debugLine="c2.IsInitialized";
+parent._c2.IsInitialized();
+ //BA.debugLineNum = 170;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,";
+parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")));
+ //BA.debugLineNum = 171;BA.debugLine="For i = 0 To c2.RowCount -1";
+if (true) break;
+
+case 62:
+//for
+this.state = 75;
+step49 = 1;
+limit49 = (int) (parent._c2.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 129;
+if (true) break;
+
+case 129:
+//C
+this.state = 75;
+if ((step49 > 0 && _i <= limit49) || (step49 < 0 && _i >= limit49)) this.state = 64;
+if (true) break;
+
+case 130:
+//C
+this.state = 129;
+_i = ((int)(0 + _i + step49)) ;
+if (true) break;
+
+case 64:
+//C
+this.state = 65;
+ //BA.debugLineNum = 172;BA.debugLine="c2.Position = i";
+parent._c2.setPosition(_i);
+ //BA.debugLineNum = 173;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")";
+parent._longitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG")));
+ //BA.debugLineNum = 174;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")";
+parent._latitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT")));
+ //BA.debugLineNum = 175;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")";
+parent.mostCurrent._codigo = parent._c2.GetString("CAT_CL_CODIGO");
+ //BA.debugLineNum = 176;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")";
+parent.mostCurrent._tienda = parent._c2.GetString("CAT_CL_NOMBRE");
+ //BA.debugLineNum = 177;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")";
+parent.mostCurrent._ruta = parent._c2.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 178;BA.debugLine="If c2.GetString(\"SECUENCIA\") = \"null\" Then";
+if (true) break;
+
+case 65:
+//if
+this.state = 70;
+if ((parent._c2.GetString("SECUENCIA")).equals("null")) {
+this.state = 67;
+}else {
+this.state = 69;
+}if (true) break;
+
+case 67:
+//C
+this.state = 70;
+ //BA.debugLineNum = 179;BA.debugLine="NumSerie = 0";
+parent._numserie = (int) (0);
+ if (true) break;
+
+case 69:
+//C
+this.state = 70;
+ //BA.debugLineNum = 181;BA.debugLine="NumSerie = c2.GetString(\"SECUENCIA\")";
+parent._numserie = (int)(Double.parseDouble(parent._c2.GetString("SECUENCIA")));
+ if (true) break;
+
+case 70:
+//C
+this.state = 71;
+;
+ //BA.debugLineNum = 183;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\"";
+_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select indice from waypoints where codigo = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent.mostCurrent._codigo))+"'"))));
+ //BA.debugLineNum = 184;BA.debugLine="If s.RowCount > 0 Then";
+if (true) break;
+
+case 71:
+//if
+this.state = 74;
+if (_s.getRowCount()>0) {
+this.state = 73;
+}if (true) break;
+
+case 73:
+//C
+this.state = 74;
+ //BA.debugLineNum = 185;BA.debugLine="s.Position = 0";
+_s.setPosition((int) (0));
+ //BA.debugLineNum = 186;BA.debugLine="NumSerie = s.GetString(\"indice\")";
+parent._numserie = (int)(Double.parseDouble(_s.GetString("indice")));
+ if (true) break;
+
+case 74:
+//C
+this.state = 130;
+;
+ //BA.debugLineNum = 188;BA.debugLine="MARK_VERDE = gmap.AddMarker3(LatitudRu,Longitud";
+parent.mostCurrent._mark_verde = parent.mostCurrent._gmap.AddMarker3(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,(android.graphics.Bitmap)(parent.mostCurrent._subs._createbitmapwithnumber /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ (mostCurrent.activityBA,anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"marker-verde.png"),parent._numserie).getObject()));
+ //BA.debugLineNum = 190;BA.debugLine="MARK_VERDE.Snippet = \"R:\" & ruta & \", \" & Tiend";
+parent.mostCurrent._mark_verde.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda);
+ if (true) break;
+if (true) break;
+
+case 75:
+//C
+this.state = 92;
+;
+ if (true) break;
+
+case 77:
+//C
+this.state = 78;
+ //BA.debugLineNum = 193;BA.debugLine="If verde = 1 Or todos = 1 Then";
+if (true) break;
+
+case 78:
+//if
+this.state = 91;
+if ((parent.mostCurrent._verde).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) {
+this.state = 80;
+}if (true) break;
+
+case 80:
+//C
+this.state = 81;
+ //BA.debugLineNum = 194;BA.debugLine="rutaAnt = \"\"";
+parent.mostCurrent._rutaant = "";
+ //BA.debugLineNum = 195;BA.debugLine="c2.IsInitialized";
+parent._c2.IsInitialized();
+ //BA.debugLineNum = 196;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO";
+parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")));
+ //BA.debugLineNum = 197;BA.debugLine="For i = 0 To c2.RowCount -1";
+if (true) break;
+
+case 81:
+//for
+this.state = 84;
+step74 = 1;
+limit74 = (int) (parent._c2.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 131;
+if (true) break;
+
+case 131:
+//C
+this.state = 84;
+if ((step74 > 0 && _i <= limit74) || (step74 < 0 && _i >= limit74)) this.state = 83;
+if (true) break;
+
+case 132:
+//C
+this.state = 131;
+_i = ((int)(0 + _i + step74)) ;
+if (true) break;
+
+case 83:
+//C
+this.state = 132;
+ //BA.debugLineNum = 198;BA.debugLine="c2.Position = i";
+parent._c2.setPosition(_i);
+ //BA.debugLineNum = 199;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")";
+parent._longitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG")));
+ //BA.debugLineNum = 200;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")";
+parent._latitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT")));
+ //BA.debugLineNum = 201;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")";
+parent.mostCurrent._codigo = parent._c2.GetString("CAT_CL_CODIGO");
+ //BA.debugLineNum = 202;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")";
+parent.mostCurrent._tienda = parent._c2.GetString("CAT_CL_NOMBRE");
+ //BA.debugLineNum = 203;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")";
+parent.mostCurrent._ruta = parent._c2.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 204;BA.debugLine="MARK_VERDE = gmap.AddMarker2(LatitudRu,Longitu";
+parent.mostCurrent._mark_verde = parent.mostCurrent._gmap.AddMarker2(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,parent.mostCurrent._gmap.HUE_GREEN);
+ //BA.debugLineNum = 205;BA.debugLine="MARK_VERDE.Snippet = \"R:\" & ruta & \", \" & Tien";
+parent.mostCurrent._mark_verde.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda);
+ if (true) break;
+if (true) break;
+
+case 84:
+//C
+this.state = 85;
+;
+ //BA.debugLineNum = 207;BA.debugLine="c2 .Close";
+parent._c2.Close();
+ //BA.debugLineNum = 208;BA.debugLine="If MARK_VERDE.IsInitialized Then LIST_VERDE.Add";
+if (true) break;
+
+case 85:
+//if
+this.state = 90;
+if (parent.mostCurrent._mark_verde.IsInitialized()) {
+this.state = 87;
+;}if (true) break;
+
+case 87:
+//C
+this.state = 90;
+parent.mostCurrent._list_verde.Add((Object)(parent.mostCurrent._mark_verde.getObject()));
+if (true) break;
+
+case 90:
+//C
+this.state = 91;
+;
+ if (true) break;
+
+case 91:
+//C
+this.state = 92;
+;
+ if (true) break;
+
+case 92:
+//C
+this.state = 93;
+;
+ //BA.debugLineNum = 212;BA.debugLine="Private esteRojo As Int = 0";
+_esterojo = (int) (0);
+ //BA.debugLineNum = 213;BA.debugLine="Private esteRojo2 As String";
+_esterojo2 = "";
+ //BA.debugLineNum = 214;BA.debugLine="If rojo = 1 Or todos = 1 Then";
+if (true) break;
+
+case 93:
+//if
+this.state = 125;
+if ((parent.mostCurrent._rojo).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) {
+this.state = 95;
+}else {
+this.state = 111;
+}if (true) break;
+
+case 95:
+//C
+this.state = 96;
+ //BA.debugLineNum = 215;BA.debugLine="rutaAnt = \"\"";
+parent.mostCurrent._rutaant = "";
+ //BA.debugLineNum = 216;BA.debugLine="c3.IsInitialized";
+parent._c3.IsInitialized();
+ //BA.debugLineNum = 217;BA.debugLine="c3=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,";
+parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")));
+ //BA.debugLineNum = 218;BA.debugLine="For i = 0 To c3.RowCount -1";
+if (true) break;
+
+case 96:
+//for
+this.state = 109;
+step94 = 1;
+limit94 = (int) (parent._c3.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 133;
+if (true) break;
+
+case 133:
+//C
+this.state = 109;
+if ((step94 > 0 && _i <= limit94) || (step94 < 0 && _i >= limit94)) this.state = 98;
+if (true) break;
+
+case 134:
+//C
+this.state = 133;
+_i = ((int)(0 + _i + step94)) ;
+if (true) break;
+
+case 98:
+//C
+this.state = 99;
+ //BA.debugLineNum = 219;BA.debugLine="c3.Position = i";
+parent._c3.setPosition(_i);
+ //BA.debugLineNum = 220;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")";
+parent._longitudru = parent._c3.GetDouble("CAT_CL_LONG");
+ //BA.debugLineNum = 221;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")";
+parent._latitudru = parent._c3.GetDouble("CAT_CL_LAT");
+ //BA.debugLineNum = 222;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")";
+parent.mostCurrent._tienda = parent._c3.GetString("CAT_CL_NOMBRE");
+ //BA.debugLineNum = 223;BA.debugLine="ruta = c3.GetString(\"CAT_CL_RUTA\")";
+parent.mostCurrent._ruta = parent._c3.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 224;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")";
+parent.mostCurrent._codigo = parent._c3.GetString("CAT_CL_CODIGO");
+ //BA.debugLineNum = 225;BA.debugLine="If c3.GetString(\"SECUENCIA\") = \"null\" Then";
+if (true) break;
+
+case 99:
+//if
+this.state = 104;
+if ((parent._c3.GetString("SECUENCIA")).equals("null")) {
+this.state = 101;
+}else {
+this.state = 103;
+}if (true) break;
+
+case 101:
+//C
+this.state = 104;
+ //BA.debugLineNum = 226;BA.debugLine="NumSerie = 0";
+parent._numserie = (int) (0);
+ if (true) break;
+
+case 103:
+//C
+this.state = 104;
+ //BA.debugLineNum = 228;BA.debugLine="NumSerie = c3.GetString(\"SECUENCIA\")";
+parent._numserie = (int)(Double.parseDouble(parent._c3.GetString("SECUENCIA")));
+ if (true) break;
+
+case 104:
+//C
+this.state = 105;
+;
+ //BA.debugLineNum = 230;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\"";
+_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select indice from waypoints where codigo = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent.mostCurrent._codigo))+"'"))));
+ //BA.debugLineNum = 231;BA.debugLine="If s.RowCount > 0 Then";
+if (true) break;
+
+case 105:
+//if
+this.state = 108;
+if (_s.getRowCount()>0) {
+this.state = 107;
+}if (true) break;
+
+case 107:
+//C
+this.state = 108;
+ //BA.debugLineNum = 232;BA.debugLine="s.Position = 0";
+_s.setPosition((int) (0));
+ //BA.debugLineNum = 233;BA.debugLine="NumSerie = s.GetString(\"indice\")";
+parent._numserie = (int)(Double.parseDouble(_s.GetString("indice")));
+ if (true) break;
+
+case 108:
+//C
+this.state = 134;
+;
+ //BA.debugLineNum = 235;BA.debugLine="MARK_ROJO = gmap.AddMarker3(LatitudRu,LongitudR";
+parent.mostCurrent._mark_rojo = parent.mostCurrent._gmap.AddMarker3(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,(android.graphics.Bitmap)(parent.mostCurrent._subs._createbitmapwithnumber /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ (mostCurrent.activityBA,anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"marker-rojo.png"),parent._numserie).getObject()));
+ //BA.debugLineNum = 238;BA.debugLine="MARK_ROJO.Snippet= \"R:\" & ruta & \", \" & Tienda";
+parent.mostCurrent._mark_rojo.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda);
+ if (true) break;
+if (true) break;
+
+case 109:
+//C
+this.state = 125;
+;
+ if (true) break;
+
+case 111:
+//C
+this.state = 112;
+ //BA.debugLineNum = 241;BA.debugLine="If rojo = 1 Or todos = 1 Then";
+if (true) break;
+
+case 112:
+//if
+this.state = 124;
+if ((parent.mostCurrent._rojo).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) {
+this.state = 114;
+}if (true) break;
+
+case 114:
+//C
+this.state = 115;
+ //BA.debugLineNum = 242;BA.debugLine="rutaAnt = \"\"";
+parent.mostCurrent._rutaant = "";
+ //BA.debugLineNum = 243;BA.debugLine="c3.IsInitialized";
+parent._c3.IsInitialized();
+ //BA.debugLineNum = 244;BA.debugLine="c3=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO";
+parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO <> 63403 order by CAT_CL_RUTA")));
+ //BA.debugLineNum = 245;BA.debugLine="For i = 0 To c3.RowCount -1";
+if (true) break;
+
+case 115:
+//for
+this.state = 118;
+step119 = 1;
+limit119 = (int) (parent._c3.getRowCount()-1);
+_i = (int) (0) ;
+this.state = 135;
+if (true) break;
+
+case 135:
+//C
+this.state = 118;
+if ((step119 > 0 && _i <= limit119) || (step119 < 0 && _i >= limit119)) this.state = 117;
+if (true) break;
+
+case 136:
+//C
+this.state = 135;
+_i = ((int)(0 + _i + step119)) ;
+if (true) break;
+
+case 117:
+//C
+this.state = 136;
+ //BA.debugLineNum = 246;BA.debugLine="c3.Position = i";
+parent._c3.setPosition(_i);
+ //BA.debugLineNum = 247;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")";
+parent._longitudru = parent._c3.GetDouble("CAT_CL_LONG");
+ //BA.debugLineNum = 248;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")";
+parent._latitudru = parent._c3.GetDouble("CAT_CL_LAT");
+ //BA.debugLineNum = 249;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")";
+parent.mostCurrent._tienda = parent._c3.GetString("CAT_CL_NOMBRE");
+ //BA.debugLineNum = 250;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")";
+parent.mostCurrent._ruta = parent._c2.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 251;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")";
+parent.mostCurrent._codigo = parent._c3.GetString("CAT_CL_CODIGO");
+ //BA.debugLineNum = 252;BA.debugLine="MARK_ROJO = gmap.AddMarker2(LatitudRu,Longitud";
+parent.mostCurrent._mark_rojo = parent.mostCurrent._gmap.AddMarker2(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,parent.mostCurrent._gmap.HUE_RED);
+ //BA.debugLineNum = 253;BA.debugLine="MARK_ROJO.Snippet= \"R:\" & ruta & \", \" & Tienda";
+parent.mostCurrent._mark_rojo.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda);
+ if (true) break;
+if (true) break;
+;
+ //BA.debugLineNum = 255;BA.debugLine="If MARK_ROJO.IsInitialized Then LIST_ROJO.Add(M";
+
+case 118:
+//if
+this.state = 123;
+if (parent.mostCurrent._mark_rojo.IsInitialized()) {
+this.state = 120;
+;}if (true) break;
+
+case 120:
+//C
+this.state = 123;
+parent.mostCurrent._list_rojo.Add((Object)(parent.mostCurrent._mark_rojo.getObject()));
+if (true) break;
+
+case 123:
+//C
+this.state = 124;
+;
+ //BA.debugLineNum = 256;BA.debugLine="c3.Close";
+parent._c3.Close();
+ if (true) break;
+
+case 124:
+//C
+this.state = 125;
+;
+ if (true) break;
+
+case 125:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 264;BA.debugLine="Dim aa As CameraPosition";
+_aa = new anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper();
+ //BA.debugLineNum = 265;BA.debugLine="aa.Initialize(LatitudRu,LongitudRU,15)''' RECOMEN";
+_aa.Initialize(parent._latitudru,parent._longitudru,(float) (15));
+ //BA.debugLineNum = 266;BA.debugLine="gmap.AnimateCamera(aa)";
+parent.mostCurrent._gmap.AnimateCamera((com.google.android.gms.maps.model.CameraPosition)(_aa.getObject()));
+ //BA.debugLineNum = 269;BA.debugLine="Dim OnInfoWindowClickListener1 As OnInfoWindowCli";
+parent.mostCurrent._oninfowindowclicklistener1 = new uk.co.martinpearman.b4a.com.google.android.gms.maps.googlemap.OnInfoWindowClickListener();
+ //BA.debugLineNum = 270;BA.debugLine="OnInfoWindowClickListener1.Initialize(\"OnInfoWind";
+parent.mostCurrent._oninfowindowclicklistener1.Initialize(mostCurrent.activityBA,"OnInfoWindowClickListener1");
+ //BA.debugLineNum = 271;BA.debugLine="GoogleMapEXTRA.SetOnInfoWindowClickListener(gmap,";
+parent.mostCurrent._googlemapextra.SetOnInfoWindowClickListener((com.google.android.gms.maps.GoogleMap)(parent.mostCurrent._gmap.getObject()),(com.google.android.gms.maps.GoogleMap.OnInfoWindowClickListener)(parent.mostCurrent._oninfowindowclicklistener1.getObject()));
+ //BA.debugLineNum = 272;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public static void _activity_permissionresult(String _permission,boolean _result) throws Exception{
+}
+public static String _oninfowindowclicklistener1_click(anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper _marker1) throws Exception{
+ //BA.debugLineNum = 275;BA.debugLine="Sub OnInfoWindowClickListener1_click(Marker1 As Ma";
+ //BA.debugLineNum = 276;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
+ //BA.debugLineNum = 277;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_marker1.getTitle())}));
+ //BA.debugLineNum = 278;BA.debugLine="Activity.Finish";
+mostCurrent._activity.Finish();
+ //BA.debugLineNum = 279;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
+mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente");
+ //BA.debugLineNum = 280;BA.debugLine="End Sub";
+return "";
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 7;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Dim GPS As GPS";
+_gps = new anywheresoftware.b4a.gps.GPS();
+ //BA.debugLineNum = 9;BA.debugLine="Dim rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 11;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 12;BA.debugLine="Dim c2 As Cursor";
+_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 13;BA.debugLine="Dim c22 As Cursor";
+_c22 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 14;BA.debugLine="Dim c3 As Cursor";
+_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/newinst2.java b/B4A/Objects/src/reparto_izca/keymon/lat/newinst2.java
new file mode 100644
index 0000000..317ddd9
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/newinst2.java
@@ -0,0 +1,228 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.objects.ServiceHelper;
+import anywheresoftware.b4a.debug.*;
+
+public class newinst2 extends android.app.Service{
+ public static class newinst2_BR extends android.content.BroadcastReceiver {
+
+ @Override
+ public void onReceive(android.content.Context context, android.content.Intent intent) {
+ BA.LogInfo("** Receiver (newinst2) OnReceive **");
+ android.content.Intent in = new android.content.Intent(context, newinst2.class);
+ if (intent != null)
+ in.putExtra("b4a_internal_intent", intent);
+ ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, false, BA.class);
+ }
+
+ }
+ static newinst2 mostCurrent;
+ public static BA processBA;
+ private ServiceHelper _service;
+ public static Class> getObject() {
+ return newinst2.class;
+ }
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.newinst2");
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ }
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ processBA.loadHtSubs(this.getClass());
+ ServiceHelper.init();
+ }
+ _service = new ServiceHelper(this);
+ processBA.service = this;
+
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.newinst2", processBA, _service, anywheresoftware.b4a.keywords.Common.Density);
+ }
+ if (!false && ServiceHelper.StarterHelper.startFromServiceCreate(processBA, false) == false) {
+
+ }
+ else {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("*** Service (newinst2) Create ***");
+ processBA.raiseEvent(null, "service_create");
+ }
+ processBA.runHook("oncreate", this, null);
+ if (false) {
+ if (ServiceHelper.StarterHelper.runWaitForLayouts() == false) {
+ BA.LogInfo("stopping spontaneous created service");
+ stopSelf();
+ }
+ }
+ }
+ @Override
+ public void onStart(android.content.Intent intent, int startId) {
+ onStartCommand(intent, 0, 0);
+ }
+ @Override
+ public int onStartCommand(final android.content.Intent intent, int flags, int startId) {
+ if (ServiceHelper.StarterHelper.onStartCommand(processBA, new Runnable() {
+ public void run() {
+ handleStart(intent);
+ }}))
+ ;
+ else {
+ ServiceHelper.StarterHelper.addWaitForLayout (new Runnable() {
+ public void run() {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Service (newinst2) Create **");
+ processBA.raiseEvent(null, "service_create");
+ handleStart(intent);
+ ServiceHelper.StarterHelper.removeWaitForLayout();
+ }
+ });
+ }
+ processBA.runHook("onstartcommand", this, new Object[] {intent, flags, startId});
+ return android.app.Service.START_NOT_STICKY;
+ }
+ public void onTaskRemoved(android.content.Intent rootIntent) {
+ super.onTaskRemoved(rootIntent);
+ if (false)
+ processBA.raiseEvent(null, "service_taskremoved");
+
+ }
+ private void handleStart(android.content.Intent intent) {
+ BA.LogInfo("** Service (newinst2) Start **");
+ java.lang.reflect.Method startEvent = processBA.htSubs.get("service_start");
+ if (startEvent != null) {
+ if (startEvent.getParameterTypes().length > 0) {
+ anywheresoftware.b4a.objects.IntentWrapper iw = ServiceHelper.StarterHelper.handleStartIntent(intent, _service, processBA);
+ processBA.raiseEvent(null, "service_start", iw);
+ }
+ else {
+ processBA.raiseEvent(null, "service_start");
+ }
+ }
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ if (false) {
+ BA.LogInfo("** Service (newinst2) Destroy (ignored)**");
+ }
+ else {
+ BA.LogInfo("** Service (newinst2) Destroy **");
+ processBA.raiseEvent(null, "service_destroy");
+ processBA.service = null;
+ mostCurrent = null;
+ processBA.setActivityPaused(true);
+ processBA.runHook("ondestroy", this, null);
+ }
+ }
+
+@Override
+ public android.os.IBinder onBind(android.content.Intent intent) {
+ return null;
+ }public anywheresoftware.b4a.keywords.Common __c = null;
+public static String _pkg = "";
+public static boolean _svcverbose = false;
+public static int _logcolor1 = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static String _getpackagename() throws Exception{
+anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
+ //BA.debugLineNum = 38;BA.debugLine="Sub GetPackageName As String";
+ //BA.debugLineNum = 39;BA.debugLine="Dim r As Reflector";
+_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
+ //BA.debugLineNum = 40;BA.debugLine="Return r.GetStaticField(\"anywheresoftware.b4a.BA\"";
+if (true) return BA.ObjectToString(_r.GetStaticField("anywheresoftware.b4a.BA","packageName"));
+ //BA.debugLineNum = 41;BA.debugLine="End Sub";
+return "";
+}
+public static String _myappreload() throws Exception{
+ //BA.debugLineNum = 43;BA.debugLine="Sub MyAppReload";
+ //BA.debugLineNum = 44;BA.debugLine="If svcVerbose Then Log(\"-- AppUpdating.NewInst2:";
+if (_svcverbose) {
+anywheresoftware.b4a.keywords.Common.LogImpl("540894465","-- AppUpdating.NewInst2: processing MyAppReload",0);};
+ //BA.debugLineNum = 45;BA.debugLine="If IsPaused(\"main\") Then";
+if (anywheresoftware.b4a.keywords.Common.IsPaused(processBA,(Object)("main"))) {
+ //BA.debugLineNum = 46;BA.debugLine="StartActivity(\"main\")";
+anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)("main"));
+ };
+ //BA.debugLineNum = 50;BA.debugLine="End Sub";
+return "";
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 5;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 8;BA.debugLine="Dim pkg As String 'app's package name";
+_pkg = "";
+ //BA.debugLineNum = 9;BA.debugLine="Dim svcVerbose As Boolean 'True = shows start";
+_svcverbose = false;
+ //BA.debugLineNum = 10;BA.debugLine="Private LogColor1 As Int = 0xFFFF8C00 'color for";
+_logcolor1 = ((int)0xffff8c00);
+ //BA.debugLineNum = 11;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_create() throws Exception{
+ //BA.debugLineNum = 13;BA.debugLine="Sub Service_Create";
+ //BA.debugLineNum = 14;BA.debugLine="LogColor(\"---- AppUpdating.newinst2: service crea";
+anywheresoftware.b4a.keywords.Common.LogImpl("540632321","---- AppUpdating.newinst2: service created",_logcolor1);
+ //BA.debugLineNum = 15;BA.debugLine="pkg = \"\"";
+_pkg = "";
+ //BA.debugLineNum = 16;BA.debugLine="svcVerbose = False";
+_svcverbose = anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 17;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_destroy() throws Exception{
+ //BA.debugLineNum = 35;BA.debugLine="Sub Service_Destroy";
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
+ //BA.debugLineNum = 19;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
+ //BA.debugLineNum = 20;BA.debugLine="LogColor(\"---- AppUpdating.newinst2: service_star";
+anywheresoftware.b4a.keywords.Common.LogImpl("540697857","---- AppUpdating.newinst2: service_started",_logcolor1);
+ //BA.debugLineNum = 21;BA.debugLine="If svcVerbose Then";
+if (_svcverbose) {
+ //BA.debugLineNum = 22;BA.debugLine="Log($\"${TAB}intent: ${StartingIntent}\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("540697859",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"intent: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getObject()))+""),0);
+ //BA.debugLineNum = 23;BA.debugLine="Log($\"${TAB}action: ${StartingIntent.Action}\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("540697860",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"action: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getAction()))+""),0);
+ //BA.debugLineNum = 24;BA.debugLine="Log($\"${TAB}extra: ${StartingIntent.ExtrasToStri";
+anywheresoftware.b4a.keywords.Common.LogImpl("540697861",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"extra: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.ExtrasToString()))+""),0);
+ //BA.debugLineNum = 25;BA.debugLine="Log($\"${TAB}data: ${StartingIntent.GetData}\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("540697862",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.GetData()))+""),0);
+ };
+ //BA.debugLineNum = 27;BA.debugLine="If StartingIntent.Action = \"android.intent.action";
+if ((_startingintent.getAction()).equals("android.intent.action.MY_PACKAGE_REPLACED")) {
+ //BA.debugLineNum = 28;BA.debugLine="If svcVerbose Then Log($\"${TAB}Intent MY_PACKAGE";
+if (_svcverbose) {
+anywheresoftware.b4a.keywords.Common.LogImpl("540697865",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"Intent MY_PACKAGE_REPLACED received!"),0);};
+ //BA.debugLineNum = 29;BA.debugLine="pkg = GetPackageName";
+_pkg = _getpackagename();
+ //BA.debugLineNum = 30;BA.debugLine="If svcVerbose Then Log($\"${TAB}package: ${pkg}\"$";
+if (_svcverbose) {
+anywheresoftware.b4a.keywords.Common.LogImpl("540697867",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"package: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pkg))+""),0);};
+ //BA.debugLineNum = 31;BA.debugLine="MyAppReload";
+_myappreload();
+ };
+ //BA.debugLineNum = 33;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/roundslider.java b/B4A/Objects/src/reparto_izca/keymon/lat/roundslider.java
new file mode 100644
index 0000000..17f0b80
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/roundslider.java
@@ -0,0 +1,394 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class roundslider extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.roundslider");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.roundslider.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public int _mvalue = 0;
+public int _mmin = 0;
+public int _mmax = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _thumb = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+public anywheresoftware.b4a.objects.B4XCanvas.B4XRect _circlerect = null;
+public int _valuecolor = 0;
+public int _stroke = 0;
+public int _thumbsize = 0;
+public Object _tag = null;
+public int _mthumbbordercolor = 0;
+public int _mthumbinnercolor = 0;
+public int _mcirclefillcolor = 0;
+public int _mcirclenonvaluecolor = 0;
+public boolean _mrollover = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 89;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 90;BA.debugLine="cvs.Resize(Width, Height)";
+_cvs.Resize((float) (_width),(float) (_height));
+ //BA.debugLineNum = 91;BA.debugLine="pnl.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 92;BA.debugLine="If thumb.IsInitialized = False Then CreateThumb";
+if (_thumb.IsInitialized()==__c.False) {
+_createthumb();};
+ //BA.debugLineNum = 93;BA.debugLine="CircleRect.Initialize(ThumbSize + stroke, ThumbSi";
+_circlerect.Initialize((float) (_thumbsize+_stroke),(float) (_thumbsize+_stroke),(float) (_width-_thumbsize-_stroke),(float) (_height-_thumbsize-_stroke));
+ //BA.debugLineNum = 94;BA.debugLine="xlbl.SetLayoutAnimated(0, CircleRect.Left, Circle";
+_xlbl.SetLayoutAnimated((int) (0),(int) (_circlerect.getLeft()),(int) (_circlerect.getTop()),(int) (_circlerect.getWidth()),(int) (_circlerect.getHeight()));
+ //BA.debugLineNum = 95;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 96;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 6;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 7;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 8;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 9;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 10;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 11;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 12;BA.debugLine="Private mValue As Int = 75";
+_mvalue = (int) (75);
+ //BA.debugLineNum = 13;BA.debugLine="Private mMin, mMax As Int";
+_mmin = 0;
+_mmax = 0;
+ //BA.debugLineNum = 14;BA.debugLine="Private thumb As B4XBitmap";
+_thumb = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
+ //BA.debugLineNum = 15;BA.debugLine="Private pnl As B4XView";
+_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 16;BA.debugLine="Private xlbl As B4XView";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 17;BA.debugLine="Private CircleRect As B4XRect";
+_circlerect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 18;BA.debugLine="Private ValueColor As Int";
+_valuecolor = 0;
+ //BA.debugLineNum = 19;BA.debugLine="Private stroke As Int";
+_stroke = 0;
+ //BA.debugLineNum = 20;BA.debugLine="Private ThumbSize As Int";
+_thumbsize = 0;
+ //BA.debugLineNum = 21;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 22;BA.debugLine="Private mThumbBorderColor As Int = 0xFF5B5B5B";
+_mthumbbordercolor = ((int)0xff5b5b5b);
+ //BA.debugLineNum = 23;BA.debugLine="Private mThumbInnerColor As Int = xui.Color_White";
+_mthumbinnercolor = _xui.Color_White;
+ //BA.debugLineNum = 24;BA.debugLine="Private mCircleFillColor As Int = xui.Color_White";
+_mcirclefillcolor = _xui.Color_White;
+ //BA.debugLineNum = 25;BA.debugLine="Private mCircleNonValueColor As Int = 0xFFB6B6B6";
+_mcirclenonvaluecolor = ((int)0xffb6b6b6);
+ //BA.debugLineNum = 26;BA.debugLine="Private mRollOver As Boolean";
+_mrollover = false;
+ //BA.debugLineNum = 27;BA.debugLine="End Sub";
+return "";
+}
+public String _createthumb() throws Exception{
+b4a.example.bcpath _p = null;
+int _r = 0;
+int _g = 0;
+int _l = 0;
+b4a.example.bitmapcreator _bc = null;
+ //BA.debugLineNum = 70;BA.debugLine="Private Sub CreateThumb";
+ //BA.debugLineNum = 71;BA.debugLine="Dim p As BCPath";
+_p = new b4a.example.bcpath();
+ //BA.debugLineNum = 72;BA.debugLine="Dim r As Int = 80dip";
+_r = __c.DipToCurrent((int) (80));
+ //BA.debugLineNum = 73;BA.debugLine="Dim g As Int = 8dip";
+_g = __c.DipToCurrent((int) (8));
+ //BA.debugLineNum = 74;BA.debugLine="Dim l As Int = 28dip";
+_l = __c.DipToCurrent((int) (28));
+ //BA.debugLineNum = 75;BA.debugLine="Dim bc As BitmapCreator";
+_bc = new b4a.example.bitmapcreator();
+ //BA.debugLineNum = 76;BA.debugLine="bc.Initialize(2 * r + g + 3dip, 2 * r + l + g)";
+_bc._initialize(ba,(int) (2*_r+_g+__c.DipToCurrent((int) (3))),(int) (2*_r+_l+_g));
+ //BA.debugLineNum = 77;BA.debugLine="p.Initialize(r - l + g, 2 * r - 2dip + g)";
+_p._initialize(ba,(float) (_r-_l+_g),(float) (2*_r-__c.DipToCurrent((int) (2))+_g));
+ //BA.debugLineNum = 78;BA.debugLine="p.LineTo(r + l + g, 2 * r - 2dip + g)";
+_p._lineto((float) (_r+_l+_g),(float) (2*_r-__c.DipToCurrent((int) (2))+_g));
+ //BA.debugLineNum = 79;BA.debugLine="p.LineTo(r + g, 2 * r + l + g)";
+_p._lineto((float) (_r+_g),(float) (2*_r+_l+_g));
+ //BA.debugLineNum = 80;BA.debugLine="p.LineTo(r - l + g, 2 * r - 2dip + g)";
+_p._lineto((float) (_r-_l+_g),(float) (2*_r-__c.DipToCurrent((int) (2))+_g));
+ //BA.debugLineNum = 81;BA.debugLine="bc.DrawPath(p, mThumbBorderColor, True, 0)";
+_bc._drawpath(_p,_mthumbbordercolor,__c.True,(int) (0));
+ //BA.debugLineNum = 82;BA.debugLine="bc.DrawCircle(r + g, r + g, r, mThumbInnerColor,";
+_bc._drawcircle((float) (_r+_g),(float) (_r+_g),(float) (_r),_mthumbinnercolor,__c.True,(int) (0));
+ //BA.debugLineNum = 83;BA.debugLine="bc.DrawCircle(r + g, r + g, r, mThumbBorderColor,";
+_bc._drawcircle((float) (_r+_g),(float) (_r+_g),(float) (_r),_mthumbbordercolor,__c.False,__c.DipToCurrent((int) (10)));
+ //BA.debugLineNum = 84;BA.debugLine="thumb = bc.Bitmap";
+_thumb = _bc._getbitmap();
+ //BA.debugLineNum = 85;BA.debugLine="ThumbSize = thumb.Height / 4";
+_thumbsize = (int) (_thumb.getHeight()/(double)4);
+ //BA.debugLineNum = 86;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_xlbl.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 87;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+ //BA.debugLineNum = 35;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 36;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 37;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 37;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 38;BA.debugLine="cvs.Initialize(mBase)";
+_cvs.Initialize(_mbase);
+ //BA.debugLineNum = 39;BA.debugLine="mMin = Props.Get(\"Min\")";
+_mmin = (int)(BA.ObjectToNumber(_props.Get((Object)("Min"))));
+ //BA.debugLineNum = 40;BA.debugLine="mMax = Props.Get(\"Max\")";
+_mmax = (int)(BA.ObjectToNumber(_props.Get((Object)("Max"))));
+ //BA.debugLineNum = 41;BA.debugLine="mValue = mMin";
+_mvalue = _mmin;
+ //BA.debugLineNum = 42;BA.debugLine="pnl = xui.CreatePanel(\"pnl\")";
+_pnl = _xui.CreatePanel(ba,"pnl");
+ //BA.debugLineNum = 43;BA.debugLine="xlbl = Lbl";
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 44;BA.debugLine="xlbl.Visible = True";
+_xlbl.setVisible(__c.True);
+ //BA.debugLineNum = 45;BA.debugLine="mBase.AddView(xlbl, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 46;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 47;BA.debugLine="ValueColor = xui.PaintOrColorToColor(Props.Get(\"V";
+_valuecolor = _xui.PaintOrColorToColor(_props.Get((Object)("ValueColor")));
+ //BA.debugLineNum = 48;BA.debugLine="mRollOver = Props.GetDefault(\"RollOver\", False)";
+_mrollover = BA.ObjectToBoolean(_props.GetDefault((Object)("RollOver"),(Object)(__c.False)));
+ //BA.debugLineNum = 49;BA.debugLine="If xui.IsB4A Or xui.IsB4i Then";
+if (_xui.getIsB4A() || _xui.getIsB4i()) {
+ //BA.debugLineNum = 50;BA.debugLine="stroke = 8dip";
+_stroke = __c.DipToCurrent((int) (8));
+ }else if(_xui.getIsB4J()) {
+ //BA.debugLineNum = 52;BA.debugLine="stroke = 6dip";
+_stroke = __c.DipToCurrent((int) (6));
+ };
+ //BA.debugLineNum = 54;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 55;BA.debugLine="End Sub";
+return "";
+}
+public String _draw() throws Exception{
+int _radius = 0;
+anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null;
+int _angle = 0;
+int _b4jstrokeoffset = 0;
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _dest = null;
+int _r = 0;
+int _cx = 0;
+int _cy = 0;
+ //BA.debugLineNum = 98;BA.debugLine="Public Sub Draw";
+ //BA.debugLineNum = 99;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
+_cvs.ClearRect(_cvs.getTargetRect());
+ //BA.debugLineNum = 100;BA.debugLine="Dim radius As Int = CircleRect.Width / 2";
+_radius = (int) (_circlerect.getWidth()/(double)2);
+ //BA.debugLineNum = 101;BA.debugLine="cvs.DrawCircle(CircleRect.CenterX, CircleRect.Cen";
+_cvs.DrawCircle(_circlerect.getCenterX(),_circlerect.getCenterY(),(float) (_radius),_mcirclenonvaluecolor,__c.False,(float) (_stroke));
+ //BA.debugLineNum = 102;BA.debugLine="Dim p As B4XPath";
+_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
+ //BA.debugLineNum = 103;BA.debugLine="Dim angle As Int = (mValue - mMin) / (mMax - mMin";
+_angle = (int) ((_mvalue-_mmin)/(double)(_mmax-_mmin)*360);
+ //BA.debugLineNum = 104;BA.debugLine="Dim B4JStrokeOffset As Int";
+_b4jstrokeoffset = 0;
+ //BA.debugLineNum = 105;BA.debugLine="If xui.IsB4J Then B4JStrokeOffset = stroke / 2";
+if (_xui.getIsB4J()) {
+_b4jstrokeoffset = (int) (_stroke/(double)2);};
+ //BA.debugLineNum = 106;BA.debugLine="If mValue = mMax Then";
+if (_mvalue==_mmax) {
+ //BA.debugLineNum = 107;BA.debugLine="cvs.DrawCircle(CircleRect.CenterX, CircleRect.Ce";
+_cvs.DrawCircle(_circlerect.getCenterX(),_circlerect.getCenterY(),(float) (_radius),_valuecolor,__c.False,(float) (_stroke));
+ }else {
+ //BA.debugLineNum = 109;BA.debugLine="p.InitializeArc(CircleRect.CenterX, CircleRect.C";
+_p.InitializeArc(_circlerect.getCenterX(),_circlerect.getCenterY(),(float) (_radius+_b4jstrokeoffset),(float) (-90),(float) (_angle));
+ //BA.debugLineNum = 110;BA.debugLine="cvs.DrawPath(p, ValueColor, False, stroke)";
+_cvs.DrawPath(_p,_valuecolor,__c.False,(float) (_stroke));
+ };
+ //BA.debugLineNum = 112;BA.debugLine="cvs.DrawCircle(CircleRect.CenterX, CircleRect.Cen";
+_cvs.DrawCircle(_circlerect.getCenterX(),_circlerect.getCenterY(),(float) (_radius-_b4jstrokeoffset),_mcirclefillcolor,__c.True,(float) (0));
+ //BA.debugLineNum = 113;BA.debugLine="Dim dest As B4XRect";
+_dest = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 114;BA.debugLine="Dim r As Int = radius + ThumbSize / 2 + stroke /";
+_r = (int) (_radius+_thumbsize/(double)2+_stroke/(double)2);
+ //BA.debugLineNum = 115;BA.debugLine="Dim cx As Int = CircleRect.CenterX + r * CosD(ang";
+_cx = (int) (_circlerect.getCenterX()+_r*__c.CosD(_angle-90));
+ //BA.debugLineNum = 116;BA.debugLine="Dim cy As Int = CircleRect.CenterY + r * SinD(ang";
+_cy = (int) (_circlerect.getCenterY()+_r*__c.SinD(_angle-90));
+ //BA.debugLineNum = 117;BA.debugLine="dest.Initialize(cx - thumb.Width / 8, cy - ThumbS";
+_dest.Initialize((float) (_cx-_thumb.getWidth()/(double)8),(float) (_cy-_thumbsize/(double)2),(float) (_cx+_thumb.getWidth()/(double)8),(float) (_cy+_thumbsize/(double)2));
+ //BA.debugLineNum = 118;BA.debugLine="cvs.DrawBitmapRotated(thumb, dest, angle)";
+_cvs.DrawBitmapRotated((android.graphics.Bitmap)(_thumb.getObject()),_dest,(float) (_angle));
+ //BA.debugLineNum = 119;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 120;BA.debugLine="xlbl.Text = mValue";
+_xlbl.setText(BA.ObjectToCharSequence(_mvalue));
+ //BA.debugLineNum = 121;BA.debugLine="End Sub";
+return "";
+}
+public int _getvalue() throws Exception{
+ //BA.debugLineNum = 182;BA.debugLine="Public Sub getValue As Int";
+ //BA.debugLineNum = 183;BA.debugLine="Return mValue";
+if (true) return _mvalue;
+ //BA.debugLineNum = 184;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 29;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 30;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 31;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 32;BA.debugLine="End Sub";
+return "";
+}
+public String _pnl_touch(int _action,float _x,float _y) throws Exception{
+int _dx = 0;
+int _dy = 0;
+float _dist = 0f;
+int _angle = 0;
+int _newvalue = 0;
+ //BA.debugLineNum = 123;BA.debugLine="Private Sub pnl_Touch (Action As Int, X As Float,";
+ //BA.debugLineNum = 124;BA.debugLine="If Action = pnl.TOUCH_ACTION_MOVE_NOTOUCH Then Re";
+if (_action==_pnl.TOUCH_ACTION_MOVE_NOTOUCH) {
+if (true) return "";};
+ //BA.debugLineNum = 125;BA.debugLine="Dim dx As Int = x - CircleRect.CenterX";
+_dx = (int) (_x-_circlerect.getCenterX());
+ //BA.debugLineNum = 126;BA.debugLine="Dim dy As Int = y - CircleRect.CenterY";
+_dy = (int) (_y-_circlerect.getCenterY());
+ //BA.debugLineNum = 127;BA.debugLine="Dim dist As Float = Sqrt(Power(dx, 2) + Power(dy,";
+_dist = (float) (__c.Sqrt(__c.Power(_dx,2)+__c.Power(_dy,2)));
+ //BA.debugLineNum = 128;BA.debugLine="If dist > CircleRect.Width / 2 Then";
+if (_dist>_circlerect.getWidth()/(double)2) {
+ //BA.debugLineNum = 129;BA.debugLine="Dim angle As Int = Round(ATan2D(dy, dx))";
+_angle = (int) (__c.Round(__c.ATan2D(_dy,_dx)));
+ //BA.debugLineNum = 130;BA.debugLine="angle = angle + 90";
+_angle = (int) (_angle+90);
+ //BA.debugLineNum = 131;BA.debugLine="angle = (angle + 360) Mod 360";
+_angle = (int) ((_angle+360)%360);
+ //BA.debugLineNum = 132;BA.debugLine="Dim NewValue As Int = mMin + angle / 360 * (mMax";
+_newvalue = (int) (_mmin+_angle/(double)360*(_mmax-_mmin));
+ //BA.debugLineNum = 133;BA.debugLine="NewValue = Max(mMin, Min(mMax, NewValue))";
+_newvalue = (int) (__c.Max(_mmin,__c.Min(_mmax,_newvalue)));
+ //BA.debugLineNum = 134;BA.debugLine="If NewValue <> mValue Then";
+if (_newvalue!=_mvalue) {
+ //BA.debugLineNum = 135;BA.debugLine="If mRollOver = False Then";
+if (_mrollover==__c.False) {
+ //BA.debugLineNum = 136;BA.debugLine="If Abs(NewValue - mValue) > (mMax - mMin) / 2";
+if (__c.Abs(_newvalue-_mvalue)>(_mmax-_mmin)/(double)2) {
+ //BA.debugLineNum = 137;BA.debugLine="If mValue >= (mMax + mMin) / 2 Then";
+if (_mvalue>=(_mmax+_mmin)/(double)2) {
+ //BA.debugLineNum = 138;BA.debugLine="mValue = mMax";
+_mvalue = _mmax;
+ }else {
+ //BA.debugLineNum = 140;BA.debugLine="mValue = mMin";
+_mvalue = _mmin;
+ };
+ }else {
+ //BA.debugLineNum = 143;BA.debugLine="mValue = NewValue";
+_mvalue = _newvalue;
+ };
+ }else {
+ //BA.debugLineNum = 146;BA.debugLine="mValue = NewValue";
+_mvalue = _newvalue;
+ };
+ //BA.debugLineNum = 148;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Valu";
+if (_xui.SubExists(ba,_mcallback,_meventname+"_ValueChanged",(int) (1))) {
+ //BA.debugLineNum = 149;BA.debugLine="CallSub2(mCallBack, mEventName & \"_ValueChange";
+__c.CallSubNew2(ba,_mcallback,_meventname+"_ValueChanged",(Object)(_mvalue));
+ };
+ };
+ //BA.debugLineNum = 152;BA.debugLine="Draw";
+_draw();
+ };
+ //BA.debugLineNum = 154;BA.debugLine="End Sub";
+return "";
+}
+public String _setcirclecolor(int _nonvaluecolor,int _innercolor) throws Exception{
+ //BA.debugLineNum = 64;BA.debugLine="Public Sub SetCircleColor (NonValueColor As Int, I";
+ //BA.debugLineNum = 65;BA.debugLine="mCircleNonValueColor = NonValueColor";
+_mcirclenonvaluecolor = _nonvaluecolor;
+ //BA.debugLineNum = 66;BA.debugLine="mCircleFillColor = InnerColor";
+_mcirclefillcolor = _innercolor;
+ //BA.debugLineNum = 67;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 68;BA.debugLine="End Sub";
+return "";
+}
+public String _setrange(int _newmin,int _newmax) throws Exception{
+ //BA.debugLineNum = 176;BA.debugLine="Public Sub SetRange(NewMin As Int, NewMax As Int)";
+ //BA.debugLineNum = 177;BA.debugLine="mMin = NewMin";
+_mmin = _newmin;
+ //BA.debugLineNum = 178;BA.debugLine="mMax = NewMax";
+_mmax = _newmax;
+ //BA.debugLineNum = 179;BA.debugLine="setValue(mValue)";
+_setvalue(_mvalue);
+ //BA.debugLineNum = 180;BA.debugLine="End Sub";
+return "";
+}
+public String _setthumbcolor(int _bordercolor,int _innercolor) throws Exception{
+ //BA.debugLineNum = 57;BA.debugLine="Public Sub SetThumbColor(BorderColor As Int, Inner";
+ //BA.debugLineNum = 58;BA.debugLine="mThumbBorderColor = BorderColor";
+_mthumbbordercolor = _bordercolor;
+ //BA.debugLineNum = 59;BA.debugLine="mThumbInnerColor = InnerColor";
+_mthumbinnercolor = _innercolor;
+ //BA.debugLineNum = 60;BA.debugLine="CreateThumb";
+_createthumb();
+ //BA.debugLineNum = 61;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 62;BA.debugLine="End Sub";
+return "";
+}
+public String _setvalue(int _v) throws Exception{
+ //BA.debugLineNum = 170;BA.debugLine="Public Sub setValue (v As Int)";
+ //BA.debugLineNum = 171;BA.debugLine="mValue = Max(mMin, Min(mMax, v))";
+_mvalue = (int) (__c.Max(_mmin,__c.Min(_mmax,_v)));
+ //BA.debugLineNum = 172;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 173;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/scrollinglabel.java b/B4A/Objects/src/reparto_izca/keymon/lat/scrollinglabel.java
new file mode 100644
index 0000000..7609c1b
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/scrollinglabel.java
@@ -0,0 +1,423 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class scrollinglabel extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.scrollinglabel");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.scrollinglabel.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public String _mtext = "";
+public int _taskindex = 0;
+public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _fnt = null;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public Object _tag = null;
+public int _widthpersecond = 0;
+public int _startpositiondelay = 0;
+public int _mtextcolor = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+ //BA.debugLineNum = 40;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 41;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width";
+_mbase.GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ //BA.debugLineNum = 42;BA.debugLine="setText(mText)";
+_settext(_mtext);
+ //BA.debugLineNum = 43;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 3;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 4;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 5;BA.debugLine="Public mBase As B4XView";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 6;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 7;BA.debugLine="Private mText As String";
+_mtext = "";
+ //BA.debugLineNum = 8;BA.debugLine="Private taskIndex As Int";
+_taskindex = 0;
+ //BA.debugLineNum = 9;BA.debugLine="Private fnt As B4XFont";
+_fnt = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
+ //BA.debugLineNum = 10;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 11;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 12;BA.debugLine="Public WidthPerSecond As Int = 100dip";
+_widthpersecond = __c.DipToCurrent((int) (100));
+ //BA.debugLineNum = 13;BA.debugLine="Public StartPositionDelay As Int = 1000";
+_startpositiondelay = (int) (1000);
+ //BA.debugLineNum = 14;BA.debugLine="Private mTextColor As Int = xui.Color_Black";
+_mtextcolor = _xui.Color_Black;
+ //BA.debugLineNum = 15;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _l = null;
+ //BA.debugLineNum = 23;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 24;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 25;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 25;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 27;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 28;BA.debugLine="mBase.AddView(p, 0, 0, mBase.Width, mBase.Height)";
+_mbase.AddView((android.view.View)(_p.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 29;BA.debugLine="mText = Lbl.Text";
+_mtext = _lbl.getText();
+ //BA.debugLineNum = 30;BA.debugLine="Dim l As B4XView = Lbl";
+_l = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_l = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 31;BA.debugLine="fnt = l.Font";
+_fnt = _l.getFont();
+ //BA.debugLineNum = 32;BA.debugLine="mTextColor = l.TextColor";
+_mtextcolor = _l.getTextColor();
+ //BA.debugLineNum = 33;BA.debugLine="If mTextColor = xui.Color_Transparent Then mTextC";
+if (_mtextcolor==_xui.Color_Transparent) {
+_mtextcolor = _xui.Color_Black;};
+ //BA.debugLineNum = 34;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 35;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 2dip, 2dip)";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (2)),__c.DipToCurrent((int) (2)));
+ //BA.debugLineNum = 36;BA.debugLine="cvs.Initialize(p)";
+_cvs.Initialize(_p);
+ //BA.debugLineNum = 37;BA.debugLine="setText(mText)";
+_settext(_mtext);
+ //BA.debugLineNum = 38;BA.debugLine="End Sub";
+return "";
+}
+public String _gettext() throws Exception{
+ //BA.debugLineNum = 93;BA.debugLine="Public Sub getText As String";
+ //BA.debugLineNum = 94;BA.debugLine="Return mText";
+if (true) return _mtext;
+ //BA.debugLineNum = 95;BA.debugLine="End Sub";
+return "";
+}
+public int _gettextcolor() throws Exception{
+ //BA.debugLineNum = 126;BA.debugLine="Public Sub getTextColor As Int";
+ //BA.debugLineNum = 127;BA.debugLine="Return mTextColor";
+if (true) return _mtextcolor;
+ //BA.debugLineNum = 128;BA.debugLine="End Sub";
+return 0;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 18;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 19;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 20;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 21;BA.debugLine="End Sub";
+return "";
+}
+public float _measuretextwidth(String _s,anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _font1) throws Exception{
+ //BA.debugLineNum = 117;BA.debugLine="Private Sub MeasureTextWidth(s As String, font1 As";
+ //BA.debugLineNum = 118;BA.debugLine="Return cvs.MeasureText(s, font1).Width";
+if (true) return _cvs.MeasureText(_s,_font1).getWidth();
+ //BA.debugLineNum = 119;BA.debugLine="End Sub";
+return 0f;
+}
+public String _settext(String _t) throws Exception{
+boolean _needtocreatenewlabel = false;
+anywheresoftware.b4a.objects.B4XViewWrapper _parent = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+float _originaltextwidth = 0f;
+anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
+String _duplicatetext = "";
+float _width = 0f;
+ //BA.debugLineNum = 45;BA.debugLine="Public Sub setText(t As String)";
+ //BA.debugLineNum = 46;BA.debugLine="Dim NeedToCreateNewLabel As Boolean = True";
+_needtocreatenewlabel = __c.True;
+ //BA.debugLineNum = 47;BA.debugLine="Dim parent As B4XView = mBase.GetView(0)";
+_parent = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_parent = _mbase.GetView((int) (0));
+ //BA.debugLineNum = 48;BA.debugLine="If parent.NumberOfViews > 0 Then";
+if (_parent.getNumberOfViews()>0) {
+ //BA.debugLineNum = 50;BA.debugLine="Dim p As B4XView = parent.GetView(0)";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _parent.GetView((int) (0));
+ //BA.debugLineNum = 51;BA.debugLine="If p.Tag = \"static\" Then";
+if ((_p.getTag()).equals((Object)("static"))) {
+ //BA.debugLineNum = 52;BA.debugLine="NeedToCreateNewLabel = False";
+_needtocreatenewlabel = __c.False;
+ //BA.debugLineNum = 53;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, parent.Width, pare";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_parent.getWidth(),_parent.getHeight());
+ //BA.debugLineNum = 54;BA.debugLine="Dim xlbl As B4XView = p.GetView(0)";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = _p.GetView((int) (0));
+ //BA.debugLineNum = 55;BA.debugLine="xlbl.SetLayoutAnimated(0, 0, 0, parent.Width, p";
+_xlbl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_parent.getWidth(),_parent.getHeight());
+ };
+ };
+ //BA.debugLineNum = 59;BA.debugLine="Dim originalTextWidth As Float = MeasureTextWidth";
+_originaltextwidth = _measuretextwidth(_t,_fnt);
+ //BA.debugLineNum = 60;BA.debugLine="mText = t";
+_mtext = _t;
+ //BA.debugLineNum = 61;BA.debugLine="If NeedToCreateNewLabel Then";
+if (_needtocreatenewlabel) {
+ //BA.debugLineNum = 62;BA.debugLine="parent.RemoveAllViews";
+_parent.RemoveAllViews();
+ //BA.debugLineNum = 63;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"");
+ //BA.debugLineNum = 64;BA.debugLine="parent.AddView(p, 0, 0, parent.Width, parent.Hei";
+_parent.AddView((android.view.View)(_p.getObject()),(int) (0),(int) (0),_parent.getWidth(),_parent.getHeight());
+ //BA.debugLineNum = 65;BA.debugLine="Dim lbl As Label";
+_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 66;BA.debugLine="lbl.Initialize(\"\")";
+_lbl.Initialize(ba,"");
+ //BA.debugLineNum = 68;BA.debugLine="lbl.SingleLine = True";
+_lbl.setSingleLine(__c.True);
+ //BA.debugLineNum = 69;BA.debugLine="lbl.Padding = Array As Int(0, 0, 0, 0)";
+_lbl.setPadding(new int[]{(int) (0),(int) (0),(int) (0),(int) (0)});
+ //BA.debugLineNum = 71;BA.debugLine="Dim xlbl As B4XView = lbl";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 72;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"LEFT\")";
+_xlbl.SetTextAlignment("CENTER","LEFT");
+ //BA.debugLineNum = 73;BA.debugLine="xlbl.Font = fnt";
+_xlbl.setFont(_fnt);
+ //BA.debugLineNum = 75;BA.debugLine="p.AddView(xlbl, 0, 0, mBase.Width, mBase.Height)";
+_p.AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),_mbase.getWidth(),_mbase.getHeight());
+ };
+ //BA.debugLineNum = 77;BA.debugLine="xlbl.TextColor = mTextColor";
+_xlbl.setTextColor(_mtextcolor);
+ //BA.debugLineNum = 78;BA.debugLine="If originalTextWidth <= mBase.Width Then";
+if (_originaltextwidth<=_mbase.getWidth()) {
+ //BA.debugLineNum = 79;BA.debugLine="xlbl.Text = t";
+_xlbl.setText(BA.ObjectToCharSequence(_t));
+ //BA.debugLineNum = 80;BA.debugLine="p.Tag = \"static\"";
+_p.setTag((Object)("static"));
+ //BA.debugLineNum = 81;BA.debugLine="StopScrolling";
+_stopscrolling();
+ }else {
+ //BA.debugLineNum = 83;BA.debugLine="p.Tag = \"\"";
+_p.setTag((Object)(""));
+ //BA.debugLineNum = 84;BA.debugLine="Dim duplicateText As String = t & \" \" & t";
+_duplicatetext = _t+" "+_t;
+ //BA.debugLineNum = 85;BA.debugLine="Dim Width As Float = MeasureTextWidth(duplicateT";
+_width = _measuretextwidth(_duplicatetext,_fnt);
+ //BA.debugLineNum = 86;BA.debugLine="p.Width = Width";
+_p.setWidth((int) (_width));
+ //BA.debugLineNum = 87;BA.debugLine="xlbl.Width = Width";
+_xlbl.setWidth((int) (_width));
+ //BA.debugLineNum = 88;BA.debugLine="xlbl.Text = duplicateText";
+_xlbl.setText(BA.ObjectToCharSequence(_duplicatetext));
+ //BA.debugLineNum = 89;BA.debugLine="StartScrolling (p, originalTextWidth)";
+_startscrolling(_p,_originaltextwidth);
+ };
+ //BA.debugLineNum = 91;BA.debugLine="End Sub";
+return "";
+}
+public String _settextcolor(int _c) throws Exception{
+ //BA.debugLineNum = 121;BA.debugLine="Public Sub setTextColor(c As Int)";
+ //BA.debugLineNum = 122;BA.debugLine="mTextColor = c";
+_mtextcolor = _c;
+ //BA.debugLineNum = 123;BA.debugLine="setText(mText)";
+_settext(_mtext);
+ //BA.debugLineNum = 124;BA.debugLine="End Sub";
+return "";
+}
+public void _startscrolling(anywheresoftware.b4a.objects.B4XViewWrapper _p,float _originalwidth) throws Exception{
+ResumableSub_StartScrolling rsub = new ResumableSub_StartScrolling(this,_p,_originalwidth);
+rsub.resume(ba, null);
+}
+public static class ResumableSub_StartScrolling extends BA.ResumableSub {
+public ResumableSub_StartScrolling(reparto_izca.keymon.lat.scrollinglabel parent,anywheresoftware.b4a.objects.B4XViewWrapper _p,float _originalwidth) {
+this.parent = parent;
+this._p = _p;
+this._originalwidth = _originalwidth;
+}
+reparto_izca.keymon.lat.scrollinglabel parent;
+anywheresoftware.b4a.objects.B4XViewWrapper _p;
+float _originalwidth;
+int _myindex = 0;
+int _duration = 0;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 102;BA.debugLine="taskIndex = taskIndex + 1";
+parent._taskindex = (int) (parent._taskindex+1);
+ //BA.debugLineNum = 103;BA.debugLine="Dim myIndex As Int = taskIndex";
+_myindex = parent._taskindex;
+ //BA.debugLineNum = 104;BA.debugLine="Dim duration As Int = p.Width / WidthPerSecond *";
+_duration = (int) (_p.getWidth()/(double)parent._widthpersecond*1000);
+ //BA.debugLineNum = 105;BA.debugLine="Sleep(StartPositionDelay)";
+parent.__c.Sleep(ba,this,parent._startpositiondelay);
+this.state = 23;
+return;
+case 23:
+//C
+this.state = 1;
+;
+ //BA.debugLineNum = 106;BA.debugLine="If myIndex <> taskIndex Then Return";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (_myindex!=parent._taskindex) {
+this.state = 3;
+;}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+if (true) return ;
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 107;BA.debugLine="Do While True";
+if (true) break;
+
+case 7:
+//do while
+this.state = 22;
+while (parent.__c.True) {
+this.state = 9;
+if (true) break;
+}
+if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 108;BA.debugLine="p.SetLayoutAnimated(duration, -(p.Width - Origin";
+_p.SetLayoutAnimated(_duration,(int) (-(_p.getWidth()-_originalwidth)),_p.getTop(),_p.getWidth(),_p.getHeight());
+ //BA.debugLineNum = 109;BA.debugLine="Sleep(duration)";
+parent.__c.Sleep(ba,this,_duration);
+this.state = 24;
+return;
+case 24:
+//C
+this.state = 10;
+;
+ //BA.debugLineNum = 110;BA.debugLine="If myIndex <> taskIndex Then Return";
+if (true) break;
+
+case 10:
+//if
+this.state = 15;
+if (_myindex!=parent._taskindex) {
+this.state = 12;
+;}if (true) break;
+
+case 12:
+//C
+this.state = 15;
+if (true) return ;
+if (true) break;
+
+case 15:
+//C
+this.state = 16;
+;
+ //BA.debugLineNum = 111;BA.debugLine="Sleep(StartPositionDelay)";
+parent.__c.Sleep(ba,this,parent._startpositiondelay);
+this.state = 25;
+return;
+case 25:
+//C
+this.state = 16;
+;
+ //BA.debugLineNum = 112;BA.debugLine="If myIndex <> taskIndex Then Return";
+if (true) break;
+
+case 16:
+//if
+this.state = 21;
+if (_myindex!=parent._taskindex) {
+this.state = 18;
+;}if (true) break;
+
+case 18:
+//C
+this.state = 21;
+if (true) return ;
+if (true) break;
+
+case 21:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 113;BA.debugLine="p.SetLayoutAnimated(0, 0, p.Top, p.Width, p.Heig";
+_p.SetLayoutAnimated((int) (0),(int) (0),_p.getTop(),_p.getWidth(),_p.getHeight());
+ if (true) break;
+
+case 22:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 115;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public String _stopscrolling() throws Exception{
+ //BA.debugLineNum = 97;BA.debugLine="Private Sub StopScrolling";
+ //BA.debugLineNum = 98;BA.debugLine="taskIndex = taskIndex + 1";
+_taskindex = (int) (_taskindex+1);
+ //BA.debugLineNum = 99;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/starter.java b/B4A/Objects/src/reparto_izca/keymon/lat/starter.java
new file mode 100644
index 0000000..11cf2c6
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/starter.java
@@ -0,0 +1,363 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.objects.ServiceHelper;
+import anywheresoftware.b4a.debug.*;
+
+public class starter extends android.app.Service{
+ public static class starter_BR extends android.content.BroadcastReceiver {
+
+ @Override
+ public void onReceive(android.content.Context context, android.content.Intent intent) {
+ BA.LogInfo("** Receiver (starter) OnReceive **");
+ android.content.Intent in = new android.content.Intent(context, starter.class);
+ if (intent != null)
+ in.putExtra("b4a_internal_intent", intent);
+ ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, true, BA.class);
+ }
+
+ }
+ static starter mostCurrent;
+ public static BA processBA;
+ private ServiceHelper _service;
+ public static Class> getObject() {
+ return starter.class;
+ }
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.starter");
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ }
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ processBA.loadHtSubs(this.getClass());
+ ServiceHelper.init();
+ }
+ _service = new ServiceHelper(this);
+ processBA.service = this;
+
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.starter", processBA, _service, anywheresoftware.b4a.keywords.Common.Density);
+ }
+ if (!true && ServiceHelper.StarterHelper.startFromServiceCreate(processBA, false) == false) {
+
+ }
+ else {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("*** Service (starter) Create ***");
+ processBA.raiseEvent(null, "service_create");
+ }
+ processBA.runHook("oncreate", this, null);
+ if (true) {
+ if (ServiceHelper.StarterHelper.runWaitForLayouts() == false) {
+ BA.LogInfo("stopping spontaneous created service");
+ stopSelf();
+ }
+ }
+ }
+ @Override
+ public void onStart(android.content.Intent intent, int startId) {
+ onStartCommand(intent, 0, 0);
+ }
+ @Override
+ public int onStartCommand(final android.content.Intent intent, int flags, int startId) {
+ if (ServiceHelper.StarterHelper.onStartCommand(processBA, new Runnable() {
+ public void run() {
+ handleStart(intent);
+ }}))
+ ;
+ else {
+ ServiceHelper.StarterHelper.addWaitForLayout (new Runnable() {
+ public void run() {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Service (starter) Create **");
+ processBA.raiseEvent(null, "service_create");
+ handleStart(intent);
+ ServiceHelper.StarterHelper.removeWaitForLayout();
+ }
+ });
+ }
+ processBA.runHook("onstartcommand", this, new Object[] {intent, flags, startId});
+ return android.app.Service.START_NOT_STICKY;
+ }
+ public void onTaskRemoved(android.content.Intent rootIntent) {
+ super.onTaskRemoved(rootIntent);
+ if (true)
+ processBA.raiseEvent(null, "service_taskremoved");
+
+ }
+ private void handleStart(android.content.Intent intent) {
+ BA.LogInfo("** Service (starter) Start **");
+ java.lang.reflect.Method startEvent = processBA.htSubs.get("service_start");
+ if (startEvent != null) {
+ if (startEvent.getParameterTypes().length > 0) {
+ anywheresoftware.b4a.objects.IntentWrapper iw = ServiceHelper.StarterHelper.handleStartIntent(intent, _service, processBA);
+ processBA.raiseEvent(null, "service_start", iw);
+ }
+ else {
+ processBA.raiseEvent(null, "service_start");
+ }
+ }
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ if (true) {
+ BA.LogInfo("** Service (starter) Destroy (ignored)**");
+ }
+ else {
+ BA.LogInfo("** Service (starter) Destroy **");
+ processBA.raiseEvent(null, "service_destroy");
+ processBA.service = null;
+ mostCurrent = null;
+ processBA.setActivityPaused(true);
+ processBA.runHook("ondestroy", this, null);
+ }
+ }
+
+@Override
+ public android.os.IBinder onBind(android.content.Intent intent) {
+ return null;
+ }public anywheresoftware.b4a.keywords.Common __c = null;
+public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
+public static uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper _flp = null;
+public static boolean _flpstarted = false;
+public static anywheresoftware.b4a.sql.SQL _skmt = null;
+public static String _ruta = "";
+public static anywheresoftware.b4a.objects.Serial.BluetoothAdmin _btadmin = null;
+public static boolean _bluetoothstate = false;
+public static anywheresoftware.b4a.objects.Timer _timer1 = null;
+public static int _interval = 0;
+public static String _trackeractividad = "";
+public static String _pushserviceactividad = "";
+public static String _mac_impresora = "";
+public static anywheresoftware.b4a.keywords.StringBuilderWrapper _logs = null;
+public static anywheresoftware.b4a.phone.Phone.LogCat _logcat = null;
+public static String _sharedfolder = "";
+public static anywheresoftware.b4a.gps.LocationWrapper _cedislocation = null;
+public static reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null;
+public static String _server = "";
+public static String _muestraprogreso = "";
+public static anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static boolean _application_error(anywheresoftware.b4a.objects.B4AException _error,String _stacktrace) throws Exception{
+ //BA.debugLineNum = 81;BA.debugLine="Sub Application_Error (Error As Exception, StackTr";
+ //BA.debugLineNum = 82;BA.debugLine="Return True";
+if (true) return anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 83;BA.debugLine="End Sub";
+return false;
+}
+public static String _envia_ultima_gps() throws Exception{
+reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
+ //BA.debugLineNum = 95;BA.debugLine="Sub ENVIA_ULTIMA_GPS";
+ //BA.debugLineNum = 96;BA.debugLine="If IsConnectedToInternet Then";
+if (_isconnectedtointernet()) {
+ //BA.debugLineNum = 97;BA.debugLine="Log(\"Con internet, enviamos UTR!\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("532374786","Con internet, enviamos UTR!",0);
+ //BA.debugLineNum = 98;BA.debugLine="Dim skmt As SQL";
+_skmt = new anywheresoftware.b4a.sql.SQL();
+ //BA.debugLineNum = 99;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 100;BA.debugLine="Dim reqManager As DBRequestManager";
+_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
+ //BA.debugLineNum = 101;BA.debugLine="reqManager.Initialize(Me, server)";
+_reqmanager._initialize /*String*/ (processBA,starter.getObject(),_server);
+ //BA.debugLineNum = 103;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
+_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 105;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
+_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 113;BA.debugLine="If B4XPages.MainPage.logger Then LogColor(\"Inici";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("532374802","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Red);};
+ //BA.debugLineNum = 114;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss");
+ //BA.debugLineNum = 115;BA.debugLine="B4XPages.MainPage.ultimaActualizacionGPS = DateT";
+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ultimaactualizaciongps /*String*/ = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
+ //BA.debugLineNum = 116;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 117;BA.debugLine="cmd.Name = \"select_fechat\"";
+_cmd.Name /*String*/ = "select_fechat";
+ //BA.debugLineNum = 118;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fechat\")";
+_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("fechat"));
+ //BA.debugLineNum = 120;BA.debugLine="Log(B4XPages.MainPage.montoActual&\" , \" &B4XPa";
+anywheresoftware.b4a.keywords.Common.LogImpl("532374809",mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._visitadostotales /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._monto_entregadoactual /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ +" , "+BA.NumberToString(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ )+" , "+anywheresoftware.b4a.keywords.Common.Application.getVersionName()+" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ,0);
+ //BA.debugLineNum = 121;BA.debugLine="Dim cmd As DBCommand";
+_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
+ //BA.debugLineNum = 122;BA.debugLine="cmd.Initialize";
+_cmd.Initialize();
+ //BA.debugLineNum = 123;BA.debugLine="cmd.Name = \"UPDATE_IZCA_ACTUALR2_GPS\"";
+_cmd.Name /*String*/ = "UPDATE_IZCA_ACTUALR2_GPS";
+ //BA.debugLineNum = 125;BA.debugLine="cmd.Parameters = Array As Object(B4XPages.MainPa";
+_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._visitadostotales /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._monto_entregadoactual /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ ),(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ )};
+ //BA.debugLineNum = 126;BA.debugLine="If B4XPages.MainPage.logger Then Log($\"montoActu";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("532374815",("montoActual: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ ))+", cTotal: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ ))+", cVenta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientesventa /*String*/ ))+", cVisitados: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientesvisitados /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ ))+", Batt: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ ))+", montoRechazado: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montorechazado /*String*/ ))+", montoEntregado: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoentregado /*String*/ ))+", porVisitar: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ ))+", entregas: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ ))+", rechazos: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ ))+", Almacen: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ ))+", Ruta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ))+""),0);};
+ //BA.debugLineNum = 128;BA.debugLine="reqManager.ExecuteCommand(cmd, \"inst_visitas\")";
+_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_visitas"));
+ //BA.debugLineNum = 129;BA.debugLine="skmt.ExecNonQuery2(\"Update cat_variables set CAT";
+_skmt.ExecNonQuery2("Update cat_variables set CAT_VA_VALOR = ? WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),"HoraIngreso"}));
+ //BA.debugLineNum = 132;BA.debugLine="Timer1.Enabled = False";
+_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 133;BA.debugLine="Timer1.Interval = Interval * 1000";
+_timer1.setInterval((long) (_interval*1000));
+ //BA.debugLineNum = 134;BA.debugLine="Timer1.Enabled = True";
+_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True);
+ }else {
+ //BA.debugLineNum = 136;BA.debugLine="Log(\"Sin conexión a internet, no se envió UTR!\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("532374825","Sin conexión a internet, no se envió UTR!",0);
+ };
+ //BA.debugLineNum = 138;BA.debugLine="End Sub";
+return "";
+}
+public static boolean _isconnectedtointernet() throws Exception{
+anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
+ //BA.debugLineNum = 145;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore";
+ //BA.debugLineNum = 146;BA.debugLine="Dim r As Reflector";
+_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
+ //BA.debugLineNum = 147;BA.debugLine="r.Target = r.GetContext";
+_r.Target = (Object)(_r.GetContext(processBA));
+ //BA.debugLineNum = 148;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn";
+_r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String");
+ //BA.debugLineNum = 149;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")";
+_r.Target = _r.RunMethod("getActiveNetworkInfo");
+ //BA.debugLineNum = 150;BA.debugLine="If r.Target <> Null Then";
+if (_r.Target!= null) {
+ //BA.debugLineNum = 151;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")";
+if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting"));
+ };
+ //BA.debugLineNum = 153;BA.debugLine="Return False";
+if (true) return anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 154;BA.debugLine="End Sub";
+return false;
+}
+public static String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{
+ //BA.debugLineNum = 156;BA.debugLine="Sub JobDone(Job As HttpJob)";
+ //BA.debugLineNum = 160;BA.debugLine="If Job.Success = False Then";
+if (_job._success /*boolean*/ ==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 162;BA.debugLine="If Job.ErrorMessage.Contains(\"failed to connect\"";
+if (_job._errormessage /*String*/ .contains("failed to connect") || _job._errormessage /*String*/ .contains("Failed to connect")) {
+ //BA.debugLineNum = 163;BA.debugLine="ToastMessageShow(\"!Hubo un error contactando al";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("!Hubo un error contactando al servidor, por favor revise su conexión!"),anywheresoftware.b4a.keywords.Common.True);
+ };
+ }else {
+ };
+ //BA.debugLineNum = 169;BA.debugLine="End Sub";
+return "";
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 9;BA.debugLine="Public rp As RuntimePermissions";
+_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
+ //BA.debugLineNum = 10;BA.debugLine="Public FLP As FusedLocationProvider";
+_flp = new uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper();
+ //BA.debugLineNum = 11;BA.debugLine="Private flpStarted As Boolean";
+_flpstarted = false;
+ //BA.debugLineNum = 12;BA.debugLine="Dim skmt As SQL";
+_skmt = new anywheresoftware.b4a.sql.SQL();
+ //BA.debugLineNum = 13;BA.debugLine="Dim ruta As String";
+_ruta = "";
+ //BA.debugLineNum = 14;BA.debugLine="Private BTAdmin As BluetoothAdmin";
+_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin();
+ //BA.debugLineNum = 15;BA.debugLine="Public BluetoothState As Boolean";
+_bluetoothstate = false;
+ //BA.debugLineNum = 16;BA.debugLine="Dim Timer1 As Timer";
+_timer1 = new anywheresoftware.b4a.objects.Timer();
+ //BA.debugLineNum = 17;BA.debugLine="Dim Interval As Int = 300";
+_interval = (int) (300);
+ //BA.debugLineNum = 21;BA.debugLine="Dim trackerActividad As String = \"501231235959\"";
+_trackeractividad = "501231235959";
+ //BA.debugLineNum = 22;BA.debugLine="Dim pushServiceActividad As String = \"50123123595";
+_pushserviceactividad = "501231235959";
+ //BA.debugLineNum = 24;BA.debugLine="Dim MAC_IMPRESORA As String";
+_mac_impresora = "";
+ //BA.debugLineNum = 25;BA.debugLine="Private logs As StringBuilder";
+_logs = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
+ //BA.debugLineNum = 26;BA.debugLine="Private logcat As LogCat";
+_logcat = new anywheresoftware.b4a.phone.Phone.LogCat();
+ //BA.debugLineNum = 27;BA.debugLine="Public SharedFolder As String 'Para actualizar ap";
+_sharedfolder = "";
+ //BA.debugLineNum = 28;BA.debugLine="Dim cedisLocation As Location";
+_cedislocation = new anywheresoftware.b4a.gps.LocationWrapper();
+ //BA.debugLineNum = 29;BA.debugLine="Dim reqManager As DBRequestManager";
+_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
+ //BA.debugLineNum = 30;BA.debugLine="Dim server As String = \"http://keymon.net:1781\"";
+_server = "http://keymon.net:1781";
+ //BA.debugLineNum = 34;BA.debugLine="Dim muestraProgreso = 0";
+_muestraprogreso = BA.NumberToString(0);
+ //BA.debugLineNum = 35;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_create() throws Exception{
+ //BA.debugLineNum = 38;BA.debugLine="Sub Service_Create";
+ //BA.debugLineNum = 41;BA.debugLine="ruta = File.DirInternal 'Ruta de la base de datos";
+_ruta = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
+ //BA.debugLineNum = 43;BA.debugLine="If Not(File.Exists(ruta, \"kmt.db\")) Then File.Cop";
+if (anywheresoftware.b4a.keywords.Common.Not(anywheresoftware.b4a.keywords.Common.File.Exists(_ruta,"kmt.db"))) {
+anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"kmt.db",_ruta,"kmt.db");};
+ //BA.debugLineNum = 44;BA.debugLine="Log(ruta)";
+anywheresoftware.b4a.keywords.Common.LogImpl("531981574",_ruta,0);
+ //BA.debugLineNum = 45;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
+_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 59;BA.debugLine="Timer1.Initialize(\"Timer1\", Interval * 1000)";
+_timer1.Initialize(processBA,"Timer1",(long) (_interval*1000));
+ //BA.debugLineNum = 60;BA.debugLine="Timer1.Enabled = True";
+_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 61;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"\")";
+_sharedfolder = _rp.GetSafeDirDefaultExternal("");
+ //BA.debugLineNum = 62;BA.debugLine="cedisLocation.Initialize";
+_cedislocation.Initialize();
+ //BA.debugLineNum = 65;BA.debugLine="cedisLocation.Latitude = \"0\"";
+_cedislocation.setLatitude((double)(Double.parseDouble("0")));
+ //BA.debugLineNum = 66;BA.debugLine="cedisLocation.Longitude = \"0\"";
+_cedislocation.setLongitude((double)(Double.parseDouble("0")));
+ //BA.debugLineNum = 67;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_destroy() throws Exception{
+ //BA.debugLineNum = 85;BA.debugLine="Sub Service_Destroy";
+ //BA.debugLineNum = 87;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
+ //BA.debugLineNum = 69;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
+ //BA.debugLineNum = 70;BA.debugLine="Service.StopAutomaticForeground 'Starter service";
+mostCurrent._service.StopAutomaticForeground();
+ //BA.debugLineNum = 74;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_taskremoved() throws Exception{
+ //BA.debugLineNum = 76;BA.debugLine="Sub Service_TaskRemoved";
+ //BA.debugLineNum = 78;BA.debugLine="End Sub";
+return "";
+}
+public static String _timer1_tick() throws Exception{
+ //BA.debugLineNum = 89;BA.debugLine="Private Sub Timer1_Tick";
+ //BA.debugLineNum = 92;BA.debugLine="ENVIA_ULTIMA_GPS";
+_envia_ultima_gps();
+ //BA.debugLineNum = 93;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/subs.java b/B4A/Objects/src/reparto_izca/keymon/lat/subs.java
new file mode 100644
index 0000000..d924239
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/subs.java
@@ -0,0 +1,1753 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class subs {
+private static subs mostCurrent = new subs();
+public static Object getObject() {
+ throw new RuntimeException("Code module does not support this method.");
+}
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public static de.donmanfred.GZipStringswrapper _gzip = null;
+public static anywheresoftware.b4a.objects.StringUtils _su = null;
+public static anywheresoftware.b4a.phone.Phone _phn = null;
+public static String _devmodel = "";
+public static anywheresoftware.b4a.sql.SQL _kmt = null;
+public static anywheresoftware.b4a.sql.SQL _errorlog = null;
+public static String _ssid = "";
+public static int _rutamaxpoints = 0;
+public static int _rutahrsatras = 0;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static String _agregacolumna(anywheresoftware.b4a.BA _ba,String _tabla,String _columna,String _tipo) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+ //BA.debugLineNum = 966;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
+ //BA.debugLineNum = 967;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
+try { //BA.debugLineNum = 968;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery($\"S";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+"'"))));
+ //BA.debugLineNum = 969;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 970;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
+if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 971;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+""));
+ //BA.debugLineNum = 972;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
+anywheresoftware.b4a.keywords.Common.LogImpl("536634630",("Columna \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
+ };
+ }
+ catch (Exception e9) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e9); //BA.debugLineNum = 975;BA.debugLine="Try";
+try { //BA.debugLineNum = 976;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+""));
+ //BA.debugLineNum = 977;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
+anywheresoftware.b4a.keywords.Common.LogImpl("536634635",("Columna \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
+ }
+ catch (Exception e13) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e13); //BA.debugLineNum = 979;BA.debugLine="Log(LastException)";
+anywheresoftware.b4a.keywords.Common.LogImpl("536634637",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
+ };
+ };
+ //BA.debugLineNum = 982;BA.debugLine="End Sub";
+return "";
+}
+public static String _borraarribade100errores(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 441;BA.debugLine="Sub borraArribaDe100Errores 'ignore";
+ //BA.debugLineNum = 442;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
+if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) {
+_revisabd(_ba);};
+ //BA.debugLineNum = 443;BA.debugLine="LogColor(\"Recortamos la tabla de Errores, limite";
+anywheresoftware.b4a.keywords.Common.LogImpl("534471938","Recortamos la tabla de Errores, limite de 100",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
+ //BA.debugLineNum = 444;BA.debugLine="errorLog.ExecNonQuery(\"DELETE FROM errores WHERE";
+_errorlog.ExecNonQuery("DELETE FROM errores WHERE fecha NOT in (SELECT fecha FROM errores ORDER BY fecha desc LIMIT 99 )");
+ //BA.debugLineNum = 445;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")";
+_errorlog.ExecNonQuery("vacuum;");
+ //BA.debugLineNum = 447;BA.debugLine="End Sub";
+return "";
+}
+public static String _borraarribade600renglonesbitacora(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+ //BA.debugLineNum = 450;BA.debugLine="Sub borraArribaDe600RenglonesBitacora 'ignore";
+ //BA.debugLineNum = 451;BA.debugLine="revisaBD";
+_revisabd(_ba);
+ //BA.debugLineNum = 452;BA.debugLine="LogColor(\"Recortamos la tabla de la Bitacora, lim";
+anywheresoftware.b4a.keywords.Common.LogImpl("534537474","Recortamos la tabla de la Bitacora, limite de 600",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
+ //BA.debugLineNum = 453;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 454;BA.debugLine="c = kmt.ExecQuery(\"select fecha from bitacora\")";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select fecha from bitacora")));
+ //BA.debugLineNum = 455;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 456;BA.debugLine="If c.RowCount > 650 Then";
+if (_c.getRowCount()>650) {
+ //BA.debugLineNum = 457;BA.debugLine="kmt.ExecNonQuery(\"DELETE FROM bitacora WHERE fec";
+_kmt.ExecNonQuery("DELETE FROM bitacora WHERE fecha NOT in (SELECT fecha FROM bitacora ORDER BY fecha desc LIMIT 599 )");
+ //BA.debugLineNum = 458;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
+_kmt.ExecNonQuery("vacuum;");
+ };
+ //BA.debugLineNum = 461;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 462;BA.debugLine="End Sub";
+return "";
+}
+public static String _borralogdb(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 329;BA.debugLine="Sub borraLogDB 'ignore";
+ //BA.debugLineNum = 330;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
+anywheresoftware.b4a.keywords.Common.LogImpl("534144257","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
+ //BA.debugLineNum = 331;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")";
+_kmt.ExecNonQuery("delete from bitacora");
+ //BA.debugLineNum = 332;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
+_kmt.ExecNonQuery("vacuum;");
+ //BA.debugLineNum = 333;BA.debugLine="End Sub";
+return "";
+}
+public static String _borramosarchivogps(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+String _s = "";
+byte[] _t = null;
+ //BA.debugLineNum = 186;BA.debugLine="Sub borramosArchivoGPS 'ignore";
+ //BA.debugLineNum = 187;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 188;BA.debugLine="Dim s As String = \"\"";
+_s = "";
+ //BA.debugLineNum = 189;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")";
+_t = _s.getBytes("UTF-8");
+ //BA.debugLineNum = 190;BA.debugLine="out.WriteBytes(t, 0, t.Length)";
+_out.WriteBytes(_t,(int) (0),_t.length);
+ //BA.debugLineNum = 191;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 192;BA.debugLine="End Sub";
+return "";
+}
+public static String _centraboton(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ButtonWrapper _elemento,int _anchoelementosuperior) throws Exception{
+ //BA.debugLineNum = 619;BA.debugLine="Sub centraBoton(elemento As Button, anchoElementoS";
+ //BA.debugLineNum = 620;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
+_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2)));
+ //BA.debugLineNum = 621;BA.debugLine="End Sub";
+return "";
+}
+public static String _centraetiqueta(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.LabelWrapper _elemento,int _anchoelementosuperior) throws Exception{
+ //BA.debugLineNum = 614;BA.debugLine="Sub centraEtiqueta(elemento As Label, anchoElement";
+ //BA.debugLineNum = 615;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
+_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2)));
+ //BA.debugLineNum = 616;BA.debugLine="End Sub";
+return "";
+}
+public static String _centralistview(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ListViewWrapper _elemento,int _anchoelementosuperior) throws Exception{
+ //BA.debugLineNum = 604;BA.debugLine="Sub centraListView(elemento As ListView, anchoElem";
+ //BA.debugLineNum = 605;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
+_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2)));
+ //BA.debugLineNum = 606;BA.debugLine="End Sub";
+return "";
+}
+public static String _centrapanel(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _elemento,int _anchoelementosuperior) throws Exception{
+ //BA.debugLineNum = 609;BA.debugLine="Sub centraPanel(elemento As Panel, anchoElementoSu";
+ //BA.debugLineNum = 610;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e";
+_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2)));
+ //BA.debugLineNum = 611;BA.debugLine="End Sub";
+return "";
+}
+public static String _compress(anywheresoftware.b4a.BA _ba,String _str) throws Exception{
+byte[] _compressed = null;
+String _base64 = "";
+ //BA.debugLineNum = 39;BA.debugLine="Sub compress(str As String) As String 'ignore";
+ //BA.debugLineNum = 41;BA.debugLine="Dim compressed() As Byte = GZip.compress(str)";
+_compressed = _gzip.compress(_str);
+ //BA.debugLineNum = 44;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed";
+_base64 = _su.EncodeBase64(_compressed);
+ //BA.debugLineNum = 45;BA.debugLine="Log($\"Comprimido: ${base64.Length}\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("532702470",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0);
+ //BA.debugLineNum = 47;BA.debugLine="Return base64";
+if (true) return _base64;
+ //BA.debugLineNum = 48;BA.debugLine="End Sub";
+return "";
+}
+public static String _copiadb(anywheresoftware.b4a.BA _ba,boolean _result) throws Exception{
+String _p = "";
+String _thedir = "";
+ //BA.debugLineNum = 538;BA.debugLine="Sub copiaDB(result As Boolean) 'ignore";
+ //BA.debugLineNum = 539;BA.debugLine="If result Then";
+if (_result) {
+ //BA.debugLineNum = 540;BA.debugLine="Dim p As String";
+_p = "";
+ //BA.debugLineNum = 541;BA.debugLine="If File.ExternalWritable Then";
+if (anywheresoftware.b4a.keywords.Common.File.getExternalWritable()) {
+ //BA.debugLineNum = 542;BA.debugLine="p = File.DirInternal";
+_p = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
+ }else {
+ //BA.debugLineNum = 545;BA.debugLine="p = File.DirInternal";
+_p = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
+ };
+ //BA.debugLineNum = 548;BA.debugLine="Dim theDir As String";
+_thedir = "";
+ //BA.debugLineNum = 549;BA.debugLine="Try";
+try { //BA.debugLineNum = 550;BA.debugLine="File.MakeDir(File.DirInternal,\"kmts\")";
+anywheresoftware.b4a.keywords.Common.File.MakeDir(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmts");
+ //BA.debugLineNum = 551;BA.debugLine="theDir = \"/kmts\"";
+_thedir = "/kmts";
+ }
+ catch (Exception e13) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e13); //BA.debugLineNum = 553;BA.debugLine="theDir = \"\"";
+_thedir = "";
+ };
+ //BA.debugLineNum = 555;BA.debugLine="Try";
+try { //BA.debugLineNum = 556;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirInt";
+anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal()+_thedir,"guna_rep_kmt.db");
+ //BA.debugLineNum = 557;BA.debugLine="ToastMessageShow(\"BD copiada!\", False)";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("BD copiada!"),anywheresoftware.b4a.keywords.Common.False);
+ }
+ catch (Exception e19) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19); //BA.debugLineNum = 559;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("No se pudo hacer la copia: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba))),anywheresoftware.b4a.keywords.Common.True);
+ };
+ //BA.debugLineNum = 561;BA.debugLine="Log(\"rootExternal=\"&p)";
+anywheresoftware.b4a.keywords.Common.LogImpl("534865175","rootExternal="+_p,0);
+ //BA.debugLineNum = 562;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
+anywheresoftware.b4a.keywords.Common.LogImpl("534865176","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
+ //BA.debugLineNum = 563;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
+anywheresoftware.b4a.keywords.Common.LogImpl("534865177","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
+ }else {
+ //BA.debugLineNum = 565;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),anywheresoftware.b4a.keywords.Common.False);
+ };
+ //BA.debugLineNum = 567;BA.debugLine="End Sub";
+return "";
+}
+public static anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _createbitmapwithnumber(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _originalbitmap,int _number) throws Exception{
+anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _newbitmap = null;
+anywheresoftware.b4a.objects.drawable.CanvasWrapper _canvas = null;
+anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper _destrect = null;
+ //BA.debugLineNum = 1058;BA.debugLine="Sub CreateBitmapWithNumber(OriginalBitmap As Bitma";
+ //BA.debugLineNum = 1059;BA.debugLine="Dim NewBitmap As Bitmap";
+_newbitmap = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
+ //BA.debugLineNum = 1060;BA.debugLine="NewBitmap.InitializeMutable(OriginalBitmap.Width,";
+_newbitmap.InitializeMutable(_originalbitmap.getWidth(),_originalbitmap.getHeight());
+ //BA.debugLineNum = 1062;BA.debugLine="Dim Canvas As Canvas";
+_canvas = new anywheresoftware.b4a.objects.drawable.CanvasWrapper();
+ //BA.debugLineNum = 1063;BA.debugLine="Canvas.Initialize2(NewBitmap)";
+_canvas.Initialize2((android.graphics.Bitmap)(_newbitmap.getObject()));
+ //BA.debugLineNum = 1066;BA.debugLine="Dim DestRect As Rect";
+_destrect = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper();
+ //BA.debugLineNum = 1067;BA.debugLine="DestRect.Initialize(0, 0, OriginalBitmap.Width, O";
+_destrect.Initialize((int) (0),(int) (0),_originalbitmap.getWidth(),_originalbitmap.getHeight());
+ //BA.debugLineNum = 1070;BA.debugLine="Canvas.DrawBitmap(OriginalBitmap, Null, DestRect)";
+_canvas.DrawBitmap((android.graphics.Bitmap)(_originalbitmap.getObject()),(android.graphics.Rect)(anywheresoftware.b4a.keywords.Common.Null),(android.graphics.Rect)(_destrect.getObject()));
+ //BA.debugLineNum = 1073;BA.debugLine="Canvas.DrawText(Number, (OriginalBitmap.Width / 2";
+_canvas.DrawText(_ba,BA.NumberToString(_number),(float) ((_originalbitmap.getWidth()/(double)2)),(float) ((_originalbitmap.getHeight()/(double)2.4)),anywheresoftware.b4a.keywords.Common.Typeface.DEFAULT,(float) (20),anywheresoftware.b4a.keywords.Common.Colors.White,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER"));
+ //BA.debugLineNum = 1075;BA.debugLine="Return NewBitmap";
+if (true) return _newbitmap;
+ //BA.debugLineNum = 1076;BA.debugLine="End Sub";
+return null;
+}
+public static String _dameerroresjson(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.sql.SQL _sql,int _maxerrores,boolean _comprimido) throws Exception{
+anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator _j = null;
+String _lim = "";
+anywheresoftware.b4a.sql.SQL.ResultSetWrapper _cur = null;
+anywheresoftware.b4a.objects.collections.List _l = null;
+int _i = 0;
+anywheresoftware.b4a.objects.collections.Map _m = null;
+anywheresoftware.b4a.objects.collections.Map _m2 = null;
+ //BA.debugLineNum = 475;BA.debugLine="Sub dameErroresJSON(SQL As SQL, maxErrores As Int,";
+ //BA.debugLineNum = 476;BA.debugLine="Log(\"dameErroresJSON\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("534668545","dameErroresJSON",0);
+ //BA.debugLineNum = 477;BA.debugLine="Private j As JSONGenerator";
+_j = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator();
+ //BA.debugLineNum = 478;BA.debugLine="Private lim As String";
+_lim = "";
+ //BA.debugLineNum = 479;BA.debugLine="Private cur As ResultSet";
+_cur = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
+ //BA.debugLineNum = 480;BA.debugLine="Private l As List";
+_l = new anywheresoftware.b4a.objects.collections.List();
+ //BA.debugLineNum = 481;BA.debugLine="Private i As Int = 0";
+_i = (int) (0);
+ //BA.debugLineNum = 482;BA.debugLine="l.Initialize";
+_l.Initialize();
+ //BA.debugLineNum = 483;BA.debugLine="Dim m, m2 As Map";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+_m2 = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 484;BA.debugLine="m2.Initialize";
+_m2.Initialize();
+ //BA.debugLineNum = 485;BA.debugLine="If maxErrores = 0 Then lim = \"\" Else lim = \"limit";
+if (_maxerrores==0) {
+_lim = "";}
+else {
+_lim = "limit "+BA.NumberToString(_maxerrores);};
+ //BA.debugLineNum = 486;BA.debugLine="cur = SQL.ExecQuery(\"select * from errores order";
+_cur = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_sql.ExecQuery("select * from errores order by fecha desc "+_lim)));
+ //BA.debugLineNum = 487;BA.debugLine="Do While cur.NextRow";
+while (_cur.NextRow()) {
+ //BA.debugLineNum = 488;BA.debugLine="m.Initialize";
+_m.Initialize();
+ //BA.debugLineNum = 489;BA.debugLine="m.Put(\"fecha\", cur.GetString(\"fecha\"))";
+_m.Put((Object)("fecha"),(Object)(_cur.GetString("fecha")));
+ //BA.debugLineNum = 490;BA.debugLine="m.Put(\"error\", cur.GetString(\"error\"))";
+_m.Put((Object)("error"),(Object)(_cur.GetString("error")));
+ //BA.debugLineNum = 491;BA.debugLine="m2.Put(i,m)";
+_m2.Put((Object)(_i),(Object)(_m.getObject()));
+ //BA.debugLineNum = 492;BA.debugLine="i = i + 1";
+_i = (int) (_i+1);
+ }
+;
+ //BA.debugLineNum = 494;BA.debugLine="cur.Close";
+_cur.Close();
+ //BA.debugLineNum = 495;BA.debugLine="j.Initialize(m2)";
+_j.Initialize(_m2);
+ //BA.debugLineNum = 496;BA.debugLine="Log(j.ToString)";
+anywheresoftware.b4a.keywords.Common.LogImpl("534668565",_j.ToString(),0);
+ //BA.debugLineNum = 497;BA.debugLine="If comprimido Then";
+if (_comprimido) {
+ //BA.debugLineNum = 498;BA.debugLine="Return compress(j.ToString)";
+if (true) return _compress(_ba,_j.ToString());
+ }else {
+ //BA.debugLineNum = 500;BA.debugLine="Return j.ToString";
+if (true) return _j.ToString();
+ };
+ //BA.debugLineNum = 502;BA.debugLine="End Sub";
+return "";
+}
+public static String _dameruta(anywheresoftware.b4a.BA _ba,String _inicioruta,String _origenruta) throws Exception{
+String _fechainicio = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _ruta2 = "";
+int _i = 0;
+ //BA.debugLineNum = 142;BA.debugLine="Sub dameRuta(inicioRuta As String, origenRuta As S";
+ //BA.debugLineNum = 144;BA.debugLine="Dim fechaInicio As String";
+_fechainicio = "";
+ //BA.debugLineNum = 145;BA.debugLine="Try 'incioRuta es numero";
+try { //BA.debugLineNum = 146;BA.debugLine="inicioRuta = inicioRuta * 1";
+_inicioruta = BA.NumberToString((double)(Double.parseDouble(_inicioruta))*1);
+ //BA.debugLineNum = 148;BA.debugLine="fechaInicio = fechaKMT(DateTime.Now - (DateTime.";
+_fechainicio = _fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()-(anywheresoftware.b4a.keywords.Common.DateTime.TicksPerHour*(double)(Double.parseDouble(_inicioruta)))));
+ }
+ catch (Exception e6) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6); //BA.debugLineNum = 150;BA.debugLine="fechaInicio = fechaInicioHoy";
+_fechainicio = _fechainiciohoy(_ba);
+ };
+ //BA.debugLineNum = 153;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"fechaInicio";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("533226763","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);};
+ //BA.debugLineNum = 154;BA.debugLine="Dim c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 155;BA.debugLine="If kmt.IsInitialized = False Then kmt.Initialize(";
+if (_kmt.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) {
+_kmt.Initialize(mostCurrent._starter._ruta /*String*/ ,"kmt.db",anywheresoftware.b4a.keywords.Common.True);};
+ //BA.debugLineNum = 156;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"select FECH";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("533226766","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);};
+ //BA.debugLineNum = 157;BA.debugLine="c = kmt.ExecQuery(\"select FECHA, LAT, LON from \"&";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints))));
+ //BA.debugLineNum = 158;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 159;BA.debugLine="Dim ruta2 As String = \"\"";
+_ruta2 = "";
+ //BA.debugLineNum = 160;BA.debugLine="If c.RowCount>0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 161;BA.debugLine="For i=0 To c.RowCount -1";
+{
+final int step16 = 1;
+final int limit16 = (int) (_c.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit16 ;_i = _i + step16 ) {
+ //BA.debugLineNum = 162;BA.debugLine="c.Position=i";
+_c.setPosition(_i);
+ //BA.debugLineNum = 163;BA.debugLine="ruta2=ruta2&CRLF&c.GetString(\"LAT\")&\",\"&c.GetSt";
+_ruta2 = _ruta2+anywheresoftware.b4a.keywords.Common.CRLF+_c.GetString("LAT")+","+_c.GetString("LON")+","+_c.GetString("FECHA");
+ //BA.debugLineNum = 164;BA.debugLine="B4XPages.MainPage.fechaRuta = c.GetString(\"FECH";
+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._fecharuta /*String*/ = _c.GetString("FECHA");
+ }
+};
+ };
+ //BA.debugLineNum = 167;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 168;BA.debugLine="Return compress(ruta2)";
+if (true) return _compress(_ba,_ruta2);
+ //BA.debugLineNum = 169;BA.debugLine="End Sub";
+return "";
+}
+public static String _dameusuariodedb(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _u = "";
+ //BA.debugLineNum = 583;BA.debugLine="Sub dameUsuarioDeDB As String 'ignore";
+ //BA.debugLineNum = 584;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 585;BA.debugLine="Private u As String = \"SinUsuario\"";
+_u = "SinUsuario";
+ //BA.debugLineNum = 586;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD";
+if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) {
+_revisabd(_ba);};
+ //BA.debugLineNum = 587;BA.debugLine="c=kmt.ExecQuery(\"select USUARIO from usuarioa\")";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 588;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 589;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")";
+if (_c.getRowCount()>0) {
+_u = _c.GetString("USUARIO");};
+ //BA.debugLineNum = 590;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 591;BA.debugLine="Return u";
+if (true) return _u;
+ //BA.debugLineNum = 592;BA.debugLine="End Sub";
+return "";
+}
+public static String _decompress(anywheresoftware.b4a.BA _ba,String _base64) throws Exception{
+byte[] _decompressedbytes = null;
+anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null;
+String _uncompressed = "";
+ //BA.debugLineNum = 51;BA.debugLine="Sub decompress(base64 As String) As String 'ignore";
+ //BA.debugLineNum = 52;BA.debugLine="Dim decompressedbytes() As Byte = su.DecodeBase64";
+_decompressedbytes = _su.DecodeBase64(_base64);
+ //BA.debugLineNum = 54;BA.debugLine="Dim bc As ByteConverter";
+_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter();
+ //BA.debugLineNum = 55;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d";
+_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8");
+ //BA.debugLineNum = 56;BA.debugLine="Log($\"Descomprimido: ${uncompressed.Length}\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("532768005",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0);
+ //BA.debugLineNum = 58;BA.debugLine="Return uncompressed";
+if (true) return _uncompressed;
+ //BA.debugLineNum = 59;BA.debugLine="End Sub";
+return "";
+}
+public static String _deleteerrorlog_db(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 178;BA.debugLine="Sub deleteErrorLog_DB 'ignore";
+ //BA.debugLineNum = 179;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
+if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) {
+_revisabd(_ba);};
+ //BA.debugLineNum = 180;BA.debugLine="errorLog.ExecNonQuery(\"delete from errores\")";
+_errorlog.ExecNonQuery("delete from errores");
+ //BA.debugLineNum = 181;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")";
+_errorlog.ExecNonQuery("vacuum;");
+ //BA.debugLineNum = 182;BA.debugLine="ToastMessageShow(\"Borrada\", False)";
+anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Borrada"),anywheresoftware.b4a.keywords.Common.False);
+ //BA.debugLineNum = 183;BA.debugLine="End Sub";
+return "";
+}
+public static String _deletegps_db(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 172;BA.debugLine="Sub deleteGPS_DB 'ignore";
+ //BA.debugLineNum = 173;BA.debugLine="kmt.ExecNonQuery(\"delete from RUTA_GPS\")";
+_kmt.ExecNonQuery("delete from RUTA_GPS");
+ //BA.debugLineNum = 174;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
+_kmt.ExecNonQuery("vacuum;");
+ //BA.debugLineNum = 175;BA.debugLine="End Sub";
+return "";
+}
+public static String _fechainiciohoy(anywheresoftware.b4a.BA _ba) throws Exception{
+String _origformat = "";
+String _h = "";
+ //BA.debugLineNum = 288;BA.debugLine="Sub fechaInicioHoy As String 'ignore";
+ //BA.debugLineNum = 289;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat";
+_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat();
+ //BA.debugLineNum = 290;BA.debugLine="DateTime.DateFormat=\"yyMMdd\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMdd");
+ //BA.debugLineNum = 291;BA.debugLine="Private h As String = DateTime.Date(DateTime.Now";
+_h = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow())+"000000";
+ //BA.debugLineNum = 292;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
+ //BA.debugLineNum = 293;BA.debugLine="Log(\"Hoy=\"&h)";
+anywheresoftware.b4a.keywords.Common.LogImpl("533882117","Hoy="+_h,0);
+ //BA.debugLineNum = 294;BA.debugLine="Return h";
+if (true) return _h;
+ //BA.debugLineNum = 295;BA.debugLine="End Sub";
+return "";
+}
+public static String _fechakmt(anywheresoftware.b4a.BA _ba,String _fecha) throws Exception{
+String _origformat = "";
+String _nuevafecha = "";
+ //BA.debugLineNum = 62;BA.debugLine="Sub fechaKMT(fecha As String) As String 'ignore";
+ //BA.debugLineNum = 64;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '";
+_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat();
+ //BA.debugLineNum = 65;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss");
+ //BA.debugLineNum = 66;BA.debugLine="Dim nuevaFecha As String=DateTime.Date(fecha)";
+_nuevafecha = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha)));
+ //BA.debugLineNum = 67;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
+ //BA.debugLineNum = 69;BA.debugLine="Return nuevaFecha";
+if (true) return _nuevafecha;
+ //BA.debugLineNum = 70;BA.debugLine="End Sub";
+return "";
+}
+public static long _fechakmt2ticks(anywheresoftware.b4a.BA _ba,String _fkmt) throws Exception{
+String _partefecha = "";
+String _partehora = "";
+String _origformat = "";
+long _ticks = 0L;
+ //BA.debugLineNum = 505;BA.debugLine="Sub fechaKMT2Ticks(fKMT As String) As Long 'ignore";
+ //BA.debugLineNum = 506;BA.debugLine="Try";
+try { //BA.debugLineNum = 507;BA.debugLine="If fKMT.Length = 12 Then";
+if (_fkmt.length()==12) {
+ //BA.debugLineNum = 508;BA.debugLine="Private parteFecha As String = fKMT.SubString2(";
+_partefecha = _fkmt.substring((int) (0),(int) (6));
+ //BA.debugLineNum = 509;BA.debugLine="Private parteHora As String = fKMT.SubString(6)";
+_partehora = _fkmt.substring((int) (6));
+ //BA.debugLineNum = 510;BA.debugLine="Private OrigFormat As String = DateTime.DateFor";
+_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat();
+ //BA.debugLineNum = 511;BA.debugLine="DateTime.DateFormat=\"yyMMdd\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMdd");
+ //BA.debugLineNum = 512;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss");
+ //BA.debugLineNum = 513;BA.debugLine="Private ticks As Long = DateTime.DateTimeParse(";
+_ticks = anywheresoftware.b4a.keywords.Common.DateTime.DateTimeParse(_partefecha,_partehora);
+ //BA.debugLineNum = 515;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
+ //BA.debugLineNum = 516;BA.debugLine="Return ticks";
+if (true) return _ticks;
+ }else {
+ //BA.debugLineNum = 518;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '";
+anywheresoftware.b4a.keywords.Common.LogImpl("534734093","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0);
+ //BA.debugLineNum = 519;BA.debugLine="Return 0";
+if (true) return (long) (0);
+ };
+ }
+ catch (Exception e16) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16); //BA.debugLineNum = 522;BA.debugLine="Log(LastException)";
+anywheresoftware.b4a.keywords.Common.LogImpl("534734097",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
+ //BA.debugLineNum = 523;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p";
+anywheresoftware.b4a.keywords.Common.LogImpl("534734098",("Fecha dada: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fkmt))+", Parte Fecha: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partefecha))+", Parte Hora: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partehora))+""),anywheresoftware.b4a.keywords.Common.Colors.Red);
+ //BA.debugLineNum = 524;BA.debugLine="Return 0";
+if (true) return (long) (0);
+ };
+ //BA.debugLineNum = 526;BA.debugLine="End Sub";
+return 0L;
+}
+public static String _getphnid(anywheresoftware.b4a.BA _ba) throws Exception{
+String _t = "";
+String _s = "";
+ //BA.debugLineNum = 19;BA.debugLine="Sub getPhnId As String 'ignore";
+ //BA.debugLineNum = 21;BA.debugLine="devModel = phn.Model";
+_devmodel = _phn.getModel();
+ //BA.debugLineNum = 22;BA.debugLine="If devModel.Length <= 3 Then 'Si phn.Model esta e";
+if (_devmodel.length()<=3) {
+ //BA.debugLineNum = 23;BA.debugLine="Dim t As String = phn.GetSettings(\"android_id\")";
+_t = _phn.GetSettings("android_id");
+ //BA.debugLineNum = 24;BA.debugLine="devModel = t";
+_devmodel = _t;
+ };
+ //BA.debugLineNum = 26;BA.debugLine="If devModel.Length >= 3 Then 'Si tenemos valor pa";
+if (_devmodel.length()>=3) {
+ //BA.debugLineNum = 27;BA.debugLine="File.WriteString(File.DirInternal, \"phnId.txt\",";
+anywheresoftware.b4a.keywords.Common.File.WriteString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"phnId.txt",_devmodel);
+ }else if(_devmodel.length()<3) {
+ //BA.debugLineNum = 30;BA.debugLine="Dim s As String = File.ReadString(File.DirIntern";
+_s = anywheresoftware.b4a.keywords.Common.File.ReadString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"phnId.txt");
+ //BA.debugLineNum = 31;BA.debugLine="devModel = s";
+_devmodel = _s;
+ };
+ //BA.debugLineNum = 35;BA.debugLine="Return devModel";
+if (true) return _devmodel;
+ //BA.debugLineNum = 36;BA.debugLine="End Sub";
+return "";
+}
+public static String _getssid(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 224;BA.debugLine="Sub getSSID 'ignore";
+ //BA.debugLineNum = 229;BA.debugLine="End Sub";
+return "";
+}
+public static String _guardainfoenarchivo(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{
+String _origformat = "";
+String _lastupdate = "";
+String _ubic = "";
+anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
+String _s = "";
+byte[] _t = null;
+ //BA.debugLineNum = 112;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore";
+ //BA.debugLineNum = 114;BA.debugLine="Dim OrigFormat As String=DateTime.DateFormat 'sa";
+_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat();
+ //BA.debugLineNum = 115;BA.debugLine="DateTime.DateFormat=\"MMM-dd HH:mm:ss\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MMM-dd HH:mm:ss");
+ //BA.debugLineNum = 116;BA.debugLine="Dim lastUpdate As String=DateTime.Date(DateTime.N";
+_lastupdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
+ //BA.debugLineNum = 117;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
+ //BA.debugLineNum = 119;BA.debugLine="Dim ubic As String = coords&\",\"&lastUpdate";
+_ubic = _coords+","+_lastupdate;
+ //BA.debugLineNum = 120;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di";
+_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
+_out = anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 121;BA.debugLine="Dim s As String = ubic & CRLF";
+_s = _ubic+anywheresoftware.b4a.keywords.Common.CRLF;
+ //BA.debugLineNum = 122;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")";
+_t = _s.getBytes("UTF-8");
+ //BA.debugLineNum = 123;BA.debugLine="out.WriteBytes(t, 0, t.Length)";
+_out.WriteBytes(_t,(int) (0),_t.length);
+ //BA.debugLineNum = 124;BA.debugLine="out.Close";
+_out.Close();
+ //BA.debugLineNum = 125;BA.debugLine="End Sub";
+return "";
+}
+public static String _guardainfoenbd(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{
+String[] _latlon = null;
+ //BA.debugLineNum = 128;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore";
+ //BA.debugLineNum = 129;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Guardamos u";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("533161217","Guardamos ubicacion en BD - "+_coords,0);};
+ //BA.debugLineNum = 130;BA.debugLine="Try";
+try { //BA.debugLineNum = 131;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord";
+_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",_coords);
+ //BA.debugLineNum = 132;BA.debugLine="If latlon.Length < 2 Then latlon = Regex.Split(\"";
+if (_latlon.length<2) {
+_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split(",",_coords);};
+ //BA.debugLineNum = 134;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD";
+if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) {
+_revisabd(_ba);};
+ //BA.debugLineNum = 135;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(fecha, l";
+_kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_latlon[(int) (2)]),(Object)(_latlon[(int) (0)]),(Object)(_latlon[(int) (1)])}));
+ }
+ catch (Exception e8) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e8); //BA.debugLineNum = 137;BA.debugLine="Log(LastException)";
+anywheresoftware.b4a.keywords.Common.LogImpl("533161225",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
+ };
+ //BA.debugLineNum = 139;BA.debugLine="End Sub";
+return "";
+}
+public static String _hmskmt(anywheresoftware.b4a.BA _ba) throws Exception{
+String _origformat = "";
+String _nuevahora = "";
+ //BA.debugLineNum = 73;BA.debugLine="Sub hmsKMT As String 'ignore";
+ //BA.debugLineNum = 75;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '";
+_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat();
+ //BA.debugLineNum = 76;BA.debugLine="DateTime.DateFormat=\"HHmmss\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("HHmmss");
+ //BA.debugLineNum = 77;BA.debugLine="Private nuevaHora As String=DateTime.Date(DateTim";
+_nuevahora = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
+ //BA.debugLineNum = 78;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
+ //BA.debugLineNum = 80;BA.debugLine="Return nuevaHora";
+if (true) return _nuevahora;
+ //BA.debugLineNum = 81;BA.debugLine="End Sub";
+return "";
+}
+public static String _insertaenerrores(anywheresoftware.b4a.BA _ba,String _error) throws Exception{
+ //BA.debugLineNum = 577;BA.debugLine="Sub insertaEnErrores(error As String) 'ignore";
+ //BA.debugLineNum = 578;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
+if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) {
+_revisabd(_ba);};
+ //BA.debugLineNum = 579;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fecha";
+_errorlog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_error)}));
+ //BA.debugLineNum = 580;BA.debugLine="End Sub";
+return "";
+}
+public static String _insertarenglonespruebaenerrorlog(anywheresoftware.b4a.BA _ba) throws Exception{
+int _x = 0;
+ //BA.debugLineNum = 465;BA.debugLine="Sub insertaRenglonesPruebaEnErrorLog 'ignore";
+ //BA.debugLineNum = 466;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD";
+if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) {
+_revisabd(_ba);};
+ //BA.debugLineNum = 467;BA.debugLine="Log(\"insertamos 50 renglones a errorLog\")";
+anywheresoftware.b4a.keywords.Common.LogImpl("534603010","insertamos 50 renglones a errorLog",0);
+ //BA.debugLineNum = 468;BA.debugLine="For x = 1 To 50";
+{
+final int step3 = 1;
+final int limit3 = (int) (50);
+_x = (int) (1) ;
+for (;_x <= limit3 ;_x = _x + step3 ) {
+ //BA.debugLineNum = 469;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fech";
+_errorlog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)("abc")}));
+ //BA.debugLineNum = 470;BA.debugLine="Log(x)";
+anywheresoftware.b4a.keywords.Common.LogImpl("534603013",BA.NumberToString(_x),0);
+ }
+};
+ //BA.debugLineNum = 472;BA.debugLine="End Sub";
+return "";
+}
+public static String _installapk(anywheresoftware.b4a.BA _ba,String _dir,String _apk) throws Exception{
+anywheresoftware.b4a.objects.IntentWrapper _i = null;
+ //BA.debugLineNum = 528;BA.debugLine="Sub InstallAPK(dir As String, apk As String) 'igno";
+ //BA.debugLineNum = 529;BA.debugLine="If File.Exists(dir, apk) Then";
+if (anywheresoftware.b4a.keywords.Common.File.Exists(_dir,_apk)) {
+ //BA.debugLineNum = 530;BA.debugLine="Dim i As Intent";
+_i = new anywheresoftware.b4a.objects.IntentWrapper();
+ //BA.debugLineNum = 531;BA.debugLine="i.Initialize(i.ACTION_VIEW, \"file://\" & File.Com";
+_i.Initialize(_i.ACTION_VIEW,"file://"+anywheresoftware.b4a.keywords.Common.File.Combine(_dir,_apk));
+ //BA.debugLineNum = 532;BA.debugLine="i.SetType(\"application/vnd.android.package-archi";
+_i.SetType("application/vnd.android.package-archive");
+ //BA.debugLineNum = 533;BA.debugLine="StartActivity(i)";
+anywheresoftware.b4a.keywords.Common.StartActivity((_ba.processBA == null ? _ba : _ba.processBA),(Object)(_i.getObject()));
+ };
+ //BA.debugLineNum = 535;BA.debugLine="End Sub";
+return "";
+}
+public static anywheresoftware.b4a.objects.collections.Map _json2map(anywheresoftware.b4a.BA _ba,String _thejson) throws Exception{
+anywheresoftware.b4a.objects.collections.JSONParser _json = null;
+anywheresoftware.b4a.objects.collections.Map _m = null;
+ //BA.debugLineNum = 232;BA.debugLine="Sub JSON2Map(theJson As String) As Map 'ignore";
+ //BA.debugLineNum = 234;BA.debugLine="Try";
+try { //BA.debugLineNum = 235;BA.debugLine="Private json As JSONParser";
+_json = new anywheresoftware.b4a.objects.collections.JSONParser();
+ //BA.debugLineNum = 236;BA.debugLine="json.Initialize(theJson)";
+_json.Initialize(_thejson);
+ //BA.debugLineNum = 237;BA.debugLine="Return json.NextObject";
+if (true) return _json.NextObject();
+ }
+ catch (Exception e6) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6); //BA.debugLineNum = 239;BA.debugLine="Log(LastException)";
+anywheresoftware.b4a.keywords.Common.LogImpl("533619975",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
+ //BA.debugLineNum = 240;BA.debugLine="log2DB(\"JSON2Map: \"&LastException)";
+_log2db(_ba,"JSON2Map: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)));
+ //BA.debugLineNum = 241;BA.debugLine="Private m As Map = CreateMap(\"title\":\"Error gene";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("title"),(Object)("Error generating JSON"),(Object)("t"),(Object)("Error"),(Object)("Message"),(Object)(anywheresoftware.b4a.keywords.Common.LastException(_ba).getObject()),(Object)("text"),(Object)(anywheresoftware.b4a.keywords.Common.LastException(_ba).getObject())});
+ //BA.debugLineNum = 242;BA.debugLine="Return m";
+if (true) return _m;
+ };
+ //BA.debugLineNum = 244;BA.debugLine="End Sub";
+return null;
+}
+public static String _log2db(anywheresoftware.b4a.BA _ba,String _texto) throws Exception{
+ //BA.debugLineNum = 298;BA.debugLine="Sub log2DB(texto As String) 'ignore";
+ //BA.debugLineNum = 299;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te";
+anywheresoftware.b4a.keywords.Common.LogImpl("533947649",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
+ //BA.debugLineNum = 300;BA.debugLine="If kmt.IsInitialized Then kmt.ExecNonQuery2(\"INSE";
+if (_kmt.IsInitialized()) {
+_kmt.ExecNonQuery2("INSERT INTO bitacora(fecha, texto) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_texto)}));};
+ //BA.debugLineNum = 301;BA.debugLine="End Sub";
+return "";
+}
+public static String _mandamosloc(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{
+ //BA.debugLineNum = 269;BA.debugLine="Sub mandamosLoc(coords As String) 'ignore";
+ //BA.debugLineNum = 285;BA.debugLine="End Sub";
+return "";
+}
+public static String _map2json(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _m) throws Exception{
+anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator _jg = null;
+String _t = "";
+ //BA.debugLineNum = 247;BA.debugLine="Sub map2JSON(m As Map) As String 'ignore";
+ //BA.debugLineNum = 250;BA.debugLine="Dim jg As JSONGenerator";
+_jg = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator();
+ //BA.debugLineNum = 251;BA.debugLine="jg.Initialize(m)";
+_jg.Initialize(_m);
+ //BA.debugLineNum = 252;BA.debugLine="Dim t As String = jg.ToString";
+_t = _jg.ToString();
+ //BA.debugLineNum = 253;BA.debugLine="Return t";
+if (true) return _t;
+ //BA.debugLineNum = 254;BA.debugLine="End Sub";
+return "";
+}
+public static boolean _masdexxmins(anywheresoftware.b4a.BA _ba,int _hora,int _mins) throws Exception{
+ //BA.debugLineNum = 304;BA.debugLine="Sub masDeXXMins(hora As Int, mins As Int) As Boole";
+ //BA.debugLineNum = 305;BA.debugLine="If (hora + mins * DateTime.TicksPerMinute) < Date";
+if ((_hora+_mins*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute) 0 Then";
+if (_chv.getRowCount()>0) {
+ //BA.debugLineNum = 834;BA.debugLine="chv.Position = 0";
+_chv.setPosition((int) (0));
+ //BA.debugLineNum = 836;BA.debugLine="Private precio As String = traePrecio(prodId, t";
+_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba));
+ //BA.debugLineNum = 837;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_traecliente(_ba),_chv.GetString("HVD_PRONOMBRE"),BA.NumberToString(1),_precio,_chv.GetString("HVD_FECHA"),_prodid,_precio,_traecliente(_ba)}));
+ //BA.debugLineNum = 838;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_traecliente(_ba),_chv.GetString("HVD_PRONOMBRE"),BA.NumberToString((double)(Double.parseDouble(_chv.GetString("HVD_CANT")))-1),BA.NumberToString(((double)(Double.parseDouble(_chv.GetString("HVD_CANT")))-1)*(double)(Double.parseDouble(_precio))),_chv.GetString("HVD_FECHA"),_prodid,_precio,_traecliente(_ba)}));
+ //BA.debugLineNum = 839;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' where HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
+ };
+ }else {
+ //BA.debugLineNum = 842;BA.debugLine="Log($\"ACTUALIZAMOS REPARTO\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("536241426",("ACTUALIZAMOS REPARTO"),0);
+ //BA.debugLineNum = 843;BA.debugLine="Private precio As String = traePrecio(prodId, tr";
+_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba));
+ //BA.debugLineNum = 844;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS s";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_prodid}));
+ //BA.debugLineNum = 845;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
+ //BA.debugLineNum = 846;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
+ //BA.debugLineNum = 849;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_COSTO_TOT = REP_CANT * "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+", REP_PRECIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+"' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
+ };
+ //BA.debugLineNum = 851;BA.debugLine="End Sub";
+return "";
+}
+public static String _prodventa(anywheresoftware.b4a.BA _ba,String _clienteoriginal,String _prodid) throws Exception{
+String _precio = "";
+ //BA.debugLineNum = 793;BA.debugLine="Sub prodVenta(clienteOriginal As String, prodId As";
+ //BA.debugLineNum = 795;BA.debugLine="Private precio As String = traePrecio(prodId, tra";
+_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba));
+ //BA.debugLineNum = 796;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
+ //BA.debugLineNum = 797;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
+ //BA.debugLineNum = 798;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT - 1";
+anywheresoftware.b4a.keywords.Common.LogImpl("536175877",("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0);
+ //BA.debugLineNum = 799;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT + 1";
+anywheresoftware.b4a.keywords.Common.LogImpl("536175878",("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0);
+ //BA.debugLineNum = 800;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_COSTO_TOT = REP_CANT * "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+", REP_PRECIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+"' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
+ //BA.debugLineNum = 821;BA.debugLine="End Sub";
+return "";
+}
+public static String _revisabd(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+ //BA.debugLineNum = 195;BA.debugLine="Sub revisaBD 'ignore";
+ //BA.debugLineNum = 196;BA.debugLine="If Not(File.Exists(Starter.ruta, \"kmt.db\")) Then";
+if (anywheresoftware.b4a.keywords.Common.Not(anywheresoftware.b4a.keywords.Common.File.Exists(mostCurrent._starter._ruta /*String*/ ,"kmt.db"))) {
+anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"kmt.db",mostCurrent._starter._ruta /*String*/ ,"kmt.db");};
+ //BA.debugLineNum = 197;BA.debugLine="If Not(kmt.IsInitialized) Then kmt.Initialize(Sta";
+if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) {
+_kmt.Initialize(mostCurrent._starter._ruta /*String*/ ,"kmt.db",anywheresoftware.b4a.keywords.Common.True);};
+ //BA.debugLineNum = 198;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUTA";
+_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)");
+ //BA.debugLineNum = 200;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS bita";
+_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS bitacora(fecha INTEGER, texto TEXT)");
+ //BA.debugLineNum = 202;BA.debugLine="kmt.ExecNonQuery(\"DROP TABLE IF EXISTS CAT_FOLIOS";
+_kmt.ExecNonQuery("DROP TABLE IF EXISTS CAT_FOLIOS");
+ //BA.debugLineNum = 203;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS REPA";
+_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS REPARTO_GEO (CLIENTE TEXT, USUARIO TEXT, FECHA_PUNTEO TEXT, LATITUD TEXT, LONGITUD TEXT, ALMACEN TEXT, RUTA_REPARTO TEXT, RUTA_PREV TEXT, FECHA_PREVENTA TEXT, MOTIVO TEXT, COMENTARIO TEXT, TIPO TEXT, ENVIO TEXT)");
+ //BA.debugLineNum = 205;BA.debugLine="If Not(errorLog.IsInitialized) Then errorLog.Init";
+if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) {
+_errorlog.Initialize(mostCurrent._starter._ruta /*String*/ ,"errorLog.db",anywheresoftware.b4a.keywords.Common.True);};
+ //BA.debugLineNum = 206;BA.debugLine="errorLog.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS";
+_errorlog.ExecNonQuery("CREATE TABLE IF NOT EXISTS errores(fecha INTEGER, error TEXT)");
+ //BA.debugLineNum = 208;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
+try { //BA.debugLineNum = 209;BA.debugLine="Dim c As Cursor=kmt.ExecQuery(\"SELECT COUNT(*) A";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('noventa') WHERE name='NV_REPROGRAMAR'")));
+ //BA.debugLineNum = 210;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 211;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
+if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
+ //BA.debugLineNum = 212;BA.debugLine="kmt.ExecNonQuery(\"ALTER TABLE noventa ADD COLUM";
+_kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT");
+ };
+ }
+ catch (Exception e16) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16); //BA.debugLineNum = 215;BA.debugLine="Try";
+try { //BA.debugLineNum = 216;BA.debugLine="kmt.ExecNonQuery(\"ALTER TABLE noventa ADD COLUM";
+_kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT");
+ }
+ catch (Exception e19) {
+ (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19); //BA.debugLineNum = 218;BA.debugLine="Log(LastException)";
+anywheresoftware.b4a.keywords.Common.LogImpl("533488919",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
+ };
+ };
+ //BA.debugLineNum = 221;BA.debugLine="End Sub";
+return "";
+}
+public static String _revisaflp(anywheresoftware.b4a.BA _ba) throws Exception{
+boolean _todobienflp = false;
+ //BA.debugLineNum = 372;BA.debugLine="Sub revisaFLP 'ignore";
+ //BA.debugLineNum = 373;BA.debugLine="LogColor($\"**** **** Revisamos FLP - ${fechaKMT(D";
+anywheresoftware.b4a.keywords.Common.LogImpl("534340865",("**** **** Revisamos FLP - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))))+"**** ****"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
+ //BA.debugLineNum = 374;BA.debugLine="Private todoBienFLP As Boolean = True";
+_todobienflp = anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 375;BA.debugLine="If Not(Tracker.FLP.IsInitialized) Then";
+if (anywheresoftware.b4a.keywords.Common.Not(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized())) {
+ //BA.debugLineNum = 376;BA.debugLine="log2DB(\"revisaFLP: No esta inicializado ... 'Rei";
+_log2db(_ba,"revisaFLP: No esta inicializado ... 'Reinicializando FLP'");
+ //BA.debugLineNum = 377;BA.debugLine="Tracker.FLP.Initialize(\"flp\")";
+mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .Initialize((_ba.processBA == null ? _ba : _ba.processBA),"flp");
+ //BA.debugLineNum = 378;BA.debugLine="todoBienFLP = False";
+_todobienflp = anywheresoftware.b4a.keywords.Common.False;
+ };
+ //BA.debugLineNum = 380;BA.debugLine="If Tracker.FLP.IsInitialized Then";
+if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized()) {
+ //BA.debugLineNum = 381;BA.debugLine="If Not(Tracker.FLP.IsConnected) Then";
+if (anywheresoftware.b4a.keywords.Common.Not(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsConnected())) {
+ //BA.debugLineNum = 382;BA.debugLine="log2DB(\"revisaFLP: No esta conectado ... 'Recon";
+_log2db(_ba,"revisaFLP: No esta conectado ... 'Reconectando FLP'");
+ //BA.debugLineNum = 384;BA.debugLine="CallSubDelayed(Tracker,\"StartFLP\")";
+anywheresoftware.b4a.keywords.Common.CallSubDelayed((_ba.processBA == null ? _ba : _ba.processBA),(Object)(mostCurrent._tracker.getObject()),"StartFLP");
+ //BA.debugLineNum = 385;BA.debugLine="todoBienFLP = False";
+_todobienflp = anywheresoftware.b4a.keywords.Common.False;
+ };
+ //BA.debugLineNum = 387;BA.debugLine="If Tracker.FLP.IsConnected And _ Tracker.FLP.";
+if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsConnected() && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized() && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().DistanceTo((android.location.Location)(mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getObject()))>500) {
+ //BA.debugLineNum = 390;BA.debugLine="log2DB(\"revisaFLP: 'No se esta actualizando, lo";
+_log2db(_ba,"revisaFLP: 'No se esta actualizando, lo reiniciamos ...'");
+ //BA.debugLineNum = 391;BA.debugLine="StartService(Tracker)";
+anywheresoftware.b4a.keywords.Common.StartService((_ba.processBA == null ? _ba : _ba.processBA),(Object)(mostCurrent._tracker.getObject()));
+ //BA.debugLineNum = 392;BA.debugLine="todoBienFLP = False";
+_todobienflp = anywheresoftware.b4a.keywords.Common.False;
+ };
+ };
+ //BA.debugLineNum = 395;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin errore";
+if (_todobienflp) {
+anywheresoftware.b4a.keywords.Common.LogImpl("534340887"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
+ //BA.debugLineNum = 397;BA.debugLine="End Sub";
+return "";
+}
+public static String _revisapushservice(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 400;BA.debugLine="Sub revisaPushService 'ignore";
+ //BA.debugLineNum = 438;BA.debugLine="End Sub";
+return "";
+}
+public static String _revisauug(anywheresoftware.b4a.BA _ba) throws Exception{
+int _daa = 0;
+ //BA.debugLineNum = 358;BA.debugLine="Sub revisaUUG 'ignore";
+ //BA.debugLineNum = 359;BA.debugLine="revisaFLP";
+_revisaflp(_ba);
+ //BA.debugLineNum = 360;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized";
+if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) {
+ //BA.debugLineNum = 361;BA.debugLine="Dim daa As Int = Tracker.UUGCoords.DistanceTo(Tr";
+_daa = (int) (mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .DistanceTo((android.location.Location)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getObject())));
+ //BA.debugLineNum = 362;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"****";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("534275332",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
+ //BA.debugLineNum = 363;BA.debugLine="If daa > 40 And Tracker.FLP.GetLastKnownLocation";
+if (_daa>40 && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()<35) {
+ //BA.debugLineNum = 364;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(fecha,";
+_kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getTime()))),(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()),(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude())}));
+ //BA.debugLineNum = 365;BA.debugLine="If B4XPages.MainPage.Logger Then Log(\"++++ Dist";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("534275335","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()),0);};
+ };
+ //BA.debugLineNum = 367;BA.debugLine="Tracker.UUGCoords = Tracker.FLP.GetLastKnownLoca";
+mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ = mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation();
+ };
+ //BA.debugLineNum = 369;BA.debugLine="End Sub";
+return "";
+}
+public static String _setdivider(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ListViewWrapper _lv,int _color,int _height) throws Exception{
+anywheresoftware.b4a.agraham.reflection.Reflection _r = null;
+anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null;
+ //BA.debugLineNum = 594;BA.debugLine="Sub SetDivider(lv As ListView, Color As Int, Heigh";
+ //BA.debugLineNum = 595;BA.debugLine="Dim r As Reflector";
+_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
+ //BA.debugLineNum = 596;BA.debugLine="r.Target = lv";
+_r.Target = (Object)(_lv.getObject());
+ //BA.debugLineNum = 597;BA.debugLine="Dim CD As ColorDrawable";
+_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
+ //BA.debugLineNum = 598;BA.debugLine="CD.Initialize(Color, 0)";
+_cd.Initialize(_color,(int) (0));
+ //BA.debugLineNum = 599;BA.debugLine="r.RunMethod4(\"setDivider\", Array As Object(CD), A";
+_r.RunMethod4("setDivider",new Object[]{(Object)(_cd.getObject())},new String[]{"android.graphics.drawable.Drawable"});
+ //BA.debugLineNum = 600;BA.debugLine="r.RunMethod2(\"setDividerHeight\", Height, \"java.la";
+_r.RunMethod2("setDividerHeight",BA.NumberToString(_height),"java.lang.int");
+ //BA.debugLineNum = 601;BA.debugLine="End Sub";
+return "";
+}
+public static String _traealmacen(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _a = "";
+ //BA.debugLineNum = 999;BA.debugLine="Sub traeAlmacen As String 'ignore";
+ //BA.debugLineNum = 1000;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 1001;BA.debugLine="Private a As String";
+_a = "";
+ //BA.debugLineNum = 1002;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_ALMACEN fro";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
+ //BA.debugLineNum = 1003;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1004;BA.debugLine="a = C.GetString(\"ID_ALMACEN\")";
+_a = _c.GetString("ID_ALMACEN");
+ //BA.debugLineNum = 1005;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1006;BA.debugLine="Return a";
+if (true) return _a;
+ //BA.debugLineNum = 1007;BA.debugLine="End Sub";
+return "";
+}
+public static int _traecantidadrechazada(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{
+int _cant = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null;
+ //BA.debugLineNum = 757;BA.debugLine="Sub traeCantidadRechazada(cliente As String, prodI";
+ //BA.debugLineNum = 758;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 759;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S";
+_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_RECHAZO = 1"))));
+ //BA.debugLineNum = 760;BA.debugLine="If cr.RowCount > 0 Then";
+if (_cr.getRowCount()>0) {
+ //BA.debugLineNum = 761;BA.debugLine="cr.Position = 0";
+_cr.setPosition((int) (0));
+ //BA.debugLineNum = 762;BA.debugLine="cant = cr.GetString(\"REP_CANT\")";
+_cant = (int)(Double.parseDouble(_cr.GetString("REP_CANT")));
+ };
+ //BA.debugLineNum = 764;BA.debugLine="Log($\"${cliente}, ${prodId}, rowcont:${cr.RowCoun";
+anywheresoftware.b4a.keywords.Common.LogImpl("535979271",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", rowcont:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cr.getRowCount()))+", cant: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+""),0);
+ //BA.debugLineNum = 765;BA.debugLine="Return cant";
+if (true) return _cant;
+ //BA.debugLineNum = 766;BA.debugLine="End Sub";
+return 0;
+}
+public static int _traecantidadvendida(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{
+int _cant = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null;
+ //BA.debugLineNum = 769;BA.debugLine="Sub traeCantidadVendida(cliente As String, prodId";
+ //BA.debugLineNum = 770;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 771;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S";
+_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cli_orig = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_RECHAZO = 0 and REP_CANT > 0"))));
+ //BA.debugLineNum = 773;BA.debugLine="If cr.RowCount > 0 Then";
+if (_cr.getRowCount()>0) {
+ //BA.debugLineNum = 774;BA.debugLine="cr.Position = 0";
+_cr.setPosition((int) (0));
+ //BA.debugLineNum = 775;BA.debugLine="cant = cr.GetString(\"REP_CANT\")";
+_cant = (int)(Double.parseDouble(_cr.GetString("REP_CANT")));
+ };
+ //BA.debugLineNum = 777;BA.debugLine="Return cant";
+if (true) return _cant;
+ //BA.debugLineNum = 778;BA.debugLine="End Sub";
+return 0;
+}
+public static anywheresoftware.b4a.objects.collections.Map _traecantymonto2(anywheresoftware.b4a.BA _ba,String _cliente) throws Exception{
+int _cant = 0;
+float _monto = 0f;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _ccym = null;
+int _i = 0;
+ //BA.debugLineNum = 881;BA.debugLine="Sub traeCantYMonto2(cliente As String) As Map";
+ //BA.debugLineNum = 883;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 884;BA.debugLine="Private monto As Float = 0";
+_monto = (float) (0);
+ //BA.debugLineNum = 885;BA.debugLine="Private ccym As Cursor = Starter.skmt.ExecQuery($";
+_ccym = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_ccym = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select hvd_codpromo, hvd_proid, HVD_CANT, (Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = hvd_proid) As precio from HIST_VENTAS where HVD_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"'"))));
+ //BA.debugLineNum = 886;BA.debugLine="If ccym.RowCount > 0 Then";
+if (_ccym.getRowCount()>0) {
+ //BA.debugLineNum = 887;BA.debugLine="For i=0 To ccym.RowCount -1";
+{
+final int step5 = 1;
+final int limit5 = (int) (_ccym.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit5 ;_i = _i + step5 ) {
+ //BA.debugLineNum = 888;BA.debugLine="ccym.Position = i";
+_ccym.setPosition(_i);
+ //BA.debugLineNum = 889;BA.debugLine="If ccym.GetString(\"HVD_CODPROMO\") <> ccym.GetSt";
+if ((_ccym.GetString("HVD_CODPROMO")).equals(_ccym.GetString("HVD_PROID")) == false && _ccym.GetString("precio")!= null) {
+ //BA.debugLineNum = 890;BA.debugLine="cant = cant + ccym.GetString(\"HVD_CANT\")";
+_cant = (int) (_cant+(double)(Double.parseDouble(_ccym.GetString("HVD_CANT"))));
+ //BA.debugLineNum = 892;BA.debugLine="monto = monto + (ccym.GetString(\"HVD_CANT\") *";
+_monto = (float) (_monto+((double)(Double.parseDouble(_ccym.GetString("HVD_CANT")))*(double)(Double.parseDouble(_traeprecio(_ba,_ccym.GetString("HVD_PROID"),_ccym.GetString("HVD_CODPROMO"))))));
+ };
+ }
+};
+ };
+ //BA.debugLineNum = 898;BA.debugLine="ccym = Starter.skmt.ExecQuery($\"Select rep_prodid";
+_ccym = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_prodid, iFNULL(REP_CANT, 0) AS REP_CANT, iFNULL((Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = rep_prodid),0) As precio from REPARTO where REP_CLIENTE in (Select cuenta from cuentaa) And REP_RECHAZO = '0' and REP_CANT > 0"))));
+ //BA.debugLineNum = 899;BA.debugLine="If ccym.RowCount > 0 Then";
+if (_ccym.getRowCount()>0) {
+ //BA.debugLineNum = 900;BA.debugLine="For i=0 To ccym.RowCount -1";
+{
+final int step15 = 1;
+final int limit15 = (int) (_ccym.getRowCount()-1);
+_i = (int) (0) ;
+for (;_i <= limit15 ;_i = _i + step15 ) {
+ //BA.debugLineNum = 901;BA.debugLine="ccym.Position = i";
+_ccym.setPosition(_i);
+ //BA.debugLineNum = 902;BA.debugLine="If ccym.GetString(\"REP_CANT\") <> Null Then cant";
+if (_ccym.GetString("REP_CANT")!= null) {
+_cant = (int) (_cant+(double)(Double.parseDouble(_ccym.GetString("REP_CANT"))));};
+ //BA.debugLineNum = 903;BA.debugLine="monto = monto + (ccym.GetString(\"REP_CANT\") * c";
+_monto = (float) (_monto+((double)(Double.parseDouble(_ccym.GetString("REP_CANT")))*(double)(Double.parseDouble(_ccym.GetString("precio")))));
+ }
+};
+ //BA.debugLineNum = 905;BA.debugLine="Log($\"CANT=${cant}, MONTO=${monto}\"$)";
+anywheresoftware.b4a.keywords.Common.LogImpl("536372504",("CANT="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", MONTO="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_monto))+""),0);
+ };
+ //BA.debugLineNum = 908;BA.debugLine="ccym.Close";
+_ccym.Close();
+ //BA.debugLineNum = 909;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)";
+if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)});
+ //BA.debugLineNum = 910;BA.debugLine="End Sub";
+return null;
+}
+public static String _traecliente(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _cli = null;
+String _cl = "";
+ //BA.debugLineNum = 722;BA.debugLine="Sub traeCliente As String 'ignore";
+ //BA.debugLineNum = 723;BA.debugLine="Private cli As Cursor = Starter.skmt.ExecQuery(\"S";
+_cli = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cli = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa")));
+ //BA.debugLineNum = 724;BA.debugLine="cli.Position = 0";
+_cli.setPosition((int) (0));
+ //BA.debugLineNum = 725;BA.debugLine="Private cl As String = cli.GetString(\"CUENTA\")";
+_cl = _cli.GetString("CUENTA");
+ //BA.debugLineNum = 726;BA.debugLine="cli.Close";
+_cli.Close();
+ //BA.debugLineNum = 727;BA.debugLine="Log(\"Algo paso...\"& cl)";
+anywheresoftware.b4a.keywords.Common.LogImpl("535782661","Algo paso..."+_cl,0);
+ //BA.debugLineNum = 728;BA.debugLine="Return cl";
+if (true) return _cl;
+ //BA.debugLineNum = 729;BA.debugLine="End Sub";
+return "";
+}
+public static String _traeconversion(anywheresoftware.b4a.BA _ba,String _id) throws Exception{
+String _pu = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null;
+ //BA.debugLineNum = 706;BA.debugLine="Sub traeConversion(id As String) As String";
+ //BA.debugLineNum = 707;BA.debugLine="Private pu As String = \"0\"";
+_pu = "0";
+ //BA.debugLineNum = 709;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C";
+_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'"))));
+ //BA.debugLineNum = 710;BA.debugLine="If idc.RowCount > 0 Then";
+if (_idc.getRowCount()>0) {
+ //BA.debugLineNum = 711;BA.debugLine="idc.Position=0";
+_idc.setPosition((int) (0));
+ //BA.debugLineNum = 712;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(";
+if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CONVERSION"))) {
+_pu = _idc.GetString("CONVERSION");};
+ };
+ //BA.debugLineNum = 715;BA.debugLine="idc.Close";
+_idc.Close();
+ //BA.debugLineNum = 717;BA.debugLine="Return pu";
+if (true) return _pu;
+ //BA.debugLineNum = 718;BA.debugLine="End Sub";
+return "";
+}
+public static anywheresoftware.b4a.objects.collections.Map _traeentregados(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.objects.collections.Map _m = null;
+int _cant = 0;
+String _monto = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null;
+ //BA.debugLineNum = 913;BA.debugLine="Sub traeEntregados As Map";
+ //BA.debugLineNum = 914;BA.debugLine="Private m As Map";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 915;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 916;BA.debugLine="Private monto As String = 0";
+_monto = BA.NumberToString(0);
+ //BA.debugLineNum = 917;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
+_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(HVD_CANT) as CUANTOS, sum(HVD_COSTO_TOT) as CUANTO from HIST_VENTAS where HVD_ESTATUS = '1' and HVD_COSTO_TOT <> '0'"))));
+ //BA.debugLineNum = 918;BA.debugLine="If rc.RowCount > 0 Then";
+if (_rc.getRowCount()>0) {
+ //BA.debugLineNum = 919;BA.debugLine="rc.Position = 0";
+_rc.setPosition((int) (0));
+ //BA.debugLineNum = 920;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then";
+if (_rc.GetString("CUANTOS")!= null) {
+ //BA.debugLineNum = 921;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")";
+_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS"))));
+ //BA.debugLineNum = 922;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")";
+_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO"))));
+ };
+ };
+ //BA.debugLineNum = 926;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto";
+if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)});
+ //BA.debugLineNum = 927;BA.debugLine="End Sub";
+return null;
+}
+public static String _traefechaprev(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _a = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _clienteasing = null;
+String[] _fecha = null;
+String _fecha3 = "";
+String[] _hora = null;
+ //BA.debugLineNum = 1020;BA.debugLine="Sub traefECHAPREV As String 'ignore";
+ //BA.debugLineNum = 1021;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 1022;BA.debugLine="Private a As String";
+_a = "";
+ //BA.debugLineNum = 1023;BA.debugLine="Private clienteasing As Cursor = Starter.skmt.Exe";
+_clienteasing = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_clienteasing = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA")));
+ //BA.debugLineNum = 1024;BA.debugLine="clienteasing.Position = 0";
+_clienteasing.setPosition((int) (0));
+ //BA.debugLineNum = 1025;BA.debugLine="If clienteasing.GetString(\"CUENTA\") <> \"63403\" Th";
+if ((_clienteasing.GetString("CUENTA")).equals("63403") == false) {
+ //BA.debugLineNum = 1026;BA.debugLine="c = Starter.skmt.ExecQuery(\"select HVD_FECHA fro";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS where HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 1027;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1028;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", c.GetSt";
+_fecha = anywheresoftware.b4a.keywords.Common.Regex.Split(" ",_c.GetString("HVD_FECHA"));
+ //BA.debugLineNum = 1029;BA.debugLine="Dim fecha3 As String = fecha(0)";
+_fecha3 = _fecha[(int) (0)];
+ //BA.debugLineNum = 1030;BA.debugLine="Log(fecha3)";
+anywheresoftware.b4a.keywords.Common.LogImpl("536896778",_fecha3,0);
+ //BA.debugLineNum = 1031;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
+_hora = anywheresoftware.b4a.keywords.Common.Regex.Split("\\.",_fecha[(int) (1)]);
+ //BA.debugLineNum = 1032;BA.debugLine="a = fecha3 & \" \" & hora(0)";
+_a = _fecha3+" "+_hora[(int) (0)];
+ //BA.debugLineNum = 1033;BA.debugLine="c.Close";
+_c.Close();
+ }else if((_clienteasing.GetString("CUENTA")).equals("63403")) {
+ //BA.debugLineNum = 1035;BA.debugLine="c = Starter.skmt.ExecQuery(\"select HVD_FECHA fro";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS")));
+ //BA.debugLineNum = 1036;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1037;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", c.GetSt";
+_fecha = anywheresoftware.b4a.keywords.Common.Regex.Split(" ",_c.GetString("HVD_FECHA"));
+ //BA.debugLineNum = 1038;BA.debugLine="Dim fecha3 As String = fecha(0)";
+_fecha3 = _fecha[(int) (0)];
+ //BA.debugLineNum = 1039;BA.debugLine="Log(fecha3)";
+anywheresoftware.b4a.keywords.Common.LogImpl("536896787",_fecha3,0);
+ //BA.debugLineNum = 1040;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
+_hora = anywheresoftware.b4a.keywords.Common.Regex.Split("\\.",_fecha[(int) (1)]);
+ //BA.debugLineNum = 1041;BA.debugLine="a = fecha3 & \" \" & hora(0)";
+_a = _fecha3+" "+_hora[(int) (0)];
+ //BA.debugLineNum = 1042;BA.debugLine="c.Close";
+_c.Close();
+ };
+ //BA.debugLineNum = 1044;BA.debugLine="Return a";
+if (true) return _a;
+ //BA.debugLineNum = 1045;BA.debugLine="End Sub";
+return "";
+}
+public static String _traefechareparto(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _fe = null;
+String _f = "";
+ //BA.debugLineNum = 731;BA.debugLine="Sub traeFechaReparto As String";
+ //BA.debugLineNum = 732;BA.debugLine="Private fe As Cursor = Starter.skmt.ExecQuery(\"se";
+_fe = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_fe = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)")));
+ //BA.debugLineNum = 733;BA.debugLine="Private f As String = \"-\"";
+_f = "-";
+ //BA.debugLineNum = 734;BA.debugLine="If fe.RowCount > 0 Then";
+if (_fe.getRowCount()>0) {
+ //BA.debugLineNum = 735;BA.debugLine="fe.Position = 0";
+_fe.setPosition((int) (0));
+ //BA.debugLineNum = 736;BA.debugLine="f = fe.GetString(\"HVD_FECHA\")";
+_f = _fe.GetString("HVD_FECHA");
+ };
+ //BA.debugLineNum = 738;BA.debugLine="fe.Close";
+_fe.Close();
+ //BA.debugLineNum = 739;BA.debugLine="Return f";
+if (true) return _f;
+ //BA.debugLineNum = 740;BA.debugLine="End Sub";
+return "";
+}
+public static int _traemaxcantidad(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{
+int _cant = 0;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null;
+ //BA.debugLineNum = 781;BA.debugLine="Sub traeMaxCantidad(cliente As String, prodId As S";
+ //BA.debugLineNum = 782;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 783;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S";
+_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select hvd_cant from hist_ventas2 where hvd_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and hvd_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"))));
+ //BA.debugLineNum = 785;BA.debugLine="If cr.RowCount > 0 Then";
+if (_cr.getRowCount()>0) {
+ //BA.debugLineNum = 786;BA.debugLine="cr.Position = 0";
+_cr.setPosition((int) (0));
+ //BA.debugLineNum = 787;BA.debugLine="cant = cr.GetString(\"HVD_CANT\")";
+_cant = (int)(Double.parseDouble(_cr.GetString("HVD_CANT")));
+ };
+ //BA.debugLineNum = 789;BA.debugLine="Return cant";
+if (true) return _cant;
+ //BA.debugLineNum = 790;BA.debugLine="End Sub";
+return 0;
+}
+public static anywheresoftware.b4a.objects.collections.Map _traemoscantymonto(anywheresoftware.b4a.BA _ba,b4a.example3.customlistview _clv) throws Exception{
+int _cant = 0;
+float _monto = 0f;
+int _i = 0;
+anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _cant2 = null;
+anywheresoftware.b4a.objects.collections.List _estetag = null;
+ //BA.debugLineNum = 853;BA.debugLine="Sub traemosCantYMonto(clv As CustomListView) As Ma";
+ //BA.debugLineNum = 855;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 856;BA.debugLine="Private monto As Float = 0";
+_monto = (float) (0);
+ //BA.debugLineNum = 857;BA.debugLine="For i = 0 To clv.GetSize - 1";
+{
+final int step3 = 1;
+final int limit3 = (int) (_clv._getsize()-1);
+_i = (int) (0) ;
+for (;_i <= limit3 ;_i = _i + step3 ) {
+ //BA.debugLineNum = 858;BA.debugLine="Private p0 As B4XView = clv.GetPanel(i)";
+_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p0 = _clv._getpanel(_i);
+ //BA.debugLineNum = 859;BA.debugLine="Private p As B4XView = p0.GetView(0)";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _p0.GetView((int) (0));
+ //BA.debugLineNum = 860;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(";
+_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_cant1 = _p.GetView((int) (2)).GetView((int) (3));
+ //BA.debugLineNum = 861;BA.debugLine="Private cant2 As B4XView = p.GetView(3).GetView(";
+_cant2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_cant2 = _p.GetView((int) (3)).GetView((int) (3));
+ //BA.debugLineNum = 863;BA.debugLine="If cant1.text <> \"\" Then";
+if ((_cant1.getText()).equals("") == false) {
+ //BA.debugLineNum = 864;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0";
+if ((_cant1.getText()).equals("")) {
+_cant1.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 865;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",BA.ObjectToString(_cant1.getTag())));
+ //BA.debugLineNum = 867;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant =";
+if ((_estetag.Get((int) (2))).equals(_estetag.Get((int) (3))) == false) {
+_cant = (int) (_cant+(double)(Double.parseDouble(_cant1.getText())));};
+ //BA.debugLineNum = 868;BA.debugLine="monto = monto + (esteTag.Get(0) * cant1.Text)";
+_monto = (float) (_monto+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant1.getText()))));
+ }else {
+ //BA.debugLineNum = 870;BA.debugLine="If cant2.Text = \"\" Then cant2.Text = 0";
+if ((_cant2.getText()).equals("")) {
+_cant2.setText(BA.ObjectToCharSequence(0));};
+ //BA.debugLineNum = 871;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can";
+_estetag = new anywheresoftware.b4a.objects.collections.List();
+_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",BA.ObjectToString(_cant2.getTag())));
+ //BA.debugLineNum = 873;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant =";
+if ((_estetag.Get((int) (2))).equals(_estetag.Get((int) (3))) == false) {
+_cant = (int) (_cant+(double)(Double.parseDouble(_cant2.getText())));};
+ //BA.debugLineNum = 874;BA.debugLine="monto = monto + (esteTag.Get(0) * cant2.Text)";
+_monto = (float) (_monto+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant2.getText()))));
+ };
+ }
+};
+ //BA.debugLineNum = 878;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)";
+if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)});
+ //BA.debugLineNum = 879;BA.debugLine="End Sub";
+return null;
+}
+public static String _traenombre(anywheresoftware.b4a.BA _ba,String _id) throws Exception{
+String _nombre = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null;
+ //BA.debugLineNum = 624;BA.debugLine="Sub traeNombre(id As String) As String";
+ //BA.debugLineNum = 625;BA.debugLine="Private nombre As String";
+_nombre = "";
+ //BA.debugLineNum = 626;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select HV";
+_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select HVD_PRONOMBRE from HIST_VENTAS where HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'"))));
+ //BA.debugLineNum = 627;BA.debugLine="idc.Position=0";
+_idc.setPosition((int) (0));
+ //BA.debugLineNum = 628;BA.debugLine="If idc.RowCount > 0 Then nombre = idc.GetString(\"";
+if (_idc.getRowCount()>0) {
+_nombre = _idc.GetString("HVD_PRONOMBRE");};
+ //BA.debugLineNum = 629;BA.debugLine="idc.Close";
+_idc.Close();
+ //BA.debugLineNum = 631;BA.debugLine="Return nombre";
+if (true) return _nombre;
+ //BA.debugLineNum = 632;BA.debugLine="End Sub";
+return "";
+}
+public static String _traeprecio(anywheresoftware.b4a.BA _ba,String _id,String _quepromo) throws Exception{
+String _pu = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _pc = null;
+ //BA.debugLineNum = 635;BA.debugLine="Sub traePrecio(id As String, quePromo As String) A";
+ //BA.debugLineNum = 636;BA.debugLine="Private pu As String = \"0\"";
+_pu = "0";
+ //BA.debugLineNum = 638;BA.debugLine="If quePromo = traeAlmacen Then";
+if ((_quepromo).equals(_traealmacen(_ba))) {
+ //BA.debugLineNum = 639;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C";
+_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'"))));
+ //BA.debugLineNum = 640;BA.debugLine="If idc.RowCount > 0 Then";
+if (_idc.getRowCount()>0) {
+ //BA.debugLineNum = 641;BA.debugLine="idc.Position=0";
+_idc.setPosition((int) (0));
+ //BA.debugLineNum = 642;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(";
+if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CAT_GP_PRECIO"))) {
+_pu = _idc.GetString("CAT_GP_PRECIO");};
+ };
+ //BA.debugLineNum = 645;BA.debugLine="idc.Close";
+_idc.Close();
+ }else {
+ //BA.debugLineNum = 647;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\"";
+_pc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_pc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS2 where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"' and HVD_CODPROMO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_quepromo))+"'"))));
+ //BA.debugLineNum = 648;BA.debugLine="If pc.RowCount > 0 Then";
+if (_pc.getRowCount()>0) {
+ //BA.debugLineNum = 649;BA.debugLine="pc.Position = 0";
+_pc.setPosition((int) (0));
+ //BA.debugLineNum = 651;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc.";
+if (_pc.GetString("HVD_COSTO_TOT")!= null && _pc.GetString("HVD_CANT")!= null) {
+ //BA.debugLineNum = 652;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr";
+_pu = BA.NumberToString((double)(Double.parseDouble(_pc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_pc.GetString("HVD_CANT"))));
+ };
+ };
+ //BA.debugLineNum = 656;BA.debugLine="pc.Close";
+_pc.Close();
+ };
+ //BA.debugLineNum = 659;BA.debugLine="Return pu";
+if (true) return _pu;
+ //BA.debugLineNum = 661;BA.debugLine="End Sub";
+return "";
+}
+public static String _traeprecio2(anywheresoftware.b4a.BA _ba,String _id,String _quepromo,String _consecutivo) throws Exception{
+String _pu = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null;
+anywheresoftware.b4a.sql.SQL.CursorWrapper _pc = null;
+ //BA.debugLineNum = 664;BA.debugLine="Sub traePrecio2(id As String, quePromo As String,";
+ //BA.debugLineNum = 665;BA.debugLine="Private pu As String = \"0\"";
+_pu = "0";
+ //BA.debugLineNum = 667;BA.debugLine="If quePromo = traeAlmacen Then";
+if ((_quepromo).equals(_traealmacen(_ba))) {
+ //BA.debugLineNum = 668;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C";
+_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'"))));
+ //BA.debugLineNum = 669;BA.debugLine="If idc.RowCount > 0 Then";
+if (_idc.getRowCount()>0) {
+ //BA.debugLineNum = 670;BA.debugLine="idc.Position=0";
+_idc.setPosition((int) (0));
+ //BA.debugLineNum = 671;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(";
+if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CAT_GP_PRECIO"))) {
+_pu = _idc.GetString("CAT_GP_PRECIO");};
+ };
+ //BA.debugLineNum = 674;BA.debugLine="idc.Close";
+_idc.Close();
+ }else {
+ //BA.debugLineNum = 676;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\"";
+_pc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_pc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"' and HVD_CODPROMO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_quepromo))+"' AND CONSECUTIVO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_consecutivo))+"'"))));
+ //BA.debugLineNum = 677;BA.debugLine="If pc.RowCount > 0 Then";
+if (_pc.getRowCount()>0) {
+ //BA.debugLineNum = 678;BA.debugLine="pc.Position = 0";
+_pc.setPosition((int) (0));
+ //BA.debugLineNum = 680;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc.";
+if (_pc.GetString("HVD_COSTO_TOT")!= null && _pc.GetString("HVD_CANT")!= null) {
+ //BA.debugLineNum = 681;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr";
+_pu = BA.NumberToString((double)(Double.parseDouble(_pc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_pc.GetString("HVD_CANT"))));
+ };
+ };
+ //BA.debugLineNum = 685;BA.debugLine="pc.Close";
+_pc.Close();
+ };
+ //BA.debugLineNum = 688;BA.debugLine="Return pu";
+if (true) return _pu;
+ //BA.debugLineNum = 690;BA.debugLine="End Sub";
+return "";
+}
+public static String _traeprecioc(anywheresoftware.b4a.BA _ba,String _id) throws Exception{
+String _pu = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null;
+ //BA.debugLineNum = 693;BA.debugLine="Sub traePrecioC(id As String) As String";
+ //BA.debugLineNum = 694;BA.debugLine="Private pu As String = \"0\"";
+_pu = "0";
+ //BA.debugLineNum = 695;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select PR";
+_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select PRECIOCONVER from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'"))));
+ //BA.debugLineNum = 696;BA.debugLine="If idc.RowCount > 0 Then";
+if (_idc.getRowCount()>0) {
+ //BA.debugLineNum = 697;BA.debugLine="idc.Position=0";
+_idc.setPosition((int) (0));
+ //BA.debugLineNum = 698;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(\"";
+if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("PRECIOCONVER"))) {
+_pu = _idc.GetString("PRECIOCONVER");};
+ };
+ //BA.debugLineNum = 701;BA.debugLine="idc.Close";
+_idc.Close();
+ //BA.debugLineNum = 702;BA.debugLine="Return pu";
+if (true) return _pu;
+ //BA.debugLineNum = 703;BA.debugLine="End Sub";
+return "";
+}
+public static anywheresoftware.b4a.objects.collections.Map _traerechazados(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.objects.collections.Map _m = null;
+int _cant = 0;
+String _monto = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null;
+ //BA.debugLineNum = 930;BA.debugLine="Sub traeRechazados As Map";
+ //BA.debugLineNum = 931;BA.debugLine="Private m As Map";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 932;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 933;BA.debugLine="Private monto As String = 0";
+_monto = BA.NumberToString(0);
+ //BA.debugLineNum = 934;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
+_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '1' and REP_CANT <> '0'"))));
+ //BA.debugLineNum = 935;BA.debugLine="If rc.RowCount > 0 Then";
+if (_rc.getRowCount()>0) {
+ //BA.debugLineNum = 936;BA.debugLine="rc.Position = 0";
+_rc.setPosition((int) (0));
+ //BA.debugLineNum = 937;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then";
+if (_rc.GetString("CUANTOS")!= null) {
+ //BA.debugLineNum = 938;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")";
+_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS"))));
+ //BA.debugLineNum = 939;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")";
+_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO"))));
+ };
+ };
+ //BA.debugLineNum = 943;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto";
+if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)});
+ //BA.debugLineNum = 944;BA.debugLine="End Sub";
+return null;
+}
+public static String _traeruta(anywheresoftware.b4a.BA _ba,String _cliente) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _r = "";
+ //BA.debugLineNum = 743;BA.debugLine="Sub traeRuta (cliente As String) As String 'ignore";
+ //BA.debugLineNum = 744;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 745;BA.debugLine="Private r As String";
+_r = "";
+ //BA.debugLineNum = 746;BA.debugLine="c=Starter.skmt.ExecQuery($\"select CAT_CL_RUTA fro";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"'"))));
+ //BA.debugLineNum = 747;BA.debugLine="r = \"0\"";
+_r = "0";
+ //BA.debugLineNum = 748;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 749;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 750;BA.debugLine="r = c.GetString(\"CAT_CL_RUTA\")";
+_r = _c.GetString("CAT_CL_RUTA");
+ };
+ //BA.debugLineNum = 752;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 753;BA.debugLine="Return r";
+if (true) return _r;
+ //BA.debugLineNum = 754;BA.debugLine="End Sub";
+return "";
+}
+public static String _traerutaprev(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _a = "";
+ //BA.debugLineNum = 1047;BA.debugLine="Sub traerUTAPREV As String 'ignore";
+ //BA.debugLineNum = 1048;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 1049;BA.debugLine="Private a As String";
+_a = "";
+ //BA.debugLineNum = 1050;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fr";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
+ //BA.debugLineNum = 1051;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1052;BA.debugLine="a = C.GetString(\"CAT_CL_RUTA\")";
+_a = _c.GetString("CAT_CL_RUTA");
+ //BA.debugLineNum = 1053;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1054;BA.debugLine="Return a";
+if (true) return _a;
+ //BA.debugLineNum = 1055;BA.debugLine="End Sub";
+return "";
+}
+public static String _traerutareparto(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _r = "";
+ //BA.debugLineNum = 985;BA.debugLine="Sub traeRutaReparto As String 'ignore";
+ //BA.debugLineNum = 986;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 987;BA.debugLine="Private r As String";
+_r = "";
+ //BA.debugLineNum = 988;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA")));
+ //BA.debugLineNum = 989;BA.debugLine="r = \"0\"";
+_r = "0";
+ //BA.debugLineNum = 990;BA.debugLine="If c.RowCount > 0 Then";
+if (_c.getRowCount()>0) {
+ //BA.debugLineNum = 991;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 992;BA.debugLine="r = c.GetString(\"RUTAA\")";
+_r = _c.GetString("RUTAA");
+ };
+ //BA.debugLineNum = 994;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 995;BA.debugLine="Return r";
+if (true) return _r;
+ //BA.debugLineNum = 996;BA.debugLine="End Sub";
+return "";
+}
+public static String _traeusuario(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _a = "";
+ //BA.debugLineNum = 1009;BA.debugLine="Sub traeUsuario As String 'ignore";
+ //BA.debugLineNum = 1010;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 1011;BA.debugLine="Private a As String";
+_a = "";
+ //BA.debugLineNum = 1012;BA.debugLine="c = Starter.skmt.ExecQuery(\"select USUARIO from U";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from USUARIOA")));
+ //BA.debugLineNum = 1013;BA.debugLine="c.Position = 0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 1014;BA.debugLine="a = C.GetString(\"USUARIO\")";
+_a = _c.GetString("USUARIO");
+ //BA.debugLineNum = 1015;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 1016;BA.debugLine="Return a";
+if (true) return _a;
+ //BA.debugLineNum = 1017;BA.debugLine="End Sub";
+return "";
+}
+public static String _traeusuariodebd(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
+String _u = "";
+ //BA.debugLineNum = 257;BA.debugLine="Sub traeUsuarioDeBD As String 'ignore";
+ //BA.debugLineNum = 258;BA.debugLine="Private c As Cursor";
+_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+ //BA.debugLineNum = 259;BA.debugLine="Private u As String = \"SinUsuario\"";
+_u = "SinUsuario";
+ //BA.debugLineNum = 260;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD";
+if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) {
+_revisabd(_ba);};
+ //BA.debugLineNum = 261;BA.debugLine="c=kmt.ExecQuery(\"select USUARIO from usuarioa\")";
+_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select USUARIO from usuarioa")));
+ //BA.debugLineNum = 262;BA.debugLine="c.Position=0";
+_c.setPosition((int) (0));
+ //BA.debugLineNum = 263;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")";
+if (_c.getRowCount()>0) {
+_u = _c.GetString("USUARIO");};
+ //BA.debugLineNum = 264;BA.debugLine="c.Close";
+_c.Close();
+ //BA.debugLineNum = 265;BA.debugLine="Return u";
+if (true) return _u;
+ //BA.debugLineNum = 266;BA.debugLine="End Sub";
+return "";
+}
+public static anywheresoftware.b4a.objects.collections.Map _traevendidos(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.objects.collections.Map _m = null;
+int _cant = 0;
+String _monto = "";
+anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null;
+ //BA.debugLineNum = 947;BA.debugLine="Sub traeVendidos As Map";
+ //BA.debugLineNum = 948;BA.debugLine="Private m As Map";
+_m = new anywheresoftware.b4a.objects.collections.Map();
+ //BA.debugLineNum = 949;BA.debugLine="Private cant As Int = 0";
+_cant = (int) (0);
+ //BA.debugLineNum = 950;BA.debugLine="Private monto As String = 0";
+_monto = BA.NumberToString(0);
+ //BA.debugLineNum = 951;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
+_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
+_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '0' and REP_CANT <> '0'"))));
+ //BA.debugLineNum = 952;BA.debugLine="If rc.RowCount > 0 Then";
+if (_rc.getRowCount()>0) {
+ //BA.debugLineNum = 953;BA.debugLine="rc.Position = 0";
+_rc.setPosition((int) (0));
+ //BA.debugLineNum = 954;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then";
+if (_rc.GetString("CUANTOS")!= null) {
+ //BA.debugLineNum = 955;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")";
+_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS"))));
+ //BA.debugLineNum = 956;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")";
+_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO"))));
+ };
+ };
+ //BA.debugLineNum = 960;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto";
+if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)});
+ //BA.debugLineNum = 961;BA.debugLine="End Sub";
+return null;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/swiftbutton.java b/B4A/Objects/src/reparto_izca/keymon/lat/swiftbutton.java
new file mode 100644
index 0000000..eda0057
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/swiftbutton.java
@@ -0,0 +1,320 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.B4AClass;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class swiftbutton extends B4AClass.ImplB4AClass implements BA.SubDelegator{
+ private static java.util.HashMap htSubs;
+ private void innerInitialize(BA _ba) throws Exception {
+ if (ba == null) {
+ ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.swiftbutton");
+ if (htSubs == null) {
+ ba.loadHtSubs(this.getClass());
+ htSubs = ba.htSubs;
+ }
+
+ }
+ if (BA.isShellModeRuntimeCheck(ba))
+ this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.swiftbutton.class).invoke(this, new Object[] {null});
+ else
+ ba.raiseEvent2(null, true, "class_globals", false);
+ }
+
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public String _meventname = "";
+public Object _mcallback = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public anywheresoftware.b4a.objects.B4XCanvas _cvs = null;
+public anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
+public int _clr1 = 0;
+public int _clr2 = 0;
+public int _disabledcolor = 0;
+public boolean _pressed = false;
+public Object _tag = null;
+public boolean _mdisabled = false;
+public int _cornersradius = 0;
+public int _sideheight = 0;
+public boolean _mhaptic = false;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public String _base_resize(double _width,double _height) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _v = null;
+ //BA.debugLineNum = 54;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
+ //BA.debugLineNum = 55;BA.debugLine="cvs.Resize(Width, Height)";
+_cvs.Resize((float) (_width),(float) (_height));
+ //BA.debugLineNum = 56;BA.debugLine="For Each v As B4XView In mBase.GetAllViewsRecursi";
+_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
+{
+final anywheresoftware.b4a.BA.IterableList group2 = _mbase.GetAllViewsRecursive();
+final int groupLen2 = group2.getSize()
+;int index2 = 0;
+;
+for (; index2 < groupLen2;index2++){
+_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group2.Get(index2)));
+ //BA.debugLineNum = 57;BA.debugLine="v.SetLayoutAnimated(0, 0, 0, Width, Height)";
+_v.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
+ }
+};
+ //BA.debugLineNum = 59;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 60;BA.debugLine="End Sub";
+return "";
+}
+public String _class_globals() throws Exception{
+ //BA.debugLineNum = 12;BA.debugLine="Sub Class_Globals";
+ //BA.debugLineNum = 13;BA.debugLine="Private mEventName As String 'ignore";
+_meventname = "";
+ //BA.debugLineNum = 14;BA.debugLine="Private mCallBack As Object 'ignore";
+_mcallback = new Object();
+ //BA.debugLineNum = 15;BA.debugLine="Public mBase As B4XView 'ignore";
+_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 16;BA.debugLine="Private xui As XUI 'ignore";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 17;BA.debugLine="Private cvs As B4XCanvas";
+_cvs = new anywheresoftware.b4a.objects.B4XCanvas();
+ //BA.debugLineNum = 18;BA.debugLine="Public xLBL As B4XView";
+_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
+ //BA.debugLineNum = 19;BA.debugLine="Public clr1, clr2, disabledColor As Int";
+_clr1 = 0;
+_clr2 = 0;
+_disabledcolor = 0;
+ //BA.debugLineNum = 20;BA.debugLine="Private pressed As Boolean";
+_pressed = false;
+ //BA.debugLineNum = 21;BA.debugLine="Public Tag As Object";
+_tag = new Object();
+ //BA.debugLineNum = 22;BA.debugLine="Private mDisabled As Boolean";
+_mdisabled = false;
+ //BA.debugLineNum = 23;BA.debugLine="Public CornersRadius, SideHeight As Int";
+_cornersradius = 0;
+_sideheight = 0;
+ //BA.debugLineNum = 24;BA.debugLine="Public mHaptic As Boolean";
+_mhaptic = false;
+ //BA.debugLineNum = 25;BA.debugLine="End Sub";
+return "";
+}
+public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+ //BA.debugLineNum = 32;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
+ //BA.debugLineNum = 33;BA.debugLine="mBase = Base";
+_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
+ //BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_tag = _mbase.getTag();
+ //BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
+_mbase.setTag(this);
+ //BA.debugLineNum = 35;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"p\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel(ba,"p");
+ //BA.debugLineNum = 36;BA.debugLine="p.Color = xui.Color_Transparent";
+_p.setColor(_xui.Color_Transparent);
+ //BA.debugLineNum = 37;BA.debugLine="clr1 = xui.PaintOrColorToColor(Props.Get(\"Primary";
+_clr1 = _xui.PaintOrColorToColor(_props.Get((Object)("PrimaryColor")));
+ //BA.debugLineNum = 38;BA.debugLine="clr2 = xui.PaintOrColorToColor(Props.Get(\"Seconda";
+_clr2 = _xui.PaintOrColorToColor(_props.Get((Object)("SecondaryColor")));
+ //BA.debugLineNum = 39;BA.debugLine="disabledColor = xui.PaintOrColorToColor(Props.Get";
+_disabledcolor = _xui.PaintOrColorToColor(_props.GetDefault((Object)("DisabledColor"),(Object)(((int)0xff999999))));
+ //BA.debugLineNum = 40;BA.debugLine="CornersRadius = DipToCurrent(Props.GetDefault(\"Co";
+_cornersradius = __c.DipToCurrent((int)(BA.ObjectToNumber(_props.GetDefault((Object)("CornersRadius"),(Object)(15)))));
+ //BA.debugLineNum = 41;BA.debugLine="SideHeight = DipToCurrent(Props.GetDefault(\"SideH";
+_sideheight = __c.DipToCurrent((int)(BA.ObjectToNumber(_props.GetDefault((Object)("SideHeight"),(Object)(5)))));
+ //BA.debugLineNum = 42;BA.debugLine="mDisabled = Not(Props.GetDefault(\"ButtonEnabled\",";
+_mdisabled = __c.Not(BA.ObjectToBoolean(_props.GetDefault((Object)("ButtonEnabled"),(Object)(__c.True))));
+ //BA.debugLineNum = 43;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals";
+_mhaptic = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False)));
+ //BA.debugLineNum = 44;BA.debugLine="pressed = mDisabled";
+_pressed = _mdisabled;
+ //BA.debugLineNum = 45;BA.debugLine="xLBL = Lbl";
+_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 46;BA.debugLine="xLBL.Visible = True";
+_xlbl.setVisible(__c.True);
+ //BA.debugLineNum = 47;BA.debugLine="mBase.AddView(xLBL, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 48;BA.debugLine="mBase.AddView(p, 0, 0, 0, 0)";
+_mbase.AddView((android.view.View)(_p.getObject()),(int) (0),(int) (0),(int) (0),(int) (0));
+ //BA.debugLineNum = 49;BA.debugLine="xLBL.SetTextAlignment(\"CENTER\", \"CENTER\")";
+_xlbl.SetTextAlignment("CENTER","CENTER");
+ //BA.debugLineNum = 50;BA.debugLine="cvs.Initialize(mBase)";
+_cvs.Initialize(_mbase);
+ //BA.debugLineNum = 51;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
+_base_resize(_mbase.getWidth(),_mbase.getHeight());
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return "";
+}
+public String _draw() throws Exception{
+anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null;
+anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null;
+int _c = 0;
+ //BA.debugLineNum = 121;BA.debugLine="Private Sub Draw";
+ //BA.debugLineNum = 122;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
+_cvs.ClearRect(_cvs.getTargetRect());
+ //BA.debugLineNum = 123;BA.debugLine="Dim r As B4XRect";
+_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect();
+ //BA.debugLineNum = 124;BA.debugLine="Dim p As B4XPath";
+_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
+ //BA.debugLineNum = 125;BA.debugLine="r.Initialize(0, SideHeight, mBase.Width, mBase.He";
+_r.Initialize((float) (0),(float) (_sideheight),(float) (_mbase.getWidth()),(float) (_mbase.getHeight()));
+ //BA.debugLineNum = 126;BA.debugLine="If pressed = False Then";
+if (_pressed==__c.False) {
+ //BA.debugLineNum = 127;BA.debugLine="xLBL.Top = 0";
+_xlbl.setTop((int) (0));
+ //BA.debugLineNum = 128;BA.debugLine="p.InitializeRoundedRect(r, CornersRadius)";
+_p.InitializeRoundedRect(_r,(float) (_cornersradius));
+ //BA.debugLineNum = 129;BA.debugLine="cvs.DrawPath(p, clr2, True, 0)";
+_cvs.DrawPath(_p,_clr2,__c.True,(float) (0));
+ //BA.debugLineNum = 130;BA.debugLine="r.Initialize(0, 0, mBase.Width, mBase.Height - S";
+_r.Initialize((float) (0),(float) (0),(float) (_mbase.getWidth()),(float) (_mbase.getHeight()-_sideheight));
+ //BA.debugLineNum = 131;BA.debugLine="p.InitializeRoundedRect(r, CornersRadius)";
+_p.InitializeRoundedRect(_r,(float) (_cornersradius));
+ //BA.debugLineNum = 132;BA.debugLine="cvs.DrawPath(p, clr1, True, 0)";
+_cvs.DrawPath(_p,_clr1,__c.True,(float) (0));
+ }else {
+ //BA.debugLineNum = 134;BA.debugLine="xLBL.Top = SideHeight";
+_xlbl.setTop(_sideheight);
+ //BA.debugLineNum = 135;BA.debugLine="p.InitializeRoundedRect(r, CornersRadius)";
+_p.InitializeRoundedRect(_r,(float) (_cornersradius));
+ //BA.debugLineNum = 136;BA.debugLine="Dim c As Int";
+_c = 0;
+ //BA.debugLineNum = 137;BA.debugLine="If mDisabled Then c = disabledColor Else c = clr";
+if (_mdisabled) {
+_c = _disabledcolor;}
+else {
+_c = _clr1;};
+ //BA.debugLineNum = 138;BA.debugLine="cvs.DrawPath(p, c, True, 0)";
+_cvs.DrawPath(_p,_c,__c.True,(float) (0));
+ };
+ //BA.debugLineNum = 141;BA.debugLine="cvs.Invalidate";
+_cvs.Invalidate();
+ //BA.debugLineNum = 142;BA.debugLine="End Sub";
+return "";
+}
+public boolean _getenabled() throws Exception{
+ //BA.debugLineNum = 62;BA.debugLine="Public Sub getEnabled As Boolean";
+ //BA.debugLineNum = 63;BA.debugLine="Return Not(mDisabled)";
+if (true) return __c.Not(_mdisabled);
+ //BA.debugLineNum = 64;BA.debugLine="End Sub";
+return false;
+}
+public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
+innerInitialize(_ba);
+ //BA.debugLineNum = 27;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
+ //BA.debugLineNum = 28;BA.debugLine="mEventName = EventName";
+_meventname = _eventname;
+ //BA.debugLineNum = 29;BA.debugLine="mCallBack = Callback";
+_mcallback = _callback;
+ //BA.debugLineNum = 30;BA.debugLine="End Sub";
+return "";
+}
+public String _p_touch(int _action,float _x,float _y) throws Exception{
+boolean _inside = false;
+ //BA.debugLineNum = 72;BA.debugLine="Private Sub p_Touch (Action As Int, X As Float, Y";
+ //BA.debugLineNum = 73;BA.debugLine="If mDisabled Then Return";
+if (_mdisabled) {
+if (true) return "";};
+ //BA.debugLineNum = 74;BA.debugLine="Dim Inside As Boolean = x > 0 And x < mBase.Width";
+_inside = _x>0 && _x<_mbase.getWidth() && _y>0 && _y<_mbase.getHeight();
+ //BA.debugLineNum = 75;BA.debugLine="Select Action";
+switch (BA.switchObjectToInt(_action,_mbase.TOUCH_ACTION_DOWN,_mbase.TOUCH_ACTION_MOVE,_mbase.TOUCH_ACTION_UP,(int) (3))) {
+case 0: {
+ //BA.debugLineNum = 77;BA.debugLine="SetPressedState(True)";
+_setpressedstate(__c.True);
+ //BA.debugLineNum = 78;BA.debugLine="Draw";
+_draw();
+ break; }
+case 1: {
+ //BA.debugLineNum = 80;BA.debugLine="If pressed <> Inside Then";
+if (_pressed!=_inside) {
+ //BA.debugLineNum = 81;BA.debugLine="SetPressedState(Inside)";
+_setpressedstate(_inside);
+ //BA.debugLineNum = 82;BA.debugLine="Draw";
+_draw();
+ };
+ break; }
+case 2:
+case 3: {
+ //BA.debugLineNum = 85;BA.debugLine="SetPressedState(False)";
+_setpressedstate(__c.False);
+ //BA.debugLineNum = 86;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 87;BA.debugLine="If Inside Then";
+if (_inside) {
+ //BA.debugLineNum = 88;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFee";
+if (_mhaptic) {
+_xuiviewsutils._performhapticfeedback /*String*/ (ba,_mbase);};
+ //BA.debugLineNum = 89;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_Click";
+__c.CallSubDelayed(ba,_mcallback,_meventname+"_Click");
+ };
+ break; }
+}
+;
+ //BA.debugLineNum = 92;BA.debugLine="End Sub";
+return "";
+}
+public String _setcolors(int _primary,int _secondary) throws Exception{
+ //BA.debugLineNum = 111;BA.debugLine="Public Sub SetColors(Primary As Int, Secondary As";
+ //BA.debugLineNum = 112;BA.debugLine="clr1 = Primary";
+_clr1 = _primary;
+ //BA.debugLineNum = 113;BA.debugLine="clr2 = Secondary";
+_clr2 = _secondary;
+ //BA.debugLineNum = 114;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 115;BA.debugLine="End Sub";
+return "";
+}
+public String _setenabled(boolean _b) throws Exception{
+ //BA.debugLineNum = 66;BA.debugLine="Public Sub setEnabled(b As Boolean)";
+ //BA.debugLineNum = 67;BA.debugLine="mDisabled = Not(b)";
+_mdisabled = __c.Not(_b);
+ //BA.debugLineNum = 68;BA.debugLine="pressed = mDisabled";
+_pressed = _mdisabled;
+ //BA.debugLineNum = 69;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 70;BA.debugLine="End Sub";
+return "";
+}
+public String _setpressedstate(boolean _newstate) throws Exception{
+ //BA.debugLineNum = 94;BA.debugLine="Private Sub SetPressedState(NewState As Boolean)";
+ //BA.debugLineNum = 95;BA.debugLine="If pressed = NewState Then Return";
+if (_pressed==_newstate) {
+if (true) return "";};
+ //BA.debugLineNum = 96;BA.debugLine="If NewState And xui.SubExists(mCallBack, mEventNa";
+if (_newstate && _xui.SubExists(ba,_mcallback,_meventname+"_ButtonDown",(int) (0))) {
+ //BA.debugLineNum = 97;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_ButtonD";
+__c.CallSubDelayed(ba,_mcallback,_meventname+"_ButtonDown");
+ };
+ //BA.debugLineNum = 99;BA.debugLine="If NewState = False And xui.SubExists(mCallBack,";
+if (_newstate==__c.False && _xui.SubExists(ba,_mcallback,_meventname+"_ButtonUp",(int) (0))) {
+ //BA.debugLineNum = 100;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_ButtonU";
+__c.CallSubDelayed(ba,_mcallback,_meventname+"_ButtonUp");
+ };
+ //BA.debugLineNum = 102;BA.debugLine="pressed= NewState";
+_pressed = _newstate;
+ //BA.debugLineNum = 103;BA.debugLine="End Sub";
+return "";
+}
+public String _update() throws Exception{
+ //BA.debugLineNum = 117;BA.debugLine="Public Sub Update";
+ //BA.debugLineNum = 118;BA.debugLine="Draw";
+_draw();
+ //BA.debugLineNum = 119;BA.debugLine="End Sub";
+return "";
+}
+public Object callSub(String sub, Object sender, Object[] args) throws Exception {
+BA.senderHolder.set(sender);
+return BA.SubDelegator.SubNotFound;
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/tracker.java b/B4A/Objects/src/reparto_izca/keymon/lat/tracker.java
new file mode 100644
index 0000000..381023d
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/tracker.java
@@ -0,0 +1,666 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.objects.ServiceHelper;
+import anywheresoftware.b4a.debug.*;
+
+public class tracker extends android.app.Service{
+ public static class tracker_BR extends android.content.BroadcastReceiver {
+
+ @Override
+ public void onReceive(android.content.Context context, android.content.Intent intent) {
+ BA.LogInfo("** Receiver (tracker) OnReceive **");
+ android.content.Intent in = new android.content.Intent(context, tracker.class);
+ if (intent != null)
+ in.putExtra("b4a_internal_intent", intent);
+ ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, false, BA.class);
+ }
+
+ }
+ static tracker mostCurrent;
+ public static BA processBA;
+ private ServiceHelper _service;
+ public static Class> getObject() {
+ return tracker.class;
+ }
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ mostCurrent = this;
+ if (processBA == null) {
+ processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.tracker");
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "SHELL", false);
+ }
+ try {
+ Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ processBA.loadHtSubs(this.getClass());
+ ServiceHelper.init();
+ }
+ _service = new ServiceHelper(this);
+ processBA.service = this;
+
+ if (BA.isShellModeRuntimeCheck(processBA)) {
+ processBA.raiseEvent2(null, true, "CREATE", true, "reparto_izca.keymon.lat.tracker", processBA, _service, anywheresoftware.b4a.keywords.Common.Density);
+ }
+ if (!false && ServiceHelper.StarterHelper.startFromServiceCreate(processBA, false) == false) {
+
+ }
+ else {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("*** Service (tracker) Create ***");
+ processBA.raiseEvent(null, "service_create");
+ }
+ processBA.runHook("oncreate", this, null);
+ if (false) {
+ if (ServiceHelper.StarterHelper.runWaitForLayouts() == false) {
+ BA.LogInfo("stopping spontaneous created service");
+ stopSelf();
+ }
+ }
+ }
+ @Override
+ public void onStart(android.content.Intent intent, int startId) {
+ onStartCommand(intent, 0, 0);
+ }
+ @Override
+ public int onStartCommand(final android.content.Intent intent, int flags, int startId) {
+ if (ServiceHelper.StarterHelper.onStartCommand(processBA, new Runnable() {
+ public void run() {
+ handleStart(intent);
+ }}))
+ ;
+ else {
+ ServiceHelper.StarterHelper.addWaitForLayout (new Runnable() {
+ public void run() {
+ processBA.setActivityPaused(false);
+ BA.LogInfo("** Service (tracker) Create **");
+ processBA.raiseEvent(null, "service_create");
+ handleStart(intent);
+ ServiceHelper.StarterHelper.removeWaitForLayout();
+ }
+ });
+ }
+ processBA.runHook("onstartcommand", this, new Object[] {intent, flags, startId});
+ return android.app.Service.START_NOT_STICKY;
+ }
+ public void onTaskRemoved(android.content.Intent rootIntent) {
+ super.onTaskRemoved(rootIntent);
+ if (false)
+ processBA.raiseEvent(null, "service_taskremoved");
+
+ }
+ private void handleStart(android.content.Intent intent) {
+ BA.LogInfo("** Service (tracker) Start **");
+ java.lang.reflect.Method startEvent = processBA.htSubs.get("service_start");
+ if (startEvent != null) {
+ if (startEvent.getParameterTypes().length > 0) {
+ anywheresoftware.b4a.objects.IntentWrapper iw = ServiceHelper.StarterHelper.handleStartIntent(intent, _service, processBA);
+ processBA.raiseEvent(null, "service_start", iw);
+ }
+ else {
+ processBA.raiseEvent(null, "service_start");
+ }
+ }
+ }
+
+ @Override
+ public void onDestroy() {
+ super.onDestroy();
+ if (false) {
+ BA.LogInfo("** Service (tracker) Destroy (ignored)**");
+ }
+ else {
+ BA.LogInfo("** Service (tracker) Destroy **");
+ processBA.raiseEvent(null, "service_destroy");
+ processBA.service = null;
+ mostCurrent = null;
+ processBA.setActivityPaused(true);
+ processBA.runHook("ondestroy", this, null);
+ }
+ }
+
+@Override
+ public android.os.IBinder onBind(android.content.Intent intent) {
+ return null;
+ }public anywheresoftware.b4a.keywords.Common __c = null;
+public static int _nid = 0;
+public static boolean _tracking = false;
+public static anywheresoftware.b4a.phone.Phone.PhoneWakeState _lock = null;
+public static uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper _flp = null;
+public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _actuallr = null;
+public static boolean _flpstarted = false;
+public static String _locrequest = "";
+public static anywheresoftware.b4a.gps.LocationWrapper _uugcoords = null;
+public static String _trackeractividad = "";
+public static String _pushserviceactividad = "";
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
+public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _createlocationrequest() throws Exception{
+uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null;
+ //BA.debugLineNum = 119;BA.debugLine="Private Sub CreateLocationRequest As LocationReque";
+ //BA.debugLineNum = 120;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"CreateLocat";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537683201","CreateLocationRequest",0);};
+ //BA.debugLineNum = 121;BA.debugLine="Dim lr As LocationRequest";
+_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest();
+ //BA.debugLineNum = 122;BA.debugLine="lr.Initialize";
+_lr.Initialize();
+ //BA.debugLineNum = 123;BA.debugLine="lr.SetInterval(10000) 'Intervalo deseado para act";
+_lr.SetInterval((long) (10000));
+ //BA.debugLineNum = 124;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv";
+_lr.SetFastestInterval((long) (_lr.GetInterval()/(double)2));
+ //BA.debugLineNum = 125;BA.debugLine="lr.SetSmallestDisplacement(75) 'Solo registra cam";
+_lr.SetSmallestDisplacement((float) (75));
+ //BA.debugLineNum = 126;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY";
+_lr.SetPriority(_lr.Priority.PRIORITY_HIGH_ACCURACY);
+ //BA.debugLineNum = 127;BA.debugLine="actualLR=lr";
+_actuallr = _lr;
+ //BA.debugLineNum = 128;BA.debugLine="Return lr";
+if (true) return _lr;
+ //BA.debugLineNum = 129;BA.debugLine="End Sub";
+return null;
+}
+public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _createlocationrequest2times() throws Exception{
+uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null;
+ //BA.debugLineNum = 131;BA.debugLine="Private Sub CreateLocationRequest2times As Locatio";
+ //BA.debugLineNum = 132;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Iniciamos C";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537748737","Iniciamos CreateLocationRequest2times",0);};
+ //BA.debugLineNum = 133;BA.debugLine="Dim lr As LocationRequest";
+_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest();
+ //BA.debugLineNum = 134;BA.debugLine="lr.Initialize";
+_lr.Initialize();
+ //BA.debugLineNum = 135;BA.debugLine="lr.SetInterval(2000) 'Intervalo deseado para actu";
+_lr.SetInterval((long) (2000));
+ //BA.debugLineNum = 136;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv";
+_lr.SetFastestInterval((long) (_lr.GetInterval()/(double)2));
+ //BA.debugLineNum = 137;BA.debugLine="lr.setNumUpdates(2) 'Solicitamos solo 2 actualiza";
+_lr.SetNumUpdates((int) (2));
+ //BA.debugLineNum = 138;BA.debugLine="lr.SetSmallestDisplacement(10) 'Solo registra cam";
+_lr.SetSmallestDisplacement((float) (10));
+ //BA.debugLineNum = 139;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY";
+_lr.SetPriority(_lr.Priority.PRIORITY_HIGH_ACCURACY);
+ //BA.debugLineNum = 140;BA.debugLine="actualLR=lr";
+_actuallr = _lr;
+ //BA.debugLineNum = 141;BA.debugLine="Return lr";
+if (true) return _lr;
+ //BA.debugLineNum = 142;BA.debugLine="End Sub";
+return null;
+}
+public static anywheresoftware.b4a.objects.NotificationWrapper _createnotification(String _body) throws Exception{
+anywheresoftware.b4a.objects.NotificationWrapper _notification = null;
+ //BA.debugLineNum = 206;BA.debugLine="Sub CreateNotification (Body As String) As Notific";
+ //BA.debugLineNum = 207;BA.debugLine="Dim notification As Notification";
+_notification = new anywheresoftware.b4a.objects.NotificationWrapper();
+ //BA.debugLineNum = 208;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_";
+_notification.Initialize2(_notification.IMPORTANCE_LOW);
+ //BA.debugLineNum = 209;BA.debugLine="notification.Icon = \"icon\"";
+_notification.setIcon("icon");
+ //BA.debugLineNum = 210;BA.debugLine="notification.SetInfo(\"IZCA REPARTO\", Body, Main)";
+_notification.SetInfoNew(processBA,BA.ObjectToCharSequence("IZCA REPARTO"),BA.ObjectToCharSequence(_body),(Object)(mostCurrent._main.getObject()));
+ //BA.debugLineNum = 211;BA.debugLine="Return notification";
+if (true) return _notification;
+ //BA.debugLineNum = 212;BA.debugLine="End Sub";
+return null;
+}
+public static String _dameultimaubicacionconocida() throws Exception{
+String _coords = "";
+ //BA.debugLineNum = 144;BA.debugLine="Sub dameUltimaUbicacionConocida";
+ //BA.debugLineNum = 145;BA.debugLine="If FLP.GetLastKnownLocation.IsInitialized Then 'M";
+if (_flp.GetLastKnownLocation().IsInitialized()) {
+ //BA.debugLineNum = 147;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"Mand";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537814275",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
+ //BA.debugLineNum = 148;BA.debugLine="Dim coords As String = FLP.GetLastKnownLocation.";
+_coords = BA.NumberToString(_flp.GetLastKnownLocation().getLatitude())+","+BA.NumberToString(_flp.GetLastKnownLocation().getLongitude())+","+_formatofecha(BA.NumberToString(_flp.GetLastKnownLocation().getTime()));
+ //BA.debugLineNum = 150;BA.debugLine="Subs.mandamosLoc(coords)";
+mostCurrent._subs._mandamosloc /*String*/ (processBA,_coords);
+ };
+ //BA.debugLineNum = 152;BA.debugLine="End Sub";
+return "";
+}
+public static String _flp_connectionfailed(int _connectionresult1) throws Exception{
+ //BA.debugLineNum = 59;BA.debugLine="Sub flp_ConnectionFailed(ConnectionResult1 As Int)";
+ //BA.debugLineNum = 60;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Failed to c";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537289985","Failed to connect to location provider",0);};
+ //BA.debugLineNum = 61;BA.debugLine="End Sub";
+return "";
+}
+public static String _flp_connectionsuccess() throws Exception{
+ //BA.debugLineNum = 54;BA.debugLine="Sub flp_ConnectionSuccess";
+ //BA.debugLineNum = 57;BA.debugLine="End Sub";
+return "";
+}
+public static String _flp_connectionsuspended(int _connectionresult1) throws Exception{
+ //BA.debugLineNum = 63;BA.debugLine="Sub flp_ConnectionSuspended(ConnectionResult1 As I";
+ //BA.debugLineNum = 64;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"FLP conecti";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537355521","FLP conection suspended",0);};
+ //BA.debugLineNum = 65;BA.debugLine="StartFLP";
+_startflp();
+ //BA.debugLineNum = 66;BA.debugLine="End Sub";
+return "";
+}
+public static String _flp_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
+String _sdate = "";
+String _stime = "";
+String _coords = "";
+String _origformat = "";
+int _minsdif = 0;
+ //BA.debugLineNum = 162;BA.debugLine="Sub flp_LocationChanged (Location1 As Location)";
+ //BA.debugLineNum = 163;BA.debugLine="Starter.trackerActividad = Subs.fechaKMT(DateTime";
+mostCurrent._starter._trackeractividad /*String*/ = mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()));
+ //BA.debugLineNum = 164;BA.debugLine="UUGCoords = Location1";
+_uugcoords = _location1;
+ //BA.debugLineNum = 166;BA.debugLine="CallSub2(Starter, \"GPS_LocationChanged\", Location";
+anywheresoftware.b4a.keywords.Common.CallSubNew2(processBA,(Object)(mostCurrent._starter.getObject()),"GPS_LocationChanged",(Object)(_location1));
+ //BA.debugLineNum = 169;BA.debugLine="B4XPages.MainPage.lat_gps = Location1.Latitude";
+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ = BA.NumberToString(_location1.getLatitude());
+ //BA.debugLineNum = 170;BA.debugLine="B4XPages.MainPage.lon_gps = Location1.Longitude";
+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ = BA.NumberToString(_location1.getLongitude());
+ //BA.debugLineNum = 172;BA.debugLine="Dim sDate,sTime As String";
+_sdate = "";
+_stime = "";
+ //BA.debugLineNum = 173;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MM/dd/yyyy");
+ //BA.debugLineNum = 174;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
+_sdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
+ //BA.debugLineNum = 175;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
+_stime = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
+ //BA.debugLineNum = 176;BA.debugLine="Try";
+try { //BA.debugLineNum = 177;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\"";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS");
+ //BA.debugLineNum = 178;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_GPS";
+mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_sdate+_stime),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ )}));
+ }
+ catch (Exception e14) {
+ processBA.setLastException(e14); //BA.debugLineNum = 180;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Error al b";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537945362","Error al borrar o insertar nuevas coordendas en HIST_GPS",0);};
+ };
+ //BA.debugLineNum = 183;BA.debugLine="Dim coords As String = Location1.Latitude&\",\"&Loc";
+_coords = BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude())+","+_formatofecha(BA.NumberToString(_location1.getTime()));
+ //BA.debugLineNum = 184;BA.debugLine="Log(\"Loc changed : \"&Location1.Latitude&\",\"&Locat";
+anywheresoftware.b4a.keywords.Common.LogImpl("537945366","Loc changed : "+BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude()),0);
+ //BA.debugLineNum = 185;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Mandamos Ub";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537945367","Mandamos Ubicacion",0);};
+ //BA.debugLineNum = 186;BA.debugLine="If B4XPages.MainPage.logger Then Log(locRequest)";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537945368",_locrequest,0);};
+ //BA.debugLineNum = 188;BA.debugLine="If Location1.Accuracy < 100 Then";
+if (_location1.getAccuracy()<100) {
+ //BA.debugLineNum = 189;BA.debugLine="Subs.guardaInfoEnBD(coords)'Escribimos coordenad";
+mostCurrent._subs._guardainfoenbd /*String*/ (processBA,_coords);
+ //BA.debugLineNum = 191;BA.debugLine="Subs.mandamosLoc(coords)";
+mostCurrent._subs._mandamosloc /*String*/ (processBA,_coords);
+ };
+ //BA.debugLineNum = 193;BA.debugLine="Dim origFormat As String = DateTime.TimeFormat 'G";
+_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getTimeFormat();
+ //BA.debugLineNum = 194;BA.debugLine="DateTime.TimeFormat = \"HHmmss\" ' Modificamos form";
+anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss");
+ //BA.debugLineNum = 195;BA.debugLine="Dim minsDif As Int = DateTime.Time(DateTime.Now)";
+_minsdif = (int) ((double)(Double.parseDouble(anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow())))-(double)(Double.parseDouble(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ultimaactualizaciongps /*String*/ )));
+ //BA.debugLineNum = 197;BA.debugLine="If Location1.Accuracy < 100 And minsDif > 240 The";
+if (_location1.getAccuracy()<100 && _minsdif>240) {
+ //BA.debugLineNum = 198;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"actualizam";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537945380","actualizamos Ubicacion Web",0);};
+ //BA.debugLineNum = 199;BA.debugLine="CallSubDelayed(Starter, \"ENVIA_ULTIMA_GPS\")";
+anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._starter.getObject()),"ENVIA_ULTIMA_GPS");
+ };
+ //BA.debugLineNum = 201;BA.debugLine="DateTime.TimeFormat = origFormat 'Regresamos form";
+anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat(_origformat);
+ //BA.debugLineNum = 203;BA.debugLine="Subs.monitor";
+mostCurrent._subs._monitor /*String*/ (processBA);
+ //BA.debugLineNum = 204;BA.debugLine="End Sub";
+return "";
+}
+public static String _formatofecha(String _fecha) throws Exception{
+String _origformat = "";
+String _lastupdate = "";
+ //BA.debugLineNum = 222;BA.debugLine="Sub formatoFecha(fecha As String) As String 'Convi";
+ //BA.debugLineNum = 224;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '";
+_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat();
+ //BA.debugLineNum = 225;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\"";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss");
+ //BA.debugLineNum = 226;BA.debugLine="Dim lastUpdate As String=DateTime.Date(fecha)";
+_lastupdate = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha)));
+ //BA.debugLineNum = 227;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d";
+anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
+ //BA.debugLineNum = 229;BA.debugLine="Return lastUpdate";
+if (true) return _lastupdate;
+ //BA.debugLineNum = 230;BA.debugLine="End Sub";
+return "";
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 29;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 30;BA.debugLine="Private nid As Int = 1";
+_nid = (int) (1);
+ //BA.debugLineNum = 31;BA.debugLine="dim Tracking As Boolean";
+_tracking = false;
+ //BA.debugLineNum = 32;BA.debugLine="Private lock As PhoneWakeState";
+_lock = new anywheresoftware.b4a.phone.Phone.PhoneWakeState();
+ //BA.debugLineNum = 34;BA.debugLine="Public FLP As FusedLocationProvider";
+_flp = new uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper();
+ //BA.debugLineNum = 35;BA.debugLine="Dim actualLR As LocationRequest";
+_actuallr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest();
+ //BA.debugLineNum = 36;BA.debugLine="Private flpStarted As Boolean";
+_flpstarted = false;
+ //BA.debugLineNum = 37;BA.debugLine="Dim locRequest As String";
+_locrequest = "";
+ //BA.debugLineNum = 38;BA.debugLine="Dim UUGCoords As Location 'Ultima Ubicacion Guard";
+_uugcoords = new anywheresoftware.b4a.gps.LocationWrapper();
+ //BA.debugLineNum = 39;BA.debugLine="Dim trackerActividad, pushServiceActividad As Str";
+_trackeractividad = "";
+_pushserviceactividad = "";
+ //BA.debugLineNum = 40;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_create() throws Exception{
+ //BA.debugLineNum = 42;BA.debugLine="Sub Service_Create";
+ //BA.debugLineNum = 43;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT";
+mostCurrent._service.AutomaticForegroundMode = mostCurrent._service.AUTOMATIC_FOREGROUND_NEVER;
+ //BA.debugLineNum = 44;BA.debugLine="UUGCoords.Initialize";
+_uugcoords.Initialize();
+ //BA.debugLineNum = 45;BA.debugLine="UUGCoords.Latitude = 0";
+_uugcoords.setLatitude(0);
+ //BA.debugLineNum = 46;BA.debugLine="UUGCoords.Longitude = 0";
+_uugcoords.setLongitude(0);
+ //BA.debugLineNum = 48;BA.debugLine="FLP.Initialize(\"flp\")";
+_flp.Initialize(processBA,"flp");
+ //BA.debugLineNum = 49;BA.debugLine="FLP.Connect";
+_flp.Connect();
+ //BA.debugLineNum = 50;BA.debugLine="lock.PartialLock";
+_lock.PartialLock(processBA);
+ //BA.debugLineNum = 51;BA.debugLine="StartFLP";
+_startflp();
+ //BA.debugLineNum = 52;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_destroy() throws Exception{
+ //BA.debugLineNum = 214;BA.debugLine="Sub Service_Destroy";
+ //BA.debugLineNum = 215;BA.debugLine="If Tracking Then";
+if (_tracking) {
+ //BA.debugLineNum = 216;BA.debugLine="StopFLP";
+_stopflp();
+ };
+ //BA.debugLineNum = 218;BA.debugLine="Tracking = False";
+_tracking = anywheresoftware.b4a.keywords.Common.False;
+ //BA.debugLineNum = 219;BA.debugLine="lock.ReleasePartialLock";
+_lock.ReleasePartialLock();
+ //BA.debugLineNum = 220;BA.debugLine="End Sub";
+return "";
+}
+public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
+ //BA.debugLineNum = 68;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
+ //BA.debugLineNum = 69;BA.debugLine="LogColor(\"Iniciando Tracker ...\", Colors.Green)";
+anywheresoftware.b4a.keywords.Common.LogImpl("537421057","Iniciando Tracker ...",anywheresoftware.b4a.keywords.Common.Colors.Green);
+ //BA.debugLineNum = 70;BA.debugLine="Service.StopAutomaticForeground";
+mostCurrent._service.StopAutomaticForeground();
+ //BA.debugLineNum = 72;BA.debugLine="StartServiceAt(Me, DateTime.Now + 10 * DateTime.T";
+anywheresoftware.b4a.keywords.Common.StartServiceAt(processBA,tracker.getObject(),(long) (anywheresoftware.b4a.keywords.Common.DateTime.getNow()+10*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute),anywheresoftware.b4a.keywords.Common.True);
+ //BA.debugLineNum = 73;BA.debugLine="Track";
+_track();
+ //BA.debugLineNum = 74;BA.debugLine="Starter.trackerActividad = Subs.fechaKMT(DateTime";
+mostCurrent._starter._trackeractividad /*String*/ = mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()));
+ //BA.debugLineNum = 76;BA.debugLine="End Sub";
+return "";
+}
+public static void _startflp() throws Exception{
+ResumableSub_StartFLP rsub = new ResumableSub_StartFLP(null);
+rsub.resume(processBA, null);
+}
+public static class ResumableSub_StartFLP extends BA.ResumableSub {
+public ResumableSub_StartFLP(reparto_izca.keymon.lat.tracker parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.tracker parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 94;BA.debugLine="Do While FLP.IsConnected = False";
+if (true) break;
+
+case 1:
+//do while
+this.state = 4;
+while (parent._flp.IsConnected()==anywheresoftware.b4a.keywords.Common.False) {
+this.state = 3;
+if (true) break;
+}
+if (true) break;
+
+case 3:
+//C
+this.state = 1;
+ //BA.debugLineNum = 95;BA.debugLine="Sleep(500)";
+anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (500));
+this.state = 5;
+return;
+case 5:
+//C
+this.state = 1;
+;
+ if (true) break;
+
+case 4:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 100;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest";
+parent._flp.RequestLocationUpdates((com.google.android.gms.location.LocationRequest)(_createlocationrequest().getObject()));
+ //BA.debugLineNum = 103;BA.debugLine="flpStarted = True";
+parent._flpstarted = anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 105;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public static void _startflp2reqs() throws Exception{
+ResumableSub_StartFLP2Reqs rsub = new ResumableSub_StartFLP2Reqs(null);
+rsub.resume(processBA, null);
+}
+public static class ResumableSub_StartFLP2Reqs extends BA.ResumableSub {
+public ResumableSub_StartFLP2Reqs(reparto_izca.keymon.lat.tracker parent) {
+this.parent = parent;
+}
+reparto_izca.keymon.lat.tracker parent;
+
+@Override
+public void resume(BA ba, Object[] result) throws Exception{
+
+ while (true) {
+ switch (state) {
+ case -1:
+return;
+
+case 0:
+//C
+this.state = 1;
+ //BA.debugLineNum = 108;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"StartFLP -";
+if (true) break;
+
+case 1:
+//if
+this.state = 6;
+if (parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+this.state = 3;
+;}if (true) break;
+
+case 3:
+//C
+this.state = 6;
+anywheresoftware.b4a.keywords.Common.LogImpl("537617665","StartFLP - flpStarted="+BA.ObjectToString(parent._flpstarted),0);
+if (true) break;
+
+case 6:
+//C
+this.state = 7;
+;
+ //BA.debugLineNum = 109;BA.debugLine="Do While FLP.IsConnected = False";
+if (true) break;
+
+case 7:
+//do while
+this.state = 16;
+while (parent._flp.IsConnected()==anywheresoftware.b4a.keywords.Common.False) {
+this.state = 9;
+if (true) break;
+}
+if (true) break;
+
+case 9:
+//C
+this.state = 10;
+ //BA.debugLineNum = 110;BA.debugLine="Sleep(500)";
+anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (500));
+this.state = 29;
+return;
+case 29:
+//C
+this.state = 10;
+;
+ //BA.debugLineNum = 111;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"sleeping G";
+if (true) break;
+
+case 10:
+//if
+this.state = 15;
+if (parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+this.state = 12;
+;}if (true) break;
+
+case 12:
+//C
+this.state = 15;
+anywheresoftware.b4a.keywords.Common.LogImpl("537617668","sleeping GR",0);
+if (true) break;
+
+case 15:
+//C
+this.state = 7;
+;
+ if (true) break;
+
+case 16:
+//C
+this.state = 17;
+;
+ //BA.debugLineNum = 113;BA.debugLine="dameUltimaUbicacionConocida 'Regresamos ultima ub";
+_dameultimaubicacionconocida();
+ //BA.debugLineNum = 114;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest2";
+parent._flp.RequestLocationUpdates((com.google.android.gms.location.LocationRequest)(_createlocationrequest2times().getObject()));
+ //BA.debugLineNum = 115;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Buscamos ub";
+if (true) break;
+
+case 17:
+//if
+this.state = 22;
+if (parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+this.state = 19;
+;}if (true) break;
+
+case 19:
+//C
+this.state = 22;
+anywheresoftware.b4a.keywords.Common.LogImpl("537617672","Buscamos ubicacion 2 peticiones",0);
+if (true) break;
+
+case 22:
+//C
+this.state = 23;
+;
+ //BA.debugLineNum = 116;BA.debugLine="If B4XPages.MainPage.logger Then Log(actualLR.Get";
+if (true) break;
+
+case 23:
+//if
+this.state = 28;
+if (parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+this.state = 25;
+;}if (true) break;
+
+case 25:
+//C
+this.state = 28;
+anywheresoftware.b4a.keywords.Common.LogImpl("537617673",BA.NumberToString(parent._actuallr.GetSmallestDisplacement()),0);
+if (true) break;
+
+case 28:
+//C
+this.state = -1;
+;
+ //BA.debugLineNum = 117;BA.debugLine="End Sub";
+if (true) break;
+
+ }
+ }
+ }
+}
+public static String _stopflp() throws Exception{
+ //BA.debugLineNum = 154;BA.debugLine="Public Sub StopFLP";
+ //BA.debugLineNum = 156;BA.debugLine="If flpStarted Then";
+if (_flpstarted) {
+ //BA.debugLineNum = 157;BA.debugLine="FLP.RemoveLocationUpdates 'Eliminamos todas las";
+_flp.RemoveLocationUpdates();
+ //BA.debugLineNum = 158;BA.debugLine="flpStarted = False";
+_flpstarted = anywheresoftware.b4a.keywords.Common.False;
+ };
+ //BA.debugLineNum = 160;BA.debugLine="End Sub";
+return "";
+}
+public static String _track() throws Exception{
+ //BA.debugLineNum = 78;BA.debugLine="Public Sub Track";
+ //BA.debugLineNum = 79;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Inicia Trac";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537486593","Inicia Track - Tracking : "+BA.ObjectToString(_tracking),0);};
+ //BA.debugLineNum = 80;BA.debugLine="If Tracking Then";
+if (_tracking) {
+ //BA.debugLineNum = 82;BA.debugLine="Return 'Si ya estamos \"rastreando\" no hacemos na";
+if (true) return "";
+ };
+ //BA.debugLineNum = 84;BA.debugLine="If Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_";
+if (mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .Check(mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION)==anywheresoftware.b4a.keywords.Common.False) {
+ //BA.debugLineNum = 85;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"No permiss";
+if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) {
+anywheresoftware.b4a.keywords.Common.LogImpl("537486599","No permission",0);};
+ //BA.debugLineNum = 86;BA.debugLine="Return";
+if (true) return "";
+ };
+ //BA.debugLineNum = 88;BA.debugLine="StartFLP 'Iniciamos FusedLocationProvider";
+_startflp();
+ //BA.debugLineNum = 89;BA.debugLine="Tracking = True";
+_tracking = anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 90;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/xuiviewsutils.java b/B4A/Objects/src/reparto_izca/keymon/lat/xuiviewsutils.java
new file mode 100644
index 0000000..5e5b2a7
--- /dev/null
+++ b/B4A/Objects/src/reparto_izca/keymon/lat/xuiviewsutils.java
@@ -0,0 +1,159 @@
+package reparto_izca.keymon.lat;
+
+
+import anywheresoftware.b4a.BA;
+import anywheresoftware.b4a.BALayout;
+import anywheresoftware.b4a.debug.*;
+
+public class xuiviewsutils {
+private static xuiviewsutils mostCurrent = new xuiviewsutils();
+public static Object getObject() {
+ throw new RuntimeException("Code module does not support this method.");
+}
+ public anywheresoftware.b4a.keywords.Common __c = null;
+public static boolean _utilsinitialized = false;
+public static anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
+public b4a.example.dateutils _dateutils = null;
+public reparto_izca.keymon.lat.main _main = null;
+public reparto_izca.keymon.lat.appupdater _appupdater = null;
+public reparto_izca.keymon.lat.foto _foto = null;
+public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
+public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
+public reparto_izca.keymon.lat.starter _starter = null;
+public reparto_izca.keymon.lat.subs _subs = null;
+public reparto_izca.keymon.lat.tracker _tracker = null;
+public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
+public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
+public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
+public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
+public static String _addstubtoclvifneeded(anywheresoftware.b4a.BA _ba,b4a.example3.customlistview _customlistview1,int _color) throws Exception{
+b4a.example3.customlistview._clvitem _lastitem = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
+int _height = 0;
+ //BA.debugLineNum = 34;BA.debugLine="Public Sub AddStubToCLVIfNeeded(CustomListView1 As";
+ //BA.debugLineNum = 35;BA.debugLine="If CustomListView1.Size = 0 Then Return";
+if (_customlistview1._getsize()==0) {
+if (true) return "";};
+ //BA.debugLineNum = 36;BA.debugLine="Dim LastItem As CLVItem = CustomListView1.GetRawL";
+_lastitem = _customlistview1._getrawlistitem((int) (_customlistview1._getsize()-1));
+ //BA.debugLineNum = 37;BA.debugLine="If LastItem.Offset + LastItem.Panel.Height < Cust";
+if (_lastitem.Offset+_lastitem.Panel.getHeight()<_customlistview1._asview().getHeight()) {
+ //BA.debugLineNum = 39;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"stub\")";
+_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_p = _xui.CreatePanel((_ba.processBA == null ? _ba : _ba.processBA),"stub");
+ //BA.debugLineNum = 40;BA.debugLine="p.Color = Color";
+_p.setColor(_color);
+ //BA.debugLineNum = 41;BA.debugLine="Dim Height As Int = CustomListView1.AsView.Heigh";
+_height = (int) (_customlistview1._asview().getHeight()-_lastitem.Offset-_lastitem.Panel.getHeight()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (3)));
+ //BA.debugLineNum = 42;BA.debugLine="If xui.IsB4J Then Height = Height + 5";
+if (_xui.getIsB4J()) {
+_height = (int) (_height+5);};
+ //BA.debugLineNum = 43;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, CustomListView1.AsV";
+_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_customlistview1._asview().getWidth(),_height);
+ //BA.debugLineNum = 44;BA.debugLine="CustomListView1.Add(p, \"\")";
+_customlistview1._add(_p,(Object)(""));
+ //BA.debugLineNum = 45;BA.debugLine="CustomListView1.sv.ScrollViewContentHeight = Cus";
+_customlistview1._sv.setScrollViewContentHeight((int) (_customlistview1._sv.getScrollViewContentHeight()-_customlistview1._getdividersize()));
+ };
+ //BA.debugLineNum = 47;BA.debugLine="End Sub";
+return "";
+}
+public static reparto_izca.keymon.lat.b4ximageview _createb4ximageview(anywheresoftware.b4a.BA _ba) throws Exception{
+reparto_izca.keymon.lat.b4ximageview _iv = null;
+anywheresoftware.b4a.objects.B4XViewWrapper _base = null;
+ //BA.debugLineNum = 85;BA.debugLine="Public Sub CreateB4XImageView As B4XImageView";
+ //BA.debugLineNum = 86;BA.debugLine="Dim iv As B4XImageView";
+_iv = new reparto_izca.keymon.lat.b4ximageview();
+ //BA.debugLineNum = 87;BA.debugLine="iv.Initialize(Null, \"\")";
+_iv._initialize /*String*/ (_ba,anywheresoftware.b4a.keywords.Common.Null,"");
+ //BA.debugLineNum = 88;BA.debugLine="Dim base As B4XView = xui.CreatePanel(\"\")";
+_base = new anywheresoftware.b4a.objects.B4XViewWrapper();
+_base = _xui.CreatePanel((_ba.processBA == null ? _ba : _ba.processBA),"");
+ //BA.debugLineNum = 89;BA.debugLine="base.SetLayoutAnimated(0, 0, 0, 100dip, 100dip)";
+_base.SetLayoutAnimated((int) (0),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (100)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (100)));
+ //BA.debugLineNum = 90;BA.debugLine="iv.DesignerCreateView(base, Null, CreateMap(\"Roun";
+_iv._designercreateview /*String*/ ((Object)(_base.getObject()),(anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(anywheresoftware.b4a.keywords.Common.Null)),anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("Round"),(Object)(anywheresoftware.b4a.keywords.Common.False),(Object)("ResizeMode"),(Object)("FIT"),(Object)("BackgroundColor"),(Object)(((int)0xffaaaaaa)),(Object)("CornersRadius"),(Object)(0)}));
+ //BA.debugLineNum = 91;BA.debugLine="Return iv";
+if (true) return _iv;
+ //BA.debugLineNum = 92;BA.debugLine="End Sub";
+return null;
+}
+public static anywheresoftware.b4a.objects.B4XViewWrapper _createlabel(anywheresoftware.b4a.BA _ba) throws Exception{
+anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
+ //BA.debugLineNum = 78;BA.debugLine="Public Sub CreateLabel As B4XView";
+ //BA.debugLineNum = 79;BA.debugLine="Dim lbl As Label";
+_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
+ //BA.debugLineNum = 80;BA.debugLine="lbl.Initialize(\"\")";
+_lbl.Initialize(_ba,"");
+ //BA.debugLineNum = 81;BA.debugLine="Return lbl";
+if (true) return (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
+ //BA.debugLineNum = 82;BA.debugLine="End Sub";
+return null;
+}
+public static String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
+ //BA.debugLineNum = 10;BA.debugLine="Private Sub Initialize";
+ //BA.debugLineNum = 11;BA.debugLine="If UtilsInitialized Then Return";
+if (_utilsinitialized) {
+if (true) return "";};
+ //BA.debugLineNum = 12;BA.debugLine="UtilsInitialized = True";
+_utilsinitialized = anywheresoftware.b4a.keywords.Common.True;
+ //BA.debugLineNum = 19;BA.debugLine="End Sub";
+return "";
+}
+public static String _performhapticfeedback(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _view) throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+ //BA.debugLineNum = 21;BA.debugLine="Public Sub PerformHapticFeedback (View As B4XView)";
+ //BA.debugLineNum = 22;BA.debugLine="Initialize";
+_initialize(_ba);
+ //BA.debugLineNum = 24;BA.debugLine="Dim jo As JavaObject = View";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_view.getObject()));
+ //BA.debugLineNum = 25;BA.debugLine="jo.RunMethod(\"performHapticFeedback\", Array(1))";
+_jo.RunMethod("performHapticFeedback",new Object[]{(Object)(1)});
+ //BA.debugLineNum = 31;BA.debugLine="End Sub";
+return "";
+}
+public static String _process_globals() throws Exception{
+ //BA.debugLineNum = 2;BA.debugLine="Sub Process_Globals";
+ //BA.debugLineNum = 6;BA.debugLine="Private UtilsInitialized As Boolean";
+_utilsinitialized = false;
+ //BA.debugLineNum = 7;BA.debugLine="Private xui As XUI";
+_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
+ //BA.debugLineNum = 8;BA.debugLine="End Sub";
+return "";
+}
+public static String _setalpha(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _view,float _level) throws Exception{
+anywheresoftware.b4j.object.JavaObject _jo = null;
+float _alpha = 0f;
+ //BA.debugLineNum = 95;BA.debugLine="Public Sub SetAlpha (View As B4XView, Level As Flo";
+ //BA.debugLineNum = 97;BA.debugLine="Dim jo As JavaObject = View";
+_jo = new anywheresoftware.b4j.object.JavaObject();
+_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_view.getObject()));
+ //BA.debugLineNum = 98;BA.debugLine="Dim alpha As Float = Level";
+_alpha = _level;
+ //BA.debugLineNum = 99;BA.debugLine="jo.RunMethod(\"setAlpha\", Array(alpha))";
+_jo.RunMethod("setAlpha",new Object[]{(Object)(_alpha)});
+ //BA.debugLineNum = 107;BA.debugLine="End Sub";
+return "";
+}
+public static String _setbitmapandfill(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _imageview,anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{
+anywheresoftware.b4a.objects.ImageViewWrapper _iiv = null;
+ //BA.debugLineNum = 65;BA.debugLine="Public Sub SetBitmapAndFill (ImageView As B4XView,";
+ //BA.debugLineNum = 66;BA.debugLine="ImageView.SetBitmap(Bmp)";
+_imageview.SetBitmap((android.graphics.Bitmap)(_bmp.getObject()));
+ //BA.debugLineNum = 67;BA.debugLine="Dim iiv As ImageView = ImageView";
+_iiv = new anywheresoftware.b4a.objects.ImageViewWrapper();
+_iiv = (anywheresoftware.b4a.objects.ImageViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ImageViewWrapper(), (android.widget.ImageView)(_imageview.getObject()));
+ //BA.debugLineNum = 69;BA.debugLine="iiv.Gravity = Gravity.FILL";
+_iiv.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.FILL);
+ //BA.debugLineNum = 75;BA.debugLine="End Sub";
+return "";
+}
+public static String _settextorcsbuildertolabel(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{
+ //BA.debugLineNum = 50;BA.debugLine="Public Sub SetTextOrCSBuilderToLabel(xlbl As B4XVi";
+ //BA.debugLineNum = 52;BA.debugLine="xlbl.Text = Text";
+_xlbl.setText(BA.ObjectToCharSequence(_text));
+ //BA.debugLineNum = 62;BA.debugLine="End Sub";
+return "";
+}
+}
diff --git a/B4A/Starter.bas b/B4A/Starter.bas
new file mode 100644
index 0000000..fb4f8ed
--- /dev/null
+++ b/B4A/Starter.bas
@@ -0,0 +1,175 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Service
+Version=9.85
+@EndOfDesignText@
+#Region Service Attributes
+ #StartAtBoot: False
+ #ExcludeFromLibrary: True
+#End Region
+
+Sub Process_Globals
+ 'These global variables will be declared once when the application starts.
+ 'These variables can be accessed from all modules.
+ Public rp As RuntimePermissions
+ Public FLP As FusedLocationProvider
+ Private flpStarted As Boolean
+ Dim skmt As SQL
+ Dim ruta As String
+ Private BTAdmin As BluetoothAdmin
+ Public BluetoothState As Boolean
+ Dim Timer1 As Timer
+ Dim Interval As Int = 300
+ 'Para WebSockets
+' Dim monitor As Timer 'Lo usamos para monitorear los servicios Tracker y PushService
+' Dim monitorTicks As Int = 0
+ Dim trackerActividad As String = "501231235959"
+ Dim pushServiceActividad As String = "501231235959"
+ 'Para los Logs
+ Dim MAC_IMPRESORA As String
+ Private logs As StringBuilder
+ Private logcat As LogCat
+ Public SharedFolder As String 'Para actualizar apk
+ Dim cedisLocation As Location
+ Dim reqManager As DBRequestManager
+ Dim server As String = "http://keymon.net:1781"
+' Dim server As String = "http://192.168.100.10:1781"
+' Dim server As String = "http://keymon.lat:9000"
+' Dim server = "http://192.168.100.10:1781"
+ Dim muestraProgreso = 0
+ Dim c As Cursor
+End Sub
+
+Sub Service_Create
+ 'This is the program entry point.
+ 'This is a good place to load resources that are not specific to a single activity.
+ ruta = File.DirInternal 'Ruta de la base de datos por defecto.
+' If File.ExternalWritable Then ruta = rp.GetSafeDirDefaultExternal("") 'Si podemos escribir a la tarjeta, cambiamos la ruta.
+ If Not(File.Exists(ruta, "kmt.db")) Then File.Copy(File.DirAssets, "kmt.db", ruta, "kmt.db") 'Si no existe el archivo de la base de datos, lo copiamos.
+ Log(ruta)
+ skmt.Initialize(ruta,"kmt.db", True)
+' CallSubDelayed(PushService, "SubscribeToTopics")
+' CallSubDelayed(FirebaseMessaging, "SubscribeToTopics")
+' BTAdmin.Initialize("admin")
+' If BTAdmin.IsEnabled = False Then
+' If BTAdmin.Enable = False Then
+' ToastMessageShow("Error enabling Bluetooth adapter.", True)
+' Else
+' ToastMessageShow("Enabling Bluetooth adapter...", False)
+' End Ifate = True
+' Else
+' BluetoothSt
+' End If
+' reqManager.Initialize(Me, Main.server)
+ Timer1.Initialize("Timer1", Interval * 1000)
+ Timer1.Enabled = True
+ SharedFolder = rp.GetSafeDirDefaultExternal("")
+ cedisLocation.Initialize
+' cedisLocation.Latitude = "19.48118148992086"
+' cedisLocation.Longitude = "-99.15295579261536"
+ cedisLocation.Latitude = "0"
+ cedisLocation.Longitude = "0"
+End Sub
+
+Sub Service_Start (StartingIntent As Intent)
+ Service.StopAutomaticForeground 'Starter service can start in the foreground state in some edge cases.
+' StartService(PushService)
+' monitor.Initialize("monitor", 30000)
+' monitor.Enabled = True
+End Sub
+
+Sub Service_TaskRemoved
+ 'This event will be raised when the user removes the app from the recent apps list.
+End Sub
+
+'Return true to allow the OS default exceptions handler to handle the uncaught exception.
+Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
+ Return True
+End Sub
+
+Sub Service_Destroy
+
+End Sub
+
+Private Sub Timer1_Tick
+' ToastMessageShow("Timer",False)
+' LogColor("Siguiente actualizacion " & DateTime.Time(DateTime.Now + Interval * 1000),Colors.Blue)
+ ENVIA_ULTIMA_GPS
+End Sub
+
+Sub ENVIA_ULTIMA_GPS
+ If IsConnectedToInternet Then
+ Log("Con internet, enviamos UTR!")
+ Dim skmt As SQL
+ Dim cmd As DBCommand
+ Dim reqManager As DBRequestManager
+ reqManager.Initialize(Me, server)
+' LogColor($"ReqServer = ${server}"$, Colors.red)
+ skmt.Initialize(ruta,"kmt.db", True)
+' Log("server: "&Main.server)
+ skmt.Initialize(ruta,"kmt.db", True)
+' Log(B4XPages.MainPage.montoActual)
+' Log(B4XPages.MainPage.clientestotal)
+' Log((B4XPages.MainPage.rechazos + B4XPages.MainPage.entregas))
+' Log(B4XPages.MainPage.monto_entregadoactual)
+' Log(B4XPages.MainPage.entregas)
+' Log(B4XPages.MainPage.porVisitar)
+' Log(B4XPages.MainPage.rechazos)
+ If B4XPages.MainPage.logger Then LogColor("Iniciamos ENVIA_ULTIMA_GPS", Colors.red)
+ DateTime.TimeFormat = "HHmmss"
+ B4XPages.MainPage.ultimaActualizacionGPS = DateTime.Time(DateTime.Now)
+ cmd.Initialize
+ cmd.Name = "select_fechat"
+ reqManager.ExecuteQuery(cmd , 0, "fechat")
+
+ Log(B4XPages.MainPage.montoActual&" , " &B4XPages.MainPage.clientestotal&" , " &B4XPages.MainPage.visitadostotales&" , " &B4XPages.MainPage.monto_entregadoactual&" , " &B4XPages.MainPage.entregas&" , " &B4XPages.MainPage.porVisitar&" , " &B4XPages.MainPage.rechazos&" , " &B4XPages.MainPage.lat_gps&" , " &B4XPages.MainPage.lon_gps&" , " &B4XPages.MainPage.batt&" , " &Application.VersionName&" , " &B4XPages.MainPage.ALMACEN&" , " &B4XPages.MainPage.rutapreventa)
+ Dim cmd As DBCommand
+ cmd.Initialize
+ cmd.Name = "UPDATE_IZCA_ACTUALR2_GPS"
+' cmd.Parameters = Array As Object(B4XPages.MainPage.montoActual, B4XPages.MainPage.clientestotal, B4XPages.MainPage.clientesventa, B4XPages.MainPage.clientesvisitados, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps, B4XPages.MainPage.batt, B4XPages.MainPage.montoRechazado, B4XPages.MainPage.montoEntregado, B4XPages.MainPage.clientestotal, B4XPages.MainPage.porVisitar, B4XPages.MainPage.entregas, B4XPages.MainPage.rechazos, Application.VersionName, B4XPages.MainPage.ALMACEN, B4XPages.MainPage.rutapreventa )
+ cmd.Parameters = Array As Object(B4XPages.MainPage.montoActual, B4XPages.MainPage.clientestotal, B4XPages.MainPage.visitadostotales, B4XPages.MainPage.monto_entregadoactual, B4XPages.MainPage.entregas, B4XPages.MainPage.porVisitar, B4XPages.MainPage.rechazos, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps, B4XPages.MainPage.batt,Application.VersionName, B4XPages.MainPage.ALMACEN, B4XPages.MainPage.rutapreventa )
+ If B4XPages.MainPage.logger Then Log($"montoActual: ${B4XPages.MainPage.montoActual}, cTotal: ${B4XPages.MainPage.clientestotal}, cVenta: ${B4XPages.MainPage.clientesventa}, cVisitados: ${B4XPages.MainPage.clientesvisitados}, ${B4XPages.MainPage.lat_gps}, ${B4XPages.MainPage.lon_gps}, Batt: ${B4XPages.MainPage.batt}, montoRechazado: ${B4XPages.MainPage.montoRechazado}, montoEntregado: ${B4XPages.MainPage.montoEntregado}, porVisitar: ${B4XPages.MainPage.porVisitar}, entregas: ${B4XPages.MainPage.entregas}, rechazos: ${B4XPages.MainPage.rechazos}, Almacen: ${B4XPages.MainPage.ALMACEN}, Ruta: ${B4XPages.MainPage.rutapreventa}"$)
+
+ reqManager.ExecuteCommand(cmd, "inst_visitas")
+ skmt.ExecNonQuery2("Update cat_variables set CAT_VA_VALOR = ? WHERE CAT_VA_DESCRIPCION = ?" , Array As String(DateTime.Time(DateTime.Now),"HoraIngreso"))
+
+ 'Reiniciamos el timer para cuando llamamos el Sub desde otra actividad
+ Timer1.Enabled = False
+ Timer1.Interval = Interval * 1000
+ Timer1.Enabled = True
+ Else
+ Log("Sin conexión a internet, no se envió UTR!")
+ End If
+End Sub
+
+
+
+
+
+
+Sub IsConnectedToInternet As Boolean 'ignore
+ Dim r As Reflector
+ r.Target = r.GetContext
+ r.Target = r.RunMethod2("getSystemService", "connectivity", "java.lang.String")
+ r.Target = r.RunMethod("getActiveNetworkInfo")
+ If r.Target <> Null Then
+ Return r.RunMethod("isConnectedOrConnecting")
+ End If
+ Return False
+End Sub
+
+Sub JobDone(Job As HttpJob)
+' LogColor("starter jobdone", Colors.Red)
+' Log(Job.ErrorMessage)
+' Private r As DBResult = reqManager.HandleJob(Job)
+ If Job.Success = False Then
+' LogColor("** " & Job.Tag & " Error: " & Job.ErrorMessage, Colors.Red) ' Mod by CHV - 211023
+ If Job.ErrorMessage.Contains("failed to connect") Or Job.ErrorMessage.Contains("Failed to connect") Then
+ ToastMessageShow("!Hubo un error contactando al servidor, por favor revise su conexión!", True)
+ End If
+ 'ToastMessageShow("Error: " & Job.ErrorMessage, True)
+ Else
+' LogColor("JobDone: '" & reqManager.HandleJob(Job).tag & "' - Registros: " & reqManager.HandleJob(Job).Rows.Size, Colors.Green) 'Mod por CHV - 211023
+ End If
+End Sub
\ No newline at end of file
diff --git a/B4A/Subs.bas b/B4A/Subs.bas
new file mode 100644
index 0000000..cfd11e0
--- /dev/null
+++ b/B4A/Subs.bas
@@ -0,0 +1,1082 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=StaticCode
+Version=11
+@EndOfDesignText@
+'Code module
+'Subs in this code module will be accessible from all modules.
+Sub Process_Globals
+ 'These global variables will be declared once when the application starts.
+ 'These variables can be accessed from all modules.
+ Public GZip As GZipStrings
+ Private su As StringUtils
+ Dim phn As Phone
+ Dim devModel As String
+ Dim kmt, errorLog As SQL 'Requiere la libreria "SQL"
+' Dim wifi As MLwifi
+ Dim ssid As String 'ignore
+ Dim rutaMaxPoints As Int = 3000
+ Dim rutaHrsAtras As Int = 48
+' Dim rutaInicioHoy As String = ""
+End Sub
+
+'Pone el valor de phn.Model en la variable global "devModel"
+Sub getPhnId As String 'ignore
+ 'Requiere la libreria "Phone"
+ devModel = phn.Model
+ If devModel.Length <= 3 Then 'Si phn.Model esta en blanco ...
+ Dim t As String = phn.GetSettings("android_id") 'Intentamos con "android_id"
+ devModel = t
+ End If
+ If devModel.Length >= 3 Then 'Si tenemos valor para phn.Model
+ File.WriteString(File.DirInternal, "phnId.txt", devModel) 'Sobreescribimos archivo phnId.txt with deviceId
+' Log("Tenemos phnId: "&devModel&" "&File.DirInternal&"/phn.txt sobreescrito")
+ Else If devModel.Length < 3 Then ' Si no tenemos valor, lo leemos de phnId.txt
+ Dim s As String = File.ReadString(File.DirInternal, "phnId.txt")
+ devModel = s
+' Log("Leemos id de "&File.DirInternal&"/phnId.txt")
+' Log(devModel)
+ End If
+ Return devModel
+End Sub
+
+'Comprime y regresa un texto (str) en base64
+Sub compress(str As String) As String 'ignore
+ 'Requiere la libreria "CompressStrings"
+ Dim compressed() As Byte = GZip.compress(str)
+' Log($"UncompressedBytesLength: ${str.Length}"$)
+' Log($"CompressedBytesLength: ${compressed.Length}"$)
+ Dim base64 As String = su.EncodeBase64(compressed)
+ Log($"Comprimido: ${base64.Length}"$)
+' Log($"CompressedBytes converted to base64: ${base64}"$)
+ Return base64
+End Sub
+
+'Descomprime y regresa un texto en base64
+Sub decompress(base64 As String) As String 'ignore
+ Dim decompressedbytes() As Byte = su.DecodeBase64(base64)
+' Log($"decompressedbytesLength: ${decompressedbytes.Length}"$)
+ Dim bc As ByteConverter
+ Dim uncompressed As String = bc.StringFromBytes(decompressedbytes,"UTF8")
+ Log($"Descomprimido: ${uncompressed.Length}"$)
+' Log($"Decompressed String = ${uncompressed}"$)
+ Return uncompressed
+End Sub
+
+'Convierte una fecha al formato yyMMddHHmmss
+Sub fechaKMT(fecha As String) As String 'ignore
+' Log(fecha)
+ Dim OrigFormat As String = DateTime.DateFormat 'save orig date format
+ DateTime.DateFormat="yyMMddHHmmss"
+ Dim nuevaFecha As String=DateTime.Date(fecha)
+ DateTime.DateFormat=OrigFormat 'return to orig date format
+' Log(nuevaFecha)
+ Return nuevaFecha
+End Sub
+
+'Trae un string con hora, minutos y segundos - HHmmss
+Sub hmsKMT As String 'ignore
+' Log(fecha)
+ Dim OrigFormat As String = DateTime.DateFormat 'save orig date format
+ DateTime.DateFormat="HHmmss"
+ Private nuevaHora As String=DateTime.Date(DateTime.Now)
+ DateTime.DateFormat=OrigFormat 'return to orig date format
+' Log(nuevaFecha)
+ Return nuevaHora
+End Sub
+
+'Genera una notificacion con importancia alta
+Sub notiHigh(title As String, body As String, activity As Object) 'ignore
+ Private notif As Notification
+ notif.Initialize2(notif.IMPORTANCE_HIGH)
+ notif.Icon = "icon"
+ notif.Vibrate = False
+ notif.Sound = False
+ notif.AutoCancel = True
+ Log("notiHigh: "&title)
+ notif.SetInfo(title, body, activity)
+' Log("notiHigh SetInfo")
+ notif.Notify(777)
+End Sub
+
+'Regresa el objeto de una notificacion con importancia baja
+Sub notiLowReturn(title As String, Body As String, id As Int) As Notification 'ignore
+ Private notification As Notification
+ notification.Initialize2(notification.IMPORTANCE_LOW)
+ Log("notiLowReturn: "&title)
+ notification.Icon = "icon"
+ notification.Sound = False
+ notification.Vibrate = False
+ notification.SetInfo(title, Body, Main)
+ notification.Notify(id)
+' Log("notiLowReturn SetInfo")
+ Return notification
+End Sub
+
+'Escribimos las coordenadas y fecha a un archivo de texto
+Sub guardaInfoEnArchivo(coords As String) 'ignore
+ ' Cambiamos el formato de la hora
+ Dim OrigFormat As String=DateTime.DateFormat 'save orig date format
+ DateTime.DateFormat="MMM-dd HH:mm:ss"
+ Dim lastUpdate As String=DateTime.Date(DateTime.Now)
+ DateTime.DateFormat=OrigFormat 'return to orig date format
+
+ Dim ubic As String = coords&","&lastUpdate
+ Dim out As OutputStream = File.OpenOutput(File.DirInternal, "gps.txt", True)
+ Dim s As String = ubic & CRLF
+ Dim t() As Byte = s.GetBytes("UTF-8")
+ out.WriteBytes(t, 0, t.Length)
+ out.Close
+End Sub
+
+'Escribimos las coordenadas (latitud, longitud, fecha) y fecha a una BD
+Sub guardaInfoEnBD(coords As String) 'ignore
+ If B4XPages.MainPage.logger Then Log("Guardamos ubicacion en BD - "&coords)
+ Try
+ Dim latlon() As String = Regex.Split("\|", coords)
+ If latlon.Length < 2 Then latlon = Regex.Split(",", coords) 'Si son menos de 2, entonces estan separadas por comas y no por "|"
+' If Main.Logger Then Log("LatLon="&latlon)
+ If Not(kmt.IsInitialized) Then revisaBD
+ kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)", Array As Object (latlon(2),latlon(0),latlon(1)))
+ Catch
+ Log(LastException)
+ End Try
+End Sub
+
+'Regresa la ruta solicitada comprimida y en base64
+Sub dameRuta(inicioRuta As String, origenRuta As String) As String 'ignore
+ 'Requiere la libreria "SQL"
+ Dim fechaInicio As String
+ Try 'incioRuta es numero
+ inicioRuta = inicioRuta * 1
+' Log("fechaInicio numerica="&fechaInicio)
+ fechaInicio = fechaKMT(DateTime.Now - (DateTime.TicksPerHour * inicioRuta))
+ Catch 'inicioRuta es string
+ fechaInicio = fechaInicioHoy
+' Log("fechaInicio string="&fechaInicio)
+ End Try
+ If B4XPages.MainPage.logger Then Log("fechaInicio: "&fechaInicio&" | rutaHrsAtras="&rutaHrsAtras) 'fechaKMT(DateTime.Now)
+ Dim c As Cursor
+ If kmt.IsInitialized = False Then kmt.Initialize(Starter.ruta, "kmt.db", True)
+ If B4XPages.MainPage.logger Then Log("select FECHA, LAT, LON from "& origenRuta &" where FECHA > " & fechaInicio & " order by FECHA desc limit " & rutaMaxPoints)
+ c = kmt.ExecQuery("select FECHA, LAT, LON from "& origenRuta &" where FECHA > " & fechaInicio & " order by FECHA desc limit " & rutaMaxPoints)
+ c.Position = 0
+ Dim ruta2 As String = ""
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ ruta2=ruta2&CRLF&c.GetString("LAT")&","&c.GetString("LON")&","&c.GetString("FECHA")
+ B4XPages.MainPage.fechaRuta = c.GetString("FECHA")
+ Next
+ End If
+ c.Close
+ Return compress(ruta2)
+End Sub
+
+'Limpiamos la tabla RUTA_GPS de la BD
+Sub deleteGPS_DB 'ignore
+ kmt.ExecNonQuery("delete from RUTA_GPS")
+ kmt.ExecNonQuery("vacuum;")
+End Sub
+
+'Limpiamos la tabla errorLog de la BD
+Sub deleteErrorLog_DB 'ignore
+ If Not(errorLog.IsInitialized) Then revisaBD
+ errorLog.ExecNonQuery("delete from errores")
+ errorLog.ExecNonQuery("vacuum;")
+ ToastMessageShow("Borrada", False)
+End Sub
+
+'Borramos el archio "gps.txt"
+Sub borramosArchivoGPS 'ignore
+ Dim out As OutputStream = File.OpenOutput(File.DirInternal, "gps.txt", False)
+ Dim s As String = ""
+ Dim t() As Byte = s.GetBytes("UTF-8")
+ out.WriteBytes(t, 0, t.Length)
+ out.Close
+End Sub
+
+'Revisa que exista la BD y si es necesario crea algunas tablas dentro de ella
+Sub revisaBD 'ignore
+ If Not(File.Exists(Starter.ruta, "kmt.db")) Then File.Copy(File.DirAssets, "kmt.db", Starter.ruta, "kmt.db")
+ If Not(kmt.IsInitialized) Then kmt.Initialize(Starter.ruta, "kmt.db", True)
+ kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)")
+' kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS UUC(fecha INTEGER, lat TEXT, lon TEXT)") 'LastKnownLocation
+ kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS bitacora(fecha INTEGER, texto TEXT)") 'Bitacora
+' kmt.ExecNonQuery("DROP TABLE IF EXISTS CAT_FOLIOS")
+ kmt.ExecNonQuery("DROP TABLE IF EXISTS CAT_FOLIOS")
+ kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS REPARTO_GEO (CLIENTE TEXT, USUARIO TEXT, FECHA_PUNTEO TEXT, LATITUD TEXT, LONGITUD TEXT, ALMACEN TEXT, RUTA_REPARTO TEXT, RUTA_PREV TEXT, FECHA_PREVENTA TEXT, MOTIVO TEXT, COMENTARIO TEXT, TIPO TEXT, ENVIO TEXT)")
+ 'Tabla para la bitacora de errores
+ If Not(errorLog.IsInitialized) Then errorLog.Initialize(Starter.ruta, "errorLog.db", True)
+ errorLog.ExecNonQuery("CREATE TABLE IF NOT EXISTS errores(fecha INTEGER, error TEXT)")
+
+ Try 'Intentamos usar "pragma_table_info" para revisar si existe la columna "reprogramar" en la tabla
+ Dim c As Cursor=kmt.ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('noventa') WHERE name='NV_REPROGRAMAR'")
+ c.Position = 0
+ If c.GetString("fCol") = 0 Then 'Si no esta la columna REPROGRAMAR la agregamos
+ kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT")
+ End If
+ Catch 'Si no funciona "pragma_table_info" lo hacemos con try/catch
+ Try
+ kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT")
+ Catch
+ Log(LastException)
+ End Try
+ End Try
+End Sub
+
+'Obtiene el ssid al que esta conectado el telefono
+Sub getSSID 'ignore
+' 'Requiere la libreria "MLWifi400"
+' If wifi.isWifiConnected Then
+' ssid = wifi.WifiSSID
+' End If
+End Sub
+
+'Convierte un texto en formato JSON a un objeto "Map"
+Sub JSON2Map(theJson As String) As Map 'ignore
+ 'Requiere la libreria "JSON"
+ Try
+ Private json As JSONParser
+ json.Initialize(theJson)
+ Return json.NextObject
+ Catch
+ Log(LastException)
+ log2DB("JSON2Map: "&LastException)
+ Private m As Map = CreateMap("title":"Error generating JSON", "t":"Error", "Message":LastException, "text" : LastException)
+ Return m
+ End Try
+End Sub
+
+'Convierte un mapa a formato JSON
+Sub map2JSON(m As Map) As String 'ignore
+ 'Requiere la libreria "JSON"
+ 'Convierte un objecto "Map" a JSON
+ Dim jg As JSONGenerator
+ jg.Initialize(m)
+ Dim t As String = jg.ToString
+ Return t
+End Sub
+
+'Regresa el usuario de la tabla USUARIOA
+Sub traeUsuarioDeBD As String 'ignore
+ Private c As Cursor
+ Private u As String = "SinUsuario"
+ If Not(kmt.IsInitialized) Then revisaBD
+ c=kmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position=0
+ If c.RowCount > 0 Then u = c.GetString("USUARIO")
+ c.Close
+ Return u
+End Sub
+
+'Mandamos "coords" en un mensaje a "Sprvsr"
+Sub mandamosLoc(coords As String) 'ignore
+'' Log("Iniciamos mandamosLoc "&coords)
+'' Log("locRequest="&Tracker.locRequest)
+' guardaInfoEnBD(coords)'Escribimos coordenadas y fecha a una bd
+' Dim t As String
+' If Tracker.locRequest="Activa" Then
+' If PushService.au = 1 Then
+' t = "au" ' es una actualizacion
+' Else
+' t = "u" ' es una peticion
+' End If
+' Dim params As Map = CreateMap("topic":"Sprvsr", "coords":coords, "t":t, "b":PushService.battery)
+' CallSub2(PushService, "mandaMensaje",params)
+' Tracker.locRequest="Enviada"
+' CallSubDelayed(Tracker,"CreateLocationRequest")
+' End If
+End Sub
+
+'Regresa la fecha y hora de hoy a las 00:00 en el formato "yyMMddHHMMSS"
+Sub fechaInicioHoy As String 'ignore
+ Dim OrigFormat As String = DateTime.DateFormat 'save orig date format
+ DateTime.DateFormat="yyMMdd"
+ Private h As String = DateTime.Date(DateTime.Now)&"000000"
+ DateTime.DateFormat=OrigFormat 'return to orig date format
+ Log("Hoy="&h)
+ Return h
+End Sub
+
+'Guardamos "texto" a la bitacora
+Sub log2DB(texto As String) 'ignore
+ LogColor(fechaKMT(DateTime.Now)&" - log2BD: '"&texto&"'", Colors.Magenta)
+ If kmt.IsInitialized Then kmt.ExecNonQuery2("INSERT INTO bitacora(fecha, texto) VALUES (?,?)", Array As Object (fechaKMT(DateTime.now), texto))
+End Sub
+
+'Regresa verdadero si ya pasaron XX minutos de la fecha dada
+Sub masDeXXMins(hora As Int, mins As Int) As Boolean 'ignore
+ If (hora + mins * DateTime.TicksPerMinute) < DateTime.Now Then
+ Return True
+ Else
+ Return False
+ End If
+End Sub
+
+'Regresa verdadero si ya pasaron XX minutos de la fechaKMT dada
+Sub masDeXXMinsKMT(hora As String, mins As Int) As Boolean 'ignore
+ Try
+ ' LogColor($"Hora=${fechaKMT(fechaKMT2Ticks(hora) + mins * DateTime.TicksPerMinute)}, Mins=${mins}, Actual=${fechaKMT(DateTime.Now)}"$,Colors.red)
+ If fechaKMT2Ticks(hora) + mins * DateTime.TicksPerMinute < DateTime.Now Then
+' Log("+++ +++ "&fechaKMT(fechaKMT2Ticks(hora) + mins * DateTime.TicksPerMinute) & " < " & fechaKMT(DateTime.Now))
+ Return True
+ Else
+ ' Log("+++ +++ "&fechaKMT(fechaKMT2Ticks(hora) + mins * DateTime.TicksPerMinute) & " > " & fechaKMT(DateTime.Now))
+ Return False
+ End If
+ Catch
+ Log(LastException)
+ End Try
+End Sub
+
+'Limpiamos la tabla "bitacora" de la BD
+Sub borraLogDB 'ignore
+ LogColor("Borramos BD de log", Colors.Magenta)
+ kmt.ExecNonQuery("delete from bitacora")
+ kmt.ExecNonQuery("vacuum;")
+End Sub
+
+'Monitoreamos los servicios para ver si estan activos (No pausados), y si no, los reniciamos
+Sub Monitor 'ignore
+' Private monitorStatus As Boolean = True
+' LogColor("Corriendo Subs.Monitor", Colors.RGB(161,150,0))
+' If IsPaused(Tracker) Then
+' log2DB("Reiniciando 'Tracker Pausado' desde Subs.Monitor")
+' StartService(Tracker)
+' monitorStatus = False
+' Else
+' revisaFLP
+' End If
+' If IsPaused(PushService) Then
+' log2DB("Reiniciando 'PushService Pausado' desde Subs.Monitor")
+' StartService(PushService)
+' monitorStatus = False
+' Else
+' revisaPushService
+' End If
+' If monitorStatus Then LogColor(" +++ +++ Servicios Activos", Colors.Green)
+End Sub
+
+'Compara la UUG (Ultima Ubicacion Guardada) con FLP.LastKnowLocation y si
+'cumple con los requisitos de distancia y precision la guardamos en la BD.
+Sub revisaUUG 'ignore
+ revisaFLP
+ If Tracker.FLP.GetLastKnownLocation.IsInitialized Then
+ Dim daa As Int = Tracker.UUGCoords.DistanceTo(Tracker.FLP.GetLastKnownLocation) 'Distancia de la UUG a la actual de Tracker.FLP.GetLastKnownLocation
+ If B4XPages.MainPage.Logger Then LogColor($"**** UUC "${fechaKMT(Tracker.FLP.GetLastKnownLocation.Time)}|$0.2{Tracker.FLP.GetLastKnownLocation.Accuracy}|$0.8{Tracker.FLP.GetLastKnownLocation.Latitude}|$0.8{Tracker.FLP.GetLastKnownLocation.Longitude}|$0.2{Tracker.FLP.GetLastKnownLocation.Speed}|"$, Colors.RGB(255,112,35))
+ If daa > 40 And Tracker.FLP.GetLastKnownLocation.Accuracy < 35 Then 'Si la distancia de la ubicacion anterior es mayor de XX y la precision es menor de XX, la guardamos ...
+ kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)", Array As Object (fechaKMT(Tracker.FLP.GetLastKnownLocation.Time),Tracker.FLP.GetLastKnownLocation.Latitude,Tracker.FLP.GetLastKnownLocation.Longitude))
+ If B4XPages.MainPage.Logger Then Log("++++ Distancia a anterior="&daa&"|"&"Precision="&Tracker.FLP.GetLastKnownLocation.Accuracy)
+ End If
+ Tracker.UUGCoords = Tracker.FLP.GetLastKnownLocation
+ End If
+End Sub
+
+'Revisamos que el FLP (FusedLocationProvider) este inicializado y activo
+Sub revisaFLP 'ignore
+ LogColor($"**** **** Revisamos FLP - ${fechaKMT(DateTime.Now)}**** ****"$, Colors.RGB(78,0,227))
+ Private todoBienFLP As Boolean = True
+ If Not(Tracker.FLP.IsInitialized) Then
+ log2DB("revisaFLP: No esta inicializado ... 'Reinicializando FLP'")
+ Tracker.FLP.Initialize("flp")
+ todoBienFLP = False
+ End If
+ If Tracker.FLP.IsInitialized Then
+ If Not(Tracker.FLP.IsConnected) Then
+ log2DB("revisaFLP: No esta conectado ... 'Reconectando FLP'")
+' Tracker.FLP.Connect
+ CallSubDelayed(Tracker,"StartFLP")
+ todoBienFLP = False
+ End If
+ If Tracker.FLP.IsConnected And _
+ Tracker.FLP.GetLastKnownLocation.IsInitialized And _
+ Tracker.FLP.GetLastKnownLocation.DistanceTo(Tracker.UUGCoords) > 500 Then
+ log2DB("revisaFLP: 'No se esta actualizando, lo reiniciamos ...'")
+ StartService(Tracker)
+ todoBienFLP = False
+ End If
+ End If
+ If todoBienFLP Then LogColor(" +++ +++ Sin errores en FLP", Colors.Green)
+ ' revisar hora de lastKnownlocation y si es mayor de 10 minutos llamar StartFLP
+End Sub
+
+'Revisamos que el servicio "PushService" este inicializado y activo
+Sub revisaPushService 'ignore
+' Private todoBienPS As Boolean = True
+'' LogColor("**** **** Revisamos PushService **** ****", Colors.RGB(78,0,227))
+' Try
+' If Not(PushService.wsh.IsInitialized) Then 'Si no esta inicializado ...
+' log2DB("revisaPushService: No esta inicializado ... 'Reinicializando PushService'")
+' CallSubDelayed(PushService, "Connect")
+' todoBienPS = False
+' End If
+' Catch
+' Log(LastException)
+' insertaEnErrores("Subs.revisaPushService: Reiniciando - "&LastException)
+' End Try
+' Try
+' If Not(PushService.wsh.ws.Connected) Then 'Si no esta conectado ...
+' log2DB("revisaPushService: No esta conectado ... 'Reconectando PushService'")
+' CallSubDelayed(PushService, "Connect")
+' todoBienPS = False
+' End If
+' Catch
+' Log(LastException)
+' insertaEnErrores("Subs.revisaPushService: Reconectando - "&LastException)
+' End Try
+' Try
+' If masDeXXMinsKMT(Starter.pushServiceActividad, 5) Then 'Si mas de xx minutos de la ultima actividad entonces ...
+' PushService.wsh.Close
+' CallSubDelayed(PushService, "Connect")
+' ' StartService(PushService)
+' ' If Main.Logger Then Log("Ultima act: "&Starter.pushServiceActividad)
+' log2DB("revisaPushService: 'Reconectamos 'PushService' por inactividad")
+' Starter.pushServiceActividad = fechaKMT(DateTime.Now)
+' todoBienPS = False
+' End If
+' Catch
+' Log(LastException)
+' insertaEnErrores("Subs.revisaPushService: Reconectando por inactividad - "&LastException)
+' End Try
+' If todoBienPS Then LogColor(" +++ +++ Sin errores en PushService", Colors.Green)
+End Sub
+
+'Borramos renglones extra de la tabla de errores
+Sub borraArribaDe100Errores 'ignore
+ If Not(errorLog.IsInitialized) Then revisaBD
+ LogColor("Recortamos la tabla de Errores, limite de 100", Colors.Magenta)
+ errorLog.ExecNonQuery("DELETE FROM errores WHERE fecha NOT in (SELECT fecha FROM errores ORDER BY fecha desc LIMIT 99 )")
+ errorLog.ExecNonQuery("vacuum;")
+' Log("Borramos mas de 100 de errorLog")
+End Sub
+
+'Borramos renglones extra de la tabla de bitacora
+Sub borraArribaDe600RenglonesBitacora 'ignore
+ revisaBD
+ LogColor("Recortamos la tabla de la Bitacora, limite de 600", Colors.Magenta)
+ Private c As Cursor
+ c = kmt.ExecQuery("select fecha from bitacora")
+ c.Position = 0
+ If c.RowCount > 650 Then
+ kmt.ExecNonQuery("DELETE FROM bitacora WHERE fecha NOT in (SELECT fecha FROM bitacora ORDER BY fecha desc LIMIT 599 )")
+ kmt.ExecNonQuery("vacuum;")
+' Log("Borramos mas de 600 de bitacora")
+ End If
+ c.Close
+End Sub
+
+'Inserta 50 renglones de prueba a la tabla "errores"
+Sub insertaRenglonesPruebaEnErrorLog 'ignore
+ If Not(errorLog.IsInitialized) Then revisaBD
+ Log("insertamos 50 renglones a errorLog")
+ For x = 1 To 50
+ errorLog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)", Array As Object (fechaKMT(DateTime.now), "abc"))
+ Log(x)
+ Next
+End Sub
+
+'Regresa la tabla "errores" en una lista de mapas convertida a JSON
+Sub dameErroresJSON(SQL As SQL, maxErrores As Int, comprimido As Boolean) As String 'ignore
+ Log("dameErroresJSON")
+ Private j As JSONGenerator
+ Private lim As String
+ Private cur As ResultSet
+ Private l As List
+ Private i As Int = 0
+ l.Initialize
+ Dim m, m2 As Map
+ m2.Initialize
+ If maxErrores = 0 Then lim = "" Else lim = "limit "&maxErrores
+ cur = SQL.ExecQuery("select * from errores order by fecha desc "&lim)
+ Do While cur.NextRow
+ m.Initialize
+ m.Put("fecha", cur.GetString("fecha"))
+ m.Put("error", cur.GetString("error"))
+ m2.Put(i,m)
+ i = i + 1
+ Loop
+ cur.Close
+ j.Initialize(m2)
+ Log(j.ToString)
+ If comprimido Then
+ Return compress(j.ToString)
+ Else
+ Return j.ToString
+ End If
+End Sub
+
+'Convierte una fecha en formato YYMMDDHHMMSS a Ticks
+Sub fechaKMT2Ticks(fKMT As String) As Long 'ignore
+ Try
+ If fKMT.Length = 12 Then
+ Private parteFecha As String = fKMT.SubString2(0,6)
+ Private parteHora As String = fKMT.SubString(6)
+ Private OrigFormat As String = DateTime.DateFormat 'save original date format
+ DateTime.DateFormat="yyMMdd"
+ DateTime.TimeFormat="HHmmss"
+ Private ticks As Long = DateTime.DateTimeParse(parteFecha,parteHora)
+' Log(" +++ +++ pFecha:"&parteFecha&" | pHora:"&parteHora)
+ DateTime.DateFormat=OrigFormat 'return to original date format
+ Return ticks
+ Else
+ Log("Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"&fKMT&"' largo="&fKMT.Length)
+ Return 0
+ End If
+ Catch
+ Log(LastException)
+ LogColor($"Fecha dada: ${fKMT}, Parte Fecha: ${parteFecha}, Parte Hora: ${parteHora}"$, Colors.Red)
+ Return 0
+ End Try
+End Sub
+
+Sub InstallAPK(dir As String, apk As String) 'ignore
+ If File.Exists(dir, apk) Then
+ Dim i As Intent
+ i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(dir, apk))
+ i.SetType("application/vnd.android.package-archive")
+ StartActivity(i)
+ End If
+End Sub
+
+'Copia la base de datos del almacenamiento interno al externo en el directorio kmts
+Sub copiaDB(result As Boolean) 'ignore
+ If result Then
+ Dim p As String
+ If File.ExternalWritable Then
+ p = File.DirInternal
+' Log("Externo")
+ Else
+ p = File.DirInternal
+' Log("Interno")
+ End If
+ Dim theDir As String
+ Try
+ File.MakeDir(File.DirInternal,"kmts")
+ theDir = "/kmts"
+ Catch
+ theDir = ""
+ End Try
+ Try
+ File.Copy(File.DirInternal,"kmt.db",File.DirInternal&theDir,"guna_rep_kmt.db")
+ ToastMessageShow("BD copiada!", False)
+ Catch
+ ToastMessageShow("No se pudo hacer la copia: "&LastException, True)
+ End Try
+ Log("rootExternal="&p)
+ Log("File.DirInternal="&File.DirInternal)
+ Log("File.DirInternal="&File.DirInternal)
+ Else
+ ToastMessageShow("Sin permisos", False)
+ End If
+End Sub
+
+'Hace visible el panel con los parametros "Top" y "Left" dados
+Sub panelVisible(panel As Panel, top As Int, left As Int) 'ignore
+ panel.BringToFront
+ panel.Visible = True
+ panel.Top = top
+ panel.Left = left
+End Sub
+
+Sub insertaEnErrores(error As String) 'ignore
+ If Not(errorLog.IsInitialized) Then revisaBD
+ errorLog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)", Array As Object (fechaKMT(DateTime.now), error))
+End Sub
+
+'Saca el usuario de la tabla USUARIOA
+Sub dameUsuarioDeDB As String 'ignore
+ Private c As Cursor
+ Private u As String = "SinUsuario"
+ If Not(kmt.IsInitialized) Then revisaBD
+ c=kmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position=0
+ If c.RowCount > 0 Then u = c.GetString("USUARIO")
+ c.Close
+ Return u
+End Sub
+
+Sub SetDivider(lv As ListView, Color As Int, Height As Int) 'ignore
+ Dim r As Reflector
+ r.Target = lv
+ Dim CD As ColorDrawable
+ CD.Initialize(Color, 0)
+ r.RunMethod4("setDivider", Array As Object(CD), Array As String("android.graphics.drawable.Drawable"))
+ r.RunMethod2("setDividerHeight", Height, "java.lang.int")
+End Sub
+
+'Centra un listview dentro de un elemento superior
+Sub centraListView(elemento As ListView, anchoElementoSuperior As Int) 'ignore
+ elemento.Left = Round(anchoElementoSuperior/2)-(elemento.Width/2)
+End Sub
+
+'Centra un panel dentro de un elemento superior
+Sub centraPanel(elemento As Panel, anchoElementoSuperior As Int) 'ignore
+ elemento.Left = Round(anchoElementoSuperior/2)-(elemento.Width/2)
+End Sub
+
+'Centra una etiqueta dentro de un elemento superior
+Sub centraEtiqueta(elemento As Label, anchoElementoSuperior As Int) 'ignore
+ elemento.Left = Round(anchoElementoSuperior/2)-(elemento.Width/2)
+End Sub
+
+'Centra un boton dentro de un elemento superior
+Sub centraBoton(elemento As Button, anchoElementoSuperior As Int) 'ignore
+ elemento.Left = Round(anchoElementoSuperior/2)-(elemento.Width/2)
+End Sub
+
+'Trae el nombre del producto con ID dado, desde HIST_VENTAS.
+Sub traeNombre(id As String) As String
+ Private nombre As String
+ Private idc As Cursor = kmt.ExecQuery($"select HVD_PRONOMBRE from HIST_VENTAS where HVD_PROID = '${id}'"$)
+ idc.Position=0
+ If idc.RowCount > 0 Then nombre = idc.GetString("HVD_PRONOMBRE")
+ idc.Close
+' Log("NOMBRE=" & nombre)
+ Return nombre
+End Sub
+
+'Trae el precio del ID dado, desde CAT_GUNAPROD o HIST_VENTAS, dependiendo de si es promoción o no.
+Sub traePrecio(id As String, quePromo As String) As String
+ Private pu As String = "0"
+' Log(id & ", "& quePromo)
+ If quePromo = traeAlmacen Then
+ Private idc As Cursor = kmt.ExecQuery($"select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${id}'"$)
+ If idc.RowCount > 0 Then
+ idc.Position=0
+ If idc.RowCount > 0 And IsNumber(idc.GetString("CAT_GP_PRECIO")) Then pu = idc.GetString("CAT_GP_PRECIO")
+' Log("id=" & id & "|p=" & x & "|" & idc.GetString("CAT_GP_PRECIO"))
+ End If
+ idc.Close
+ Else 'Si es una promo, entonces sacamos el costo total del producto en la promo de HIST_VENTAS2 y lo dividimos entre la cantidad.
+ Private pc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS2 where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '${id}' and HVD_CODPROMO = '${quePromo}'"$)
+ If pc.RowCount > 0 Then
+ pc.Position = 0
+' Log(pc.GetString("HVD_COSTO_TOT")&", "& pc.GetString("HVD_CANT"))
+ If pc.GetString("HVD_COSTO_TOT")<> Null And pc.GetString("HVD_CANT") <> Null Then
+ pu = pc.GetString("HVD_COSTO_TOT") / pc.GetString("HVD_CANT")
+ End If
+ End If
+' Log("x cosa")
+ pc.Close
+ End If
+' Log(pu)
+ Return pu
+
+End Sub
+
+'Trae el precio del ID dado, desde CAT_GUNAPROD o HIST_VENTAS, dependiendo de si es promoción o no.
+Sub traePrecio2(id As String, quePromo As String, consecutivo As String) As String
+ Private pu As String = "0"
+' Log(id & ", "& quePromo)
+ If quePromo = traeAlmacen Then
+ Private idc As Cursor = kmt.ExecQuery($"select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '${id}'"$)
+ If idc.RowCount > 0 Then
+ idc.Position=0
+ If idc.RowCount > 0 And IsNumber(idc.GetString("CAT_GP_PRECIO")) Then pu = idc.GetString("CAT_GP_PRECIO")
+' Log("id=" & id & "|p=" & x & "|" & idc.GetString("CAT_GP_PRECIO"))
+ End If
+ idc.Close
+ Else 'Si es una promo, entonces sacamos el costo total del producto en la promo de HIST_VENTAS2 y lo dividimos entre la cantidad.
+ Private pc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '${id}' and HVD_CODPROMO = '${quePromo}' AND CONSECUTIVO = '${consecutivo}'"$)
+ If pc.RowCount > 0 Then
+ pc.Position = 0
+' Log(pc.GetString("HVD_COSTO_TOT")&", "& pc.GetString("HVD_CANT"))
+ If pc.GetString("HVD_COSTO_TOT")<> Null And pc.GetString("HVD_CANT") <> Null Then
+ pu = pc.GetString("HVD_COSTO_TOT") / pc.GetString("HVD_CANT")
+ End If
+ End If
+' Log("x cosa")
+ pc.Close
+ End If
+' Log(pu)
+ Return pu
+
+End Sub
+
+'Trae el precio del ID dado, desde CAT_GUNAPROD o HIST_VENTAS, dependiendo de si es promoción o no Y CAJAS.
+Sub traePrecioC(id As String) As String
+ Private pu As String = "0"
+ Private idc As Cursor = kmt.ExecQuery($"select PRECIOCONVER from CAT_GUNAPROD where CAT_GP_ID = '${id}'"$)
+ If idc.RowCount > 0 Then
+ idc.Position=0
+ If idc.RowCount > 0 And IsNumber(idc.GetString("PRECIOCONVER")) Then pu = idc.GetString("PRECIOCONVER")
+' Log("id=" & id & "|p=" & x & "|" & idc.GetString("CAT_GP_PRECIO"))
+ End If
+ idc.Close
+ Return pu
+End Sub
+
+'Trae el precio del ID dado, desde CAT_GUNAPROD o HIST_VENTAS, dependiendo de si es promoción o no Y CAJAS.
+Sub traeConversion(id As String) As String
+ Private pu As String = "0"
+
+ Private idc As Cursor = kmt.ExecQuery($"select CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '${id}'"$)
+ If idc.RowCount > 0 Then
+ idc.Position=0
+ If idc.RowCount > 0 And IsNumber(idc.GetString("CONVERSION")) Then pu = idc.GetString("CONVERSION")
+' Log("id=" & id & "|p=" & x & "|" & idc.GetString("CAT_GP_PRECIO"))
+ End If
+ idc.Close
+
+ Return pu
+End Sub
+
+
+'Trae el cliente desde la BD.
+Sub traeCliente As String 'ignore
+ Private cli As Cursor = Starter.skmt.ExecQuery("Select CUENTA from cuentaa")
+ cli.Position = 0
+ Private cl As String = cli.GetString("CUENTA")
+ cli.Close
+ Log("Algo paso..."& cl)
+ Return cl
+End Sub
+
+Sub traeFechaReparto As String
+ Private fe As Cursor = Starter.skmt.ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)")
+ Private f As String = "-"
+ If fe.RowCount > 0 Then
+ fe.Position = 0
+ f = fe.GetString("HVD_FECHA")
+ End If
+ fe.Close
+ Return f
+End Sub
+
+'Regresa la ruta actual de la base de datos.
+Sub traeRuta (cliente As String) As String 'ignore
+ Private c As Cursor
+ Private r As String
+ c=Starter.skmt.ExecQuery($"select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO = '${cliente}'"$)
+ r = "0"
+ If c.RowCount > 0 Then
+ c.Position=0
+ r = c.GetString("CAT_CL_RUTA")
+ End If
+ c.Close
+ Return r
+End Sub
+
+'Trae de la tabla Reparto,la cantidad rechazada de un producto dado de un cliente dado.
+Sub traeCantidadRechazada(cliente As String, prodId As String) As Int
+ Private cant As Int = 0
+ Private cr As Cursor = Starter.skmt.ExecQuery($"Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cliente = '${cliente}' and rep_prodid = '${prodId}' and REP_RECHAZO = 1"$)
+ If cr.RowCount > 0 Then
+ cr.Position = 0
+ cant = cr.GetString("REP_CANT")
+ End If
+ Log($"${cliente}, ${prodId}, rowcont:${cr.RowCount}, cant: ${cant}"$)
+ Return cant
+End Sub
+
+'Trae de la tabla Reparto,la cantidad vendida de un producto dado de un cliente dado.
+Sub traeCantidadVendida(cliente As String, prodId As String) As Int
+ Private cant As Int = 0
+ Private cr As Cursor = Starter.skmt.ExecQuery($"Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cli_orig = '${cliente}' and rep_prodid = '${prodId}' and REP_RECHAZO = 0 and REP_CANT > 0"$)
+' Log($"${cliente}, ${prodId}, rowcont:${cr.RowCount}"$)
+ If cr.RowCount > 0 Then
+ cr.Position = 0
+ cant = cr.GetString("REP_CANT")
+ End If
+ Return cant
+End Sub
+
+'Trae la cantidad desde la tabla hist_ventas2, del producto dado, del cliente dado.
+Sub traeMaxCantidad(cliente As String, prodId As String) As Int
+ Private cant As Int = 0
+ Private cr As Cursor = Starter.skmt.ExecQuery($"Select hvd_cant from hist_ventas2 where hvd_cliente = '${cliente}' and hvd_proid = '${prodId}'"$)
+' Log($"${cliente}, ${prodId}, rowcont:${cr.RowCount}"$)
+ If cr.RowCount > 0 Then
+ cr.Position = 0
+ cant = cr.GetString("HVD_CANT")
+ End If
+ Return cant
+End Sub
+
+'Ponemos venta de producto en la tabla de Reparto.
+Sub prodVenta(clienteOriginal As String, prodId As String)
+' Log("RECHAZO VENTA")
+ Private precio As String = traePrecio(prodId, traeAlmacen)
+ Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '${clienteOriginal}' and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${prodId}'"$)
+ Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${prodId}'"$)
+ Log($"update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '${clienteOriginal}' and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${prodId}'"$)
+ Log($"update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${prodId}'"$)
+ Starter.skmt.ExecNonQuery($"update reparto set REP_COSTO_TOT = REP_CANT * ${precio}, REP_PRECIO = '${precio}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${prodId}'"$)
+
+' Private pu As String = 0
+' Private cant As Int = 0
+' Private pc As Cursor = Starter.skmt.ExecQuery($"select (HVD_COSTO_TOT / HVD_CANT) as PU, HVD_CANT from HIST_VENTAS2 where HVD_CLIENTE = '${clienteOriginal}' and HVD_PROID = '${prodId}'"$)
+' Log($"PU ROWCOUNT = ${pc.RowCount}"$)
+' If pc.RowCount > 0 Then
+' pc.Position = 0
+' pu = pc.GetString("PU")
+' End If
+' pc.Close
+' Private pc As Cursor = Starter.skmt.ExecQuery($"select HVD_CANT from HIST_VENTAS where HVD_CLIENTE = '${clienteOriginal}' and HVD_PROID = '${prodId}'"$)
+' If pc.RowCount > 0 Then
+' pc.Position = 0
+' cant = pc.GetString("HVD_CANT")
+' End If
+' pc.Close
+ '' Starter.skmt.ExecNonQuery($"update hist_ventas set HVD_CANT = '${cant - 1}' where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_PROID = '${prodId}'"$)
+' Starter.skmt.ExecNonQuery($"update hist_ventas set HVD_COSTO_TOT = '${cant * pu}' where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_PROID = '${prodId}'"$)
+ '' Log($"update hist_ventas set HVD_CANT = '${cant - 1}' where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_PROID = '${prodId}'"$)
+' Log($"update hist_ventas set HVD_COSTO_TOT = '${cant * pu}' where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_PROID = '${prodId}'"$)
+End Sub
+
+'Ponemos rechazo de producto en la tabla de Reparto.
+Sub prodRechazo(clienteOriginal As String, prodId As String)
+ Log("RECHAZO DEVOLUCION")
+ Private rr As Cursor = Starter.skmt.ExecQuery($"select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '${prodId}' and REP_CLIENTE in (Select CUENTA from cuentaa)"$)
+ rr.Position = 0
+ If rr.GetString("hayRechazo") = 0 Then
+ Log("INSERTAMOS EN REPARTO")
+' Log($"select * from hist_ventas where hvd_cliente in (select cuenta from cuentaa) and hvd_proid = '${prodId}'"$)
+ Private chv As Cursor = Starter.skmt.ExecQuery($"select * from hist_ventas where hvd_cliente in (select cuenta from cuentaa) and hvd_proid = '${prodId}'"$)
+' Log(chv.RowCount)
+ If chv.RowCount > 0 Then
+ chv.Position = 0
+' Log($"CANT=${chv.GetString("HVD_CANT")}"$)
+ Private precio As String = traePrecio(prodId, traeAlmacen)
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ", Array As String(traeCliente, chv.GetString("HVD_PRONOMBRE"), 1, precio, chv.GetString("HVD_FECHA"), prodId, precio, traeCliente))
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ", Array As String(traeCliente, chv.GetString("HVD_PRONOMBRE"), chv.GetString("HVD_CANT") - 1, (chv.GetString("HVD_CANT") - 1) * precio, chv.GetString("HVD_FECHA"), prodId, precio, traeCliente))
+ Starter.skmt.ExecNonQuery($"update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' where HVD_PROID = '${prodId}' and HVD_CLIENTE in (Select CUENTA from cuentaa)"$)
+ End If
+ Else
+ Log($"ACTUALIZAMOS REPARTO"$)
+ Private precio As String = traePrecio(prodId, traeAlmacen)
+ Starter.skmt.ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)", Array As String(prodId))
+ Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE = '${clienteOriginal}' and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${prodId}'"$)
+ Starter.skmt.ExecNonQuery($"update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${prodId}'"$)
+' Log($"update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE = '${clienteOriginal}' and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 1 and REP_PRODID = '${prodId}'"$)
+' Log($"update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${clienteOriginal}' and REP_RECHAZO = 0 and REP_PRODID = '${prodId}'"$)
+ Starter.skmt.ExecNonQuery($"update reparto set REP_COSTO_TOT = REP_CANT * ${precio}, REP_PRECIO = '${precio}' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '${clienteOriginal}' and REP_PRODID = '${prodId}'"$)
+ End If
+End Sub
+
+Sub traemosCantYMonto(clv As CustomListView) As Map
+' Log("TRAEMOS CANT Y MONTO")
+ Private cant As Int = 0
+ Private monto As Float = 0
+ For i = 0 To clv.GetSize - 1
+ Private p0 As B4XView = clv.GetPanel(i)
+ Private p As B4XView = p0.GetView(0)
+ Private cant1 As B4XView = p.GetView(2).GetView(3)
+ Private cant2 As B4XView = p.GetView(3).GetView(3)
+' Log("|"&cant1.Text&"|")
+ If cant1.text <> "" Then
+ If cant1.Text = "" Then cant1.Text = 0
+ Private esteTag As List = Regex.Split("\|", cant1.Tag)
+' Log($"CANT:${cant1.text}, esteTag=${esteTag}"$)
+ If esteTag.Get(2) <> esteTag.Get(3) Then cant = cant + cant1.Text 'Si el ID es diferente de la promo, lo sumamos, si no, no lo sumamos porque es el encabezado de la promo en 0.
+ monto = monto + (esteTag.Get(0) * cant1.Text)
+ Else
+ If cant2.Text = "" Then cant2.Text = 0
+ Private esteTag As List = Regex.Split("\|", cant2.Tag)
+' Log($"CANT:${cant2.text}, esteTag=${esteTag}"$)
+ If esteTag.Get(2) <> esteTag.Get(3) Then cant = cant + cant2.Text 'Si el ID es diferente de la promo, lo sumamos, si no, no lo sumamos porque es el encabezado de la promo en 0.
+ monto = monto + (esteTag.Get(0) * cant2.Text)
+ End If
+ Next
+' Log($"CANT=${cant}, MONTO=${monto}"$)
+ Return CreateMap("cantidad":cant, "monto":monto)
+End Sub
+
+Sub traeCantYMonto2(cliente As String) As Map
+' Log("TRAE CANT Y MONTO2")
+ Private cant As Int = 0
+ Private monto As Float = 0
+ Private ccym As Cursor = Starter.skmt.ExecQuery($"Select hvd_codpromo, hvd_proid, HVD_CANT, (Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = hvd_proid) As precio from HIST_VENTAS where HVD_CLIENTE = '${cliente}'"$)
+ If ccym.RowCount > 0 Then
+ For i=0 To ccym.RowCount -1
+ ccym.Position = i
+ If ccym.GetString("HVD_CODPROMO") <> ccym.GetString("HVD_PROID") And ccym.GetString("precio") <> Null Then 'Si no es el header de una promo...
+ cant = cant + ccym.GetString("HVD_CANT")
+' Log($"${ccym.GetString("HVD_CANT")} * ${ccym.GetString("precio")}"$)
+ monto = monto + (ccym.GetString("HVD_CANT") * traePrecio(ccym.GetString("HVD_PROID"), ccym.GetString("HVD_CODPROMO")))
+ End If
+ Next
+' Log($"CANT=${cant}, MONTO=${monto}"$)
+ End If
+
+ ccym = Starter.skmt.ExecQuery($"Select rep_prodid, iFNULL(REP_CANT, 0) AS REP_CANT, iFNULL((Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = rep_prodid),0) As precio from REPARTO where REP_CLIENTE in (Select cuenta from cuentaa) And REP_RECHAZO = '0' and REP_CANT > 0"$)
+ If ccym.RowCount > 0 Then
+ For i=0 To ccym.RowCount -1
+ ccym.Position = i
+ If ccym.GetString("REP_CANT") <> Null Then cant = cant + ccym.GetString("REP_CANT")
+ monto = monto + (ccym.GetString("REP_CANT") * ccym.GetString("precio"))
+ Next
+ Log($"CANT=${cant}, MONTO=${monto}"$)
+ End If
+
+ ccym.Close
+ Return CreateMap("cantidad":cant, "monto":monto)
+End Sub
+
+'Regresa la cantidad entregada desde HIST_VENTAS.
+Sub traeEntregados As Map
+ Private m As Map
+ Private cant As Int = 0
+ Private monto As String = 0
+ Private rc As Cursor = Starter.skmt.ExecQuery($"select sum(HVD_CANT) as CUANTOS, sum(HVD_COSTO_TOT) as CUANTO from HIST_VENTAS where HVD_ESTATUS = '1' and HVD_COSTO_TOT <> '0'"$)
+ If rc.RowCount > 0 Then
+ rc.Position = 0
+ If rc.GetString("CUANTOS") <> Null Then
+ cant = cant + rc.GetString("CUANTOS")
+ monto = monto + rc.GetString("CUANTO")
+ End If
+ End If
+' LogColor($"CANTIDAD ENTREGADA = ${cant}"$, Colors.red)
+ Return CreateMap("cantidad": cant, "monto": monto)
+End Sub
+
+'Regresa la cantidad rechazada desde REPARTO.
+Sub traeRechazados As Map
+ Private m As Map
+ Private cant As Int = 0
+ Private monto As String = 0
+ Private rc As Cursor = Starter.skmt.ExecQuery($"select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '1' and REP_CANT <> '0'"$)
+ If rc.RowCount > 0 Then
+ rc.Position = 0
+ If rc.GetString("CUANTOS") <> Null Then
+ cant = cant + rc.GetString("CUANTOS")
+ monto = monto + rc.GetString("CUANTO")
+ End If
+ End If
+' LogColor($"CANTIDAD RECHAZADA = ${cant}"$, Colors.red)
+ Return CreateMap("cantidad": cant, "monto": monto)
+End Sub
+
+'Regresa la cantidad vendida desde REPARTO.
+Sub traeVendidos As Map
+ Private m As Map
+ Private cant As Int = 0
+ Private monto As String = 0
+ Private rc As Cursor = Starter.skmt.ExecQuery($"select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '0' and REP_CANT <> '0'"$)
+ If rc.RowCount > 0 Then
+ rc.Position = 0
+ If rc.GetString("CUANTOS") <> Null Then
+ cant = cant + rc.GetString("CUANTOS")
+ monto = monto + rc.GetString("CUANTO")
+ End If
+ End If
+' LogColor($"CANTIDAD VENDIDA = ${cant}"$, Colors.red)
+ Return CreateMap("cantidad": cant, "monto": monto)
+End Sub
+
+'Agrega una columna a la tabla especificada.
+'Hay que indicar el "tipo" de la columna (TEXT, INTEGER, ETC)
+'Ej. agregaColumna("TABLA", "COLUMNA", "TIPO")
+Sub agregaColumna(tabla As String, columna As String, tipo As String)
+ Try 'Intentamos usar "pragma_table_info" para revisar si existe la columna en la tabla
+ Private c As Cursor = Starter.skmt.ExecQuery($"SELECT COUNT(*) AS fCol FROM pragma_table_info('${tabla}') WHERE name='${columna}'"$)
+ c.Position = 0
+ If c.GetString("fCol") = 0 Then 'Si no esta la columna la agregamos
+ Starter.skmt.ExecNonQuery($"ALTER TABLE ${tabla} ADD COLUMN ${columna} ${tipo}"$)
+ Log($"Columna "${columna} ${tipo}", agregada a "${tabla}"."$)
+ End If
+ Catch 'Si no funciona "pragma_table_info" lo hacemos con try/catch
+ Try
+ Starter.skmt.ExecNonQuery($"ALTER TABLE ${tabla} ADD COLUMN ${columna} ${tipo}"$)
+ Log($"Columna "${columna} ${tipo}", agregada a "${tabla}".."$)
+ Catch
+ Log(LastException)
+ End Try
+ End Try
+End Sub
+
+'Regresa la ruta actual de la base de datos.
+Sub traeRutaReparto As String 'ignore
+ Private c As Cursor
+ Private r As String
+ c=Starter.skmt.ExecQuery("select RUTAA from RUTAA")
+ r = "0"
+ If c.RowCount > 0 Then
+ c.Position=0
+ r = c.GetString("RUTAA")
+ End If
+ c.Close
+ Return r
+End Sub
+
+'Regresa el almacen actual de la base de datos.
+Sub traeAlmacen As String 'ignore
+ Private c As Cursor
+ Private a As String
+ c = Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN")
+ c.Position = 0
+ a = C.GetString("ID_ALMACEN")
+ c.Close
+ Return a
+End Sub
+
+Sub traeUsuario As String 'ignore
+ Private c As Cursor
+ Private a As String
+ c = Starter.skmt.ExecQuery("select USUARIO from USUARIOA")
+ c.Position = 0
+ a = C.GetString("USUARIO")
+ c.Close
+ Return a
+End Sub
+
+
+Sub traefECHAPREV As String 'ignore
+ Private c As Cursor
+ Private a As String
+ Private clienteasing As Cursor = Starter.skmt.ExecQuery("SELECT CUENTA FROM CUENTAA")
+ clienteasing.Position = 0
+ If clienteasing.GetString("CUENTA") <> "63403" Then
+ c = Starter.skmt.ExecQuery("select HVD_FECHA from HIST_VENTAS where HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ c.Position = 0
+ Dim fecha() As String = Regex.Split(" ", c.GetString("HVD_FECHA"))
+ Dim fecha3 As String = fecha(0)
+ Log(fecha3)
+ Dim hora() As String = Regex.Split("\.", fecha(1))
+ a = fecha3 & " " & hora(0)
+ c.Close
+ Else If clienteasing.GetString("CUENTA") = "63403" Then
+ c = Starter.skmt.ExecQuery("select HVD_FECHA from HIST_VENTAS")
+ c.Position = 0
+ Dim fecha() As String = Regex.Split(" ", c.GetString("HVD_FECHA"))
+ Dim fecha3 As String = fecha(0)
+ Log(fecha3)
+ Dim hora() As String = Regex.Split("\.", fecha(1))
+ a = fecha3 & " " & hora(0)
+ c.Close
+ End If
+ Return a
+End Sub
+
+Sub traerUTAPREV As String 'ignore
+ Private c As Cursor
+ Private a As String
+ c = Starter.skmt.ExecQuery("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")
+ c.Position = 0
+ a = C.GetString("CAT_CL_RUTA")
+ c.Close
+ Return a
+End Sub
+
+
+Sub CreateBitmapWithNumber(OriginalBitmap As Bitmap, Number As Int) As Bitmap
+ Dim NewBitmap As Bitmap
+ NewBitmap.InitializeMutable(OriginalBitmap.Width, OriginalBitmap.Height)
+
+ Dim Canvas As Canvas
+ Canvas.Initialize2(NewBitmap)
+
+ ' Definir el rectángulo donde se dibujará el Bitmap
+ Dim DestRect As Rect
+ DestRect.Initialize(0, 0, OriginalBitmap.Width, OriginalBitmap.Height)
+
+ ' Dibujar la imagen original
+ Canvas.DrawBitmap(OriginalBitmap, Null, DestRect)
+
+ ' Dibujar el número en el centro del Bitmap y configurar el estilo del texto
+ Canvas.DrawText(Number, (OriginalBitmap.Width / 2), (OriginalBitmap.Height / 2.4), Typeface.DEFAULT, 20, Colors.White, "CENTER")
+
+ Return NewBitmap
+End Sub
\ No newline at end of file
diff --git a/B4A/Tracker.bas b/B4A/Tracker.bas
new file mode 100644
index 0000000..f564cfd
--- /dev/null
+++ b/B4A/Tracker.bas
@@ -0,0 +1,236 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Service
+Version=10.2
+@EndOfDesignText@
+#Region Service Attributes
+ #StartAtBoot: True
+#End Region
+'******************************************************************************
+'No olvidar agregar esta linea al editor de manifiesto:
+' SetServiceAttribute(Tracker, android:foregroundServiceType, "location")
+'
+'En Starter agregar estas lineas en Process_Globals
+' Public rp As RuntimePermissions
+' Public FLP As FusedLocationProvider
+' Private flpStarted As Boolean
+'
+'En Main agregar estas lineas a Activity_Resume
+' Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
+' Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
+' If Result Then
+' StartService(Tracker)
+' Log("Start Tracker")
+' Else
+' ToastMessageShow("No permission", True)
+' End If
+'
+'Se necesitan las librerias FusedLocationProvider, GPS, Phone y RunTimePermissions
+'
+'Y en Main agregar estas dos lineas:
+'#AdditionalJar: com.android.support:support-v4
+'#AdditionalJar: com.google.android.gms:play-services-location
+
+Sub Process_Globals
+ Private nid As Int = 1
+ dim Tracking As Boolean
+ Private lock As PhoneWakeState
+ 'Para FusedLocationProvider (2 lineas)
+ Public FLP As FusedLocationProvider
+ Dim actualLR As LocationRequest
+ Private flpStarted As Boolean
+ Dim locRequest As String
+ Dim UUGCoords As Location 'Ultima Ubicacion Guardada
+ Dim trackerActividad, pushServiceActividad As String
+End Sub
+
+Sub Service_Create
+ Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER 'we are handling it ourselves
+ UUGCoords.Initialize
+ UUGCoords.Latitude = 0
+ UUGCoords.Longitude = 0
+ 'Para FusedLocationProvider (2 lineas)
+ FLP.Initialize("flp")
+ FLP.Connect
+ lock.PartialLock
+ StartFLP
+End Sub
+
+Sub flp_ConnectionSuccess
+' If B4XPages.MainPage.logger Then Log("Connected to location provider")
+ 'FLP.GetLastKnownLocation
+End Sub
+
+Sub flp_ConnectionFailed(ConnectionResult1 As Int)
+ If B4XPages.MainPage.logger Then Log("Failed to connect to location provider")
+End Sub
+
+Sub flp_ConnectionSuspended(ConnectionResult1 As Int)
+ If B4XPages.MainPage.logger Then Log("FLP conection suspended")
+ StartFLP
+End Sub
+
+Sub Service_Start (StartingIntent As Intent)
+ LogColor("Iniciando Tracker ...", Colors.Green)
+ Service.StopAutomaticForeground
+' Service.StartForeground(51042, Subs.notiLowReturn("THIS (T)", PushService.wsStatus, 51042))
+ StartServiceAt(Me, DateTime.Now + 10 * DateTime.TicksPerMinute, True)
+ Track
+ Starter.trackerActividad = Subs.fechaKMT(DateTime.Now)
+' Log("trackerActividad="&Starter.trackerActividad&"|"& Subs.fechaKMT(DateTime.Now))
+End Sub
+
+Public Sub Track
+ If B4XPages.MainPage.logger Then Log("Inicia Track - Tracking : "&Tracking)
+ If Tracking Then
+' Log(actualLR.GetSmallestDisplacement)
+ Return 'Si ya estamos "rastreando" no hacemos nada (return)
+ End If
+ If Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION) = False Then
+ If B4XPages.MainPage.logger Then Log("No permission")
+ Return
+ End If
+ StartFLP 'Iniciamos FusedLocationProvider
+ Tracking = True
+End Sub
+
+Public Sub StartFLP
+' If B4XPages.MainPage.logger Then Log("StartFLP - flpStarted="&flpStarted)
+ Do While FLP.IsConnected = False
+ Sleep(500)
+' If Main.logger Then Log("sleeping")
+ Loop
+' If flpStarted = False Then
+' If Main.logger Then Log("RequestLocationUpdates")
+ FLP.RequestLocationUpdates(CreateLocationRequest) 'Buscamos ubicacion
+' If Main.logger Then Log("Buscamos ubicacion")
+' If Main.logger Then Log(actualLR.GetSmallestDisplacement)
+ flpStarted = True
+' End If
+End Sub
+
+Public Sub StartFLP2Reqs
+ If B4XPages.MainPage.logger Then Log("StartFLP - flpStarted="&flpStarted)
+ Do While FLP.IsConnected = False
+ Sleep(500)
+ If B4XPages.MainPage.logger Then Log("sleeping GR")
+ Loop
+ dameUltimaUbicacionConocida 'Regresamos ultima ubicacion conocida
+ FLP.RequestLocationUpdates(CreateLocationRequest2times) 'Buscamos ubicacion 2 peticiones
+ If B4XPages.MainPage.logger Then Log("Buscamos ubicacion 2 peticiones")
+ If B4XPages.MainPage.logger Then Log(actualLR.GetSmallestDisplacement)
+End Sub
+
+Private Sub CreateLocationRequest As LocationRequest
+ If B4XPages.MainPage.logger Then Log("CreateLocationRequest")
+ Dim lr As LocationRequest
+ lr.Initialize
+ lr.SetInterval(10000) 'Intervalo deseado para actualizaciones de ubicacion
+ lr.SetFastestInterval(lr.GetInterval / 2) 'Intervalo minimo para actualizaciones de ubicacion
+ lr.SetSmallestDisplacement(75) 'Solo registra cambio de ubicacion si es mayor a XX mts
+ lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY)
+ actualLR=lr
+ Return lr
+End Sub
+
+Private Sub CreateLocationRequest2times As LocationRequest
+ If B4XPages.MainPage.logger Then Log("Iniciamos CreateLocationRequest2times")
+ Dim lr As LocationRequest
+ lr.Initialize
+ lr.SetInterval(2000) 'Intervalo deseado para actualizaciones de ubicacion
+ lr.SetFastestInterval(lr.GetInterval / 2) 'Intervalo minimo para actualizaciones de ubicacion
+ lr.setNumUpdates(2) 'Solicitamos solo 2 actualizaciones con estos parametros
+ lr.SetSmallestDisplacement(10) 'Solo registra cambio de ubicacion si es mayor a XX mts
+ lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY)
+ actualLR=lr
+ Return lr
+End Sub
+
+Sub dameUltimaUbicacionConocida
+ If FLP.GetLastKnownLocation.IsInitialized Then 'Mandamos ultima ubicacion guardada
+' If Main.logger Then Log("Mandamos UUC : "&formatoFecha(FLP.GetLastKnownLocation.Time))
+ If B4XPages.MainPage.Logger Then LogColor($"Mandamos UUC "${Subs.fechaKMT(FLP.GetLastKnownLocation.Time)}|Acc:$0.2{FLP.GetLastKnownLocation.Accuracy}|$0.8{FLP.GetLastKnownLocation.Latitude}|$0.8{FLP.GetLastKnownLocation.Longitude}|Spd:$0.2{FLP.GetLastKnownLocation.Speed}|"$, Colors.RGB(255,112,35))
+ Dim coords As String = FLP.GetLastKnownLocation.Latitude&","&FLP.GetLastKnownLocation.Longitude&","&formatoFecha(FLP.GetLastKnownLocation.Time)
+' CallSubDelayed2(FirebaseMessaging,"mandamosLoc",coords)
+ Subs.mandamosLoc(coords)
+ End If
+End Sub
+
+Public Sub StopFLP
+ 'Log("StopFLP")
+ If flpStarted Then
+ FLP.RemoveLocationUpdates 'Eliminamos todas las solicitudes de ubicacion
+ flpStarted = False
+ End If
+End Sub
+
+Sub flp_LocationChanged (Location1 As Location)
+ Starter.trackerActividad = Subs.fechaKMT(DateTime.Now)
+ UUGCoords = Location1
+' If Main.logger Then Log("SmallestDisplacement="&actualLR.GetSmallestDisplacement)
+ CallSub2(Starter, "GPS_LocationChanged", Location1)
+' CallSub2(gestion, "GPS_LocationChanged", Location1)
+' CallSubDelayed2(gestion, "GPS_LocationChanged", Location1)
+ B4XPages.MainPage.lat_gps = Location1.Latitude
+ B4XPages.MainPage.lon_gps = Location1.Longitude
+'/////// para la ultima ubicacion FL
+ Dim sDate,sTime As String
+ DateTime.DateFormat = "MM/dd/yyyy"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ Try
+ Starter.skmt.ExecNonQuery("DELETE FROM HIST_GPS")
+ Starter.skmt.ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ", Array As Object (sDate & sTime, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps))
+ Catch
+ If B4XPages.MainPage.logger Then Log("Error al borrar o insertar nuevas coordendas en HIST_GPS")
+ End Try
+'///////
+ Dim coords As String = Location1.Latitude&","&Location1.Longitude&","&formatoFecha(Location1.Time)
+ Log("Loc changed : "&Location1.Latitude&","&Location1.Longitude)
+ If B4XPages.MainPage.logger Then Log("Mandamos Ubicacion")
+ If B4XPages.MainPage.logger Then Log(locRequest)
+ ' Solo mandamos la ubicacion si la precision es menor a XX mts
+ If Location1.Accuracy < 100 Then
+ Subs.guardaInfoEnBD(coords)'Escribimos coordenadas y fecha en BD
+' CallSubDelayed2(FirebaseMessaging,"mandamosLoc",coords)
+ Subs.mandamosLoc(coords)
+ End If
+ Dim origFormat As String = DateTime.TimeFormat 'Guardamos formato de fecha
+ DateTime.TimeFormat = "HHmmss" ' Modificamos formato de fecha
+ Dim minsDif As Int = DateTime.Time(DateTime.Now) - B4XPages.MainPage.ultimaActualizacionGPS
+' If Main.logger Then Log("UltimaAct="&Main.ultimaActualizacionGPS&" MinsDif="&minsDif)
+ If Location1.Accuracy < 100 And minsDif > 240 Then 'Si precision de 100 y 4 min transcurridos manda a web
+ If B4XPages.MainPage.logger Then Log("actualizamos Ubicacion Web")
+ CallSubDelayed(Starter, "ENVIA_ULTIMA_GPS")
+ End If
+ DateTime.TimeFormat = origFormat 'Regresamos formato de fecha original
+ 'Revisamos servicios
+ Subs.monitor
+End Sub
+
+Sub CreateNotification (Body As String) As Notification 'ignore
+ Dim notification As Notification
+ notification.Initialize2(notification.IMPORTANCE_LOW)
+ notification.Icon = "icon"
+ notification.SetInfo("IZCA REPARTO", Body, Main)
+ Return notification
+End Sub
+
+Sub Service_Destroy
+ If Tracking Then
+ StopFLP
+ End If
+ Tracking = False
+ lock.ReleasePartialLock
+End Sub
+
+Sub formatoFecha(fecha As String) As String 'Convierte una fecha al formato yyMMddHHmmss
+' Log(fecha)
+ Dim OrigFormat As String = DateTime.DateFormat 'save orig date format
+ DateTime.DateFormat="yyMMddHHmmss"
+ Dim lastUpdate As String=DateTime.Date(fecha)
+ DateTime.DateFormat=OrigFormat 'return to orig date format
+' Log(lastUpdate)
+ Return lastUpdate
+End Sub
\ No newline at end of file
diff --git a/B4A/appUpdater.bas b/B4A/appUpdater.bas
new file mode 100644
index 0000000..b7c0a58
--- /dev/null
+++ b/B4A/appUpdater.bas
@@ -0,0 +1,284 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Service
+Version=10.2
+@EndOfDesignText@
+#Region Service Attributes
+ #StartAtBoot: False
+#End Region
+
+'////////////////////////////////////////////////////////////////////////////////////////////
+'//// Servicio para revisar si hay actualizacion de aplicación, usa la
+'//// actividad "updateAvailable" para mostrar mensajes.
+'////
+'//// https://www.b4x.com/android/forum/threads/update-your-app-without-using-the-gplaystore.109720/#content
+'////
+'//// En la actividad del la cual se va a llamar la revision de actualizacion
+'//// hay que agregar los siguientes Subs:
+'////
+' Sub boton_que_llama_revision_Click
+' StartService(appUpdater)
+' End Sub
+'
+' appUpdater - Mostramos el anuncio de que se esta descargando el nuevo apk
+' Sub muestraProgreso
+' ProgressDialogShow("Descargando actualización")
+' End Sub
+'
+' appUpdater - Ocultamos el anuncio de que se esta descargando el nuevo apk
+' Sub ocultaProgreso
+' ProgressDialogHide
+' End Sub
+'////
+'//// Requiere las siguientes librerias:
+'////
+'//// * appUpdating
+'//// * JavaObject
+'//// * OkHttpUtils2
+'//// * Phone
+'//// * RuntimePermissions
+'////
+'//// Requiere las siguientes lineas en el manifiesto:
+'////
+' AddManifestText(
+' )
+' AddApplicationText(
+'
+'
+'
+' )
+' CreateResource(xml, provider_paths,
+'
+'
+'
+'
+'
+' )
+' AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)
+' AddPermission(android.permission.INTERNET)
+' AddPermission(android.permission.INSTALL_PACKAGES)
+' AddPermission(android.permission.READ_EXTERNAL_STORAGE)
+' AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
+' AddPermission(android.permission.READ_PHONE_STATE)
+' AddPermission(android.permission.WAKE_LOCK)
+'////
+'////////////////////////////////////////////////////////////////////////////////////////////
+
+Sub Process_Globals
+ 'These global variables will be declared once when the application starts.
+ 'These variables can be accessed from all modules.
+
+ 'Aqui va la liga al archivo .ver en el servidor que contiene la información de la aplicacion
+ Public lnk As String = "https://keymon.net/movil/izca/izca_reparto.ver"
+
+ '/// En el servidor se necesita un archivo de texto (.ver) que tenga los siguientes
+ '/// datos separados por un tabulador
+ '/// contents of ver file, each field is seperated by a tab
+ ' Field 0 = 2.226.19.09.19.01a <-- Esta es la version de la aplicación disponible
+ ' Field 1 = A new version of the MyAPP is available, Download and update now ? <-- Mensaje para cuando hay actualización
+ ' Field 2 = MyApp is up to date <--- Mensaje para cuando no hay actualización
+ ' Field 3 = http://www.mydomain.com/Public/myapp.apk <--- Liga al apk de la actualización
+
+ Public nNewApp As Notification
+ Public nNewAppnID As Int = 16
+ 'Para Download
+ Dim nativeMe As JavaObject
+ Dim n2 As Notification
+ Dim n2ID As Int = 16
+ 'Para fileProvider
+ Public SharedFolder As String
+ Public UseFileProvider As Boolean
+ Private rp As RuntimePermissions
+
+ Type mNewVersion(update As Boolean, nonewAPP As Boolean, notifyUser As Boolean, _
+ version As String, newMsg As String, okMsg As String, appLink As String)
+ Public newApp As mNewVersion
+End Sub
+
+Sub Service_Create
+ Log("appUpdater(), Service_Create")
+ newApp.Initialize
+ Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER
+ n2.Initialize
+ nativeMe.InitializeContext
+End Sub
+
+Sub Service_Start (StartingIntent As Intent)
+ Log("appUpdater(), Service_Start")
+' CallSubDelayed2(Main, "muestraProgreso", "Buscando actualización")
+ B4XPages.MainPage.muestraProgreso("Buscando actualización")
+ Log("Buscando actualización")
+ fileProvider_init
+ Wait For (Download(Me, lnk)) JobDone (j As HttpJob)
+ If j.Success Then
+ Try
+ Dim app() As String = Regex.Split(Chr(9),j.GetString)
+ ' // Set the data
+ newApp.appLink = app(3) 'Liga a nueva app
+ newApp.newMsg = app(1) 'Texto de que hay actualizacion
+ newApp.okMsg = app(2) 'Texto de app al corriente
+ newApp.version = app(0) 'Version actual
+
+ Log($"Application.VersionName=${Application.VersionName}, newApp=${newApp}"$)
+
+ ' // App version check
+ If newApp.version = Application.VersionName Then
+ newApp.update = False
+ Log("No new app")
+ B4XPages.ShowPage("updateAvailable")
+ 'Se puede mandar tambien una notificacion avisando que NO hay actualizaciones
+ CreateNotification2("Aplicacion al corriente","No hay actualizaciones disponibles","ic_file_download_white_24dp",Main,True,True,nNewApp,nNewAppnID)
+ End If
+ If newApp.version <> Application.VersionName Then
+ newApp.update = True
+ Log("New app true")
+ B4XPages.ShowPage("updateAvailable")
+ 'Se puede mandar tambien una notificacion avisando que hay actualizacion disponible
+' CreateNotification2("Nueva aplicación disponible","Haga clic para descargar.","ic_file_download_white_24dp",C_UpdateAvailable,True,True,nNewApp,nNewAppnID)
+ End If
+ Catch
+ Log("appUpdater(), Job Failed, error " & LastException.Message)
+ End Try
+ Else
+ Log("appUpdater(), Job Failed " & lnk)
+ End If
+ j.Release
+' StopService(Me)
+End Sub
+
+Sub download_Start (StartingIntent As Intent)
+ download_newApk
+End Sub
+
+Sub download_newApk
+' CreateNotification("Descargando actualización", "Descargando apk", "ic_file_download_white_24dp", Main, False, True)
+' CallSubDelayed2(Main, "muestraProgreso", "Descargando actualización")
+ Log("Descargando actualización")
+ B4XPages.ShowPage("login")
+ B4XPages.MainPage.muestraProgreso("Descargando actualización")
+ Starter.muestraProgreso = 1
+ Dim job_newAPP As HttpJob
+ job_newAPP.Initialize("job_newAPP",Me)
+ job_newAPP.Download(newApp.appLink)
+ Wait for (job_newAPP) JobDone (job_newAPP As HttpJob)
+ If job_newAPP.Success = True Then
+ ' // Delete existing file
+ If File.Exists(SharedFolder,"newapp.apk") Then
+ File.Delete(SharedFolder,"newapp.apk")
+ End If
+ ' // Save new file
+ Dim outNewAPK As OutputStream = File.OpenOutput(SharedFolder,"newapp.apk", False)
+ File.Copy2(job_newAPP.GetInputStream, outNewAPK)
+ outNewAPK.Close
+' If Starter.Logger Then Log("APK dir: "&SharedFolder)
+ B4XPages.MainPage.ocultaProgreso
+ Log("ocultamos prigreso DOWNLOAD APK")
+ End If
+ job_newAPP.Release
+ ' // Install the app
+ Dim in As Intent
+ in.Initialize(in.ACTION_VIEW,"" )
+ SetFileUriAsIntentData(in, "newapp.apk")
+ ' // Type must be set after calling SetFileUriAsIntentData
+ in.SetType("application/vnd.android.package-archive")
+ StartActivity(in)
+ n2.Cancel(nNewAppnID)
+' Service.StopForeground(nNewAppnID)
+ StopService(Me)
+' CallSubDelayed(Main,"ocultaProgreso")
+End Sub
+
+Sub download_Destroy
+ n2.Cancel(n2ID)
+ Service.StopForeground(n2ID)
+End Sub
+
+Sub Download (Callback As Object, link As String) As HttpJob
+ Dim j As HttpJob
+ j.Initialize("", Callback)
+ j.Download(link)
+ Return j
+End Sub
+
+Private Sub CreateNotification2(Title As String, Content As String, _ 'ignore
+ Icon As String, TargetActivity As Object, Sound As Boolean, _
+ Vibrate As Boolean, pN As Notification,pNID As Int) As Notification
+ pN.Initialize2(pN.IMPORTANCE_HIGH)
+' pN.Number = pNID
+' pN.Light = False
+ pN.Vibrate = Vibrate
+ pN.Sound = Sound
+' pN.OnGoingEvent = False
+ pN.Icon = Icon
+ pN.AutoCancel = True
+ pN.SetInfo(Title, Content, TargetActivity)
+ pN.Notify(pNID)
+ Return pN
+End Sub
+
+Private Sub CreateNotification(Title As String, Content As String, Icon As String, TargetActivity As Object, Sound As Boolean, Vibrate As Boolean) As Notification 'ignore
+ n2.Initialize
+ n2.Light = False
+ n2.Vibrate = Vibrate
+ n2.Sound = Sound
+ n2.OnGoingEvent = True
+ n2.Icon = Icon
+ n2.SetInfo(Title, Content, TargetActivity)
+ n2.Notify(nNewAppnID)
+End Sub
+
+Sub Service_Destroy
+ Log("appUpdater(), Service_Destroy")
+End Sub
+
+Sub fileProvider_init
+ Dim p As Phone
+ If p.SdkVersion >= 24 Or File.ExternalWritable = False Then
+ UseFileProvider = True
+ SharedFolder = File.Combine(File.DirInternal, "shared")
+ If Not(File.IsDirectory(File.DirInternal,"shared")) Then
+ File.MakeDir("", SharedFolder)
+ End If
+ Else
+ UseFileProvider = False
+ SharedFolder = rp.GetSafeDirDefaultExternal("shared")
+ End If
+ Log($"Using FileProvider? - ${UseFileProvider}"$)
+End Sub
+
+'Returns the file uri.
+Sub GetFileUri (FileName As String) As Object
+ Try
+ If Not(UseFileProvider) Then
+ Dim uri As JavaObject
+ Return uri.InitializeStatic("android.net.Uri").RunMethod("parse", Array("file://" & File.Combine(SharedFolder, FileName)))
+ End If
+ Dim f As JavaObject
+ f.InitializeNewInstance("java.io.File", Array(SharedFolder, FileName))
+ Dim fp As JavaObject
+ Dim context As JavaObject
+ context.InitializeContext
+ fp.InitializeStatic("android.support.v4.content.FileProvider")
+ Return fp.RunMethod("getUriForFile", Array(context, Application.PackageName & ".provider", f))
+ Catch
+ Log("FileProvider::GetFileUri - error - " & LastException.Message)
+ Return ""
+ End Try
+End Sub
+
+'Replaces the intent Data field with the file uri.
+'Resets the type field. Make sure to call Intent.SetType after calling this method
+Sub SetFileUriAsIntentData (Intent As Intent, FileName As String)
+ Dim jo As JavaObject = Intent
+ jo.RunMethod("setData", Array(GetFileUri(FileName)))
+ Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRANT_READ_URI_PERMISSION
+End Sub
diff --git a/B4A/cheklist.bas b/B4A/cheklist.bas
new file mode 100644
index 0000000..b955c0b
--- /dev/null
+++ b/B4A/cheklist.bas
@@ -0,0 +1,24 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Class
+Version=12.5
+@EndOfDesignText@
+Sub Class_Globals
+ Private Root As B4XView 'ignore
+ Private xui As XUI 'ignore
+End Sub
+
+'You can add more parameters here.
+Public Sub Initialize As Object
+ Return Me
+End Sub
+
+'This event will be called once, before the page becomes visible.
+Private Sub B4XPage_Created (Root1 As B4XView)
+ Root = Root1
+ 'load the layout to Root
+
+End Sub
+
+'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
\ No newline at end of file
diff --git a/B4A/foto.bas b/B4A/foto.bas
new file mode 100644
index 0000000..95bd3c8
--- /dev/null
+++ b/B4A/foto.bas
@@ -0,0 +1,190 @@
+B4A=true
+Group=Default Group
+ModulesStructureVersion=1
+Type=Activity
+Version=7.01
+@EndOfDesignText@
+#Region Activity Attributes
+ #FullScreen: False
+ #IncludeTitle: True
+
+#End Region
+
+Sub Process_Globals
+ Private frontCamera As Boolean = False
+' Dim ruta As String
+ Dim g As GPS
+
+End Sub
+
+Sub Globals
+ Private p_camara As Panel
+ Private camEx As CameraExClass
+ Dim btnTakePicture As Button
+ ' Dim skmt As SQL
+ Dim c As Cursor
+ Dim cuenta As String
+ Dim lat_gps As String
+' Dim lon_gps As String
+ Dim USUARIO As String
+ Dim MOTIVO As String
+End Sub
+
+Sub Activity_Create(FirstTime As Boolean)
+ If(FirstTime) Then
+ g.Initialize("GPS")
+ End If
+ Activity.LoadLayout("foto")
+ c=Starter.skmt.ExecQuery("select cuenta from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+End Sub
+
+Sub Activity_Resume
+ InitializeCamera
+End Sub
+
+Private Sub InitializeCamera
+ camEx.Initialize(p_camara, frontCamera, Me, "Camera1")
+ frontCamera = camEx.Front
+End Sub
+
+Sub Activity_Pause (UserClosed As Boolean)
+ camEx.Release
+End Sub
+
+Sub GPS_LocationChanged (Location1 As Location)
+' lat_gps=Location1.ConvertToSeconds(Location1.Latitude)
+' lon_gps=Location1.ConvertToSeconds(Location1.Longitude)
+ 'btnTakePicture.Enabled = True
+ 's.ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE,HGLAT, HGLON) VALUES(?,?,?) ", Array As Object (sDate & sTime, lat_gps, lon_gps))
+End Sub
+
+Sub Camera1_Ready (Success As Boolean)
+ If Success Then
+ camEx.SetJpegQuality(90)
+ camEx.CommitParameters
+ camEx.StartPreview
+ Log(camEx.GetPreviewSize)
+ Else
+ ToastMessageShow("Cannot open camera.", True)
+ End If
+End Sub
+
+Sub btnTakePicture_Click
+ Dim ps As CameraSize
+ ps.Width =640
+ ps.Height =480
+ camEx.SetPictureSize(ps.Width, ps.Height)
+ 'ToastMessageShow(ps.Width & "x" & ps.Height, False)
+ camEx.CommitParameters
+ camEx.TakePicture
+End Sub
+
+Sub btnFocus_Click
+ camEx.FocusAndTakePicture
+End Sub
+
+Sub Camera1_PictureTaken (Data() As Byte)
+ Dim filename As String = "1.jpg"
+ Dim dir As String = File.DirInternal
+
+ camEx.SavePictureToFile(Data, dir, filename)
+ camEx.StartPreview 'restart preview
+
+ 'Dim out As OutputStream
+
+ Dim sDate,sTime As String
+
+
+ DateTime.DateFormat = "MM/dd/yyyy"
+ sDate=DateTime.Date(DateTime.Now)
+ sTime=DateTime.Time(DateTime.Now)
+ c=Starter.skmt.ExecQuery("select CUENTA from cuentaa")
+ c.Position = 0
+ cuenta = c.GetString("CUENTA")
+ c=Starter.skmt.ExecQuery("select USUARIO from usuarioa")
+ c.Position = 0
+ USUARIO = c.GetString("USUARIO")
+ c.Close
+ Starter.skmt.ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")
+
+ c=Starter.skmt.ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc")
+
+ If c.RowCount>0 Then
+ For i=0 To c.RowCount -1
+ c.Position=i
+ Starter.skmt.ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(c.GetString("HVD_PRONOMBRE")))
+
+ Starter.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?", Array As Object(c.GetString("HVD_CANT"),c.GetString("HVD_PRONOMBRE")))
+ ' ANTES DE MODIFCAR
+ 'skmt.ExecNonQuery2("delete FROM HIST_VENTAS WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(c.GetString("HVD_PRONOMBRE")))
+ 'skmt.ExecNonQuery2("update HIST_VENTAS set HVD_EXISTE = ? WHERE HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ", Array As String(motivo, c.GetString("HVD_PRONOMBRE")))
+
+ Next
+ End If
+
+
+
+
+ Starter.skmt.ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO) VALUES(?,?,?,?,?,?,?,?) ", Array As Object (cuenta,sDate & sTime, USUARIO, "CERRADO", B4XPages.MainPage.noVenta.COMENTARIO, B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps, Data))
+ Starter.skmt.ExecNonQuery($"UPDATE kmt_info set gestion = 3, HORAENT = '${sDate & " " & sTime}' where CAT_CL_CODIGO In (select cuenta from cuentaa)"$)
+ Starter.skmt.ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")
+ B4XPages.ShowPage("Principal")
+
+
+End Sub
+
+Sub ChangeCamera_Click
+ camEx.Release
+ frontCamera = Not(frontCamera)
+ InitializeCamera
+End Sub
+
+Sub btnEffect_Click
+ Dim effects As List = camEx.GetSupportedColorEffects
+ If effects.IsInitialized = False Then
+ ToastMessageShow("Effects not supported.", False)
+ Return
+ End If
+ Dim effect As String = effects.Get((effects.IndexOf(camEx.GetColorEffect) + 1) Mod effects.Size)
+ camEx.SetColorEffect(effect)
+ ToastMessageShow(effect, False)
+ camEx.CommitParameters
+End Sub
+
+Sub btnFlash_Click
+ Dim f() As Float = camEx.GetFocusDistances
+ Log(f(0) & ", " & f(1) & ", " & f(2))
+ Dim flashModes As List = camEx.GetSupportedFlashModes
+ If flashModes.IsInitialized = False Then
+ ToastMessageShow("Flash not supported.", False)
+ Return
+ End If
+ Dim flash As String = flashModes.Get((flashModes.IndexOf(camEx.GetFlashMode) + 1) Mod flashModes.Size)
+ camEx.SetFlashMode(flash)
+ ToastMessageShow(flash, False)
+ camEx.CommitParameters
+End Sub
+Sub btnPictureSize_Click
+ Dim pictureSizes() As CameraSize = camEx.GetSupportedPicturesSizes
+ Dim current As CameraSize = camEx.GetPictureSize
+ For i = 0 To pictureSizes.Length - 1
+ If pictureSizes(i).Width = current.Width And pictureSizes(i).Height = current.Height Then Exit
+ Next
+ Dim ps As CameraSize = pictureSizes((i + 1) Mod pictureSizes.Length)
+ camEx.SetPictureSize(ps.Width, ps.Height)
+ ToastMessageShow(ps.Width & "x" & ps.Height & i, False)
+ camEx.CommitParameters
+End Sub
+Sub Activity_KeyPress (key As Int) As Boolean
+ ' BACK key pressed
+ If key=KeyCodes.KEYCODE_BACK Then
+ ' I want to capture the key here so I return True
+ B4XPages.ShowPage("Principal")
+ 'Return True
+ End If
+ ' Returning False signals the system to handle the key
+ Return False
+End Sub
+